/* Cabana Mio Booking System Styles */
.cabana-booking-form {
    padding: 30px;
    background: white;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 450px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    text-align: center;
    border: 1px solid #e6e6e6;
}

.cabana-booking-form h3 {
    color: #2d5a78;
    margin-bottom: 20px;
    font-size: 22px;
}

.booking-field {
    margin-bottom: 20px;
}

.booking-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2d5a78;
    text-align: left;
}

.cabana-datepicker {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}

.cabana-datepicker:focus {
    border-color: #2d5a78;
    outline: none;
}

.cabana-booking-form button:hover {
    background: #E14A4F;
}

/* Results Styling */
.booking-result {
    margin-top: 20px;
}

.loading {
    text-align: center;
    color: #2d5a78;
    font-style: italic;
}

.availability-results {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.availability-results h3 {
    color: #2d5a78;
    margin-bottom: 10px;
    text-align: center;
}

.dates-selected {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.chalet-list {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.chalet-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.2s ease;
}

.chalet-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.chalet-item h4 {
    color: #2d5a78;
    margin-bottom: 10px;
    font-size: 18px;
}

.chalet-price {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 5px;
}

.chalet-nights {
    color: #666;
    margin-bottom: 15px;
}

/* Status Messages */
.available {
    color: #27ae60;
    text-align: center;
    font-weight: bold;
}

.not-available {
    color: #e74c3c;
    text-align: center;
    font-weight: bold;
}

.error {
    color: #f39c12;
    text-align: center;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cabana-booking-form {
        margin: 15px;
        max-width: 100%;
    }
    
    .chalet-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .chalet-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ===== MODAL STYLES ===== */
.cabana-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
}

.cabana-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

/* ===== CHALET RESULTS STYLING ===== */
.chalet-results-container {
    margin-top: 20px;
}

.chalet-result {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chalet-result:hover {
    border-color: #2d5a78;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.chalet-name {
    font-size: 1.4rem;
    color: #2d5a78;
    margin-bottom: 10px;
}

.chalet-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.chalet-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
}

.chalet-duration {
    color: #666;
}

/* NEW: Reserve This Chalet Button - Gold Styling */
.reserve-chalet-btn {
    background: #D4AF37; /* Gold color */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 6px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.reserve-chalet-btn:hover {
    background: #C19B2E; /* Darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}

.reserve-chalet-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(212, 175, 55, 0.3);
}

/* Add a subtle shine effect */
.reserve-chalet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.reserve-chalet-btn:hover::before {
    left: 100%;
}

/* Legacy button styles for backward compatibility */
.select-chalet-btn {
    background: #D4AF37; /* Gold color */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.select-chalet-btn:hover {
    background: #C19B2E; /* Darker gold */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Generic book now button (used elsewhere) */
.book-now-btn {
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    font-weight: bold;
}

.book-now-btn:hover {
    background: #219653;
}

/* Booking Explanation Styles */
.booking-explanation {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 1px solid #f8f8f8;
}

.booking-explanation h3 {
    color: #2d5a78;
    margin-top: 0;
    margin-bottom: 20px;
}

.booking-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.booking-type {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.booking-type h4 {
    color: #2d5a78;
    margin-top: 0;
    margin-bottom: 10px;
}

.booking-type p {
    margin: 0;
    color: #666;
}

.booking-type em {
    color: #888;
    font-size: 0.9em;
}

.booking-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    margin: 0;
    border-left: 4px solid #2196f3;
}

/* Cabana Booking Form Styles */
.cabana-booking-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.booking-summary {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #2d5a78;
}

.booking-summary p {
    margin: 8px 0;
    font-size: 16px;
}

/* Updated form row for better mobile experience */
.form-row {
    display: block; /* Changed from grid to block */
    margin-bottom: 0; /* Reduced margin */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2d5a78;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Added for better sizing */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2d5a78;
    outline: none;
}

.booking-terms {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #ffc107;
}

.booking-terms h3 {
    margin-top: 0;
    color: #856404;
}

.booking-terms ul {
    margin: 10px 0;
    padding-left: 20px;
}

.booking-terms li {
    margin-bottom: 8px;
}

.book-now-final {
    background: #27ae60;
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.book-now-final:hover {
    background: #219653;
}

.booking-result {
    margin-top: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

.error {
    color: #721c24;
    background: #f8d7da;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

.booking-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Media query for desktop - two columns only on larger screens */
@media (min-width: 768px) {
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
}

/* Apply gold button style to booking form button */
.cabana-booking-form button[type="submit"] {
    background: #D4AF37; /* Gold color */
    color: white;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
}

.cabana-booking-form button[type="submit"]:hover {
    background: #C19B2E; /* Slightly darker gold for hover */
}

/* MODERN AIRBNB-STYLE RESERVATION FORM STYLING */
/* This ONLY affects the reservation form - won't break anything else */

.cabana-booking-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cabana-booking-form-container h2 {
    font-size: 32px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Modern Booking Summary Card */
.booking-summary {
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.booking-summary p {
    margin: 12px 0;
    font-size: 16px;
    color: #222222;
    line-height: 1.4;
}

.booking-summary p strong {
    font-weight: 600;
    color: #222222;
}

/* FORCE SINGLE COLUMN LAYOUT - This fixes your main concern */
.form-row {
    display: block !important; /* Force single column everywhere */
    grid-template-columns: none !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
}

.form-group {
    margin-bottom: 24px;
    width: 100% !important;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #222222;
    font-size: 14px;
    text-transform: none;
}

/* Modern Input Styling */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #B0B0B0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #222222;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #717171;
}

/* Modern Textarea */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Modern Booking Terms */
.booking-terms {
    background: #F7F7F7;
    border: 1px solid #EBEBEB;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.booking-terms h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #222222;
    font-size: 18px;
    font-weight: 600;
}

.booking-terms ul {
    margin: 0;
    padding-left: 20px;
    color: #717171;
}

.booking-terms li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Modern Primary Button - Airbnb Style */
.book-now-final {
    background: linear-gradient(to right, #E61E4D 0%, #E31C5F 50%, #D70466 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    min-height: 48px;
    text-transform: none;
    letter-spacing: normal;
}

.book-now-final:hover {
    background: linear-gradient(to right, #D01346 0%, #CF1958 50%, #C4005A 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(230, 30, 77, 0.3);
}

.book-now-final:active {
    transform: translateY(0);
}

/* Success/Error Messages */
.booking-result {
    margin-top: 24px;
}

.success-message {
    background: #F0F9FF;
    border: 1px solid #0EA5E9;
    color: #0C4A6E;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
}

.success-message h3 {
    margin: 0 0 8px 0;
    color: #0C4A6E;
}

.error {
    background: #FEF2F2;
    border: 1px solid #F87171;
    color: #991B1B;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
}

/* Mobile Responsiveness - Ensure single column on ALL devices */
@media (max-width: 1200px) {
    .form-row {
        display: block !important;
        grid-template-columns: none !important;
    }
}

@media (max-width: 768px) {
    .cabana-booking-form-container {
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .cabana-booking-form-container h2 {
        font-size: 28px;
    }
    
    .booking-summary {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .form-row {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

/* Ensure no weird spacing issues */
.form-row .form-group:last-child {
    margin-bottom: 24px;
}

/* Hide any old styling that might interfere */
.cabana-booking-form-container .form-row {
    display: block !important;
}