:root {
    --bg: #f6fafb;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;

    --primary: #0ea5a4;
    --shadow: 0 18px 45px rgba(2, 6, 23, .10);
    --shadow2: 0 10px 22px rgba(2, 6, 23, .08);
    --r: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 18px;
}

.main {
    min-height: calc(100vh - 150px);
}

/* Header */
.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #12b6b4);
    box-shadow: 0 10px 24px rgba(14, 165, 164, .20);
}

.brand-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-weight: 900;
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 650;
}

.nav a:hover {
    background: rgba(14, 165, 164, .08);
    color: var(--text);
}

.nav-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 850;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #12b6b4);
    box-shadow: 0 14px 30px rgba(14, 165, 164, .20);
}

.btn-ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
    box-shadow: var(--shadow2);
}

.btn-sm {
    padding: 8px 10px;
    border-radius: 12px;
}

.btn-wide {
    width: 100%;
}

/* HERO (full image like booking sites) */
.hero-wide {
    position: relative;
    min-height: 74vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 42px 0 46px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, .18), rgba(2, 6, 23, .62));
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: end;
}

.hero-copy {
    padding-bottom: 8px;
}

.pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .20);
    color: #fff;
    font-weight: 750;
    backdrop-filter: blur(10px);
    margin-bottom: 14px;
}

.hero-h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 46px;
    letter-spacing: -.4px;
    line-height: 1.07;
}

.hero-p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    max-width: 62ch;
    line-height: 1.75;
    font-size: 16px;
}

.hero-cta {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

/* Floating search card */
.search-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.search-title {
    font-weight: 950;
    font-size: 18px;
}

.search-sub {
    color: var(--muted);
    margin-top: 4px;
    font-size: 13px;
}

.search-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #fff;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(14, 165, 164, .45);
    box-shadow: 0 0 0 4px rgba(14, 165, 164, .12);
}

.micro {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

/* Sections */
.section {
    padding: 54px 0;
}

.section.soft {
    background: #f0fbfb;
    border-top: 1px solid rgba(226, 232, 240, .8);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.section-title {
    font-weight: 950;
    font-size: 20px;
}

.muted {
    color: var(--muted);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.link {
    color: #0b7e7d;
    font-weight: 800;
}

/* Gallery: one big + four small */
.gallery-masonry {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: 170px;
    gap: 14px;
}

.gallery-masonry .g {
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .95);
    background-size: cover;
    background-position: center;
    background-color: #eaf2f4;
    box-shadow: var(--shadow2);
}

.gallery-masonry .g.big {
    grid-row: span 2;
    grid-column: span 1;
    min-height: 354px;
}

/* Features */
.feature-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow2);
}

.feature .icon {
    font-size: 22px;
}

.ftitle {
    font-weight: 900;
    margin-top: 8px;
}

.ftext {
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.6;
}

/* Existing pages helpers (rooms/reserve) */
.page-head {
    padding: 40px 0 16px;
}

.h2 {
    font-size: 28px;
    margin: 0;
}

.card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 18px;
    box-shadow: var(--shadow2);
}

.card-pad {
    padding: 18px;
}

.divider {
    height: 1px;
    background: rgba(226, 232, 240, .95);
    margin: 16px 0;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.price {
    font-size: 26px;
    font-weight: 950;
    margin: 8px 0 6px;
}

.bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

.checklist {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.room-card {
    overflow: hidden;
}

.room-photo {
    height: 240px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #eaf2f4;
    border-bottom: 1px solid rgba(226, 232, 240, .95);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(226, 232, 240, .95);
    background: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-title {
    font-weight: 900;
}

.footer-muted {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--text);
}

/* Mobile */
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        position: absolute;
        right: 18px;
        top: 60px;
        flex-direction: column;
        background: rgba(255, 255, 255, .96);
        border: 1px solid rgba(226, 232, 240, .95);
        padding: 10px;
        border-radius: 14px;
        width: 220px;
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .hero-wide {
        min-height: 78vh;
        padding: 34px 0 36px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-h1 {
        font-size: 34px;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 190px;
    }

    .gallery-masonry .g.big {
        grid-row: auto;
        grid-column: auto;
        min-height: 220px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .grid3 {
        grid-template-columns: 1fr;
    }

    .grid2 {
        grid-template-columns: 1fr;
    }
}

/* ===== Bigger, cleaner image style ===== */

/* Make page more scroll-friendly */
.section {
    padding: 64px 0;
}

.section.soft {
    padding: 72px 0;
}

/* HERO: bigger + more cinematic */
.hero-wide {
    min-height: 86vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* premium 느낌, optional */
}

/* Stronger overlay for readable text */
.hero-overlay {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, .20), rgba(2, 6, 23, .72));
}

/* Bigger hero text spacing */
.hero-h1 {
    font-size: 52px;
}

.hero-p {
    font-size: 16.5px;
}

/* Floating card: slightly bigger */
.search-card {
    padding: 18px;
    border-radius: 20px;
}

/* Gallery: bigger tiles */
.gallery-masonry {
    grid-auto-rows: 210px;
    gap: 16px;
}

.gallery-masonry .g {
    border-radius: 22px;
    overflow: hidden;
    transform: translateZ(0);
}

.gallery-masonry .g.big {
    min-height: 436px;
}

/* Nice hover animation */
.gallery-masonry .g:hover {
    transform: translateY(-2px);
    transition: .18s ease;
    box-shadow: 0 18px 50px rgba(2, 6, 23, .14);
}

/* Features: bigger cards for more scroll content */
.feature {
    border-radius: 20px;
    padding: 18px;
}

/* Mobile fix: don't use fixed background on phones */
@media (max-width: 900px) {
    .hero-wide {
        min-height: 78vh;
        background-attachment: scroll;
    }

    .hero-h1 {
        font-size: 36px;
    }

    .gallery-masonry {
        grid-auto-rows: 200px;
    }

    .gallery-masonry .g.big {
        min-height: 240px;
    }
}

/* ===== Rooms & Rates (Weego-like) ===== */

.page-hero {
    position: relative;
    min-height: 44vh;
    background-size: cover;
    background-position: center;
    padding: 42px 0;
    display: flex;
    align-items: flex-end;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, .18), rgba(2, 6, 23, .70));
}

.page-hero-content {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-hero-title {
    color: #fff;
    margin: 10px 0 8px;
    font-size: 38px;
    letter-spacing: -.3px;
}

.page-hero-sub {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    max-width: 60ch;
    line-height: 1.7;
}

/* mini bar */
.mini-bar {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.mini-item {
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(14, 165, 164, .08);
    border: 1px solid rgba(14, 165, 164, .18);
}

.mini-k {
    font-size: 12px;
    color: #0b5f5e;
    font-weight: 800;
}

.mini-v {
    font-size: 14px;
    font-weight: 900;
    margin-top: 2px;
}

/* header row */
.rooms-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rooms-actions {
    display: flex;
    gap: 10px;
}

/* big room cards */
.rooms-grid {
    display: grid;
    gap: 18px;
}

.roomx {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow2);
}

.roomx:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    transition: .18s ease;
}

.roomx-photo {
    min-height: 340px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.roomx-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .40);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.roomx-body {
    padding: 18px;
}

.roomx-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.roomx-title {
    font-weight: 950;
    font-size: 18px;
}

.roomx-desc {
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.6;
}

.roomx-price {
    text-align: right;
    background: rgba(14, 165, 164, .08);
    border: 1px solid rgba(14, 165, 164, .18);
    padding: 10px 12px;
    border-radius: 16px;
    min-width: 150px;
}

.roomx-price-label {
    font-size: 12px;
    color: #0b5f5e;
    font-weight: 800;
}

.roomx-price-num {
    font-size: 20px;
    font-weight: 950;
    margin-top: 2px;
}

.roomx-divider {
    height: 1px;
    background: rgba(226, 232, 240, .95);
    margin: 16px 0;
}

.roomx-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, .95);
    color: #0f172a;
    font-weight: 750;
    font-size: 13px;
}

.roomx-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 900px) {
    .page-hero {
        min-height: 38vh;
    }

    .page-hero-title {
        font-size: 28px;
    }

    .mini-bar {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .roomx {
        grid-template-columns: 1fr;
    }

    .roomx-photo {
        min-height: 240px;
    }

    .roomx-price {
        text-align: left;
        min-width: unset;
    }
}

/* ===== Availability UI ===== */
.date-status {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .3px;
}

.date-status.good {
    color: #0f766e;
}

.date-status.bad {
    color: #b91c1c;
}

.date-status.muted {
    color: #475569;
}

.blocked-wrap {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: rgba(255, 255, 255, .7);
}

.blocked-title {
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 10px;
}

.blocked-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bd-chip {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(185, 28, 28, .08);
    border: 1px solid rgba(185, 28, 28, .18);
    color: #7f1d1d;
    font-weight: 800;
    font-size: 12px;
}

/* Flatpickr tweaks */
.flatpickr-calendar {
    border-radius: 16px !important;
    box-shadow: 0 18px 45px rgba(2, 6, 23, .12) !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #0ea5a4 !important;
    border-color: #0ea5a4 !important;
}

.flatpickr-day.today {
    border-color: rgba(14, 165, 164, .55) !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: rgba(100, 116, 139, .45) !important;
}

/* ===== Availability Panel + Skeleton + Month List ===== */

.availability-panel {
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(14, 165, 164, .06), rgba(14, 165, 164, .03));
    border: 1px solid rgba(14, 165, 164, .15);
    box-shadow: 0 8px 24px rgba(2, 6, 23, .05);
    transition: all .2s ease;
}

.availability-panel:hover {
    box-shadow: 0 12px 30px rgba(2, 6, 23, .08);
}

.avail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(100, 116, 139, .25);
    border-top-color: rgba(14, 165, 164, .9);
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton-wrap {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.sk {
    border-radius: 12px;
    background: linear-gradient(90deg,
            rgba(226, 232, 240, .5),
            rgba(226, 232, 240, .2),
            rgba(226, 232, 240, .5));
    background-size: 200% 100%;
    animation: shimmer 1.2s ease infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.sk-line {
    height: 14px;
    width: 70%;
}

.sk-chip {
    height: 30px;
    width: 40%;
}

.month-wrap {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(15, 23, 42, .15);
}

.month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.month-title {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.month-title::before {
    content: "📅";
    font-size: 15px;
}

.month-sub {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.month-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.month-empty {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(14, 165, 164, .08);
    border: 1px solid rgba(14, 165, 164, .18);
    color: #0f766e;
    font-weight: 700;
    font-size: 13px;
}

/* reuse from earlier chips */
.bd-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #fca5a5;
    color: #7f1d1d;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(185, 28, 28, .12);
    transition: all .15s ease;
}

.bd-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(185, 28, 28, .18);
}

/* Date status colors */
.date-status {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .3px;
}

.date-status.good {
    color: #0f766e;
}

.date-status.bad {
    color: #b91c1c;
}

.date-status.muted {
    color: #475569;
}

/* ===== Resort Info Page ===== */
.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, .95);
}

.info-row:last-child {
    border-bottom: 0;
}

.info-k {
    color: var(--muted);
    font-weight: 800;
}

.info-v {
    font-weight: 750;
    text-align: right;
}

.rate-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.rate-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow2);
}

.rate-title {
    font-weight: 950;
    margin-bottom: 10px;
}

.rate-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, .95);
    color: #0f172a;
}

.rate-line:last-child {
    border-bottom: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 900px) {
    .rate-grid {
        grid-template-columns: 1fr;
    }

    .info-v {
        text-align: left;
    }
}

/* ===== Policy Summary Card ===== */
.policy-card {
    position: sticky;
    top: 92px;
    /* below your sticky header */
    align-self: start;
}

.policy-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--text);
    line-height: 1.65;
}

.policy-list li {
    color: #0f172a;
}

.policy-list b {
    font-weight: 950;
}

.policy-note {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: rgba(14, 165, 164, .06);
    color: #0f766e;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.5;
}

/* Mobile: remove sticky so it scrolls naturally */
@media (max-width: 900px) {
    .policy-card {
        position: static;
        top: auto;
    }
}

.copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ===== Improved Payment Page ===== */
.payment-summary-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 164, .08), rgba(14, 165, 164, .03));
    border: 1px solid rgba(14, 165, 164, .14);
}

.pay-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #0f172a;
}

.pay-line.highlight {
    padding-top: 10px;
    border-top: 1px dashed rgba(15, 23, 42, .12);
    font-size: 15px;
}

.proof-preview-wrap {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #fff;
}

.proof-preview {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 420px;
}

.payment-guide {
    padding: 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, .9);
    border: 1px solid rgba(226, 232, 240, .95);
}

.guide-title {
    font-weight: 900;
    font-size: 14px;
    color: #0f172a;
}

.upload-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.success-alert {
    border-color: rgba(34, 197, 94, .25) !important;
    background: rgba(34, 197, 94, .06) !important;
}

@media (max-width: 900px) {
    .upload-actions {
        flex-direction: column;
    }

    .upload-actions .btn {
        width: 100%;
    }
}

.track-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.track-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .18);
    color: #15803d;
    font-weight: 900;
    font-size: 12px;
}

.live-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulseLive 1.2s infinite;
}

@keyframes pulseLive {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: .65;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    filter: brightness(1.05);
}

.row-cancelled {
    opacity: 0.75;
    background: rgba(239, 68, 68, .04);
}

/* ===== Admin Calendar ===== */
.calendar-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #0f172a;
    font-size: 13px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot.pending {
    background: #f59e0b;
}

.legend-dot.confirmed {
    background: #22c55e;
}

.legend-dot.cancelled {
    background: #ef4444;
}

#adminCalendar {
    min-height: 720px;
}

.fc .fc-toolbar-title {
    font-size: 20px;
    font-weight: 950;
}

.fc .fc-button {
    background: #0ea5a4 !important;
    border-color: #0ea5a4 !important;
    box-shadow: none !important;
}

.fc .fc-button:hover {
    filter: brightness(1.05);
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: #0b8a89 !important;
    border-color: #0b8a89 !important;
}

.fc .fc-daygrid-event {
    border-radius: 8px;
    padding: 2px 6px;
    font-weight: 700;
    font-size: 12px;
}

/* modal */
.event-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-modal-box {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 20px 50px rgba(2, 6, 23, .18);
    padding: 18px;
}

.event-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.legend-dot.owner-event {
    background: #8b5cf6;
}

.legend-dot.maintenance {
    background: #f97316;
}

.legend-dot.private-use {
    background: #0ea5a4;
}

.legend-dot.closed {
    background: #ef4444;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    filter: brightness(1.05);
}

/* ===== Track Booking Page ===== */
.track-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.track-empty-state {
    text-align: center;
    padding: 22px 12px;
}

.track-empty-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

.track-empty-title {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 6px;
}

.copy-code-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.copy-code-value {
    font-size: 20px;
    font-weight: 950;
    letter-spacing: .4px;
    margin-top: 4px;
}

.track-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.track-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .18);
    color: #15803d;
    font-weight: 900;
    font-size: 12px;
}

.live-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulseLive 1.2s infinite;
}

@keyframes pulseLive {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: .65;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Improved Admin Calendar Layout ===== */
.calendar-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.calendar-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-calendar-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-calendar-sidebar {
    display: grid;
    gap: 16px;
}

.sidebar-card {
    border-radius: 20px;
}

.sidebar-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.calendar-main-card {
    border-radius: 22px;
    min-height: 820px;
}

.calendar-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 164, .08);
    border: 1px solid rgba(14, 165, 164, .18);
    color: #0f766e;
    font-weight: 900;
    font-size: 12px;
}

.calendar-head-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0ea5a4;
    animation: pulseLive 1.2s infinite;
}

.compact-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

#adminCalendar {
    min-height: 760px;
}

/* FullCalendar polish */
.fc {
    --fc-border-color: rgba(226, 232, 240, .95);
    --fc-neutral-bg-color: #f8fafc;
    --fc-page-bg-color: #fff;
    --fc-list-event-hover-bg-color: #f8fafc;
}

.fc .fc-toolbar {
    margin-bottom: 1.25rem !important;
}

.fc .fc-toolbar-title {
    font-size: 22px;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -.2px;
}

.fc .fc-button {
    background: #0ea5a4 !important;
    border-color: #0ea5a4 !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    padding: .5rem .8rem !important;
    font-weight: 800 !important;
}

.fc .fc-button:hover {
    filter: brightness(1.04);
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: #0b8a89 !important;
    border-color: #0b8a89 !important;
}

.fc .fc-daygrid-day-number,
.fc .fc-col-header-cell-cushion {
    color: #0f172a;
    font-weight: 800;
    text-decoration: none !important;
}

.fc .fc-day-today {
    background: rgba(14, 165, 164, .06) !important;
}

.fc .fc-highlight {
    background: rgba(14, 165, 164, .14) !important;
    border: 1px dashed rgba(14, 165, 164, .35);
}

.fc .fc-daygrid-event {
    border-radius: 10px;
    padding: 3px 7px;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(2, 6, 23, .08);
}

.fc .fc-scrollgrid {
    border-radius: 18px;
    overflow: hidden;
}

.fc .fc-list {
    border-radius: 16px;
    overflow: hidden;
}

/* Better modal */
.improved-modal-box {
    max-width: 760px;
    border-radius: 22px;
    padding: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
    .admin-calendar-grid {
        grid-template-columns: 1fr;
    }

    .calendar-main-card {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    #adminCalendar {
        min-height: 620px;
    }
}

/* ===== MODAL OVERLAY ===== */

.event-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9999;
}

/* active modal */
.event-modal.show {
    opacity: 1;
    visibility: visible;
}

/* modal box */

.event-modal-box {
    width: min(680px, 92%);
    max-height: 85vh;
    overflow: auto;

    background: #fff;
    border-radius: 18px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .25),
        0 5px 15px rgba(0, 0, 0, .1);

    transform: scale(.92);
    transition: transform .25s ease;
}

/* pop animation */

.event-modal.show .event-modal-box {
    transform: scale(1);
}

/* modal header */

.event-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* smooth scrollbar */

.event-modal-box::-webkit-scrollbar {
    width: 8px;
}

.event-modal-box::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 8px;
}

.event-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9999;
}

.event-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.event-modal-box {
    width: min(680px, 92%);
    max-height: 85vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25), 0 5px 15px rgba(0, 0, 0, .1);
    padding: 20px;
    transform: scale(.92);
    transition: transform .25s ease;
}

.event-modal.show .event-modal-box {
    transform: scale(1);
}

.event-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ===== FIXED POPUP MODALS ===== */
.event-modal {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(15, 23, 42, .45) !important;
    backdrop-filter: blur(4px) !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .22s ease, visibility .22s ease;
    z-index: 999999 !important;
}

.event-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.event-modal-box {
    width: min(720px, 92vw) !important;
    max-height: 85vh !important;
    overflow: auto !important;
    background: #fff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    box-shadow: 0 30px 70px rgba(2, 6, 23, .28) !important;
    padding: 20px !important;

    transform: scale(.94);
    transition: transform .22s ease;
    position: relative !important;
}

.event-modal.show .event-modal-box {
    transform: scale(1);
}

.event-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}