/* ==========================================================================
   RumahKita - custom styles on top of Bootstrap 5 (LTR and RTL)
   ========================================================================== */
:root {
    --brand: #0f766e;
    --brand-600: #0d6961;
    --brand-700: #0b5a53;
    --brand-50: #ecfdf8;
    --brand-100: #ccf4ea;
    --accent: #f59e0b;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f6f8f7;
    --radius: 14px;
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--ink);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color: var(--brand-700);
    --bs-link-hover-color-rgb: 11, 90, 83;
}

body { background: #fff; font-size: .95rem; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.min-w-0 { min-width: 0; }
.text-brand { color: var(--brand) !important; }
.bg-soft { background: var(--soft); }
.fw-semibold { font-weight: 600 !important; }

/* buttons */
.btn { border-radius: 10px; font-weight: 600; }
.btn:hover { text-decoration: none; }
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700);
    --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-brand { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-600); --bs-btn-active-border-color: var(--brand-600); }
.btn-check:checked + .btn-outline-brand { background: var(--brand); color: #fff; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(15,118,110,.15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }
.nav-pills .nav-link { color: var(--ink); border-radius: 999px; }
.nav-pills .nav-link.active { background: var(--brand); }
.page-link { color: var(--brand); }
.active > .page-link, .page-link.active { background: var(--brand); border-color: var(--brand); }

/* navbar */
.site-nav { box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.site-nav .nav-link { font-weight: 600; color: #334155; }
.site-nav .nav-link.active, .site-nav .nav-link:hover { color: var(--brand); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.navbar-brand { color: var(--ink); }
.navbar-brand:hover { text-decoration: none; }

.flash-wrap { position: fixed; top: 76px; inset-inline-end: 16px; z-index: 1080; width: min(420px, calc(100vw - 32px)); }

.avatar-initials { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--brand-100); color: var(--brand-700); font-weight: 700; }

/* hero */
.hero { position: relative; padding: 72px 0 56px; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, rgba(8,47,44,.92), rgba(15,118,110,.78)),
        url("../img/hero.svg") center/cover no-repeat, #0b4f49; }
.hero::after { content: ""; position: absolute; inset-inline-end: -120px; bottom: -160px; width: 520px; height: 520px;
    border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.25), transparent 70%); }
.hero-title { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; }
.hero-sub { font-size: 1.1rem; opacity: .9; max-width: 640px; margin-bottom: 1.5rem; }
.search-box { background: #fff; color: var(--ink); padding: 16px; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.btn-tab { border: 0; border-radius: 999px !important; padding: .35rem 1rem; color: var(--muted); }
.btn-check:checked + .btn-tab { background: var(--brand-50); color: var(--brand); }
.hero-stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-stats span { opacity: .8; font-size: .85rem; }

/* section */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.section-head h2 { font-weight: 800; font-size: 1.45rem; margin: 0; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 2px 0 0; font-size: .9rem; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.type-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 8px;
    border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: .15s; background: #fff; }
.type-tile i { font-size: 1.7rem; color: var(--brand); margin-bottom: 4px; }
.type-tile:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(15,118,110,.12); text-decoration: none; transform: translateY(-2px); }

/* listing cards */
.listing-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: .15s; }
.listing-card:hover { box-shadow: 0 12px 30px rgba(15,23,42,.10); transform: translateY(-2px); }
.listing-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: #e5ece9; overflow: hidden; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.listing-card:hover .listing-thumb img { transform: scale(1.04); }
.thumb-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge-purpose-jual { background: var(--brand); color: #fff; }
.badge-purpose-sewa { background: #7c3aed; color: #fff; }
.fav-form { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; }
.btn-fav { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
    color: #475569; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.btn-fav:hover, .btn-fav.is-fav { color: #e11d48; }
.listing-price { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.listing-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--ink); font-weight: 600; line-height: 1.35; margin: 2px 0 4px; min-height: 2.7em; }
.listing-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: #475569; }
.listing-card .card-footer { border-top: 1px solid var(--line); }

.empty-state { text-align: center; padding: 56px 16px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: 8px; color: #94a3b8; }

/* KPR */
.kpr-result { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpr-result > div { background: var(--brand-50); border-radius: 12px; padding: 10px 14px; }
.kpr-result > div:first-child { grid-column: span 2; background: var(--brand); color: #fff; }
.kpr-result span { display: block; font-size: .78rem; opacity: .8; }
.kpr-result strong { font-size: 1.05rem; }
.kpr-result > div:first-child strong { font-size: 1.5rem; }

/* countries, cities & agencies */
.city-tile { display: flex; flex-direction: column; justify-content: end; height: 120px; padding: 16px; border-radius: var(--radius);
    color: #fff; position: relative; overflow: hidden; }
.city-tile:hover { text-decoration: none; color: #fff; filter: brightness(1.08); }
.city-tile-0 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.city-tile-1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.city-tile-2 { background: linear-gradient(135deg, #9a3412, #f59e0b); }
.city-tile-3 { background: linear-gradient(135deg, #581c87, #a855f7); }
.city-tile small { opacity: .85; }
.agency-tile { display: flex; flex-direction: column; align-items: center; padding: 18px 10px; border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--ink); height: 100%; background: #fff; }
.agency-tile:hover { border-color: var(--brand); text-decoration: none; }
.card-hover { border-radius: var(--radius); transition: .15s; }
.card-hover:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(15,118,110,.1); text-decoration: none; }
.cta-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: linear-gradient(180deg, #fff, var(--brand-50)); }
.cta-card > i { font-size: 1.8rem; color: var(--brand); }

/* filter */
.filter-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 80px; }

/* detail */
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #e5ece9; aspect-ratio: 16 / 8; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(15,23,42,.7); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .8rem; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.gallery-nav.prev { inset-inline-start: 12px; } .gallery-nav.next { inset-inline-end: 12px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; flex: 0 0 96px; height: 68px; background: none; }
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-price { font-size: 1.9rem; font-weight: 800; color: var(--brand); }
.quick-specs { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-specs > div { flex: 1 1 120px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.quick-specs i { color: var(--brand); font-size: 1.2rem; }
.quick-specs span { color: var(--muted); font-size: .78rem; }
.detail-section { border-top: 1px solid var(--line); padding: 24px 0; }
.detail-section h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.description { line-height: 1.75; color: #334155; }
.spec-table > div { padding: 10px 12px; border-bottom: 1px dashed var(--line); gap: 12px; }
.facility { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; top: 84px; box-shadow: 0 10px 30px rgba(15,23,42,.06); background: #fff; }

/* auth */
.auth-card { max-width: 440px; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 12px 40px rgba(15,23,42,.06); }
.auth-card-wide { max-width: 760px; }
.role-option { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; height: 100%;
    border: 2px solid var(--line); border-radius: 14px; padding: 14px 8px; cursor: pointer; transition: .15s; }
.role-option i { font-size: 1.6rem; color: var(--brand); }
.role-option small { color: var(--muted); font-size: .75rem; }
.btn-check:checked + .role-option { border-color: var(--brand); background: var(--brand-50); }

/* dashboard */
.is-dash footer.site-footer { margin-top: 0 !important; }
.dash { padding: 0; }
.dash-side { background: #fff; border-inline-end: 1px solid var(--line); }
@media (min-width: 992px) {
    .dash-side { position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto; }
}
.dash-side .nav-link { display: flex; align-items: center; gap: 10px; color: #334155; border-radius: 10px; padding: .55rem .8rem; font-weight: 500; }
.dash-side .nav-link:hover { background: var(--soft); text-decoration: none; }
.dash-side .nav-link.active { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.dash-header { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; padding: 14px 12px 4px; font-weight: 700; }
.dash-main { background: var(--soft); padding: 28px; min-height: calc(100vh - 62px); }
@media (max-width: 575px) { .dash-main { padding: 18px 12px; } }
.dash-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dash-card > .card-header { background: #fff; font-weight: 700; border-bottom: 1px solid var(--line); padding: 14px 18px; }
.stat-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; height: 100%; transition: .15s; }
a .stat-card:hover { border-color: var(--brand); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.stat-value { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: .78rem; color: var(--muted); }
.bg-brand-soft { background: var(--brand-50); }
.bg-warning-soft { background: #fef3c7; } .text-warning { color: #b45309 !important; }
.bg-primary-soft { background: #dbeafe; }
.bg-info-soft { background: #cffafe; }
.bg-danger-soft { background: #ffe4e6; }
.bg-secondary-soft { background: #f1f5f9; }

/* listing form */
.upload-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed #cbd5e1; border-radius: var(--radius);
    padding: 28px; cursor: pointer; color: #475569; background: #fff; transition: .15s; }
.upload-drop:hover { border-color: var(--brand); color: var(--brand); }
.upload-drop i { font-size: 2rem; }
.photo-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-tools { display: flex; justify-content: space-between; padding: 4px 8px; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(246,248,247,.95); padding: 12px 0; backdrop-filter: blur(4px); }

/* footer */
.site-footer { background: #0b1f1d; color: #a7b4b2; }
.site-footer a { color: #cbd5d3; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 6px; }

/* ---------------------------------------------------------------- i18n / RTL */
body.lang-ar { --bs-body-font-family: "Noto Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }
body.lang-zh { --bs-body-font-family: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
[dir="rtl"] .flip-rtl { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .hero-title { letter-spacing: 0; }
.prefs-menu { min-width: 260px; }
.prefs-menu .dropdown-item.active, .prefs-menu .dropdown-item:active { background: var(--brand); color: #fff; }
.currency-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.currency-grid .dropdown-item { padding: .3rem .4rem; text-align: center; font-size: .8rem; font-weight: 600; }
.price-approx { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.thumb-country { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(15,23,42,.72); color: #fff;
    font-size: .7rem; font-weight: 700; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.country-code { font-size: 1.6rem; font-weight: 800; opacity: .35; line-height: 1; margin-bottom: auto; }
.city-tile { justify-content: space-between; }
.city-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 14px; color: var(--ink); background: #fff; font-size: .9rem; }
.city-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.city-chip i { color: var(--brand); }
/* keep mixed-direction values (prices, areas, codes) readable inside RTL text */
[dir="rtl"] .listing-price, [dir="rtl"] .detail-price, [dir="rtl"] .price-approx, [dir="rtl"] .listing-specs span,
[dir="rtl"] .quick-specs strong, [dir="rtl"] .spec-table span, [dir="rtl"] .kpr-result strong { unicode-bidi: plaintext; }
[dir="rtl"] .listing-price, [dir="rtl"] .detail-price, [dir="rtl"] .price-approx { text-align: right; }

/* ---------------------------------------------------------------- advertising */
.ad-label { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(15,23,42,.72); color: #fff;
    font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.ad-banner { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.ad-banner-img { display: block; position: relative; aspect-ratio: 4 / 1; background: var(--soft); }
.ad-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-banner-caption { display: flex; gap: 6px; align-items: center; padding: 8px 14px; font-size: .82rem; min-width: 0; white-space: nowrap; }
.ad-banner .carousel-control-prev, .ad-banner .carousel-control-next { width: 8%; height: calc(100% - 36px); }
@media (max-width: 575.98px) { .ad-banner-img { aspect-ratio: 3 / 1; } }
.ad-card { border-radius: var(--radius); overflow: hidden; border-color: #f3d48a; background: linear-gradient(180deg, #fff, #fffbeb); }
.ad-card-img { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.ad-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--soft); }
.ad-thumb-banner { width: 160px; height: 40px; }
.placement-option { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: var(--radius);
    padding: 14px; cursor: pointer; height: 100%; }
.btn-check:checked + .placement-option { border-color: var(--brand); background: var(--brand-50); }
.placement-shape { background: var(--brand-100); border-radius: 6px; margin-bottom: 6px; }
.adv-hero { background: linear-gradient(135deg, #0b1f1d, var(--brand-700)); color: #e2f3f0; }
.adv-hero h1 { color: #fff; font-weight: 800; }
.adv-side { background: #0b1f1d; }
.adv-side .nav-link { color: #cbd5d3; }
.adv-side .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.adv-side .nav-link.active { background: var(--brand); color: #fff; }
.adv-side .dash-header { color: #7f918e; }
.partner-head { display: flex; gap: 20px; align-items: center; }
.site-nav .nav-link, .site-nav .btn { white-space: nowrap; }
@media (min-width: 1200px) { .site-nav .navbar-nav .nav-link { padding-inline: .55rem; } }

/* ---------------------------------------------------------------- auctions */
.auction-box { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,.06); top: 80px; }
.auction-price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; unicode-bidi: plaintext; }
.auction-timer { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; background: var(--soft);
    border-radius: 12px; padding: 10px 14px; }
.auction-timer span { font-size: .8rem; color: var(--muted); }
.auction-timer strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; text-align: end; }
.auction-timer small { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; }
[data-countdown] { font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
[data-countdown].is-urgent { color: #dc2626 !important; animation: pulse-urgent 1s ease-in-out infinite; }
@keyframes pulse-urgent { 50% { opacity: .55; } }
.bid-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.bid-list li:last-child { border-bottom: 0; }
.bid-list li.is-top strong { color: var(--brand); }
.bid-list li.is-mine { background: var(--brand-50); margin: 0 -8px; padding-inline: 8px; border-radius: 8px; }
.live-dot { color: #dc2626; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: pulse-urgent 1.2s infinite; }
.auction-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 160px 160px; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.auction-gallery a, .auction-gallery > img { display: block; background: var(--soft); }
.auction-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auction-gallery .is-main { grid-row: 1 / 3; }
@media (max-width: 575.98px) { .auction-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 100px; }
    .auction-gallery .is-main { grid-row: auto; grid-column: 1 / -1; } .auction-gallery a:nth-child(n+4) { display: none; } }
.auction-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
    background: linear-gradient(135deg, #111827, #7f1d1d); color: #fff; text-decoration: none; }
.auction-banner:hover { color: #fff; text-decoration: none; filter: brightness(1.1); }
.auction-banner > i { font-size: 1.6rem; }
.auction-banner small { color: #fecaca; }

/* ---------------------------------------------------------------- projects, units & NUP */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.unit-grid form { margin: 0; }
.unit-tile { display: flex; flex-direction: column; gap: 1px; width: 100%; min-height: 74px; padding: 6px 8px; border-radius: 10px;
    border: 1px solid var(--line); font-size: .78rem; line-height: 1.25; text-align: start; background: #fff; cursor: default; position: relative; }
.unit-tile strong { font-size: .85rem; }
.unit-tile small { color: var(--muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit-tile input[type=checkbox] { position: absolute; top: 6px; inset-inline-end: 6px; }
label.unit-tile { cursor: pointer; }
.unit-tile.is-available { background: #ecfdf5; border-color: #86efac; }
.unit-tile.is-booked { background: #fffbeb; border-color: #fcd34d; }
.unit-tile.is-sold { background: #e5e7eb; border-color: #9ca3af; }
.unit-tile.is-sold strong, .unit-tile.is-booked strong { color: #57534e; }
.unit-tile.is-pickable { cursor: pointer; border-width: 2px; border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.12); transition: .12s; }
.unit-tile.is-pickable:hover { transform: translateY(-2px); background: #dcfce7; }
.unit-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; border: 1px solid; }
.unit-swatch.is-available { background: #ecfdf5; border-color: #86efac; }
.unit-swatch.is-booked { background: #fffbeb; border-color: #fcd34d; }
.unit-swatch.is-sold { background: #e5e7eb; border-color: #9ca3af; }
.turn-box { background: #111827; color: #fff; border-radius: var(--radius); padding: 18px 20px; height: 100%; }
.turn-box.is-mine { background: linear-gradient(135deg, #b91c1c, #7f1d1d); animation: pulse-urgent 1.4s ease-in-out 3; }
.turn-label { font-size: .8rem; opacity: .75; margin-top: 4px; }
.turn-number { font-size: 2.3rem; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.turn-timer { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; }
.queue-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.nup-mini { display: block; border: 1px dashed #94a3b8; border-radius: var(--radius); padding: 14px 16px; background: #fff; transition: .15s; }
.nup-mini:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(15,118,110,.08); }
.nup-mini-number { font-size: 1.5rem; font-weight: 800; letter-spacing: .03em; }
.nup-ticket { max-width: 520px; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 48px rgba(15,23,42,.12); background: #fff; }
.nup-ticket-head { background: linear-gradient(135deg, var(--brand-700), #0b1f1d); color: #fff; padding: 20px 24px; }
.nup-ticket-body { padding: 22px 24px; border-bottom: 2px dashed var(--line); }
.nup-ticket-number { font-size: 3rem; font-weight: 800; letter-spacing: .04em; color: var(--brand); line-height: 1.1; }
.nup-ticket-foot { padding: 16px; background: var(--soft); }
@media print { .site-nav, .site-footer, .dash-side, .dash-main > h1, .flash-wrap { display: none !important; } .dash-main { width: 100% !important; } }
.bg-brand { background-color: var(--brand) !important; color: #fff; }
.turn-box [data-countdown], .turn-box [data-countdown].is-urgent { color: #fff !important; }
.turn-box .turn-timer:has(.is-urgent) { color: #fecaca; }
