/* ============================================
   NEW YEAR'S SKIN (temporary, festive season only)

   Loaded by _Layout only while NewYearTheme is active, and every rule is scoped under
   body.theme-newyear, so switching the theme off leaves the regular pages untouched.
   To retire the skin: delete this file, wwwroot/js/newyear/, and Views/Shared/_NewYear*.
   Brand green stays the action color; gold is for sparkle, borders and badges only.
   ============================================ */

.theme-newyear {
    --ny-gold: #c9971f;        /* sparkles, highlight borders, fireworks */
    --ny-gold-text: #8a6516;   /* gold text on light backgrounds (≥ 4.5:1) */
    --ny-gold-muted: #6f5a2a;  /* secondary text inside gold surfaces */
    --ny-champagne: #e2c070;   /* fireworks, footer rule, greeting on dark */
    --ny-tint: #fbf6ea;        /* pricing block surface */
    --ny-line: #ecd9a4;        /* badge + block borders */
    --ny-glow-core: #fbf0d2;   /* hero glow, centre */
    --ny-glow-mid: #f8f2e2;    /* hero glow, falloff */
    --ny-glow-edge: #f5f5f5;   /* = the home page background (home/index.css), so the glow has no seam */
    /* Fireworks (read by js/newyear/fireworks.js; hex only). Deeper than the UI golds so they
       read on the pale hero; the greens come from --color-primary / --color-primary-hover. */
    --ny-fw-gold: #d29a12;
    --ny-fw-champagne: #e8b94a;
    --ny-fw-deep-gold: #a87410;
    --ny-fw-spark: #f2cf6b;
    --ny-fw-bright-green: #13c06a;
}

.theme-newyear .ny-sparkle {
    width: 0.85em;
    height: 0.85em;
    flex: 0 0 auto;
    fill: var(--ny-gold);
}

/* --- Header: a thin green-gold-green ribbon under the navbar --- */
.theme-newyear .navbar-main::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg,
        var(--color-primary) 0 30%,
        var(--ny-gold) 30%,
        var(--ny-champagne) 50%,
        var(--ny-gold) 70%,
        var(--color-primary) 70% 100%);
}

/* --- Hero: warm glow + fireworks canvas behind the (unchanged) coverflow carousel --- */
.theme-newyear .hero-carousel {
    background: radial-gradient(ellipse 70% 80% at 50% 45%, var(--ny-glow-core) 0%, var(--ny-glow-mid) 40%, var(--ny-glow-edge) 78%);
}

/* Phones: a little more room above the cards gives the fireworks a stage (the slide fills
   nearly the full width there). Desktop keeps the original spacing. */
@media (max-width: 767.98px) {
    .theme-newyear .hero-carousel {
        padding-top: 3.25rem;
    }
}

.theme-newyear .ny-fireworks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* slides sit at z-index 1–3, dots and arrows above them */
    pointer-events: none;
}

/* --- Home: the New Year's row title --- */
.theme-newyear .ny-row .section-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 1.35rem;
}

@media (min-width: 768px) {
    .theme-newyear .ny-row .section-header h2 {
        font-size: 1.65rem;
    }
}

/* --- Badges on listing photos --- */
.theme-newyear .ny-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--ny-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(138, 101, 22, 0.18);
    color: var(--ny-gold-text);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.theme-newyear .ny-badge--compact {
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
}

.theme-newyear .ny-badge--compact .ny-sparkle {
    width: 14px;
    height: 14px;
}

/* --- Home cards: the New Year's Eve line under the price --- */
.theme-newyear .ny-card-line {
    margin: 2px 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ny-gold-text);
}

@media (min-width: 768px) {
    .theme-newyear .ny-card-line {
        font-size: 0.8rem;
    }
}

/* --- New Year's pricing block (browse card + listing page) --- */
.theme-newyear .ny-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--ny-line);
    border-radius: var(--radius-md);
    background: var(--ny-tint);
}

.theme-newyear .ny-block--card {
    margin-top: 12px;
}

.theme-newyear .ny-block--listing {
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
    border-radius: var(--radius-lg);
}

.theme-newyear .ny-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.theme-newyear .ny-block__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ny-gold-text);
}

.theme-newyear .ny-block--listing .ny-block__title {
    font-size: 0.95rem;
}

.theme-newyear .ny-block__hint,
.theme-newyear .ny-block__status {
    font-size: 0.72rem;
    color: var(--ny-gold-muted);
}

.theme-newyear .ny-block__status {
    font-weight: 600;
}

.theme-newyear .ny-nights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.theme-newyear .ny-nights--1 {
    grid-template-columns: minmax(0, 1fr);
}

.theme-newyear .ny-nights--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-newyear .ny-night {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--ny-line);
    border-radius: 8px;
    background: var(--color-bg-white);
}

/* New Year's Eve is the night people come for: give it the gold frame. */
.theme-newyear .ny-night--eve {
    padding: 5px 7px;
    border: 2px solid var(--ny-gold);
}

.theme-newyear .ny-night__label {
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ny-gold-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-newyear .ny-night--eve .ny-night__label {
    font-weight: 700;
    color: var(--ny-gold-text);
}

.theme-newyear .ny-night__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.theme-newyear .ny-night__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Listing page: rows (label, date, price) in a narrow price card — the sidebar and phones —
   and the three tiles once there's room for the full labels. */
.theme-newyear .ny-block--listing {
    container-type: inline-size;
}

.theme-newyear .ny-block--listing .ny-nights {
    grid-template-columns: minmax(0, 1fr);
}

.theme-newyear .ny-block--listing .ny-night {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 9px 12px;
}

.theme-newyear .ny-block--listing .ny-night--eve {
    padding: 8px 11px;
}

.theme-newyear .ny-block--listing .ny-night__label {
    flex: 0 0 auto;
    font-size: 0.78rem;
}

.theme-newyear .ny-block--listing .ny-night__date {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    white-space: nowrap;
}

.theme-newyear .ny-block--listing .ny-night__price {
    margin-left: auto;
    font-size: 1.1rem;
}

@container (min-width: 420px) {
    .theme-newyear .ny-block--listing .ny-nights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .theme-newyear .ny-block--listing .ny-nights--1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-newyear .ny-block--listing .ny-nights--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-newyear .ny-block--listing .ny-night {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
    }

    .theme-newyear .ny-block--listing .ny-night--eve {
        padding: 9px;
    }

    .theme-newyear .ny-block--listing .ny-night__price {
        margin-left: 0;
        font-size: 1.2rem;
    }
}

.theme-newyear .ny-block__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 0.75rem;
    color: var(--ny-gold-muted);
}

.theme-newyear .ny-block--listing .ny-block__facts {
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.theme-newyear .ny-block__facts i {
    margin-right: 6px;
    color: var(--color-primary);
}

.theme-newyear .ny-block__booked {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ny-gold-muted);
}

/* --- Footer: champagne rule + greeting (the footer is dark) --- */
.theme-newyear > .container-fluid.bg-dark {
    border-top: 3px solid var(--ny-champagne);
}

.theme-newyear .ny-footer-greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ny-champagne);
    text-align: center;
}

.theme-newyear .ny-footer-greeting .ny-sparkle {
    fill: var(--ny-champagne);
}
