@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #508E87;
    --primary-dark: #184D47;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --text-color: #333;
    --light-text: #777;
    --light-bg: #f5f7fa;
    --border-color: #ddd;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.headh1 {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.headh1 h1 {
    color: var(--primary-dark);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    background-color: #f1f1f1 !important;
    color: #555 !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    margin-top: 15px;
}

.back-link:hover {
    background-color: #e5e5e5 !important;
    transform: translateY(-2px);
}

/* Progress Steps */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--light-text);
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step-title {
    font-size: 14px;
    color: var(--light-text);
    transition: var(--transition);
    font-weight: 500;
}

.step.active .step-number, .step.completed .step-number {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.active .step-title, .step.completed .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-number::after {
    content: '✓';
}

/* Step Content Animation */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

h3 {
    color: var(--primary-dark);
    margin: 25px 0 15px;
    font-weight: 500;
    font-size: 20px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #508E87;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(80, 142, 135, 0.2);
}

.date-range {
    display: flex;
    gap: 25px;
}

.date-range .form-group {
    flex: 1;
}

/* Tour Type Selection */
.tour-type-selection {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.tour-type-info {
    margin: 0 0 20px 0 !important;
    padding: 15px !important;
    background-color: #e9f7fd !important;
    border-left: 4px solid #4fc3f7 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    max-width: 100% !important;
    line-height: 1.5;
}

#tour-type-display {
    margin: 0 0 20px 0 !important;
    padding: 15px !important;
    background-color: #e9f7fd !important;
    border-left: 4px solid #4fc3f7 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    max-width: 100% !important;
    line-height: 1.5;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    font-style: italic;
}

/* Room Cards */
.room-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.room-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.room-image {
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-details h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--primary-dark);
}

.room-description {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.6;
}

.room-info {
    margin-bottom: 8px;
    font-size: 15px;
}

.room-selection {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.room-quantity, .room-tour-type {
    max-width: 120px;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 500;
}

/* Guest Counts and Validation */
.guest-counts {
    margin-top: 30px !important;
    padding: 20px !important;
    background-color: #f8f9fa;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#guest-validation-message {
    color: var(--danger-color) !important;
    margin-top: 10px !important;
    font-size: 14px !important;
    font-weight: 500;
}

/* Additional Options */
.additional-options-section {
    margin-top: 40px;
}

.pet-option, .corkage-option, #second-house-option {
    margin-top: 20px !important;
    padding: 20px !important;
    background-color: #f8f9fa;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

#pet-quantity-container, #corkage-quantity-container {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px dashed #ccc;
    margin-top: 15px;
    display: none;
}

/* Selected Rooms Summary */
.selected-rooms-summary {
    background-color: #f5f9ff;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

.selected-rooms-summary h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.selected-rooms-summary ul {
    list-style: none;
    padding: 0;
}

.selected-rooms-summary li {
    padding: 12px 0;
    border-bottom: 1px solid #e6e9ec;
}

.selected-rooms-summary p {
    margin: 15px 0 5px;
    font-weight: 500;
}

.selected-room {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.room-name {
    font-weight: 600;
    color: var(--primary-dark);
}

.room-details {
    font-size: 14px;
    color: var(--light-text);
}

/* Navigation Buttons */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    align-items: center;
}

button {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button.next, button.submit {
    background-color: var(--primary-color);
    color: white;
}

button.prev {
    background-color: #f1f1f1;
    color: var(--text-color);
}

button.save-for-later {
    background-color: var(--accent-color);
    color: white;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Confirmation Step */
.confirmation-details {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 35px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.confirmation-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.confirmation-label {
    width: 150px;
    font-weight: 500;
    color: var(--text-color);
}

.confirmation-value {
    flex: 1;
}

.total-price {
    font-weight: 700;
    color: var(--danger-color);
    font-size: 20px;
}

.downpayment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #ccc;
}

/* Entrance Fee Note */
.entrance-fee-note {
    margin-top: 25px !important;
    padding: 20px !important;
    background-color: #fff3cd !important;
    border-radius: 10px !important;
    border-left: 4px solid #ffc107 !important;
    font-size: 15px !important;
}

.entrance-fee-note h3 {
    color: #856404;
    margin-top: 0;
}

.entrance-fee-note ul {
    margin-top: 10px;
    padding-left: 20px;
}

.entrance-fee-note li {
    margin-bottom: 5px;
}

/* Expiration Timer */
.expiration-timer {
    background-color: #f8d7da;
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
    border-left: 4px solid #dc3545;
    font-size: 15px;
    display: none;
}

.countdown {
    font-weight: 700;
    color: #dc3545;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.payment-method {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    background-color: #fff;
}

.payment-method.selected {
    border-color: var(--primary-color);
    background-color: rgba(80, 142, 135, 0.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.payment-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.payment-details {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.payment-details p {
    margin-bottom: 10px;
}

.payment-details strong {
    color: var(--primary-dark);
}
        /* Navbar and Header Styles */
        .page-header {
            width: 100%;
            background: #508E87;
            padding: 20px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 1000;
        }
        .page-header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5); /* Dark overlay */
            z-index: -1;
        }
        .page-header.hidden {
            opacity: 0;
            visibility: hidden;
        }
         .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }
        .nav-links {
            list-style: none; 
            display: flex;
            gap: 30px;
            align-items: center;
            margin-left: auto; 
            margin-right: 20px; 
        }
        .nav-links li {
            list-style: none; 
        }
        .nav-links li a {
            color: white;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            position: relative;
            text-transform: uppercase;
        }
        .nav-links li a::after {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px; 
            background-color: white;
            transition: width 0.3s ease-in-out; 
        }
        .nav-links li a:hover::after {
            width: 100%; 
        }   
   
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo img {
            width: 60px;
            border-radius: 50%;
            height: auto;
        }
        .logo-text {
            display: flex;
            flex-direction: column;
        }
         .logo h1 {
            font-family: "Dancing Script", serif;
            font-size: 3.0em;
            color: white;
            font-weight: 600;
            margin: 0;
        }
        .logo h2 {
            font-family: "Libre Baskerville", serif;
            font-size: 1.8em;
            color: white;
            font-weight: normal;
            margin: 0;
            
        }
        .user-icon {
            font-size: 20px;
            color: white;
            cursor: pointer;
        }
        
        .user-icon img {
            width: 40px;
            border-radius: 50%;
            height: auto;
            border: 2px solid white;
            transition: transform 0.3s ease;
        }
        
        .user-icon img:hover {
            transform: scale(1.1);
        }
        
        /* Make file inputs more attractive */
        input[type="file"] {
            padding: 10px;
            background-color: #f8f9fa;
            border: 1px dashed #ccc;
        }
        
        /* Special styling for the private room */
        .private-room .room-image {
            border: 3px solid var(--success-color);
        }
        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
            background-color: transparent; /* Add this line */
        }

        .user-name {
            color: white;
            font-weight: 500;
        }

        .user-actions {
            display: flex;
            gap: 10px;
        }

        .profile-btn {
            background-color: #4a7a7a;
            color: white;
            border: none;
            padding: 6px 12px;
            text-align: center;
            text-decoration: none;
            font-size: 14px;
            border-radius: 3px;
            cursor: pointer;
        }

        .profile-btn:hover {
            background-color: #5a8a8a;
        }

        .logout-btn {
            background-color: #4a7a7a;
            color: white;
            border: none;
            padding: 6px 12px;
            text-align: center;
            text-decoration: none;
            font-size: 14px;
            border-radius: 3px;
            cursor: pointer;
        }
/* Responsive Adjustments - Consolidated and cleaned */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 20px;
        margin: 20px auto;
    }
    
    /* Layout adjustments */
    .date-range {
        flex-direction: column;
        gap: 20px; /* Consistent with date input improvements */
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    button {
        width: 100%;
    }
    
    .room-options {
        grid-template-columns: 1fr;
    }

    /* Header and navigation */
    .page-header {
        padding: 10px 15px;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
    }

    /* Logo adjustments */
    .logo-text h1 {
        font-size: 1.5em;
        line-height: 1.2;
        margin: 0;
    }

    /* Navigation links */
    .nav-links {
        flex-wrap: wrap;
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        width: 100%;
        order: 3;
    }

    .nav-links li a {
        font-size: 14px;
        padding: 5px 10px;
        white-space: nowrap;
    }

    /* User info positioning */
    .icon {
        margin-left: auto;
        order: 2;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }

    .user-name {
        font-size: 12px;
    }

    .profile-btn, .logout-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* Enhanced date inputs for mobile */
    input[type="date"] {
        padding: 18px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        border: 2px solid #508E87;
        border-radius: 8px;
        background-color: #fff;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Calendar icon styling */
    input[type="date"]::-webkit-calendar-picker-indicator {
        background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23508E87"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.89-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 20px;
        cursor: pointer;
        color: transparent;
        width: 30px;
        height: 30px;
    }

    /* Focus states for date inputs */
    input[type="date"]:focus {
        outline: none;
        border-color: #508E87;
        box-shadow: 0 0 0 3px rgba(80, 142, 135, 0.2);
        background-color: #f8f9fa;
    }

    /* Invalid state styling */
    input[type="date"].invalid {
        border-color: #508E87;
        background-color: #fff5f5;
    }

    input[type="date"].invalid:focus {
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
    }

    /* Date range specific adjustments */
    .date-range .form-group {
        position: relative;
    }

    .date-range .form-group label {
        font-weight: 600;
        color: var(--primary-dark);
        margin-bottom: 10px;
        font-size: 16px;
    }

    /* General form inputs - consolidated rule */
    input:not([type="date"]), select, textarea {
        width: 100%;
        padding: 14px;
        border: 2px solid #508E87;
        border-radius: 8px;
        font-size: 16px;
        transition: var(--transition);
        background-color: #fff;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.2em;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links li a {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* Error and Success Message Styling */
.date-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
    border-left: 4px solid #dc3545;
    display: none;
}

.date-error-message.show,
.date-success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.date-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
    border-left: 4px solid #28a745;
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}