@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --tsel-red: #e4002b;
    --tsel-red-dark: #b3001f;
    --tsel-red-light: #ff4d6a;
    --tsel-gold: #a8720a;
    --tsel-gold-soft: #fff4d6;
    --tsel-gray-900: #1a1a1a;
    --tsel-gray-700: #4a4a4a;
    --tsel-gray-500: #767676;
    --tsel-gray-200: #ececec;
    --tsel-gray-100: #f7f7f8;
    --tsel-white: #ffffff;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(60,10,20,.06);
    --shadow-md: 0 8px 24px rgba(60,10,20,.09);
    --header-h: 56px;
    --toolbar-h: 108px;
    --font-display: 'Plus Jakarta Sans', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    font-family: var(--font-display);
    background: var(--tsel-gray-100);
    color: var(--tsel-gray-900);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2.5px solid var(--tsel-red); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ============ TOP CITY BAR (selalu di atas, tidak ikut scroll) ============ */
/* Default (desktop/laptop): blok atas ikut scroll seperti biasa */
.app-fixed-top {
    position: relative;
    background: #fff;
}
.app-scroll-content {
    background: var(--tsel-gray-100);
    border-radius: 0;
    position: relative;
    z-index: 1;
    min-height: 60vh;
}

/* Desktop/laptop: blok atas ikut scroll normal, jadi margin dikunci 0 */
@media (min-width: 721px) {
    .app-scroll-content {
        margin-top: 0 !important;
    }
}

/* Khusus HP/layar sempit: blok atas jadi fixed, tidak ikut scroll.
   margin-top DIISI oleh JS (syncScrollOffset) sesuai tinggi header asli,
   jadi jangan dikunci dengan !important di sini. */
@media (max-width: 720px) {
    .app-fixed-top {
        position: fixed; top: 0; left: 0; right: 0; z-index: 80;
        box-shadow: 0 4px 16px rgba(60,10,20,.10);
    }
    .app-scroll-content {
        border-radius: 18px 18px 0 0;
    }
}
.city-bar {
    position: relative; z-index: 60;
    background: #fff;
    color: var(--tsel-gray-900);
    min-height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px;
    box-shadow: 0 2px 10px rgba(60,10,20,.08);
    border-bottom: 1px solid var(--tsel-gray-200);
}
.city-bar .brand {
    display: flex; align-items: center; gap: 9px;
    font-weight: 800; font-size: 17px; letter-spacing: -.2px;
    color: var(--tsel-gray-900);
}
.brand-logo {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(155deg, var(--tsel-red) 0%, var(--tsel-red-dark) 100%);
    box-shadow: 0 4px 10px rgba(228,0,43,.3);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 15px;
}
.brand-name { line-height: 1.1; }
.city-select-wrap { position: relative; }
.city-select-btn {
    display: flex; align-items: center; gap: 6px;
    background: var(--tsel-gray-100);
    border: 1px solid var(--tsel-gray-200);
    color: var(--tsel-gray-900); padding: 7px 12px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600;
    transition: background .15s ease, border-color .15s ease;
}
.city-select-btn:hover { background: #fdeaea; border-color: #f3c9d0; }
.city-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: #fff; color: var(--tsel-gray-900);
    border-radius: 12px; box-shadow: var(--shadow-md);
    min-width: 200px; max-height: 320px; overflow-y: auto; z-index: 70;
    animation: dropdownPop .16s ease both;
}
@keyframes dropdownPop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.city-dropdown.open { display: block; }
.city-dropdown a {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 16px; font-size: 14px; font-weight: 500;
    border-bottom: 1px solid var(--tsel-gray-100);
}
.city-dropdown a:last-child { border-bottom: none; }
.city-dropdown a:hover { background: var(--tsel-gray-100); }
.city-dropdown a.active { color: var(--tsel-red); font-weight: 700; }

/* ============ HERO / COVER ============ */
.hero-cover {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tsel-gray-200) 0%, var(--tsel-gray-100) 100%);
    transition: height .4s ease;
}
.hero-cover .track {
    display: flex;
    transition: transform .5s ease-in-out;
}
.hero-cover .slide {
    flex: 0 0 100%;
    width: 100%;
}
.hero-cover .slide img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-cover::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
    background: linear-gradient(to top, rgba(0,0,0,.32), rgba(0,0,0,0));
    pointer-events: none;
}
.hero-cover .dots {
    position: absolute; bottom: 14px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px; z-index: 5;
}
.hero-cover .dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.5);
    transition: all .25s ease;
}
.hero-cover .dots span.active { background: #fff; width: 20px; border-radius: 4px; }
.hero-cover.empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--tsel-gray-700); font-weight: 700; font-size: 18px; text-align: center;
    min-height: 140px;
    position: relative;
    background: linear-gradient(150deg, #fdeef0 0%, var(--tsel-gray-100) 100%);
}
.hero-cover.empty::before {
    content: "";
    position: absolute; left: 8%; top: 20%; width: 8px; height: 8px; border-radius: 50%;
    background: var(--tsel-gold-soft);
    box-shadow:
        18px 40px 0 -1px rgba(228,0,43,.18),
        70% 15px 0 -2px rgba(228,0,43,.12),
        60px 55px 0 -1px rgba(168,114,10,.22),
        88% 60px 0 -2px rgba(228,0,43,.15);
}

/* ============ STICKY TOOLBAR: search + kategori (tidak ikut scroll) ============ */
.toolbar {
    position: relative; z-index: 50;
    background: #fff;
    padding: 12px 16px 12px;
}
.search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--tsel-gray-100);
    border: 1px solid var(--tsel-gray-200);
    border-radius: 999px; padding: 10px 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box:focus-within {
    border-color: var(--tsel-red-light);
    box-shadow: 0 0 0 3px rgba(228,0,43,.08);
}
.search-box svg { flex-shrink: 0; color: var(--tsel-gray-500); }
.search-box input {
    border: none; background: transparent; outline: none;
    width: 100%; font-size: 14px; color: var(--tsel-gray-900);
}
.category-scroll-wrap {
    position: relative;
    margin-top: 12px;
    background: var(--tsel-gray-100);
    border-radius: 14px;
    padding: 8px 2px 8px 10px;
}
.category-scroll {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 2px 4px 2px 0; scrollbar-width: none;
    scroll-behavior: smooth;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-scroll-wrap::after {
    content: '';
    position: absolute; top: 8px; right: 2px; bottom: 8px;
    width: 36px;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(247,247,248,0), var(--tsel-gray-100) 65%);
    pointer-events: none;
    z-index: 2;
}
.scroll-arrow {
    position: absolute; right: 2px; top: 0; bottom: 6px;
    display: flex; align-items: center; justify-content: center;
    width: 26px;
    z-index: 3;
    pointer-events: none;
    color: var(--tsel-red);
    animation: scrollHint 1.4s ease-in-out infinite;
}
.scroll-arrow.hidden { display: none; }
@keyframes scrollHint {
    0%, 100% { transform: translateX(0); opacity: .55; }
    50% { transform: translateX(4px); opacity: 1; }
}
.chip {
    flex-shrink: 0;
    display: flex; align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid transparent;
    font-size: 13px; font-weight: 700;
    color: var(--tsel-gray-700);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(60,10,20,.05);
    transition: all .18s ease;
}
.chip:hover {
    border-color: var(--tsel-red-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(228,0,43,.12);
}
.chip.active {
    background: linear-gradient(135deg, var(--tsel-red), var(--tsel-red-dark));
    border-color: var(--tsel-red-dark);
    color: #fff;
    box-shadow: 0 6px 16px rgba(228,0,43,.35);
}

.location-note {
    font-size: 12.5px; color: var(--tsel-gray-500);
    padding: 10px 16px 0; display: flex; align-items: center; gap: 6px;
}
.location-note.hidden { display: none; }
.location-note.done { color: var(--tsel-red); font-weight: 600; }

/* ============ SECTION: MERCHANT TERDEKAT (scroll horizontal) ============ */
.nearest-wrap {
    margin: 14px 0 2px;
    animation: cardFadeIn .3s ease both;
}
.nearest-title {
    padding: 0 16px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--tsel-gray-900);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.nearest-scroll {
    display: flex; gap: 12px;
    overflow-x: auto;
    padding: 2px 16px 6px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.nearest-scroll::-webkit-scrollbar { display: none; }
.nearest-scroll .card {
    flex: 0 0 148px;
    width: 148px;
}
.nearest-scroll .card .name { font-size: 13px; min-height: 34px; }
@media (min-width: 720px) {
    .nearest-scroll .card { flex: 0 0 190px; width: 190px; }
    .nearest-scroll .card .name { font-size: 14px; min-height: 38px; }
}

/* ============ GRID MERCHANT ============ */
.merchant-count { padding: 18px 16px 4px; font-size: 13px; color: var(--tsel-gray-500); font-weight: 600; }
.merchant-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; padding: 8px 16px 32px;
}
@media (max-width: 400px) {
    .merchant-grid { gap: 8px; padding: 8px 10px 28px; }
    .card .body { padding: 10px 10px 11px; gap: 6px; }
    .card .points { font-size: 10.5px; padding: 4px 7px; }
    .card .gmaps-link { font-size: 10.5px; padding: 4px 6px; }
    .card .distance-badge { font-size: 9px; padding: 3px 7px; }
    .card .badge-discount { font-size: 9.5px; padding: 4px 8px; max-width: 62%; }
}
@media (min-width: 720px) {
    .merchant-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 12px 24px 40px; }
}
@media (min-width: 1080px) {
    .merchant-grid { grid-template-columns: repeat(4, 1fr); }
    .toolbar, .city-bar { padding-left: 24px; padding-right: 24px; }
}

.card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(60,10,20,.07);
    border: 1px solid var(--tsel-gray-200);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
}
.card > * { flex-shrink: 0; }
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(60,10,20,.12);
    border-color: #f3c9d0;
}
.card:active { transform: translateY(-1px) scale(.99); }

.card .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--tsel-gray-200), #e4e4e4);
    overflow: hidden;
}
.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.card:hover .thumb img { transform: scale(1.05); }

.card .thumb-top-row {
    position: absolute; top: 9px; left: 9px; right: 9px;
    display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between;
    gap: 5px;
    pointer-events: none;
}
.card .badge-discount {
    background: linear-gradient(155deg, var(--tsel-red) 0%, var(--tsel-red-dark) 100%);
    color: #fff;
    font-size: 10.5px; font-weight: 800;
    line-height: 1.3;
    padding: 5px 9px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(228,0,43,.45);
    letter-spacing: .1px;
    white-space: normal;
    word-break: break-word;
    text-align: right;
    max-width: 58%;
    flex-shrink: 1;
    margin-left: auto;
}
.card .distance-badge {
    background: transparent;
    color: var(--tsel-red);
    font-size: 10.5px; font-weight: 700;
    padding: 0;
    border-radius: 0;
    display: inline-flex; align-items: center; gap: 3px;
    white-space: nowrap;
}

.card .body {
    padding: 12px 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.card .cat {
    font-size: 10px;
    font-weight: 800;
    color: var(--tsel-red);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.card .name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tsel-gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.card .city {
    font-size: 11.5px;
    color: var(--tsel-gray-500);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.card .footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    row-gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--tsel-gray-200);
}
.card .points {
    font-size: 11px;
    font-weight: 800;
    color: var(--tsel-gold);
    background: var(--tsel-gold-soft);
    padding: 5px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.card .gmaps-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--tsel-red);
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 8px;
    border-radius: 8px;
    transition: background .15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.card .gmaps-link:hover { background: #fdeaea; }

.empty-state {
    text-align: center; padding: 60px 20px; color: var(--tsel-gray-500);
}
.empty-state .icon { font-size: 40px; margin-bottom: 10px; }

/* ============ SKELETON LOADING ============ */
.skeleton-shimmer {
    background: linear-gradient(90deg, var(--tsel-gray-200) 25%, #f2f2f2 37%, var(--tsel-gray-200) 63%);
    background-size: 400% 100%;
    animation: skeletonShine 1.4s ease infinite;
}
@keyframes skeletonShine {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
.skeleton-card { pointer-events: none; border-color: var(--tsel-gray-200) !important; }
.skeleton-card:hover { transform: none; box-shadow: 0 1px 3px rgba(60,10,20,.07); }
.skeleton-line { height: 10px; border-radius: 6px; margin-bottom: 6px; }

/* ============ ANIMASI FADE-IN CARD ============ */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.card.fade-in { animation: cardFadeIn .35s ease both; }

/* ============ SORT SELECT ============ */
.merchant-count-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 18px 16px 4px;
}
.merchant-count-row .merchant-count { padding: 0; flex: 1; min-width: 0; }
.sort-select {
    flex-shrink: 0;
    border: 1px solid var(--tsel-gray-200);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12.5px; font-weight: 700;
    color: var(--tsel-gray-700);
    background: #fff;
    outline: none;
    transition: border-color .15s ease;
}
.sort-select:hover { border-color: var(--tsel-red-light); }

/* ============ FOOTER ============ */
.app-footer {
    text-align: center;
    padding: 30px 20px 38px;
    border-top: 1px solid var(--tsel-gray-200);
    margin-top: 8px;
}
.app-footer-brand {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 800; font-size: 16px; letter-spacing: -.2px; color: var(--tsel-gray-900);
}
.app-footer-brand .dot { color: var(--tsel-red); }
.app-footer-text {
    font-size: 12.5px; color: var(--tsel-gray-500);
    margin-top: 6px;
}
.app-footer-copy {
    font-size: 11.5px; color: var(--tsel-gray-500);
    margin-top: 14px; opacity: .8;
}

@media (min-width: 720px) {
    .card .name { font-size: 15px; }
    .card .points, .card .gmaps-link { font-size: 12.5px; }
}

/* ============ MODAL DETAIL MERCHANT (popup) ============ */
.merchant-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(20,5,8,.62);
    z-index: 200;
    align-items: center; justify-content: center;
    padding: 16px;
}
.merchant-modal-overlay.open {
    display: flex;
    animation: overlayFade .18s ease both;
}
@keyframes overlayFade { from { opacity: 0; } to { opacity: 1; } }
.merchant-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%; max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    box-shadow: 0 24px 60px rgba(20,5,8,.4);
    animation: modalPop .2s ease both;
}
@keyframes modalPop {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 12px; right: 12px; z-index: 10;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff; border: none;
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.modal-close:hover { background: rgba(0,0,0,.75); }
.modal-img-wrap { width: 100%; background: var(--tsel-gray-200); overflow: hidden; border-radius: 18px 18px 0 0; }
.modal-img-wrap img { width: 100%; height: auto; display: block; }
.modal-body { padding: 18px 20px 22px; }
.modal-body .cat { font-size: 11px; font-weight: 800; color: var(--tsel-red); text-transform: uppercase; letter-spacing: .5px; }
.modal-body h2 { font-size: 20px; font-weight: 800; margin: 6px 0 6px; line-height: 1.3; letter-spacing: -.2px; }
.modal-city { color: var(--tsel-gray-500); font-size: 13.5px; margin-bottom: 14px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { padding: 9px 15px; border-radius: 10px; font-weight: 700; font-size: 13.5px; }
.pill.points { background: var(--tsel-gold-soft); color: var(--tsel-gold); font-variant-numeric: tabular-nums; }
.pill.discount { background: linear-gradient(155deg, var(--tsel-red), var(--tsel-red-dark)); color: #fff; }
.btn-modal {
    display: block; text-align: center;
    background: linear-gradient(155deg, var(--tsel-red) 0%, var(--tsel-red-dark) 100%);
    color: #fff;
    padding: 13px; border-radius: 12px; font-weight: 700; font-size: 14px;
    box-shadow: 0 8px 18px rgba(228,0,43,.25);
    transition: box-shadow .15s ease, transform .12s ease;
}
.btn-modal:hover { box-shadow: 0 10px 22px rgba(228,0,43,.35); transform: translateY(-1px); }

/* ============ BANNER CARA TUKAR POIN ============ */
.howto-banner {
    margin: 14px 16px 6px;
    padding: 18px 14px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, #fff 0%, var(--tsel-gray-100) 100%);
    border: 1px solid var(--tsel-gray-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.howto-step {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.howto-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(155deg, var(--tsel-red) 0%, var(--tsel-gold) 160%);
    color: #fff;
    font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(228,0,43,.3);
}
.howto-text {
    font-size: 11px;
    color: var(--tsel-gray-700);
    line-height: 1.35;
}
.howto-arrow {
    color: var(--tsel-gray-200);
    font-size: 22px;
    font-weight: 300;
    padding-top: 3px;
    flex-shrink: 0;
}
@media (min-width: 720px) {
    .howto-banner { padding: 20px 24px; }
    .howto-text { font-size: 12.5px; }
    .howto-num { width: 30px; height: 30px; font-size: 14px; }
}

/* ============ TOMBOL SCROLL TO TOP ============ */
.scroll-top-btn {
    position: fixed;
    right: 16px; bottom: 20px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tsel-red), var(--tsel-red-dark));
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(228,0,43,.35);
    z-index: 90;
    opacity: 0;
    transform: translateY(12px) scale(.9);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.scroll-top-btn:hover { box-shadow: 0 10px 24px rgba(228,0,43,.45); }

.pagination { display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding:16px; }
.page-btn { padding:7px 13px; border:1px solid var(--tsel-gray-200); border-radius:9px; text-decoration:none; color:var(--tsel-gray-700); font-size:13.5px; font-weight:700; transition: background .15s ease, color .15s ease; }
.page-btn:hover { background: #fdeaea; color: var(--tsel-red-dark); }
.page-btn.active { background: linear-gradient(155deg, var(--tsel-red), var(--tsel-red-dark)); color:#fff; border-color: transparent; box-shadow: 0 6px 14px rgba(228,0,43,.28); }
.page-btn.disabled { pointer-events:none; opacity:.4; }
.page-dots { padding:0 4px; color: var(--tsel-gray-500); font-weight: 700; }

.nearest-section {
    margin: 4px 0 20px;
}
.nearest-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    padding: 0 4px;
}
.nearest-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.nearest-scroll::-webkit-scrollbar {
    display: none;
}
.nearest-scroll .card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}
@media (max-width: 480px) {
    .nearest-scroll .card {
        flex-basis: 170px;
    }
}