/*
 * Holiday Home Ferias - Main Stylesheet
 * Structure:
 * 1. Global/Base Styles
 * 2. Loader
 * 3. Header & Navigation
 * 4. Content Sections
 * 5. Booking Panel
 * 6. Modal Styles
 * 7. Photo Gallery & Image Popup
 * 8. Media Queries
 * 9. Utility Classes
 * 10. Price Display Styles
 */

/* ===========================
   1. Global/Base Styles
   =========================== */
body {
    padding-top: 53px; /* Height of navbar */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

body.loaded #loader-wrapper {
    opacity: 0;
    visibility: hidden;
}

/* ===========================
   2. Loader
   =========================== */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #3f8eb5;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================
   3. Header & Navigation
   =========================== */
.navbar {
    background-color: #3f8eb5 !important; /* Override Bootstrap's bg-body-tertiary */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 34px; /* Account for language header */
}

.navbar-brand {
    color: white !important;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link.active {
    font-weight: 600;
    position: relative;
}

.navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.navbar-nav .nav-link[data-bs-toggle="modal"] {
    cursor: pointer;
}

.navbar-nav .nav-link[data-bs-toggle="modal"]:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1); /* Make hamburger icon white */
}

/* ===========================
   4. Content Sections
   =========================== */
.global-divider {
    width: 100%;
    height: 2px;
    background-color: #3f8eb5;
    margin: 30px auto;
    border-top: 1px solid #eee;
    opacity: 0.5;
}

.btn-link {
    color: #333;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    margin: 10px 0;
}

.btn-link:hover {
    background-color: #e9ecef;
}

.btn-link .bi {
    transition: transform 0.3s ease;
}

.btn-link[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

/* ===========================
   5. Booking Panel
   =========================== */
.booking-panel {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0;
    position: sticky;
    top: 90px;
    margin-bottom: 20px;
    z-index: 1020;
}

.booking-header {
    background-color: #3f8eb5;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 20px;
}

.booking-header:hover {
    background-color: #367d9f;
}

.booking-header button {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.booking-header h4 {
    margin: 0;
    font-weight: 500;
    color: white;
}

.booking-body {
    text-align: center;
}

.booking-footer {
    text-align: center;
    margin-bottom: 20px;
}

.booking-time {
    margin: 10px 0;
    font-weight: bold;
    color: #666;
}

.policy-links a {
    color: #3f8eb5;
    text-decoration: none;
}

.policy-links a:hover {
    text-decoration: underline;
}

.divider {
    width: 15%;
    height: 2px;
    background-color: #3f8eb5;
    margin: 20px auto;
    border-top: 1px solid #eee;
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.contact-email a {
    color: #3f8eb5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    color: #367d9f;
    text-decoration: underline;
}

.contact-email i {
    color: #3f8eb5;
}

/* ===========================
   6. Modal Styles
   =========================== */
.modal {
    z-index: 99999; /* Ensure modals are above other content */
}

.modal-dialog {
    max-width: 1000px;
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-body {
    padding: 2rem;
}

/* Reservation Modal Specific Styles */
#reservationModal .modal-lg {
    max-width: 900px;
}

#reservationModal .modal-header.bg-primary {
    background-color: #3f8eb5 !important;
    border-bottom: none;
}

#reservationModal .card-header.bg-success {
    background-color: #198754 !important;
}

#reservationModal .alert-info {
    background-color: #cff4fc;
    border-color: #b3e5fc;
    color: #055160;
}

#reservationModal .alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

/* Smoobu booking widget styles with highest z-index */
#apartmentIframe2695813 {
    position: relative;
    z-index: 999999 !important;
    width: 100%;
    min-height: 400px;
    border: none;
    border-radius: 8px;
    border-top: none !important;
    border-bottom: none !important;
}

#apartmentIframe2695813 iframe {
    z-index: 10000 !important;
    border-radius: 8px;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Payment info section styling */
.payment-info-section .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.payment-info-section .card-body {
    padding: 1.25rem;
}

.payment-info-section h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-info-section .small {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Upfront Payment Overview Styling */
.upfront-payment-overview .bg-white {
    border: 2px solid #28a745 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.upfront-payment-overview h5 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Payment Method Options */
.payment-methods h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.payment-methods .card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-methods .card-header {
    border-bottom: none;
    font-weight: 600;
}

.payment-methods .payment-icon {
    margin: 0.5rem 0;
}

.payment-methods .payment-benefit {
    margin-top: 1rem;
}

.payment-methods .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Cancellation Policy Styling */
.cancellation-policy .alert {
    border: 1px solid #ffc107;
    background-color: #fff3cd;
    border-radius: 8px;
}

.cancellation-policy .alert h6 {
    color: #856404;
    font-weight: 600;
}

.cancellation-policy .alert p {
    color: #664d03;
}

.cancellation-policy .alert i {
    color: #f0ad4e;
    font-size: 1.1rem;
}

/* Override border-0 class and ensure consistent borders */
.payment-info-section .card.border-0 {
    border: 1px solid #dee2e6 !important;
}

.payment-info-section .alert {
    border: 1px solid #dee2e6 !important;
}

/* Mobile optimization for payment info cards */
@media (max-width: 767.98px) {
    .payment-info-section .card.border-0 {
        border: 1px solid #e9ecef !important;
        border-radius: 6px;
        margin-bottom: 0.75rem;
    }
    
    .payment-info-section .alert {
        border: 1px solid #e9ecef !important;
        border-radius: 6px;
    }
    
    .payment-info-section .card-body {
        padding: 1rem;
    }
    
    .payment-info-section .row {
        margin: 0 -0.25rem;
    }
    
    .payment-info-section .col-md-6 {
        padding: 0 0.25rem;
    }
    
    /* Mobile payment options */
    .upfront-payment-overview {
        margin-bottom: 1.5rem !important;
    }
    
    .upfront-payment-overview .bg-white {
        padding: 1rem !important;
    }
    
    .upfront-payment-overview h5 {
        font-size: 1rem;
    }
    
    .payment-methods h6 {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }
    
    .payment-methods .card {
        margin-bottom: 1rem;
    }
    
    .payment-methods .card-body {
        padding: 1rem;
    }
    
    .payment-methods .payment-icon i {
        font-size: 1.5rem !important;
    }
    
    .payment-methods .small {
        font-size: 0.8rem;
    }
    
    .payment-methods .badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }
    
    .cancellation-policy .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .payment-info-section .card.border-0 {
        border: 1px solid #f1f3f4 !important;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .payment-info-section .alert {
        border: 1px solid #f1f3f4 !important;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .payment-info-section .card-body {
        padding: 0.75rem;
    }
    
    .payment-info-section h6 {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }
    
    .payment-info-section .small {
        font-size: 0.8rem;
    }
    
    /* Extra small screen payment optimizations */
    .upfront-payment-overview .bg-white {
        padding: 0.75rem !important;
    }
    
    .upfront-payment-overview h5 {
        font-size: 0.95rem;
    }
    
    .payment-methods h6 {
        font-size: 0.85rem;
    }
    
    .payment-methods .card-header h6 {
        font-size: 0.8rem;
    }
    
    .payment-methods .payment-icon i {
        font-size: 1.3rem !important;
    }
    
    .cancellation-policy .alert {
        padding: 0.5rem;
    }
    
    .cancellation-policy .alert h6 {
        font-size: 0.8rem;
    }
}

/* Tighter spacing for modal sections */
#reservationModal .mb-3 {
    margin-bottom: 0.5rem !important;
}

#reservationModal .mb-2 {
    margin-bottom: 0.25rem !important;
}

#reservationModal .mt-3 {
    margin-top: 0.5rem !important;
}

/* Trust indicators for booking modal */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #28a745;
    gap: 0.3rem;
}

.trust-badge i {
    font-size: 1rem;
}

/* Contact section buttons */
.contact-section .btn {
    border-radius: 20px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

.contact-section .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Range slider tick marks */
.range-tick-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 5px;
}

.range-tick-marks .tick {
    position: relative;
    opacity: 0.6;
    font-size: 0.8rem;
    color: #666;
}

/* Photo Tour Modal Specific Styles */
#photoTourModal .modal-dialog {
    min-width: 75%;
    max-width: 1200px;
}

#photoTourModal .modal-body {
    padding: 0;
    overflow-y: auto;
}

#photoTourModal .thumbnails-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

#photoTourModal .room-card {
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

#photoTourModal .room-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#photoTourModal .room-card img {
    height: 100px;
    object-fit: cover;
    width: 100%;
    display: block; /* Ensure no space below image */
}

#photoTourModal #room-details-container {
    padding: 15px;
}

#photoTourModal .room-details {
    margin-bottom: 35px;
    padding-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
    scroll-margin-top: 15px;
}

#photoTourModal .section-title {
    color: #3f8eb5;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
}

#photoTourModal .section-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#photoTourModal .amenities {
    margin-bottom: 10px;
}

#photoTourModal .amenities span {
    display: inline-block;
    margin-right: 10px;
    color: #666;
    font-size: 14px;
}

#photoTourModal .show-more {
    color: #3f8eb5;
    cursor: pointer;
}

/* Date input styling */
input[type="date"] {
    font-family: inherit;
    color: inherit;
    background-color: #fff !important;
    /* Remove any clickable overlay that might be causing issues */
    position: relative;
    z-index: 1;
}

/* Force generic styling across browsers */
input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
}

/* Form control container styling - fix click issue */
.form-control-container {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    /* Remove cursor: pointer from container */
}

.form-control-container input[type="date"] {
    /* Keep cursor pointer only on the actual input */
    cursor: pointer;
    z-index: 1;
    position: relative;
    background: #fff;
}

.form-control-container::after {
    content: "\F4C5"; /* Bootstrap calendar icon */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    /* Make sure this is not capturing clicks */
    pointer-events: none;
    z-index: 2;
}

/* Fix for Firefox browsers */
@-moz-document url-prefix() {
    .form-control-container input[type="date"] {
        padding-right: 30px;
        background-color: #fff !important;
    }
}

/* Fix for Edge/Chrome browsers - disable any overlay */
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    /* Make sure it doesn't cover entire page */
    z-index: 1;
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    .form-control-container input[type="date"] {
        padding-right: 30px;
        background-color: #fff !important;
    }
}

/* ===========================
   7. Photo Gallery & Image Popup
   =========================== */
.photo-grid-img {
    width: 100%;
    object-fit: cover;
    max-height: 350px;
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: all;
    /* Image quality improvements moved to index.css */
}

.photo-container {
    position: relative;
    overflow: hidden;
}

/* Overlay for images - hide by default, show on hover */
.photo-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-container:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    margin-right: 5px;
}

/* Modal for enlarged images - update with navigation arrows */
.image-popup-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.image-popup-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.image-popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

/* Navigation arrows for image popup */
.image-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.image-popup-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.image-popup-prev {
    left: 20px;
}

.image-popup-next {
    right: 20px;
}

.image-popup-close:hover,
.image-popup-nav:hover {
    color: #bbb;
}

.image-popup-caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
}

/* Lazy thumbnail placeholder style */
.lazy-thumbnail:not([src]) {
    min-height: 100px;
    background: #f0f0f0;
    position: relative;
}

.lazy-thumbnail:not([src])::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0, #f8f8f8, #f0f0f0);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* ===========================
   8. Media Queries
   =========================== */
/* Adjust media queries */
@media (min-width: 992px) {
    #photoTourModal .room-card img {
        height: 100px;
    }
    
    .photo-grid-img {
        max-height: 300px;
    }
}

/* Use full size images on mobile */
@media (max-width: 767.98px) {
    .photo-grid-img {
        object-fit: contain;
        max-height: none;
    }
    
    /* Mobile-specific modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .modal-footer {
        padding: 0.5rem 1rem 1rem;
    }
    
    #reservationModal .modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    #reservationModal .modal-body {
        padding: 1rem;
    }
    
    #reservationModal .payment-info-section .row {
        margin: 0;
    }
    
    #reservationModal .payment-info-section .col-md-6 {
        padding: 0.5rem;
    }
    
    #reservationModal .contact-section .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #reservationModal .contact-section .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    /* Smoobu widget mobile optimization */
    #apartmentIframe2695813 {
        min-height: 350px;
        margin-bottom: 1rem;
    }
    
    /* Adjust alert spacing on mobile */
    #reservationModal .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Payment info card mobile styling */
    #reservationModal .card-body {
        padding: 1rem;
    }
    
    #reservationModal .card-header h6 {
        font-size: 0.9rem;
    }
    
    /* Trust indicators mobile optimization */
    .trust-indicators {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .trust-badge {
        justify-content: center;
        font-size: 0.75rem;
    }
    
    /* Modal header buttons mobile */
    .modal-header .btn-close {
        padding: 0.5rem;
        margin: -0.5rem -0.5rem -0.5rem auto;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-header {
        padding: 0.75rem 0.75rem 0.25rem;
    }
    
    .modal-footer {
        padding: 0.25rem 0.75rem 0.75rem;
    }
    
    #reservationModal .modal-lg {
        max-width: 98%;
        margin: 0.25rem auto;
    }
    
    #reservationModal .modal-body {
        padding: 0.75rem;
    }
    
    #reservationModal .payment-info-section .col-md-6 {
        padding: 0.25rem;
    }
    
    #apartmentIframe2695813 {
        min-height: 300px;
    }
    
    /* Further optimize trust indicators for very small screens */
    .trust-indicators {
        gap: 0.25rem;
    }
    
    .trust-badge {
        font-size: 0.7rem;
    }
    
    /* Modal title mobile optimization */
    .modal-title {
        font-size: 1.1rem;
    }
    
    /* Button optimization for small screens */
    .contact-section .btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* ===========================
   9. Utility Classes & Z-Index Hierarchy
   =========================== */
/* Z-Index Hierarchy (highest to lowest):
   - Smoobu booking widget: 10000
   - WhatsApp button: 5000  
   - Image popup modal: 2000
   - Bootstrap modals: 1055 (default)
   - Booking panel sticky: 1020
   - Language header: 1045
   - Navbar: 1030 (default)
*/

/* Update any Bootstrap primary button colors */
.btn-primary {
    background-color: #3f8eb5 !important;
    border-color: #3f8eb5 !important;
}

.btn-primary:hover {
    background-color: #367d9f !important;
    border-color: #367d9f !important;
}

/* Ensure WhatsApp button stays on top but below Smoobu */
.floating {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 5000 !important;
}

.fab-icon {
    margin-top: 16px;
}

/* Language header z-index */
.language-header {
    display: block;
    background-color: #2f3e46;
    color: #fff;
    padding: 5px 15px;
    text-align: right;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1045 !important;
}

.language-header a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

/* Booking panel z-index */
.booking-panel {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0;
    position: sticky;
    top: 90px;
    margin-bottom: 20px;
    z-index: 1020 !important;
}

/* ===========================
   10. Price Display Styles
   =========================== */
#price-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 15px;
}

#price-container:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

#price-container .card-body {
    padding: 1.5rem;
}

.price-title {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    font-weight: 600;
    font-size: 1.15rem;
}

/* Rate breakdown toggle button */
#price-container .btn-link {
    color: #333;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    margin: 10px 0;
    font-weight: 500;
}

#price-container .btn-link:hover {
    background-color: #e9ecef;
}

#price-container .btn-link .bi {
    transition: transform 0.3s ease;
}

#price-container .btn-link[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

/* Rest of price display styles */
.price-summary {
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
}

.total-row {
    font-weight: 600;
}

.price-label {
    font-size: 1rem;
    color: #333;
}

.price-value {
    text-align: right;
}

.direct-price {
    color: #0e8a3a;
    font-size: 1.25rem;
    font-weight: 700;
}

.booking-price {
    margin-top: 5px;
    font-size: 1.0rem;
    color: #dc3545;
}

.booking-price s {
    font-weight: 600;
    font-size: 1.1rem;
}

.booking-label {
    margin-left: 5px;
    font-size: 0.8rem;
    color: #6c757d;
}

.savings-banner {
    background-color: #e9f7ef;
    border: 1px solid #c3e6cb;
    color: #0e8a3a;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.savings-highlight {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.savings-subtitle {
    font-size: 0.9rem;
}

.savings-banner i {
    margin-right: 5px;
    font-size: 1.1rem;
    color: #0e8a3a;
}

.savings-amount, .savings-percent {
    font-weight: 700;
    color: #097a2e;
}

.price-disclaimer {
    font-style: italic;
    color: #6c757d;
    text-align: center;
    border-top: 1px dotted #dee2e6;
    padding-top: 10px;
    margin-top: 15px;
}

.daily-rates-title {
    margin: 15px 0 12px;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.daily-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dotted #e9ecef;
    font-size: 0.95rem;
}

.daily-price-row:last-child {
    border-bottom: none;
}

.date-range-info {
    display: flex;
    flex-direction: column;
}

.date-range {
    color: #495057;
    font-weight: 500;
}

.range-nights {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 3px;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price {
    font-weight: 600;
    color: #0e8a3a;
}

.booking-price-small {
    display: block;
    font-size: 0.75rem;
    color: #dc3545;
    text-align: right;
    margin-top: 2px;
}

.booking-price-small s {
    font-weight: 500;
}

.no-price-data {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
}

@media (max-width: 767.98px) {
    #price-container .card-body {
        padding: 1rem;
    }
    
    .price-row {
        padding: 5px 0;
    }
    
    .direct-price {
        font-size: 1.1rem;
    }
    
    .booking-price {
        font-size: 0.9rem;
    }
    
    .savings-banner {
        padding: 8px;
        font-size: 0.9rem;
    }
}

.book-direct-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
}

.book-direct-content {
    font-size: 0.95rem;
    color: #495057;
}

/* Mobile phone number hiding */
@media (max-width: 556px) {
    .phone-hide2 {
        display: none;
    }
}

@media (max-width: 326px) {
    .phone-hide {
        display: none;
    }
}