  /* ---------- Travel Guide: full-bleed map ---------- */
  .main.guide-full { padding: 0; overflow: hidden; }
  .main.guide-full .map-wrap {
    height: 100%;
    min-height: 0;
    border-radius: 0;
    border: none;
  }

  .map-wrap {
    position: relative;
    width: 100%;
    height: calc(100vh - 260px);
    min-height: 460px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
  }

  /* Top floating overlay: toolbar on right */
  .map-top-overlay {
    position: absolute;
    top: 16px; left: 16px; right: 16px;
    z-index: 6;
    display: flex; justify-content: flex-end; align-items: flex-start;
    gap: 12px;
    pointer-events: none;
  }
  .map-top-overlay > * { pointer-events: auto; }
  @media (max-width: 760px) {
    .map-top-overlay { flex-direction: column; align-items: stretch; }
  }

  /* Glass pill styling (Apple-style frosted) */
  .glass {
    background: rgba(255,255,255,0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 24px rgba(15,23,42,0.12), 0 2px 6px rgba(15,23,42,0.06);
  }

  .budget-pill {
    border-radius: 18px;
    padding: 10px 14px 10px 16px;
    display: flex; align-items: center; gap: 14px;
    font-size: 12px;
  }
  .bp-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .bp-label {
    font-size: 10px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  }
  .bp-value { font-size: 14px; font-weight: 700; color: var(--text); }
  .bp-value.over { color: var(--danger); }
  .bp-input {
    border: none; background: transparent; padding: 0; margin: 0;
    font-size: 14px; font-weight: 700; outline: none;
    width: 78px; color: var(--text); font-family: inherit;
  }
  .bp-input:focus { color: var(--brand); }
  .bp-progress {
    height: 3px; background: rgba(15,23,42,0.08);
    border-radius: 99px; overflow: hidden;
    width: 90px; margin-top: 5px;
  }
  .bp-progress-bar {
    height: 100%; background: var(--selected);
    transition: width .25s ease, background-color .25s ease;
  }
  .bp-progress-bar.over { background: var(--danger); }
  .bp-divider {
    width: 1px; height: 30px; background: rgba(15,23,42,0.10);
  }

  .map-toolbar-floating {
    display: flex; gap: 8px; align-items: center;
    flex-wrap: wrap;
  }
  .map-toolbar-floating .chip,
  .map-toolbar-floating .btn {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.12), 0 2px 6px rgba(15,23,42,0.06);
    padding: 9px 14px;
    font-weight: 600; font-size: 13px;
    color: var(--text);
  }
  .map-toolbar-floating .btn.primary {
    background: var(--cta);
    color: white;
    border-color: var(--cta);
  }
  .map-toolbar-floating .btn.primary:hover { background: var(--cta-dark); }
  .map-toolbar-floating .chip:hover { background: rgba(255,255,255,0.95); }
  .map-container {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border-radius: 0; border: none;
    background: var(--bg-soft);
  }
  .map-loading {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: var(--muted); font-size: 13px;
    background: linear-gradient(180deg, #f0f9f8 0%, #f7f7f8 100%);
    pointer-events: none;
    z-index: 2;
  }
  .map-error {
    position: absolute; inset: 0; padding: 24px;
    display: flex; flex-direction: column; gap: 6px;
    align-items: center; justify-content: center; text-align: center;
    color: var(--muted); font-size: 13px;
    z-index: 2;
  }
  .map-error strong { color: var(--text); font-size: 14px; }

  /* ---------- Horizontal card strip overlaid on map ---------- */
  .card-strip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 5;
    padding: 0 14px 14px;
    /* The wrapper itself doesn't intercept clicks — only the cards do — so
       the user can still drag the map between/under the cards. */
    pointer-events: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Gentle gradient so cards look like they're floating above the map */
    background: linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));
  }
  .card-strip::-webkit-scrollbar { display: none; }
  .card-row {
    display: flex; gap: 12px; min-width: max-content;
    padding-top: 6px;
    pointer-events: auto;
  }
  .map-wrap .card-mini {
    width: 200px; flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(15,23,42,0.18), 0 1px 3px rgba(15,23,42,0.10);
    background: white;
    border-radius: 14px;
  }
  /* On mobile the card strip overlays the map; smaller cards leave more map visible */
  @media (max-width: 760px) {
    .card-strip { padding: 0 10px 8px; }
    .map-wrap .card-mini { width: 160px; }
    .map-wrap .card-mini-img-wrap { aspect-ratio: 16 / 11; }
    .map-wrap .card-mini-body { padding: 6px 9px 8px; }
  }
  .map-wrap .card-mini.flash {
    box-shadow: 0 6px 22px rgba(14,165,164,0.45), 0 0 0 4px var(--brand-soft);
  }
  .map-wrap .card-mini-img-wrap {
    aspect-ratio: 4 / 3;
  }
  .map-wrap .card-mini-body { padding: 8px 10px 10px; }
  .map-wrap .card-mini-title { font-size: 13px; }
  .map-wrap .card-mini-desc { font-size: 11px; }
  .map-wrap .card-mini-cat { font-size: 10px; margin-bottom: 1px; }
  .map-wrap .card-mini-cat svg { width: 11px; height: 11px; }
  .map-wrap .card-mini-price { padding: 3px 9px; font-size: 11px; }

  /* Hint shown inside the card strip when nothing is in the current viewport */
  .map-no-visible {
    background: rgba(255,255,255,0.9);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 0 14px;
    font-size: 13px; color: var(--muted);
    text-align: center;
    box-shadow: 0 6px 18px rgba(15,23,42,0.14);
    pointer-events: auto;
  }
  .map-no-visible strong { color: var(--text); }

  /* Tiny "no spots yet" hint that floats over an empty map */
  .map-empty-hint {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    font-size: 13px; color: var(--muted);
    text-align: center;
  }
  .map-empty-hint strong { color: var(--text); display: block; margin-bottom: 2px; }
  /* Two-path empty state (Build It Yourself / Unlock a Guide) */
  .path-cards { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 14px max(16px, calc(env(safe-area-inset-bottom) + 12px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
  .path-intro { padding: 0 2px 2px; }
  .path-intro strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); text-shadow: 0 1px 10px rgba(255,255,255,0.85); }
  .path-intro span { font-size: 13px; color: var(--ink); opacity: 0.8; text-shadow: 0 1px 8px rgba(255,255,255,0.9); }
  .path-card { pointer-events: auto; display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 15px; cursor: pointer; box-shadow: 0 8px 22px rgba(15,23,42,0.20), 0 1px 3px rgba(15,23,42,0.10); font-family: var(--font-body); }
  .path-card:hover:not([disabled]) { border-color: var(--brand); }
  .path-card[disabled] { cursor: default; opacity: 0.9; }
  .path-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
  .path-ico svg { width: 22px; height: 22px; }
  .path-card.is-soon .path-ico { background: var(--bg-soft-2); color: var(--muted); }
  .path-text { flex: 1; min-width: 0; }
  .path-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text); }
  .path-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
  .path-badge { font-family: var(--font-body); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--bg-soft-2); padding: 2px 7px; border-radius: 999px; }
  .path-chev { flex: none; width: 20px; height: 20px; color: var(--muted-2); }
  /* ---- Guide Studio (author mode) ---- */
  .author-view { padding-bottom: 40px; }
  .author-back { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; color: var(--brand); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 0; font-family: var(--font-body); }
  .author-back svg { width: 18px; height: 18px; }
  .author-sub { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 4px 0 16px; }
  .author-new { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border: 1.5px dashed var(--border-strong); border-radius: 14px; background: #fff; color: var(--brand-dark); font-family: var(--font-head); font-weight: 700; font-size: 15px; cursor: pointer; margin-bottom: 16px; }
  .author-new:hover { border-color: var(--brand); }
  .author-new svg { width: 18px; height: 18px; }
  .author-list { display: flex; flex-direction: column; gap: 10px; }
  .author-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 10px; cursor: pointer; box-shadow: 0 2px 8px rgba(15,23,42,0.06); position: relative; }
  .author-card:hover { border-color: var(--brand); }
  .author-card-cover { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--bg-soft-2) center/cover no-repeat; display: grid; place-items: center; color: var(--muted-2); }
  .author-card-cover svg { width: 24px; height: 24px; }
  .author-card-body { flex: 1; min-width: 0; padding-right: 64px; }
  .author-card-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .author-card-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .author-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--bg-soft-2); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
  .author-badge.is-pub { color: #fff; background: var(--brand); }
  .author-card .author-badge { position: absolute; top: 10px; right: 12px; }
  .author-empty { text-align: center; color: var(--muted); padding: 30px 16px; background: #fff; border: 1px dashed var(--border-strong); border-radius: 14px; }
  .author-empty strong { display: block; color: var(--text); margin-bottom: 3px; }
  .author-empty.small { padding: 18px; font-size: 13px; }
  .author-edit-head { display: flex; align-items: center; justify-content: space-between; }
  .author-form { display: flex; flex-direction: column; margin-top: 14px; }
  .af-label { font-size: 13px; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
  .af-label:first-child { margin-top: 0; }
  .author-form textarea.wizard-input { resize: vertical; min-height: 64px; font-family: var(--font-body); line-height: 1.4; }
  .af-price { display: flex; align-items: center; gap: 8px; }
  .af-price > span { font-weight: 700; color: var(--muted); font-size: 16px; }
  .af-price .wizard-input { flex: 1; }
  .author-cover-preview { margin-top: 10px; height: 0; border-radius: 12px; background: center/cover no-repeat var(--bg-soft-2); transition: height .15s ease; }
  .author-cover-preview.has-img { height: 130px; }
  .author-acts { margin-top: 22px; }
  .author-acts-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
  .author-acts-actions { display: flex; align-items: center; gap: 8px; }
  .author-import-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font-family: var(--font-body); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
  .author-import-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
  .author-import-btn svg { width: 15px; height: 15px; }
  .link-btn { border: none; background: none; color: var(--brand); font-weight: 700; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
  .author-section-title { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--text); margin: 0; }
  .author-count { font-size: 13px; color: var(--muted); font-weight: 600; }
  .author-act-list { display: flex; flex-direction: column; gap: 8px; }
  .author-act-card { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 9px 11px; cursor: pointer; }
  .author-act-card:hover { border-color: var(--brand); }
  .author-act-thumb { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--bg-soft-2) center/cover no-repeat; display: grid; place-items: center; color: var(--muted-2); }
  .author-act-thumb svg { width: 20px; height: 20px; }
  .author-act-body { flex: 1; min-width: 0; }
  .author-act-title { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .author-act-meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
  .author-act-addr { font-size: 11.5px; color: var(--muted-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .author-chev { flex: none; width: 18px; height: 18px; color: var(--muted-2); }
  .author-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
  .author-delete { border: none; background: none; color: #dc2626; font-weight: 700; font-size: 14px; cursor: pointer; padding: 10px; font-family: var(--font-body); }
  /* ---- Guide store + unlock ---- */
  .store-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
  .store-card { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 8px rgba(15,23,42,0.06); padding: 0; }
  .store-card:hover { border-color: var(--brand); }
  .store-card-cover { height: 120px; background: var(--bg-soft-2) center/cover no-repeat; }
  .store-card-cover.noimg { background: linear-gradient(135deg, var(--brand-soft), var(--bg-soft-2)); }
  .store-card-body { padding: 12px 14px 14px; }
  .store-card-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); }
  .store-card-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .store-card-foot { margin-top: 8px; }
  .store-price { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--text); }
  .store-owned { font-weight: 700; font-size: 13px; color: var(--brand); }
  .store-hero { height: 180px; border-radius: 16px; background: var(--bg-soft-2) center/cover no-repeat; margin-top: 4px; }
  .store-hero.noimg { background: linear-gradient(135deg, var(--brand-soft), var(--bg-soft-2)); }
  .store-detail-title { font-family: var(--font-head); font-weight: 800; font-size: 23px; letter-spacing: -0.02em; color: var(--text); margin: 16px 0 2px; }
  .store-detail-dest { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
  .store-inside { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 9px; }
  .store-inside li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text); }
  .store-inside li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); }
  .store-inside li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 6px; height: 3px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
  .store-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 8px; }
  .card-mini-guide { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: var(--brand); padding: 3px 7px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
  /* "Building your adventure" unlock transition */
  .building-overlay { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; background: linear-gradient(160deg, #0f2f4a, #112240); opacity: 0; transition: opacity .25s ease; padding: 24px; }
  .building-overlay.show { opacity: 1; }
  .building-inner { text-align: center; color: #fff; max-width: 320px; }
  .building-ico { width: 96px; height: 60px; margin: 0 auto 18px; display: block; }
  .building-inner h2 { font-family: var(--font-head); font-weight: 800; font-size: 24px; margin: 0 0 8px; }
  .building-inner p { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0 0 22px; }
  .building-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.18); overflow: hidden; }
  .building-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--cta); animation: buildingFill 1.3s ease forwards; }
  @keyframes buildingFill { from { width: 0; } to { width: 100%; } }
  .card-mini {
    width: 200px; flex-shrink: 0;
    background: white;
    border-radius: var(--radius);
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  }
  .card-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .card-mini.selected { border-color: var(--selected); }
  .card-mini.flash {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
    animation: flash .25s ease-out;
  }
  @keyframes flash {
    0% { transform: scale(.97); }
    100% { transform: scale(1); }
  }
  .card-mini-img-wrap {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
  }
  .card-mini-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .card-mini-bookmark {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(255,255,255,0.95); border: none; color: var(--text);
    display: grid; place-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  }
  .card-mini-bookmark:hover { background: white; }
  .card-mini-bookmark svg { width: 14px; height: 14px; }
  .card-mini.selected .card-mini-bookmark { background: var(--selected); color: white; }
  .card-mini-price {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(255,255,255,0.95); border-radius: 999px;
    padding: 4px 10px; font-weight: 700; font-size: 12px;
    backdrop-filter: blur(6px);
  }
  .card-mini-price.free { background: #d1fae5; color: #065f46; }
  .card-mini-body { padding: 10px 12px 12px; }
  .card-mini-cat {
    font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px;
    margin-bottom: 2px;
  }
  .card-mini-cat svg { width: 12px; height: 12px; }
  .card-mini-title {
    font-size: 14px; font-weight: 700; margin: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .card-mini-desc {
    font-size: 12px; color: var(--muted); margin: 1px 0 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

