/* Main Layout */
.property-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}



.rns-property-container {
    padding: 20px 0;
    width: 90%;
    max-width: 1920px;
    margin: 0 auto;
}

/* Image Gallery Layout - More specific selectors to override conflicts */
.property-page .image-gallery-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    min-height: 500px;
}

.property-page .main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    grid-column: 1;

}

.property-page .main-image {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.property-page .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.property-page .main-image img[src] {
    opacity: 1;
}

.property-page .thumbnails-container {
    width: 100%;
    height: 500px;
    grid-column: 2;

}

.property-page .thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.5rem;
    height: 100%;
    width: 100%;
}

.property-page .thumbnail-item {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.property-page .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease-in-out;
    display: block;
    opacity: 0;
}

.property-page .thumbnail-item img[src] {
    opacity: 1;
}

.property-page .thumbnail-item:hover {
    transform: scale(1.02);
}

.property-page .thumbnail-item:hover img {
    transform: scale(1.04);
}

/* See All Photos Button */
.property-page .see-all-photos-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(8px);
    color: var(--gray600);
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.property-page .image-gallery-section:has(.prop-slider-image:hover) .see-all-photos-btn {
    background: rgba(255, 255, 255, 0.65);
    color: var(--gray700);
    text-decoration: none;
    transform: scale(1.07);
}

.property-page .see-all-photos-btn:hover {
    background: rgba(255, 255, 255, 0.75);
    color: var(--gray700);
    text-decoration: none;
    transform: scale(1.10);
}

.property-page .see-all-photos-btn iconify-icon {
    width: 20px;
    height: 20px;
}

/* Content Layout */
.property-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Property Info Sections */
.property-info > div:not(:last-child) {
    margin-bottom: 2rem;
}

.property-page .property-info {
    margin-bottom: 0px;
}

/* Section Wrappers with Shadow */
.property-description,
.property-amenities,
.property-map,
.property-calendar,
.property-rates,
.property-reviews {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.section-divider {
    display: none; /* Hide dividers since we now have card-style sections */
}

.top-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Property Header with Color */
.property-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.property-title h1 {
    color: var(--primary-color, #0056b3);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0;
}

/* Property Location */
.property-location {
    display: flex;
    color: var(--gray600);
}

.property-location .rns-list-unstyled {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.property-location li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.property-location iconify-icon {
    color: var(--primary-color, #0056b3);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Property Favorite Button */
.property-favorite {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}

.property-favorite-button {
    background: none;
    border: none;
    padding: 10px;
    margin: -8px;
    cursor: pointer;
    color: #dc3545;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.property-favorite-button:hover {
    transform: scale(1.1);
    color: #c82333;
}

.property-favorite-button:focus {
    outline: none;
}

/* Section Headers with Color */
.property-content h2 {
    color: var(--primary-color, #0056b3);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color, #0056b3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Amenities Layout */
.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
    margin: 0;
}

.amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color, #0056b3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.amenity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.amenity-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* Prevents text overflow */
}

.amenity-icon {
    font-size: 1.25rem;
    font-weight: 600;
    padding-top: 2px;
    color: var(--primary-color, #0056b3);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray800, #1f2937);
    line-height: 1.4;
    word-wrap: break-word;
}

.amenity-description {
    font-size: 0.875rem;
    color: var(--gray600, #4b5563);
    margin-top: 0.25rem;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Map */
.property-content #map {
    height: 400px;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color, #0056b3);
}

/* Rates Table */
.rates-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-color, #0056b3);
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 16px;
}

.rates-table thead {
    background: linear-gradient(135deg, var(--primary-color, #0056b3) 0%, var(--primary-color, #0056b3) 100%);
    border-bottom: 2px solid var(--primary-color, #0056b3);
}

.rates-table th {
    color: white;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    white-space: nowrap;
}

.rates-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
}

.rates-table tbody tr:hover {
    background-color: #f3f4f6;
}

/* Booking Form with Enhanced Styling */
.booking-form-container {
    position: relative;
    align-self: start;
    display: block;
    min-height: 100px;
    height: 100%;
}

.booking-form {
    padding: 24px;
    border-radius: var(--radius-xlg);
    border: 2px solid var(--primary-color, #0056b3);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.booking-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-header {
    color: var(--primary-color, #0056b3);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-align: center;
    border-bottom: 2px solid var(--primary-color, #0056b3);
    padding-bottom: 0.75rem;
}

/* Charges Container with Enhanced Styling */
.charges-container {
    border: 2px solid var(--primary-color, #0056b3);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 6px rgba(var(--primary-color-rgb), 0.1);
}

.rate-group {
    margin: 0.75rem 15px;
}

.rate-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color, #0056b3);
    margin: 1.25rem 15px;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid var(--primary-color, #0056b3);
}

.rate-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color, #0056b3) 50%, transparent 100%);
    margin: 0.5rem 0;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-weight: 500;
}

.rate-item.total-charges {
    background: linear-gradient(6deg, #10b981 0%, #059669 100%);
    margin: 0px -15px;
    padding: 20px 15px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.rate-item.total-charges .charge-name,
.rate-item.total-charges .charge-amount {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

/* Book Now Button */
.book-now-btn {
    cursor: pointer;
    pointer-events: visible !important;
    width: 100%;
    background: var(--primary-color, #0056b3);
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(var(--primary-color-rgb), 0.2);
    transition: all 0.2s ease;
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(var(--primary-color-rgb), 0.3);
}

.book-now-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Expandable Sections */
.expandable-content {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    position: relative;
    margin: 1rem 0;
}

.expandable-section.expanded .expandable-content {
    max-height: 10000px;
}

.expandable-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 75%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.expandable-section:not(.expanded) .expandable-content.has-overflow::after {
    opacity: 1;
}

/* Show More/Less Controls */
.show-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 2;
}

.show-more-overlay:hover {
    color: var(--primary-dark-color);
}

.show-more-overlay iconify-icon {
    width: 20px;
    height: 20px;
    margin-left: 6px;
}

.expand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    width: fit-content;
    margin: 1rem auto 0;
    padding: 0;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

.expand-button:hover {
    color: var(--primary-dark-color);
}

.expand-button:active,
.expand-button:focus {
    outline: none;
    box-shadow: none;
    border: none;
    text-decoration: none;
}

.expand-button iconify-icon {
    width: 20px;
    height: 20px;
}

/* Guest Reviews Styles */
.reviews-content {
    color: #4a5568;
    line-height: 1.7;
    white-space: pre-line;
    font-size: 0.95rem;
}

/* Inquiry Sidebar */
.rns-inquiry-sidebar {
    margin-top: 16px;
    padding: 16px 20px;
    background-color: var(--gray50, #f8f9fa);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray200, #e0e0e0);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.inquiry-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.inquiry-text-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.inquiry-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
}

.inquiry-text {
    flex: 1;
}

.inquiry-text h3 {
    margin: 0 0 2px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray800, #2d3748);
}

.inquiry-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gray600, #4a5568);
}

.rns-inquiry-sidebar .rns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rns-inquiry-sidebar .rns-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 24, 40, 0.1);
}

.rns-inquiry-sidebar .rns-btn iconify-icon {
    flex-shrink: 0;
}

/* Hide elements when Vue is loading */
[v-cloak] {
    display: none !important;
}

/* Media Queries */
@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

@media (max-width: 992px) {
    /* Layout changes */
    .property-content-wrapper {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 1rem;
    }

    .property-page .image-gallery-section {
        grid-template-columns: 1fr;
        margin-bottom: 0rem;
        display: none !important;
    }

    .property-page .thumbnails-container {
        display: none;
    }

    /* Property title mobile adjustments */
    .property-title h1 {
        font-size: 2rem;
    }

    /* Section headers mobile */
    .property-content h2 {
        font-size: 1.5rem;
    }

    /* Amenities mobile layout */
    .amenities-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .amenity-item {
        padding: 1rem;
    }

    /* Section wrappers mobile */
    .property-description,
    .property-amenities,
    .property-map,
    .property-calendar,
    .property-rates,
    .property-reviews {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Ensure calendar is visible on mobile */
    .property-calendar {
        display: block !important;
        visibility: visible !important;
    }

    #inline-calendar-container,
    #inline-calendar {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
    }

    /* Container adjustments */
    .rns-property-container {
        width: 100%;
        padding: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .property-page {
        padding: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .property-content {
        padding: 15px;
        overflow-x: hidden;
        flex: 1;
    }

    /* Booking form mobile styles */
    .booking-form {
        position: fixed;
        bottom: 0px;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 0 -4px 20px rgba(var(--primary-color-rgb), 0.15);
        margin: 0;
        padding: 0;
        border-radius: 20px 20px 0 0;
        border-top: 3px solid var(--primary-color, #0056b3);
        transition: max-height 0.3s ease-in-out;
        max-height: calc(100vh - 60px);
        overflow: hidden;
        top: auto;
    }

    .booking-form.collapsed {
        bottom: 50px;
        overflow: hidden;
    }

    .booking-form-content {
        padding: 10px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .collapsed .booking-form-content {
        display: none;
    }

    /* Mobile header */
    .mobile-header {
        position: relative;
        top: 0;
        padding: 20px 20px 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-radius: 20px 20px 0 0;
        cursor: pointer;
        z-index: 2;
        flex-shrink: 0;
    }

    .expanded-header h2 {
        color: var(--primary-color, #0056b3);
        font-weight: 700;
        text-align: center;
        margin: 0;
    }

    .mobile-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        height: 100%;
    }

    .handle-bar {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: #e0e0e0;
        border-radius: 2px;
    }

    /* Mobile backdrop */
    .mobile-backdrop {
        display: none;
    }

    .mobile-backdrop.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Book now button mobile */
    .book-now-btn {
        position: sticky;
        bottom: 0;
        margin: 15px 0 0;
        z-index: 2;
    }

    /* Inquiry sidebar mobile */
    .rns-inquiry-sidebar {
        margin: 16px;
        padding: 16px;
    }

    .inquiry-content {
        flex-direction: column;
        gap: 16px;
    }

    .rns-inquiry-sidebar .rns-btn {
        width: 100%;
    }

    /* Property header mobile */
    .property-header {
        gap: 1rem;
        margin-bottom: 1rem;
        padding-top: 0.5rem;
    }

    .property-title h1 {
        font-size: 1.5rem;
    }

    .property-favorite-button {
        padding: 4px;
        margin: -4px;
    }

    .rate-data.min-nights {
        text-align: center;
    }
    .rates-table {
        font-size: 14px;
    }

}

/* Property Modal */
.property-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.property-details-modal.show {
    opacity: 1;
    visibility: visible;
}

.property-details-modal .modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.property-details-modal.show .modal-content {
    transform: scale(1);
}

/* close-button styles centralized in rns-layout.css - DO NOT add close-button styles here */

.property-details-modal .modal-body {
    margin: 20px 0px;
    padding: 0px 20px;
    overflow-y: auto;
    max-height: calc(90vh - 40px);
}

.property-details-modal .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

.property-details-modal .image-grid-item {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.property-details-modal .image-grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-details-modal .image-grid-item:hover img {
    transform: scale(1.05);
}

/* Fancybox Customization */
.fancybox__container {
    z-index: 3000 !important;
}

.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000 !important;
}

.fancybox__carousel {
    z-index: 3001 !important;
}

.fancybox__slide {
    z-index: 3001 !important;
}

.fancybox__content {
    z-index: 3001 !important;
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.5);
    z-index: 3010 !important;
}

.fancybox__toolbar button {
    color: white;
}

.fancybox__nav {
    z-index: 3010 !important;
}

.fancybox__nav button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.fancybox__thumbs {
    z-index: 3005 !important;
}

.fancybox__caption {
    z-index: 3005 !important;
}

/* Body Class for Modal Open */
body.modal-open {
    overflow: hidden;
    padding-right: 17px; /* Prevents layout shift when scrollbar disappears */
}

/* Optimized image loading for results sliders */
.rns-slider-container .first-slide {
    z-index: 2; /* Ensure first slide is above others */
}

.rns-slider-container .rns-slide:not(.first-slide) {
    z-index: 1;
}

/* REMOVED: Smooth fade-in for lazy loaded images
 * This was causing images to be invisible (opacity: 0) with no JavaScript to add .loaded class
 * Native browser lazy loading handles the loading state automatically
 * Use skeleton overlays for loading feedback instead
 */

/* Ensure all slider images are immediately visible */
.rns-slider-container img[loading="eager"],
.rns-slider-container img[loading="lazy"] {
    opacity: 1;
}

@media (max-width: 768px) {
 /* Property location mobile layout */
    .property-location .rns-list-unstyled {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
        justify-content: flex-start;
    }

    .property-location .rns-list-unstyled li {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Move location to second position */
    .property-location .rns-list-unstyled li:has(iconify-icon[icon="mdi:map-marker"]) {
        order: 4;
    }
    .property-location .rns-list-unstyled li:has(iconify-icon[icon="mdi:account-group"]) {
        order: 2;
    }
    .property-location .rns-list-unstyled li:has(iconify-icon[icon="mdi:bed"]) {
        order: 1;
    }
    .property-location .rns-list-unstyled li:has(iconify-icon[icon="fa6-solid:shower"]) {
        order: 3;
    }

    /* Single column amenities */
    .amenities-list {
        grid-template-columns: 1fr;
    }

    /* Adjust expandable content height */
    .expandable-content {
        max-height: 300px;
    }

    /* Property page image grid modal - mobile adjustments */
    .property-details-modal .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .property-details-modal .modal-content {
        width: 100%;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        margin: 0;
    }

    .property-details-modal .modal-body {
        padding: 10px 15px;
        max-height: calc(100vh - 6rem);
    }

    /* close-button mobile styles centralized in rns-layout-mobile.css */
}

/* Calendar Loading State */
.calendar-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: var(--radius-xlg);
    border: 2px dashed #e9ecef;
    text-align: center;
}

.calendar-loading-state .rns-spinner {
    margin-bottom: 1rem;
}

.calendar-loading-state p {
    color: var(--gray600, #6b7280);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Date Picker Loading State */
.rns-dateRange {
    position: relative;
    transition: background-color 0.3s ease;
}

.rns-dateRange.sidebar-calendar-loading {
    background: #f8f9fa;
    pointer-events: none;
}

.rns-dateRange.sidebar-calendar-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.7);
    z-index: 1;
    border-radius: inherit;
    backdrop-filter: blur(1px);
}

.rns-dateRange.sidebar-calendar-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: calendar-spinner 0.8s linear infinite;
    z-index: 2;
}

.rns-dateRange .rns-input-group-addon {
    position: absolute;
    left: 15px;
    top: 27%;
    color: #333;
    z-index: 2;
    pointer-events: none;
}

.rns-dateRange.sidebar-calendar-loading .rns-input-group-addon {
    opacity: 0.5;
}

@keyframes calendar-spinner {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Ensure the flatpickr input maintains proper styling */
.flatpickr-input[readonly] {
    background-color: #fff !important;
    cursor: pointer !important;
}

/* Preserve flatpickr functionality */
.flatpickr-calendar {
    z-index: 9999;
}


