.br-unit-details__availability-calendar .flatpickr-calendar.inline{
    display: inline-block;
    /*pointer-events: none; */
}

.flatpickr-calendar.inline .flatpickr-day.selected{
    background: white !important;
    border-color: white !important;
    color: #393939;
}

.flatpickr-calendar.inline .flatpickr-day:hover{
    background: white !important;
    border-color: white !important;
    color: #393939;
}

.flatpickr-calendar.inline .flatpickr-day.flatpickr-disabled:hover{
    color: rgba(57, 57, 57, 0.1);
    background: transparent;
    border-color: transparent;
    cursor: default;
}

#393939

.flatpickr-calendar.inline .flatpickr-day{
    cursor: default;
}

.br-unit-section-seperator{
    border-bottom: solid 1px var(--neutral-light);
}

.br-unit-details__short-description{
    font-weight: 700;
}

.br-unit-details__long-description{

}

.amenity-icon{
    max-height: 50px;
}

.amenity-category-container{
    gap: var(--space-s);
    margin-bottom: var(--space-s);
}

.amenity-grid.brxe-block{
    display: grid;
    align-items: initial;
    grid-gap: 10px;
    grid-template-columns: var(--grid-3);
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.initial-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-gap: 10px;
    position: relative;
    width: 100%;
    /*max-height: 553px;*/
}

.initial-gallery a:first-child {
    padding: 0;
    grid-row: span 2;
    grid-column: span 2;
}

.initial-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.initial-gallery img:hover {
    transform: scale(1.05);
}

/* Full Mosaic Gallery Overlay */
.mosaic-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    display: none;
    overflow-y: auto;
    padding: 40px;
}

.mosaic-gallery-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Row pattern layout for mosaic gallery */
.mosaic-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mosaic-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* Row with single image */
.mosaic-row.single-image {
    height: 400px;
}

.mosaic-row.single-image img {
    width: 100%;
    height: 100%;
}

/* Row with multiple images */
.mosaic-row.multi-image {
    height: 250px;
}

.mosaic-row.multi-image .image-wrapper {
    flex: 1;
    height: 100%;
}

.mosaic-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.mosaic-gallery img:hover {
    transform: scale(1.05);
}

.close-mosaic {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    background: rgba(0,0,0,0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 40px;
    cursor: pointer;
    z-index: 9999;
}

.close-mosaic:hover {
    background: rgba(0,0,0,0.8);
}

/* View all button */
.view-all-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    z-index: 5;
}

.view-all-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.unit-item-count__container {
    align-items: flex-start;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    padding-right: var(--space-xs);
    padding-left: var(--space-xs);
    flex-direction: row;
}

.unit-item-count__item-text:not(:last-child)::after, .resort-value::before {
    content: '|';
    margin: 0 8px;
    color: #ccc; /* Lighter color for separator */
}

.unit-item-count__item{
    font-size: 16px;
    font-weight: 600;
    align-items: flex-start;
}

.page-nav {
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-nav.is-stuck {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #f8fafc;
}

@media (max-width: 1024px){
    .unit-item-count__item-text:not(:last-child)::after {
        content: '';
        margin: 0;
    }

    .area-resort-display{
        text-align: center;
        width: 100%;
    }

    .initial-gallery {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-gap: 10px;
        position: relative;
        width: 100%;
    }


}

@media (max-width: 768px) {
    .mosaic-row.single-image {
        height: 300px;
    }

    .mosaic-row.multi-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .initial-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .mosaic-row.multi-image {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    .mosaic-row.multi-image .image-wrapper {
        height: 180px;
    }

    .mosaic-row.single-image {
        height: 200px;
    }

    .mosaic-gallery-overlay {
        padding: 20px;
    }
}


/* Initial Gallery Grid - Base styles */
.initial-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-gap: 10px;
    position: relative;
    width: 100%;
}

.initial-gallery a:first-child {
    padding: 0;
    grid-row: span 2;
    grid-column: span 2;
}

.initial-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.initial-gallery img:hover {
    transform: scale(1.05);
}

.initial-gallery a:nth-of-type(n+2) img  {
    aspect-ratio: 1/1;
    max-height: 315px;
}

/* Full Mosaic Gallery Overlay */
.mosaic-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    display: none;
    overflow-y: auto;
    padding: 40px;
}

.mosaic-gallery-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Row pattern layout for mosaic gallery */
.mosaic-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mosaic-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* Row with single image */
.mosaic-row.single-image {
    height: 400px;
}

.mosaic-row.single-image img {
    width: 100%;
    height: 100%;
}

/* Row with multiple images */
.mosaic-row.multi-image {
    height: 250px;
}

.mosaic-row.multi-image .image-wrapper {
    flex: 1;
    height: 100%;
}

.mosaic-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.mosaic-gallery img:hover {
    transform: scale(1.05);
}

.close-mosaic {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    background: rgba(0,0,0,0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 40px;
    cursor: pointer;
    z-index: 9999;
}

.close-mosaic:hover {
    background: rgba(0,0,0,0.8);
}

/* View all button */
.view-all-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    z-index: 5;
}

.view-all-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.has-beach-gear{
    width: 100%;
}

.promo-status.success{
    text-align: center;
}


/* ===== RESPONSIVE STYLES ===== */

/* Tablet styles (768px and below) */
@media (max-width: 768px) {
    /* Initial gallery becomes single column */
    .initial-gallery {
        grid-template-columns: 1fr;
        grid-gap: 8px;
        max-height: 300px;
        overflow: hidden;
    }

    .initial-gallery a:first-child {
        grid-row: span 1;
        grid-column: span 1;
    }

    /* Only show first image in initial gallery on mobile */
    .initial-gallery a:not(:first-child) {
        display: none;
    }

    /* Adjust view all button position */
    .view-all-btn {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Mosaic gallery adjustments */
    .mosaic-gallery-overlay {
        padding: 20px 15px;
    }

    .mosaic-gallery-container {
        padding: 10px 0;
    }

    /* All mosaic rows become single column */
    .mosaic-row {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    .mosaic-row.single-image {
        height: 250px;
    }

    .mosaic-row.multi-image {
        height: auto;
    }

    .mosaic-row.multi-image .image-wrapper {
        height: 200px;
        flex: none;
    }

    .mosaic-gallery img {
        border-radius: 8px;
    }

    .close-mosaic {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
        line-height: 35px;
    }
}

/* Mobile styles (480px and below) */
@media (max-width: 480px) {
    .initial-gallery {
        max-height: 250px;
        border-radius: 8px;
        overflow: hidden;
    }

    .initial-gallery img {
        border-radius: 8px;
    }

    .view-all-btn {
        bottom: 8px;
        right: 8px;
        padding: 5px 10px;
        font-size: 12px;
    }

    .mosaic-gallery-overlay {
        padding: 15px 10px;
    }

    .mosaic-row.single-image {
        height: 200px;
    }

    .mosaic-row.multi-image .image-wrapper {
        height: 180px;
    }

    .mosaic-gallery {
        gap: 10px;
    }

    .close-mosaic {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
        line-height: 32px;
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .initial-gallery {
        max-height: 200px;
    }

    .mosaic-row.single-image {
        height: 180px;
    }

    .mosaic-row.multi-image .image-wrapper {
        height: 160px;
    }
}


/* Mobile Event Protection CSS */
/* Prevents expand/collapse issues during scroll on Firefox and Dolphin */

@media (max-width: 768px) {
    /* Global scrolling protection */
    body.mobile-scrolling {
        /* Temporarily disable pointer events on expandable elements during scroll */
    }

    body.mobile-scrolling .read-more-btn,
    body.mobile-scrolling .expand-toggle-button,
    body.mobile-scrolling [class*="expand"] button,
    body.mobile-scrolling [class*="toggle"] button {
        pointer-events: none !important;
        transition: none !important;
    }

    /* Firefox-specific fixes */
    @-moz-document url-prefix() {
        /* Prevent touch action conflicts */
        .property-description-container,
        .amenities-container,
        [class*="expandable"] {
            touch-action: pan-y;
            -moz-user-select: none;
        }

        /* Prevent resize triggers during scroll */
        .property-description-text.expanded,
        .amenities-list.expanded {
            max-height: none !important;
            overflow: visible !important;
            -webkit-line-clamp: none !important;
        }

        /* Stabilize expand buttons */
        .read-more-btn,
        .expand-toggle-button {
            -moz-user-select: none;
            -moz-touch-callout: none;
        }
    }

    /* Enhanced touch protection for expandable content */
    .property-description-container,
    .amenities-container,
    [class*="expandable"] {
        /* Prevent accidental triggering during scroll */
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Expanded content protection */
    .property-description-text.expanded,
    .amenities-list.expanded,
    .expanded .content,
    .show .content {
        /* Lock expanded state during interactions */
        max-height: none !important;
        overflow: visible !important;
        -webkit-line-clamp: none !important;
        display: block !important;
    }

    /* Button interaction protection */
    .read-more-btn,
    .expand-toggle-button,
    [class*="expand"] button,
    [class*="toggle"] button {
        /* Prevent double-tap zoom */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;

        /* Ensure button remains clickable */
        position: relative;
        z-index: 10;

        /* Prevent text selection */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;

        /* Stabilize button during interactions */
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
    }

    /* Prevent button interactions during drag/scroll */
    .mobile-scrolling .read-more-btn,
    .mobile-scrolling .expand-toggle-button,
    .mobile-scrolling [class*="expand"] button,
    .mobile-scrolling [class*="toggle"] button {
        pointer-events: none;
        opacity: 0.7;
        transition: opacity 0.1s ease;
    }

    /* Visual feedback for protected state */
    [data-mobile-protected="true"] {
        position: relative;
    }

    [data-mobile-protected="true"]:hover {
        /* Subtle visual feedback that element is protected */
        transform: none;
    }

    /* Enhanced protection for property descriptions */
    .property-description-container.mobile-protected .read-more-btn {
        /* Ensure button visibility and interaction */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Protection during resize events */
    body.resizing .property-description-text.expanded,
    body.resizing .amenities-list.expanded {
        /* Maintain expanded state during resize */
        max-height: none !important;
        overflow: visible !important;
        -webkit-line-clamp: none !important;
        transition: none !important;
    }

    /* Orientation change protection */
    @media (orientation: landscape) {
        .property-description-text.expanded,
        .amenities-list.expanded {
            /* Lock expanded state during orientation change */
            max-height: none !important;
            transition: none !important;
        }
    }

    @media (orientation: portrait) {
        .property-description-text.expanded,
        .amenities-list.expanded {
            /* Lock expanded state during orientation change */
            max-height: none !important;
            transition: none !important;
        }
    }
}

/* Dolphin browser specific fixes */
/* Note: Dolphin doesn't have a specific CSS selector, so we rely on JS detection */
.dolphin-browser .property-description-container,
.dolphin-browser .amenities-container {
    /* Enhanced touch protection for Dolphin */
    touch-action: pan-y !important;
    overflow-anchor: none;
}

.dolphin-browser .read-more-btn,
.dolphin-browser .expand-toggle-button {
    /* Stabilize buttons in Dolphin */
    will-change: auto;
    transform: translateZ(0);
}

/* Debug styles (remove in production) */
.debug-mobile-events {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    z-index: 10000;
    border-radius: 4px;
}

/* Smooth transitions when not protected */
@media (max-width: 768px) {
    .read-more-btn,
    .expand-toggle-button {
        transition: all 0.2s ease;
    }

    body:not(.mobile-scrolling) .read-more-btn:active,
    body:not(.mobile-scrolling) .expand-toggle-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

@media (max-width: 768px) {
    /* Firefox and Dolphin specific fixes */
    .property-description-text.expanded,
    .amenities-list.expanded,
    [class*="expand"].expanded {
        max-height: none !important;
        overflow: visible !important;
        -webkit-line-clamp: none !important;
    }

    /* Prevent button clicks during scroll */
    body.scrolling .read-more-btn,
    body.scrolling [class*="expand"] button {
        pointer-events: none !important;
    }
}