/* Slider category badge — same frosted-glass style as the Available chip */
.listing-slider-wrap .slide-badge {
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 4px 10px 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--plx-color-white);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
    top: 10px;
    left: 10px;
}
.listing-slider-wrap .slide-badge:hover {
    background: rgba(0, 0, 0, 0.68);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--plx-color-white);
    transform: none;
}
.listing-slider-wrap .slide-badge svg {
    width: 13px;
    height: 13px;
    opacity: 0.75;
    flex-shrink: 0;
}

/* Prevent flash of stacked slides before Slick initialises */
.listing-slider:not(.slick-initialized) .listing-slide:not(:first-child) {
    display: none;
}

/* Overview card */
.listing-overview-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-top: 2px solid var(--text-primary-cst);
    padding: 20px;
    margin-bottom: 20px;
}
.listing-overview-card .section-heading {
    margin: 0 0 10px;
}
.listing-overview-card .section-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
.overview-divider {
    height: 1px;
    background: var(--border-subtle);
    border: none;
    margin: 14px 0 0;
}
.overview-contact-wrap {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
}
.overview-contact-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted-cst);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.overview-contact-wrap .listing-meta-row {
    margin-top: 0;
}

/* Meta row */
.listing-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted-cst);
    line-height: 1.4;
}
.listing-meta-row .lmr-sep {
    margin: 0 8px;
    opacity: 0.4;
}

/* Section headings */
.split-heading {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted-cst);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 10px;
}

/* Sticky right sidebar */
.listing-right-sticky {
    position: sticky;
    top: 80px;
}

/* Reviews section */
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.reviews-header .split-heading {
    margin: 0;
}
.reviews-count {
    font-size: 12px;
    color: var(--text-muted-cst);
}
.reviews-stars-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0px 0px 10px 0px;
}
.reviews-stars {
    display: flex;
    gap: 2px;
}
.reviews-star {
    font-size: 18px;
    line-height: 1;
}
.reviews-star.filled {
    color: #ffc107;
}
.reviews-star.half {
    color: #ffc107;
    opacity: 0.6;
}
.reviews-star.empty {
    color: var(--border-default);
}
.reviews-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary-cst);
}
.listing-rating-badge {
    background: #28a745;
    color: var(--plx-color-white);
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.5;
}

/* Room tag on booking cards */
.booking-room-tag {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted-cst);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    margin-bottom: 4px;
}

/* ==========================================================================
   CUSTOM SWEETALERT STYLING (BLACK UI THEME)
   ========================================================================== */
.swal2-popup {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 0px;
    color: var(--text-primary-cst);
}

.swal2-title {
    color: var(--text-primary-cst);
    font-weight: var(--font-weight-semi);
}

.swal2-html-container {
    color: var(--text-muted-cst);
}

.swal2-confirm {
    border-radius: 0px;
    font-weight: var(--font-weight-med);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-primary-cst);
}

.swal2-confirm:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted-cst);
}

.swal2-cancel {
    border-radius: 0px;
    font-weight: var(--font-weight-med);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted-cst);
}

.swal2-cancel:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted-cst);
}

.swal2-icon {
    border-radius: 50%;
}

.swal2-success-ring {
    border: 4px solid rgba(34, 197, 94, 0.2);
}

.swal2-success-line-tip,
.swal2-success-line-long {
    background-color: #22c55e;
}

.swal2-error {
    border-color: #ef4444;
}

.swal2-warning {
    border-color: #f59e0b;
}

.swal2-info {
    border-color: #3b82f6;
}

/* Dark scrollbar for SweetAlert */
.swal2-container::-webkit-scrollbar {
    width: 8px;
}

.swal2-container::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

.swal2-container::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 0px;
}

.swal2-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted-cst);
}

/* ==========================================================================
   RATING STATISTICS STYLES
   ========================================================================== */
.rating-summary-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: visible;
}

.rating-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-average {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-stars-large {
    display: flex;
    gap: 2px;
}

.star-large {
    font-size: 24px;
    color: #ddd;
    transition: color 0.2s;
}

.star-large.filled {
    color: #ffc107;
}

.star-large.half-filled {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary-cst);
}

.rating-count {
    text-align: right;
}

.rating-count-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary-cst);
}

.rating-count-text {
    font-size: 14px;
    color: var(--text-muted-cst);
    margin-left: 5px;
}

/* Rating Breakdown Tooltip */
.rating-breakdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
}

.rating-breakdown h4 {
    margin: 0 0 15px 0;
    color: var(--text-primary-cst);
    font-size: 16px;
    font-weight: 600;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-bar-label {
    min-width: 80px;
    font-size: 14px;
    color: var(--text-primary-cst);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-bar-count {
    color: var(--text-muted-cst);
    font-size: 12px;
}

.rating-bar-container {
    flex: 1;
    height: 8px;
    background: var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-bar-percentage {
    font-size: 12px;
    color: var(--text-muted-cst);
    min-width: 45px;
    text-align: right;
}

.rating-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-primary-cst);
    font-size: 14px;
}

/* ==========================================================================
   SLOT AVAILABILITY & LIST
   ========================================================================== */
.slot-availability {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0px;
    padding: 16px;
    margin: 20px 0;
    transition: var(--tr-base);
}

.slot-availability-header h4 {
    margin: 0 0 16px 0;
    color: var(--text-primary-cst);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-med);
    font-family: inherit;
}

.slots-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-subtle) var(--bg-surface);
}

.slots-list::-webkit-scrollbar {
    width: 8px;
}

.slots-list::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

.slots-list::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 0px;
}

.slots-list::-webkit-scrollbar-thumb:hover {
    background: var(--border-default);
}

.slots-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0px;
    padding: 16px;
}

.slot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.slot-row.available {
    color: var(--text-primary-cst);
}

.slot-row.booked {
    color: var(--text-muted-cst);
    opacity: 0.7;
}

.slot-time-range {
    font-weight: 500;
}

.slot-status-text {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slot-row.available .slot-status-text {
    color: #10b981;
}

.slot-row.booked .slot-status-text {
    color: #ef4444;
}

.slot-row.past {
    color: var(--text-muted-cst);
    opacity: 0.45;
    text-decoration: line-through;
    pointer-events: none;
}

.slot-row.past .slot-status-text {
    color: #94a3b8;
}

.slot-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-range {
    font-weight: var(--font-weight-med);
    font-size: var(--font-size-sm);
    color: inherit;
}

.slot-status {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-med);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

.slot-item.available .slot-status {
    color: var(--success-cst);
    background: rgba(0, 255, 136, 0.1);
}

.slot-item.booked .slot-status {
    color: var(--danger-cst);
    background: rgba(255, 68, 68, 0.1);
}

.slot-item.selected .slot-status {
    color: var(--text-primary-cst);
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   CUSTOM DATE PICKER STYLES
   ========================================================================== */
.custom-date-picker-wrapper {
    position: relative;
}

.custom-date-picker {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    padding: 8px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    min-width: 240px;
    max-width: 300px;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-subtle);
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 14px;
    padding: 2px 4px;
    cursor: pointer;
    color: var(--text-primary-cst);
    border-radius: 3px;
    transition: var(--tr-base);
    min-width: 24px;
}

.calendar-nav:hover {
    background: var(--bg-elevated);
}

#calendar-month-year {
    color: var(--text-primary-cst);
    font-size: 12px;
    text-align: center;
    flex: 1;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 4px;
}

.weekday {
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted-cst);
    padding: 1px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    transition: var(--tr-base);
    background: var(--bg-surface);
    color: var(--text-primary-cst);
    position: relative;
    min-height: 26px;
}

.calendar-day:hover {
    background: var(--bg-elevated);
    border-color: var(--border-default);
}

.calendar-day.other-month {
    color: var(--text-muted-cst);
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.past {
    color: var(--text-muted-cst);
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.available {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-weight: 600;
}

.calendar-day.available:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.calendar-day.selected {
    background: var(--bg-elevated);
    border-color: var(--text-primary-cst);
    color: var(--text-primary-cst);
    font-weight: 600;
}

.calendar-day.available.selected {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
    color: var(--plx-color-success);
}

.calendar-day.unavailable {
    color: #6b7280;
    cursor: not-allowed;
}

.calendar-day.unavailable:hover {
    background: var(--bg-surface);
    border-color: var(--border-subtle);
}

.calendar-day.fully-booked {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
}

.calendar-day.fully-booked:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.calendar-day.partially-booked {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    color: #f97316;
    font-weight: 600;
    cursor: pointer;
}

.calendar-day.partially-booked:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.5);
}

.calendar-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border-subtle);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted-cst);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Available indicator dot */
.calendar-day.available::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2px;
    background: #22c55e;
    border-radius: 50%;
}

.calendar-day.selected::before {
    display: none;
}

/* Booking Card Height Adjustment */
.sticky-booking {
    min-height: 600px;
}

/* xs */
@media (max-width: 575.98px) {
    .sticky-booking {
        min-height: 500px;
    }
    
    .custom-date-picker {
        min-width: 220px;
        padding: 6px;
    }
    
    .calendar-day {
        font-size: 9px;
        min-height: 24px;
    }
    
    .weekday {
        font-size: 10px;
    }
    
    .calendar-header {
        margin-bottom: 6px;
        padding-bottom: 3px;
    }
    
    .calendar-nav {
        font-size: 12px;
        padding: 1px 2px;
    }

    .sticky-booking {
        min-height: 450px;
    }
    
    .custom-date-picker {
        min-width: 200px;
        padding: 4px;
    }
    
    .calendar-day {
        font-size: 8px;
        min-height: 22px;
    }
    
    .weekday {
        font-size: 10px;
        padding: 0px;
    }
    
    .calendar-header {
        margin-bottom: 4px;
    }
    
    #calendar-month-year {
        font-size: 11px;
    }
    
    .calendar-nav {
        font-size: 10px;
        padding: 1px 2px;
        min-width: 20px;
    }
}
