/* General daterangepicker styling for consistency */
.daterangepicker {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Crucial for appearing above Bootstrap modals */
    z-index: 10001 !important;
    font-family: inherit;
    background: white;
    min-width: 320px;
}

.daterangepicker .ranges li.active {
    background-color: #d99058;
    color: white;
}

.daterangepicker td.active, .daterangepicker td.active:hover {
    background-color: #d99058;
    border-color: #d99058;
    color: white;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.daterangepicker td.in-range {
    background-color: rgba(217, 144, 88, 0.1);
    border-color: rgba(217, 144, 88, 0.1);
    color: #d99058;
    border-radius: 0;
}

.daterangepicker td.available:hover {
    background-color: rgba(217, 144, 88, 0.2);
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.daterangepicker td {
    padding: 8px 12px;
    line-height: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.daterangepicker th.next, .daterangepicker th.prev {
    color: #d99058;
    font-size: 20px;
    transition: color 0.2s ease;
}

.daterangepicker th.next:hover, .daterangepicker th.prev:hover {
    color: #a66e42;
}

/* Desktop daterangepicker improvements */
@media (min-width: 769px) {
    .daterangepicker {
        min-width: 380px;
        padding: 8px;
    }
    
    .daterangepicker .calendar-table {
        background: white;
        border-radius: 8px;
    }
    
    .daterangepicker .calendar-table thead tr th {
        padding: 10px 8px;
        border-bottom: 1px solid #f0f0f0;
        font-weight: 600;
        font-size: 13px;
        color: #666;
    }
    
    .daterangepicker .ranges {
        border-right: 1px solid #f0f0f0;
        background: #fafafa;
        border-radius: 8px 0 0 8px;
        padding: 8px;
    }
    
    .daterangepicker .ranges li {
        padding: 10px 15px;
        border-radius: 6px;
        margin-bottom: 4px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .daterangepicker .ranges li:hover {
        background-color: rgba(217, 144, 88, 0.1);
        color: #d99058;
    }
    
    .daterangepicker .drp-buttons {
        padding: 15px;
        background: #f9f9f9;
        border-top: 1px solid #eee;
        border-radius: 0 0 8px 8px;
    }
}

.daterangepicker .drp-buttons .btn {
    background-color: #d99058;
    border-color: #d99058;
    color: white;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.daterangepicker .drp-buttons .btn:hover {
    background-color: #a66e42;
    border-color: #a66e42;
}

/* Specific styles for the date input fields */
.date-input-field {
    position: relative;
    width: 100%;
}

.date-input-field input {
    width: 100%;
    padding: 16px 45px 16px 16px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    font-weight: 500;
    cursor: pointer;
    background: white; /* Ensure background is white */
    font-size: 15px; /* Consistent font size */
    color: #333; /* Consistent text color */
    transition: all 0.3s ease;
}

.date-input-field input:focus {
    border-color: #d99058 !important;
    box-shadow: 0 0 0 0.2rem rgba(217, 144, 88, 0.25) !important;
    outline: none;
}

.date-input-field .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d99058;
    pointer-events: none;
    font-size: 18px;
}

.guest-minus:hover, .guest-plus:hover {
    background: #d99058 !important;
    color: white !important;
    transform: scale(1.05) !important;
}



.inquiry-btn:hover {
    background: #d99058 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 144, 88, 0.2);
}

/* Style night select badges with white background */
.badge.bg-success {
    background: white !important;
    border: 2px solid #d99058 !important;
    color: #d99058 !important;
}

.badge.bg-light {
    background: white !important;
    color: #6c757d !important;
    border: 2px solid #e9ecef !important;
}

/* Ensure all icons in badges are visible */
.badge i {
    color: inherit !important;
}

/* Style Personal Information heading with Book Now button color */
.form-label:has(+ .row):has(i.fas.fa-user),
.form-label i.fas.fa-user {
    color: #d99058 !important;
}

/* Alternative selector for Personal Information heading */
.form-label.fw-semibold:contains('Personal Information') {
    color: #d99058 !important;
}

@media (max-width: 768px) {
    .box-widget-item {
        margin-bottom: 0 !important;
        border-radius: 20px !important;
    }
    
    /* Fix three button row for mobile */
    .three-button-row {
        flex-direction: column !important;
        gap: 10px !important;
        margin: 20px 0 !important;
    }
    
    .three-button-row > * {
        flex: none !important;
        width: 100% !important;
        min-width: unset !important;
    }
    
    .three-button-row .main-search-button {
        padding: 14px 20px !important;
        font-size: 14px !important;
        min-height: 48px !important;
    }
    
    /* List-single-stats Mobile Styles */
    .list-single-stats ul {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .list-single-stats li {
        width: 100% !important;
    }
    
    .list-single-stats li span {
        width: 100% !important;
        display: block !important;
        text-align: left !important;
    }
    
    /* Description mobile styles */
    .property-description-section {
        margin: 15px 0 !important;
    }
    
    .property-description-text {
        font-size: 14px !important;
    }
    
    .show-more-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        width: 100% !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }
    
    /* 3-Button Row Mobile Styles */
    .col-md-8 > h1 + div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin: 12px 0 !important;
    }
    
    .col-md-8 > h1 + div[style*="display: flex"] a,
    .col-md-8 > h1 + div[style*="display: flex"] button {
        flex: 1 1 auto !important;
        min-width: calc(50% - 4px) !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
        text-align: center !important;
    }
    
    /* Edit button medium screen optimization */
    #back-to-step1-btn {
        padding: 11px 16px !important;
    }
    
    #back-to-step1-btn span {
        font-size: 13px !important;
    }
    
    .box-widget-item .row.g-2 {
        margin: 0 -5px !important;
    }
    
    .box-widget-item .col-6 {
        padding: 0 5px !important;
    }
    
    .date-input-field input {
        font-size: 14px !important;
        padding: 14px 40px 14px 12px !important;
    }
    
    .price-line {
        font-size: 13px !important;
    }
    
    #total-price {
        font-size: 18px !important;
    }

    /* Mobile daterangepicker positioning and styling */
    .daterangepicker {
        max-width: 95vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 280px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    }
    
    .daterangepicker.opensleft, 
    .daterangepicker.opensright,
    .daterangepicker.openscenter {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    /* Better mobile date picker table styling */
    .daterangepicker table {
        font-size: 14px !important;
    }
    
    .daterangepicker td {
        padding: 10px 8px !important;
        min-width: 32px !important;
        height: 32px !important;
    }
    
    .daterangepicker th {
        padding: 8px 6px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }
    
    /* Mobile date picker header */
    .daterangepicker .calendar-table .next,
    .daterangepicker .calendar-table .prev {
        padding: 8px 12px !important;
        color: #d99058 !important;
        font-size: 16px !important;
    }
    
    /* Mobile date picker buttons */
    .daterangepicker .drp-buttons {
        padding: 15px !important;
        border-top: 1px solid #eee !important;
        background: #f9f9f9 !important;
    }
    
    .daterangepicker .drp-buttons .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        min-width: 80px !important;
    }

    /* Sticky navigation for mobile */
    .scroll-nav-wrapper {
        position: sticky;
        top: 0; /* Stays at the top of the viewport */
        z-index: 10000; /* Increased z-index to ensure it's above other elements */
        background-color: #f9f9f9; /* Ensure a solid background */
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        width: 100%; /* Ensure it takes full width */
        box-sizing: border-box; /* Include padding in the width calculation */
        min-height: 50px; /* Ensure it has a minimum height */
        display:none !important;
    }

    .scroll-nav-wrapper .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .scroll-nav-wrapper .scroll-nav ul {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 10px; /* Increased padding to prevent scrollbar clipping */
    }

    .scroll-nav-wrapper .scroll-nav li {
        flex: 0 0 auto; /* Prevent items from shrinking */
        margin-right: 20px; /* Space between tabs */
    }

    .scroll-nav-wrapper .scroll-nav li:last-child {
        margin-right: 0;
    }

    .scroll-nav-wrapper .scroll-nav a {
        padding: 8px 0;
        font-size: 14px;
        font-weight: 600;
        color: #555;
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
    }

    .scroll-nav-wrapper .scroll-nav a.act-scrlink,
    .scroll-nav-wrapper .scroll-nav a:hover {
        color: #d99058;
        border-color: #d99058;
    }

    /* Adjust padding for content below sticky nav */
    .content section.gray-bg {
        padding-top: 20px; /* Add padding to prevent content from being hidden under sticky nav */
    }
}

@media (max-width: 576px) {
    .date-input-field input {
        padding: 12px 35px 12px 10px !important;
        font-size: 13px !important;
    }
    
    /* Smaller mobile daterangepicker */
    .daterangepicker {
        max-width: 98vw !important;
        min-width: 260px !important;
        margin: 0 !important;
    }
    
    .daterangepicker td {
        padding: 8px 6px !important;
        min-width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }
    
    .daterangepicker th {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }
    
    .daterangepicker .drp-buttons .btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        min-width: 70px !important;
    }
    
    .guest-minus, .guest-plus {
        width: 32px !important;
        height: 32px !important;
    }
    
    #guest-count {
        font-size: 16px !important;
    }
    
    /* List-single-stats Extra Small Screen Styles */
    .list-single-stats {
        margin: 10px 0 !important;
    }
    
    .list-single-stats li span {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .list-single-stats li span i {
        font-size: 12px !important;
        margin-right: 6px !important;
    }
    
    /* Description extra small mobile styles */
    .property-description-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    .show-more-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    
    /* Make 3-button row stack vertically on very small screens */
    .col-md-8 > h1 + div[style*="display: flex"] a,
    .col-md-8 > h1 + div[style*="display: flex"] button {
        min-width: 100% !important;
        margin-bottom: 4px !important;
    }
    
    /* Edit button mobile optimization */
    #back-to-step1-btn {
        padding: 10px 15px !important;
    }
    
    #back-to-step1-btn span {
        font-size: 12px !important;
    }
    
    #back-to-step1-btn .fas.fa-edit {
        font-size: 14px !important;
        margin-right: 6px !important;
    }
    
    /* Pricing summary mobile optimization */
    .mb-4[style*="background: #f8f9fa"] {
        padding: 12px !important;
        margin-bottom: 16px !important;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.loading-content {
    background: white;
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 350px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #d99058;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.property-gallery-grid {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #fff;
}

.main-image-col {
    flex: 2;
    min-width: 50%;
}

.grid-images-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

.image-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-box:hover img {
    transform: scale(1.05);
}

.gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.image-box:hover .gallery-zoom {
    opacity: 1;
}

.rating-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-overlay .fas.fa-star {
    color: #FFD700;
}

.last-image-overlay .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 15px;
    z-index: 8;
}

.last-image-overlay .overlay-content:hover {
    background: rgba(0,0,0,0.8);
}

.last-image-overlay .overlay-content i {
    font-size: 30px;
    margin-bottom: 10px;
}

/* Carousel specific styles */
.details-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
    flex: none;
}

.details-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.details-carousel-image:hover {
    transform: scale(1.02);
}

.details-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.details-carousel-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.details-carousel-nav.prev {
    left: 20px;
}

.details-carousel-nav.next {
    right: 20px;
}

.details-carousel-nav i {
    font-size: 16px;
}

.details-image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9;
}

.details-carousel-play-pause {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.details-carousel-play-pause:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.details-carousel-play-pause i {
    font-size: 14px;
}

.details-carousel-container[data-image-count="1"] .details-carousel-nav,
.details-carousel-container[data-image-count="1"] .details-image-counter,
.details-carousel-container[data-image-count="1"] .details-carousel-play-pause {
    display: none;
}

/* Sticky booking form on desktop */
@media (min-width: 768px) {
    #booking-widget-section {
        position: sticky !important;
        top: 20px !important;
        z-index: 5 !important;
        align-self: flex-start !important;
    }
    
    .col-md-4#booking-widget-section {
        position: sticky !important;
        top: 20px !important;
        z-index: 5 !important;
        align-self: flex-start !important;
    }
    
    /* Override any conflicting scroll libraries */
    .col-md-4#booking-widget-section.scroll-to-fixed-fixed {
        position: sticky !important;
        top: 20px !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
}

@media (max-width: 992px) {
    .property-gallery-grid {
        flex-direction: column;
        height: 300px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    /* Tablet styles for three button row */
    .three-button-row {
        gap: 8px !important;
    }
    
    .three-button-row .main-search-button {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    .main-image-col, .grid-images-col {
        flex: none;
        width: 100%;
    }
    .grid-images-col {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    /* Mobile carousel adjustments */
    .details-carousel-nav {
        width: 45px;
        height: 45px;
    }
    .details-carousel-nav.prev {
        left: 15px;
    }
    .details-carousel-nav.next {
        right: 15px;
    }
    .details-image-counter {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 13px;
    }
    .details-carousel-play-pause {
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: 15px;
    }
    .details-carousel-play-pause i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .property-gallery-grid {
        gap: 5px;
        border-radius: 10px;
        height: 250px;
        margin-top: 25px;
       
    }
    .fl-wrap{
        top:0px !important;
    }
    .image-box {
        border-radius: 8px;
    }
    .grid-images-col {
        grid-template-columns: 1fr;
    }
    .rating-overlay {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 8px;
        top: 10px;
        right: 10px;
    }
    .last-image-overlay .overlay-content {
        font-size: 16px;
    }
    .last-image-overlay .overlay-content i {
        font-size: 24px;
    }
    /* Small mobile carousel adjustments */
    .details-carousel-nav {
        width: 40px;
        height: 40px;
    }
    .details-carousel-nav.prev {
        left: 10px;
    }
    .details-carousel-nav.next {
        right: 10px;
    }
    .details-carousel-nav i {
        font-size: 14px;
    }
    .details-image-counter {
        bottom: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 12px;
    }
    .details-carousel-play-pause {
        width: 35px;
        height: 35px;
        bottom: 10px;
        left: 10px;
    }
    .details-carousel-play-pause i {
        font-size: 11px;
    }
}

.image-count-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.image-count-overlay:hover {
    background: rgba(0,0,0,0.85);
}

/* Ensure the grid of small images is hidden on mobile */
@media (max-width: 992px) {
    .grid-images-col {
        display: none !important;
    }
}

/* Styles for the new full image gallery modal */
#full-image-gallery-modal .modal-content {
    background: #000; /* Black background for images */
    border-radius: 0;
    border: none;
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
}

#full-image-gallery-modal .modal-header {
    background: #000;
    border-bottom: none;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

#full-image-gallery-modal .modal-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

#full-image-gallery-modal .btn-close-white {
    filter: invert(1); /* Make close button white */
}

#full-image-gallery-modal .modal-body {
    padding: 0;
    overflow-y: auto; /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center images horizontally */
}

#full-image-gallery-modal .modal-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Ensure entire image is visible */
    margin-bottom: 10px; /* Space between images */
    border-radius: 0; /* No border-radius for full-screen images */
}

#full-image-gallery-modal .modal-body img:last-child {
    margin-bottom: 0;
}

/* Mobile Sticky Booking Bar Styles */
.mobile-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Height of the bar */
    background: white; /* Changed to white */
    z-index: 9999; /* Above other content but below modals */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08); /* Adjusted shadow for white background */
    display: flex; /* Ensure it's flex for content alignment */
    justify-content: flex-end; /* Changed from space-between to flex-end */
    align-items: center; /* Vertically center items */
    padding: 0 20px;
    box-sizing: border-box;
    border-top: 1px solid #e0e0e0; /* Add a subtle top border */
}

.mobile-booking-bar .check-availability-btn {
    background: linear-gradient(135deg, #d99058 0%, #b87741 100%); /* Match Complete Booking button */
    color: white; /* White text */
    border: none; /* No border */
    border-radius: 12px; /* Match Complete Booking button radius */
    padding: 12px 20px;
    font-weight: 700; /* Match Complete Booking button weight */
    font-size: 16px; /* Match Complete Booking button size */
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mobile-booking-bar .check-availability-btn:hover {
    background: linear-gradient(135deg, #b87741 0%, #d99058 100%); /* Reverse gradient on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(217, 144, 88, 0.3);
}

/* Adjust body padding for fixed mobile bar */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px; /* Height of the mobile-booking-bar */
    }
}

/* Fix daterangepicker z-index in modal */
.daterangepicker {
    z-index: 9999 !important;
}

/* Ensure modal content doesn't interfere with daterangepicker */
.modal-content {
    overflow: visible !important;
}

/* Specific booking modal fixes */
#booking-main-modal .modal-content {
    overflow: visible !important;
}

#booking-main-modal .modal-body {
    overflow: visible !important;
}

/* Desktop booking form - show on desktop by default */
@media (min-width: 768px) {
    #desktop-booking-form {
        display: block !important;
    }
}

/* Desktop booking form mobile responsive styles */
@media (max-width: 767.98px) {
    #desktop-booking-form.d-block {
        margin: 0 0 20px 0!important;
        border-radius: 15px !important;
        box-shadow: 0 5px 25px rgba(217, 144, 88, 0.15) !important;
    }
    
    #desktop-booking-form .box-widget-item-header {
        padding: 15px !important;
        font-size: 16px !important;
    }
    
    #desktop-booking-form .form-control {
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    #desktop-booking-form .btn {
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    #desktop-booking-form .guest-minus-desktop,
    #desktop-booking-form .guest-plus-desktop {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Make booking form full width on mobile */
    .col-md-4#booking-widget-section {
        order: 3 !important;
    }
    
    .col-md-8 {
        order: 2 !important;
    }
}

/* Booking Form Styles */
.desktop-booking-form {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(217, 144, 88, 0.12);
    border: 2px solid rgba(217, 144, 88, 0.15);
    overflow: hidden;
}

.booking-form-content {
    padding: 25px 20px 20px;
    position: relative;
}

.mobile-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
}

.guest-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
}

.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;
}

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

.guest-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #d99058;
    background: white;
    color: #d99058;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

.guest-btn i {
    font-size: 12px;
}

.guest-count {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #495057;
}

.nights-display {
    font-size: 13px;
    border-radius: 15px;
}

.book-now-main-btn {
    background: linear-gradient(135deg, #d99058 0%, #b87741 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.book-now-main-btn i {
    color: white;
}

.personal-booking-fields {
    display: none;
    padding: 18px;
    background: #ffffff;
    border-radius: 15px;
    border: 2px solid rgba(217, 144, 88, 0.1);
    box-shadow: 0 4px 15px rgba(217, 144, 88, 0.08);
    margin-top: 15px;
}

.edit-booking-btn {
    background: white;
    border: 2px solid #d99058;
    color: #d99058;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-booking-btn i {
    color: #d99058;
    margin-right: 8px;
    font-size: 16px;
}

.edit-booking-btn span {
    font-size: 14px;
    color: #d99058;
    font-weight: 600;
}

.booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

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

.booking-summary-price {
    font-size: 18px;
    font-weight: bold;
    color: #d99058;
    line-height: 1.2;
    margin-bottom: 5px;
}

.booking-summary-subtitle {
    font-size: 12px;
    color: #6c757d;
}

.personal-info-label {
    color: #d99058;
}

.personal-info-label i {
    color: #d99058;
}

.form-input-rounded {
    border-radius: 10px;
    padding: 12px;
}

.country-select {
    max-width: 100px;
    border-radius: 10px 0 0 10px;
}

.phone-input-rounded {
    border-radius: 0 10px 10px 0;
    padding: 12px;
}

.complete-booking-btn {
    background: linear-gradient(135deg, #d99058 0%, #b87741 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.complete-booking-btn i {
    color: white;
}

/* 3-Button Row Styles */
.three-button-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.three-button-row > * {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

/* Fix for main search buttons - ensure they're clickable */
.main-search-button {
    display: inline-flex !important;
    cursor: pointer !important;
    position: relative !important;
    border: none !important;
    text-decoration: none !important;
    outline: none !important;
    z-index: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.main-search-button:hover {
    text-decoration: none !important;
}

/* Ensure button text is visible and properly styled */
.main-search-button,
.main-search-button:visited,
.main-search-button:link {
    color: inherit !important;
}

/* Ensure book now button maintains proper styling and functionality */
.book-now-btn.main-search-button {
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    min-height: 44px !important;
    text-align: center !important;
}

.book-now-btn.main-search-button i {
    color: white !important;
}

.share-btn {
    padding: 12px 20px;
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 600;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    gap: 6px;
}

.share-btn i {
    color: white !important;
    font-size: 14px !important;
}

.share-btn span {
    color: white !important;
}



.enquire-btn {
    padding: 12px 20px;
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 600;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    gap: 6px;
}

.enquire-btn i {
    color: white !important;
    font-size: 14px !important;
}



/* Override list-single-stats for details page to have proper spacing and multiple rows */
.list-single-stats {
    margin: 15px 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both;
}

.list-single-stats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.list-single-stats li {
    float: none !important;
    margin: 0 !important;
}

.list-single-stats li span {
    white-space: nowrap;
}

.contact-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.contact-icon {
    color: #d99058;
    margin-right: 8px;
    font-size: 16px;
}

.contact-text {
    font-weight: 500;
}

/* Property Description Styles */
.property-description-section {
    margin: 20px 0;
}

.property-description-text {
    line-height: 1.6;
    color: #333;
    font-size: 15px;
    margin-bottom: 0;
}

.show-more-btn {
    background: linear-gradient(135deg, #d99058 0%, #b87741 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #b87741 0%, #a66e42 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 144, 88, 0.3);
}

.show-more-btn i {
    font-size: 12px;
}

/* Description Modal Styles */
#description-modal .modal-header {
    background: linear-gradient(135deg, #d99058 0%, #b87741 100%);
    color: white;
    border-bottom: none;
}

#description-modal .modal-title {
    font-weight: 600;
}

#description-modal .modal-title i {
    margin-right: 8px;
    color: white;
}

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

.description-content {
    padding: 10px 0;
}

.property-title-modal {
    color: #d99058;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.description-text {
    line-height: 1.7;
    color: #333;
    font-size: 15px;
}

#description-modal .modal-footer {
    border-top: 1px solid #eee;
}

#description-modal .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

#description-modal .btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.fa-caret-up:before{
    padding: 14px;
}