/* Details Page Specific Styles */

/* Modal content styling */
.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto !important;
}

/* Main Guest Dropdown Styling */
.main-guest-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
}

.main-guest-dropdown-trigger:hover {
    border-color: #d99058;
    background: white;
}

.guest-selector-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 2px;
}

.guest-selector-label i {
    color: #d99058;
}

.guest-selector-subtitle {
    font-size: 13px;
    color: #6c757d;
}

.main-guest-display-text {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
}

/* Adjust z-index for main guest selector */
.main-guest-dropdown-container .guest-selector-popup {
    z-index: 9999 !important;
}

.guest-selector-popup {
    position: relative !important;
}

/* Enhanced datepicker with smooth animations */
.show-calendar {
    right: 76px !important;
}

.btn-default {
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    color: black !important;
}

.btn-primary {
    background: #7a9b7e !important;
    border: 1px solid #7a9b7e !important;
    color: white !important;
}

/* Success Modal Styles */
#success-modal .modal-content {
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

#success-modal .modal-body {
    padding: 3rem;
}

#success-modal .fas.fa-check-circle {
    color: #28a745;
    font-size: 4rem !important;
    margin-bottom: 1rem;
}

#success-modal h4 {
    color: #28a745;
    font-weight: 700;
    margin-bottom: 1rem;
}

#success-modal .bg-light {
    background-color: #f8f9fa !important;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

#success-modal #reference-number {
    color: #d99058 !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Login Modal Styles (matches index page) */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal .modal-content {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.to-top {
    position: fixed;
    bottom: 60px;
    right: 50px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: #553513 !important;
    line-height: 40px;
    font-size: 17px;
    z-index: 116;
    cursor: pointer;
    display: none;
    border-radius: 3px;
    box-shadow: 0px 0px 0px 4px rgba(0, 0, 0, 0.2);
    -webkit-transform: translate3d(0, 0, 0);
}

.fl-wrap {
    float: left;
    width: 100%;
    position: relative;
}

/* Full-screen gallery styles */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fullscreen-gallery.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-gallery img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.fullscreen-gallery .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.fullscreen-gallery .gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fullscreen-gallery .gallery-nav.prev {
    left: 30px;
}

.fullscreen-gallery .gallery-nav.next {
    right: 30px;
}

.fullscreen-gallery .gallery-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.fullscreen-gallery .gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Date picker styling */
.details-daterangepicker {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.details-daterangepicker:hover {
    border-color: #553513;
}

.details-daterangepicker:focus {
    outline: none;
    border-color: #553513;
    box-shadow: 0 0 0 3px rgba(85, 53, 19, 0.1);
}

/* Guest selector styling */
.main-guest-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.main-guest-dropdown-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
}

.main-guest-dropdown-trigger:hover {
    border-color: #553513;
}

.main-guest-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.main-guest-dropdown-menu.active {
    display: block;
}

.guest-option-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.guest-option-main:last-child {
    border-bottom: none;
}

.guest-option-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.guest-option-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.guest-controls-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-btn-main {
    width: 32px;
    height: 32px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.guest-btn-main:hover {
    border-color: #553513;
    color: #553513;
}

.guest-btn-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guest-count-main {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 20px;
    text-align: center;
}

/* Booking form styling */
.booking-form-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.booking-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #553513;
    font-weight: 600;
}

.form-row-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group-details {
    display: flex;
    flex-direction: column;
}

.form-group-details label {
    font-size: 14px;
    font-weight: 600;
    color: #553513;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price breakdown styling */
.price-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.price-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 18px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
    color: #553513;
}

/* Booking button styling */
.booking-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #553513 0%, #d99058 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(85, 53, 19, 0.3);
}

.booking-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal styling for amenities */
.amenities-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.amenities-modal.active {
    display: flex;
}

.amenities-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
}

.amenities-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.amenities-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #553513;
    font-weight: 600;
}

.amenities-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.amenities-close-btn:hover {
    background: #f0f0f0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #d99058;
}

.amenity-item i {
    color: #553513;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.amenity-item span {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Description toggle styling */
.description-toggle-btn {
    background: none;
    border: 1px solid #553513;
    color: #553513;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.description-toggle-btn:hover {
    background: #553513;
    color: white;
}

/* Success modal styling */
.success-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.success-modal .modal-header {
    background: linear-gradient(135deg, #553513 0%, #d99058 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
}

.success-modal .modal-title {
    font-weight: 600;
}

.success-modal .btn-close {
    filter: brightness(0) invert(1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .form-row-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .booking-form-section {
        padding: 20px;
        margin-bottom: 16px;
    }

    .amenities-modal-content {
        padding: 24px;
        width: 95%;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fullscreen-gallery .gallery-nav,
    .fullscreen-gallery .gallery-close {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .fullscreen-gallery .gallery-nav.prev {
        left: 20px;
    }

    .fullscreen-gallery .gallery-nav.next {
        right: 20px;
    }

    .fullscreen-gallery .gallery-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .booking-form-section {
        padding: 16px;
    }

    .amenities-modal-content {
        padding: 20px;
    }

    .amenities-modal-header h3 {
        font-size: 20px;
    }

    .price-row {
        font-size: 15px;
    }

    .booking-btn {
        padding: 14px;
        font-size: 16px;
    }
}

/* Additional Details Page Styles */
.main-guest-display-text {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
}

/* Adjust z-index for main guest selector */
.main-guest-dropdown-container .guest-selector-popup {
    z-index: 9999 !important;
}

.guest-selector-popup {
    position: relative !important;
}

/* Enhanced datepicker with smooth animations */
.show-calendar {
    right: 76px !important;
}

.btn-default {
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    color: black !important;
}

.btn-primary {
    background: #7a9b7e !important;
    border: 1px solid #7a9b7e !important;
    color: white !important;
}

/* Success Modal Styles */
#success-modal .modal-content {
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

#success-modal .modal-body {
    padding: 3rem;
}

#success-modal .fas.fa-check-circle {
    color: #28a745;
    font-size: 4rem !important;
    margin-bottom: 1rem;
}

#success-modal h4 {
    color: #28a745;
    font-weight: 700;
    margin-bottom: 1rem;
}

#success-modal .bg-light {
    background-color: #f8f9fa !important;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

#success-modal #reference-number {
    color: #d99058 !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.to-top {
    position: fixed;
    bottom: 60px;
    right: 50px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: #553513 !important;
    line-height: 40px;
    font-size: 17px;
    z-index: 116;
    cursor: pointer;
    display: none;
    border-radius: 3px;
    box-shadow: 0px 0px 0px 4px rgba(0, 0, 0, 0.2);
    -webkit-transform: translate3d(0, 0, 0);
}

@media screen and (max-width: 768px)
{
    .to-top{bottom:100px;}
}

.fl-wrap {
    float: left;
    width: 100%;
    position: relative;
}

  .pricing-breakdown {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 15px;
        }

        .pricing-breakdown hr {
            border-color: rgba(255, 255, 255, 0.3);
            margin: 10px 0;
        }

        #discount-display .alert-success {
            background: linear-gradient(135deg, #28a745, #20c997);
            border: none;
            color: white;
        }

        #discount-display .text-decoration-line-through {
            opacity: 0.7;
        }

        .promo-code-success-glow {
            animation: successGlow 2s ease-in-out;
        }

        @keyframes successGlow {
            0% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.3); }
            50% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.6); }
            100% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.3); }
        }

        #apply-promo-btn.btn-success {
            background-color: #dc3545;
            border-color: #dc3545;
        }

        #apply-promo-btn.btn-success:hover {
            background-color: #c82333;
            border-color: #bd2130;
        }

        /* Mobile-specific styles for promo code section */
        @media (max-width: 767px) {
            .pricing-breakdown {
                padding: 10px;
                font-size: 14px;
            }

            #discount-display .alert-success {
                padding: 15px;
            }

            #apply-promo-btn {
                font-size: 14px;
                padding: 10px 15px;
                min-width: 80px;
            }

            #promo-code-input {
                font-size: 16px; /* Prevents zoom on iOS */
            }

            .input-group .form-control {
                border-right: none;
            }

            .input-group .btn {
                border-left: 1px solid #ced4da;
            }
        }


        /* Style for remove button state */
        .remove-promo-btn {
            background-color: #dc3545 !important;
            border-color: #dc3545 !important;
            color: white !important;
        }

        .remove-promo-btn:hover {
            background-color: #c82333 !important;
            border-color: #bd2130 !important;
            color: white !important;
        }

        /* Promo Code Section Styles */
        #promo-code-section {
            border: 1px solid #e9ecef;
            transition: all 0.3s ease;
        }

        #promo-code-section:hover {
            border-color: #d99058;
            box-shadow: 0 4px 12px rgba(217, 144, 88, 0.15) !important;
        }

        #promo-code-section .card-title {
            color: #333;
            font-weight: 600;
            margin-bottom: 15px;
        }

        #promo-code-input {
            border: 2px solid #e9ecef;
            transition: border-color 0.3s ease;
        }

        #promo-code-input:focus {
            border-color: #d99058;
            box-shadow: 0 0 0 0.2rem rgba(217, 144, 88, 0.25);
        }

        /* Animation for successful promo code application */
        #promo-code-section.promo-applied {
            border-color: #28a745;
            background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(255, 255, 255, 1));
        }
        @media (max-width: 768px) {
            .mobile-bottom-nav {
                display: block !important;
            }
        }