/* ============================================================
   Availability Calendar – Custom Styles
   Matches the dark-green Emerald Island production design
   ============================================================ */

/* ---- Wrapper ---- */
.avail-calendar-wrapper {
    background-color: #d5ffec;
    /* border-radius: 12px;
    padding: 28px 24px 20px; */
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ---- Header / Title ---- */
.avail-calendar-header {
    /* margin-bottom: 18px; */
    background-color: #F1F5EE;
}

.avail-calendar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px 0;
    padding-left: 10px;
    text-align: start;
    letter-spacing: 0.3px;
}

/* ---- Navigation Bar ---- */
.avail-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.avail-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avail-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avail-nav-btn {
    background: transparent;
    border: none;
    color: #DAA520;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background .2s;
}

.avail-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.avail-nav-btn i {
    font-size: 1.3rem;
}

.avail-month-range {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1d4f3a;
    min-width: 180px;
    text-align: center;
}

/* Today Button */
.avail-today-btn {
    background: #fff;
    color: #0d6f3e;
    border: 2px solid #0d6f3e;
    padding: 5px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all .2s;
}

.avail-today-btn:hover {
    background: #0d6f3e;
    color: #fff;
}

/* Jump-To Button + Dropdown */
.avail-jump-wrapper {
    position: relative;
}

.avail-jump-btn {
    color: rgb(13, 111, 62);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background: rgb(255, 255, 255);
    border-width: 2px;
    border-style: solid;
    border-color: rgb(13, 111, 62);
    border-image: initial;
    padding: 5px 18px;
    border-radius: 20px;
    transition: 0.2s;
}

.avail-jump-btn:hover {
    background: #0d6f3e;
    color: #fff;
}

.avail-jump-dropdown {
    position: absolute;
    right: 0;
    top: 110%;
    z-index: 1000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    padding: 12px;
    min-width: 520px;
}

.avail-jump-years {
    display: flex;
    gap: 16px;
}

.avail-jump-year-col {
    flex: 1;
}

.avail-jump-year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.avail-jump-year-header span {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333;
}

.avail-jump-year-header button {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #555;
    padding: 2px 6px;
    border-radius: 4px;
}

.avail-jump-year-header button:hover {
    background: #eee;
}

.avail-jump-months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.avail-jump-month-btn {
    padding: 6px 2px;
    text-align: center;
    border: none;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all .15s;
}

.avail-jump-month-btn:hover {
    background: #0d6f3e;
    color: #fff;
}

.avail-jump-month-btn.active {
    background: #1a5276;
    color: #fff;
    font-weight: 600;
}

.avail-jump-month-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

/* ---- Calendar Grid – 3x2 months ---- */
.avail-calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 auto 16px auto;
}

@media (max-width: 991px) {
    .avail-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .avail-calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* Single month layout (number-of-months="1") */
.avail-calendar-grid.avail-months-1 {
    grid-template-columns: 1fr;
    max-width: 400px;
}

/* Two month layout (number-of-months="2") */
.avail-calendar-grid.avail-months-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
}

/* Individual month card */
.avail-month-card {
    background: #eafff6;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #bde5d6;
}

.avail-month-card-header {
    background: #0b4734;
    padding: 8px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    position: relative;
}

/* Special offer ribbon */
.avail-month-card-header .special-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: #DAA520;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Day grid inside month */
.avail-day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.avail-day-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2f6f57;
    padding: 6px 0 4px;
    border-bottom: 1px solid #cdeee1;
}

.avail-day-cell {
    position: relative;
    text-align: center;
    padding: 3px 1px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
    transition: background .15s;
}

.avail-day-cell.empty {
    background: transparent;
}

/* Day number */
.avail-day-num {
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.1;
}

/* Nightly rate under the number */
.avail-day-price {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1px;
    line-height: 1;
    white-space: nowrap;
}

/* ============================================================
   Status colors – matches calendar.blade.php exactly
   Colors: Regular=#f4f4f4  Special=#8fd66b  Unavailable=#C59A85
   ============================================================ */

/* --- Regular (status 1) – full day available --- */
.avail-day-cell.regular {
    background-color: #f4f4f4;
    color: #333;
    cursor: pointer;
}

.avail-day-price {
    color: #555;
}

.avail-day-cell.regular:hover {
    background-color: #1a4620;
    color: #fff;

    .avail-day-price {
        color: #fff;
    }
}

/* --- Regular PM (status 5) – check-in day --- */
.avail-day-cell.regular-pm {
    position: relative;
    background-color: transparent;
    color: #333;
    cursor: pointer;
    overflow: hidden;
}

.avail-day-cell.regular-pm::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 44px solid transparent;
    border-right: 100px solid #f4f4f4;
    pointer-events: none;
}

.avail-day-cell.regular-pm .avail-day-price {
    color: #555;
}

/* --- Regular AM (status 6) – check-out day --- */
.avail-day-cell.regular-am {
    position: relative;
    background-color: transparent;
    color: #333;
    cursor: pointer;
    overflow: hidden;
}

.avail-day-cell.regular-am::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 44px solid #f4f4f4;
    border-right: 100px solid transparent;
    pointer-events: none;
}

.avail-day-cell.regular-am .avail-day-price {
    color: #555;
}

/* --- Special (status 4) – full day special offer --- */
.avail-day-cell.special {
    background-color: #1a4620;
    color: #f6f8f6;
    cursor: pointer;
    font-weight: 600;
}

.avail-day-cell.special .avail-day-price {
    color: #cacbca;
}

.avail-day-cell.special:hover {
    background-color: #7ecc5a;
}

/* --- Special PM (used in combos) --- */
.avail-day-cell.special-pm {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.avail-day-cell.special-pm::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 44px solid transparent;
    border-right: 100px solid #8fd66b;
    pointer-events: none;
}

/* --- Special AM (used in combos) --- */
.avail-day-cell.special-am {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.avail-day-cell.special-am::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 44px solid #8fd66b;
    border-right: 100px solid transparent;
    pointer-events: none;
}

/* --- Unavailable (status 2) – fully booked --- */
.avail-day-cell.unavailable {
    background-color: #C59A85;
    color: #fff;
    cursor: not-allowed;
    background: repeating-linear-gradient(45deg,
            #C59A85,
            #C59A85 3px,
            #b88770 3px,
            #b88770 6px);
}

.avail-day-cell.unavailable .avail-day-price {
    display: none;
}

.avail-day-cell.unavailable:hover {
    background-color: #c4937a;
}

/* --- Unavailable PM (used in combos) --- */
.avail-day-cell.unavailable-pm {
    position: relative;
    overflow: hidden;
    /* cursor: not-allowed; */

    .avail-day-price {
        color: #F1F5EE;
    }
}

.avail-day-cell.unavailable-pm::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 44px solid transparent;
    border-right: 100px solid #C59A85;
    pointer-events: none;
}

/* --- Unavailable AM (used in combos) --- */
.avail-day-cell.unavailable-am {
    position: relative;
    overflow: hidden;
    /* cursor: not-allowed; */

    .avail-day-price {
        color: #F1F5EE;
    }
}

.avail-day-cell.unavailable-am::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 44px solid #C59A85;
    border-right: 100px solid transparent;
    pointer-events: none;
}

/* --- Combined status overrides (two classes on one cell) --- */
/* Status 7: unavailable-am + special-pm */
.avail-day-cell.unavailable-am.special-pm::after {
    border-top-color: #C59A85;
    border-right-color: #1a4620;
}

/* Status 8: special-am + unavailable-pm */
.avail-day-cell.special-am.unavailable-pm::after {
    border-top-color: #1a4620;
    border-right-color: #C59A85;
}

/* Status 9: regular-am + unavailable-pm */
.avail-day-cell.regular-am.unavailable-pm::after {
    border-top-color: #f4f4f4;
    border-right-color: #C59A85;
}

/* Status 10: unavailable-am + regular-pm */
.avail-day-cell.unavailable-am.regular-pm::after {
    border-top-color: #C59A85;
    border-right-color: #f4f4f4;
}

/* All half-day cells: ensure day-num sits above the triangle */
.avail-day-cell.regular-pm .avail-day-num,
.avail-day-cell.regular-am .avail-day-num,
.avail-day-cell.special-pm .avail-day-num,
.avail-day-cell.special-am .avail-day-num,
.avail-day-cell.unavailable-pm .avail-day-num,
.avail-day-cell.unavailable-am .avail-day-num {
    position: relative;
    z-index: 2;
}

.avail-day-cell.regular-pm .avail-day-price,
.avail-day-cell.regular-am .avail-day-price,
.avail-day-cell.special-pm .avail-day-price,
.avail-day-cell.special-am .avail-day-price,
.avail-day-cell.unavailable-pm .avail-day-price,
.avail-day-cell.unavailable-am .avail-day-price {
    position: relative;
    z-index: 2;
}

/* Past date */
.avail-day-cell.past-date {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Today highlight */
.avail-day-cell.is-today {
    outline: 2px solid #DAA520;
    outline-offset: -2px;
    z-index: 2;
}

.avail-day-cell.is-today .avail-day-num {
    font-weight: 800;
}

/* Selected dates */
.avail-day-cell.selected {
    outline-offset: -2px;
    z-index: 3;
    background-color: #1B4332;
    color: #ffffff;
}

.selected .avail-day-price {
    color: #fff;
}

.avail-day-cell.selected::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #f0c040;
    /* border-radius: 50%; */
}

/* ---- Legend ---- */
.avail-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 14px 0;
    flex-wrap: wrap;
}

.avail-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.52rem;
    color: #1f3f34;
    position: relative;
    padding-left: 28px;
}

.avail-legend-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid #bde5d6;
}

.avail-legend-item.legend-regular::before {
    background: #f4f4f4;
}

.avail-legend-item.legend-regular-pm::before {
    background: transparent;
    border-top: 18px solid transparent;
    border-right: 22px solid #f4f4f4;
    border-radius: 0;
}

.avail-legend-item.legend-regular-am::before {
    background: transparent;
    border-top: 18px solid #f4f4f4;
    border-right: 22px solid transparent;
    border-radius: 0;
}

.avail-legend-item.legend-special::before {
    background: #1B4332;
}

.avail-legend-item.legend-special-pm::before {
    background: transparent;
    border-top: 18px solid transparent;
    border-right: 22px solid #1B4332;
    border-radius: 0;
}

.avail-legend-item.legend-special-am::before {
    background: transparent;
    border-top: 18px solid #1B4332;
    border-right: 22px solid transparent;
    border-radius: 0;
}

.avail-legend-item.legend-unavailable::before {
    background: #C59A85;
    background: repeating-linear-gradient(45deg,
            #C59A85,
            #C59A85 2px,
            #b88770 2px,
            #b88770 4px);
}

/* ---- Summary Bar ---- */
.avail-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #bff5e1;
    border: 1px solid #a4e6cf;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.avail-summary-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avail-summary-text {
    font-size: 1.15rem;
    color: #1d4f3a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.avail-summary-dates {
    font-size: 1rem;
    color: #0b4734;
}

.avail-summary-pipe {
    color: #7aaa8e;
    font-weight: 300;
}

.avail-shift-hint {
    color: #5a7a6a;
    font-size: 0.82rem;
}

.avail-shift-hint kbd {
    background: #e0f5ec;
    border: 1px solid #a4c9b8;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 0.8em;
    font-family: inherit;
}

.avail-reset-btn {
    background: transparent;
    border: 1.5px solid #1d4f3a;
    color: #1d4f3a;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.avail-reset-btn:hover {
    background: #1d4f3a;
    color: #fff;
}

.avail-summary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.avail-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    border: none;
}

.avail-btn-quote {
    background: #0d6f3e;
    color: #fff;
    border: 2px solid #fff;
}

.avail-btn-quote:hover {
    background: #0a5a31;
    color: #fff;
}

.avail-btn-book {
    background: #DAA520;
    color: #fff;
    border: 2px solid #DAA520;
}

.avail-btn-book:hover {
    background: #b0912f;
    border-color: #b0912f;
    color: #fff;
}

/* ---- Reviews Section ---- */
.avail-reviews-section {
    padding: 40px 0 30px;
    text-align: center;
}

.avail-reviews-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.avail-reviews-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.avail-review-card {
    background: #f3f5d2;
    border: 1px solid #c3baaa;
    border-radius: 0;
    width: 100%;
    max-width: 380px;
    text-align: left;
    overflow: hidden;
    position: relative;
    line-height: 24px;
    color: #716c62;
    background-image: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%),
        repeating-linear-gradient(transparent 0%, transparent 23px, rgba(239, 207, 173, 0.7) 23px, rgba(239, 207, 173, 0.7) 24px);
}

.avail-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border: 1px solid #c3baaa;
    background: #f3f5d2;
    transform: rotate(2deg);
}

.avail-review-card-title {
    background: #716c62;
    color: #fff;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.4;
}

.avail-review-card-title a {
    color: #fff;
    text-decoration: none;
}

.avail-review-card-body {
    padding: 14px 16px;
}

.avail-review-text {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #716c62;
}

.avail-review-meta {
    text-align: right;
    font-style: italic;
    font-size: 0.9rem;
}

.avail-review-author {
    display: block;
}

.avail-review-dates {
    display: block;
    font-size: 0.85rem;
}

.avail-reviews-more {
    margin-top: 8px;
}

.avail-btn-reviews {
    background: #1a237e;
    color: #fff;
    padding: 10px 28px;
    border-radius: 6px;
}

.avail-btn-reviews:hover {
    background: #0d1657;
    color: #fff;
}

/* ---- Collapsed Calendar Summary ---- */
.avail-collapsed-summary {
    padding: 16px 18px;
    background: #eafff6;
    border: 1px solid #bde5d6;
    border-radius: 8px;
}

.avail-collapsed-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.avail-collapsed-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #1d4f3a;
    flex-wrap: wrap;
}

.avail-collapsed-label {
    font-size: 0.85rem;
    color: #5a7a6a;
}

.avail-collapsed-arrow {
    color: #0d6f3e;
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 575px) {
    .avail-collapsed-inner {
        flex-direction: column;
        text-align: center;
    }

    .avail-collapsed-dates {
        justify-content: center;
    }
}

/* ---- Email Success Wrap ---- */
.qf-email-success-wrap {
    text-align: center;
    padding: 10px 0;
}

.qf-email-success-wrap .qf-email-success {
    margin-bottom: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .avail-calendar-wrapper {
        padding: 16px 10px 14px;
    }

    .avail-calendar-title {
        font-size: 1.1rem;
    }

    .avail-calendar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .avail-nav-left,
    .avail-nav-right {
        justify-content: center;
    }

    .avail-month-range {
        min-width: auto;
    }

    .avail-summary-bar {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .avail-summary-left {
        align-items: center;
    }

    .avail-summary-right {
        justify-content: center;
    }

    .avail-jump-dropdown {
        min-width: 280px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .avail-jump-years {
        flex-direction: column;
    }

    .avail-reviews-grid {
        flex-direction: column;
        align-items: center;
    }
}

.avail-book-btn {
    color: rgb(13, 111, 62);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background: rgb(255, 255, 255);
    border-width: 2px;
    border-style: solid;
    border-color: rgb(13, 111, 62);
    border-image: initial;
    padding: 5px 18px;
    border-radius: 20px;
    transition: 0.2s;
    text-decoration: none;
}

.avail-book-btn:hover {
    background: #0d6f3e;
    color: #fff;
}

.avail-book-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   Date-Range Picker – Selection Styles
   ============================================================ */

/* Crosshair cursor while waiting for the check-out click */
#availabilityCalendar.picking-checkout .avail-day-cell:not(.past-date):not(.unavailable) {
    cursor: crosshair;
}

/* ---- Check-in date (confirmed) ---- */
.avail-day-cell.sel-start {
    background-color: #0b4734 !important;
    color: #fff !important;
    z-index: 3;
    box-shadow: inset 3px 0 0 0 #DAA520;
    /* gold left-edge = arrival */
}

.avail-day-cell.sel-start .avail-day-price,
.avail-day-cell.sel-start .avail-day-num {
    color: #fff !important;
    position: relative;
    z-index: 2;
}

/* Small "IN" pill on the check-in cell */
.avail-day-cell.sel-start::before {
    content: 'IN';
    position: absolute;
    top: 3px;
    left: 4px;
    font-size: 0.44rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    background: #DAA520;
    color: #fff;
    border-radius: 2px;
    padding: 1px 3px;
    line-height: 1.2;
    z-index: 4;
    pointer-events: none;
}

/* ---- Check-out date (confirmed) ---- */
.avail-day-cell.sel-end {
    background-color: #0b4734 !important;
    color: #fff !important;
    z-index: 3;
    box-shadow: inset -3px 0 0 0 #DAA520;
    /* gold right-edge = departure */
}

.avail-day-cell.sel-end .avail-day-price,
.avail-day-cell.sel-end .avail-day-num {
    color: #fff !important;
    position: relative;
    z-index: 2;
}

/* Small "OUT" pill on the check-out cell */
.avail-day-cell.sel-end::before {
    content: 'OUT';
    position: absolute;
    top: 3px;
    right: 4px;
    font-size: 0.44rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    background: #DAA520;
    color: #fff;
    border-radius: 2px;
    padding: 1px 3px;
    line-height: 1.2;
    z-index: 4;
    pointer-events: none;
}

/* ---- Nights in-between (confirmed range) ---- */
.avail-day-cell.sel-in {
    background-color: #b8ead1 !important;
    color: #1a4620 !important;
}

.avail-day-cell.sel-in .avail-day-price {
    color: #2d6a44 !important;
}

/* ---- Hover preview – check-out endpoint ---- */
.avail-day-cell.sel-end-preview {
    background-color: rgba(11, 71, 52, 0.55) !important;
    color: #fff !important;
    outline: 2px dashed #0b4734;
    outline-offset: -2px;
    z-index: 3;
}

.avail-day-cell.sel-end-preview .avail-day-num {
    position: relative;
    z-index: 2;
}

/* ---- Hover preview – nights in range ---- */
.avail-day-cell.sel-in-preview {
    background-color: #d9f5e8 !important;
    color: #1a4620 !important;
}

/* ---- Blocked range preview (unavailable date in the way) ---- */
.avail-day-cell.sel-blocked-edge {
    background-color: rgba(185, 40, 40, 0.22) !important;
    color: #7a1010 !important;
    outline: 2px dashed rgba(185, 40, 40, 0.55);
    outline-offset: -2px;
}

.avail-day-cell.sel-blocked-mid {
    background-color: rgba(185, 40, 40, 0.10) !important;
    color: #7a1010 !important;
}

/* When start cell also has a half-day status, keep labels above the triangle */
.avail-day-cell.sel-start.regular-pm .avail-day-num,
.avail-day-cell.sel-start.regular-am .avail-day-num,
.avail-day-cell.sel-end.regular-pm .avail-day-num,
.avail-day-cell.sel-end.regular-am .avail-day-num {
    position: relative;
    z-index: 5;
}

/* Ensure existing ::after triangles stay but colours win via !important above */
.avail-day-cell.sel-start::after,
.avail-day-cell.sel-end::after {
    /* do not override – keep the diagonal triangle pseudo-element untouched */
}