@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-var.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
:root {
  --accent: #3ed9cc;
  --nav: #1A293A;
  --ink: #303133;
  --page: #f3f3f3;
  --panel: #f9f9f9;
  --hairline: #e8e8e8;
  --tabbar-h: 70px;
  --font: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 16px; line-height: 24px; color: var(--ink);
  background: var(--page); padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.ic { display: inline-flex; vertical-align: middle; }
.ic svg { width: 100%; height: 100%; }

/* ---------- loading ---------- */
#loader { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--page); z-index: 2000; }
#loader .bars { position: relative; width: 40px; height: 40px; }
#loader .bar { position: absolute; left: 50%; top: 50%; width: 4px; height: 12px; margin: -16px 0 0 -2px; border-radius: 4px; background: rgba(0,0,0,.6); animation: fadebar 1s linear infinite; }
@keyframes fadebar { 0% { opacity: 1; } 100% { opacity: .15; } }

/* ---------- tab bar ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--nav); display: flex;
}
#tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #fff; text-decoration: none;
  font-family: var(--font); font-weight: 700; font-size: 12px; line-height: 18px;
  letter-spacing: .06em; text-transform: uppercase;
}
#tabbar a .ic { width: 24px; height: 24px; }
#tabbar a.active { background: rgba(0,0,0,.3); }
@media (min-width: 1200px) {
  #tabbar { justify-content: center; }
  #tabbar a { flex: 0 0 320px; }
}

/* ---------- teal header ---------- */
.ts-header {
  height: 70px; background: var(--accent); display: flex; align-items: center;
  padding: 0 15px; gap: 0; color: #fff;
}
.ts-header .h-left { display: flex; align-items: center; flex: 1; min-width: 0; }
.ts-header .h-right { display: flex; align-items: center; }
.ts-header .h-avatar {
  width: 45px; height: 45px; border-radius: 50%; border: 2px solid #fff;
  background: var(--nav); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none;
}
.ts-header .h-avatar .ic { width: 24px; height: 24px; }
.ts-header .h-icon {
  width: 24px; height: 24px; margin-left: 10px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none;
}
.ts-header .h-icon .ic { width: 24px; height: 24px; }
.ts-header .h-back { margin-left: 0; margin-right: 10px; }
.ts-header h2 {
  margin: 0; color: #fff; font-weight: 700; font-size: 20px; line-height: 24px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- cover ---------- */
.cover { position: relative; min-height: calc(100svh - var(--tabbar-h) - env(safe-area-inset-bottom)); display: flex; }
.cover-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cover-bg::after { content: ''; position: absolute; inset: 0; background: #000; opacity: .2; }
.cover-translate {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
}
.cover-translate .ic { width: 26px; height: 26px; }
.cover-inner {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 19.5px; color: #fff;
}
.cover-avatar {
  width: 76px; height: 76px; border-radius: 50%; border: 3px solid #fff;
  background: var(--nav); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.cover-avatar .ic { width: 38px; height: 38px; }
.cover-host { font-weight: 700; font-size: 24px; line-height: 36px; margin-bottom: 16px; }
.cover-contacts { display: flex; }
.cover-contact {
  width: 45px; height: 45px; border-radius: 50%; margin: 0 5px;
  border: 2px solid var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cover-contact .ic { width: 24px; height: 24px; }
.cover-divider { width: 40px; height: 2px; background: var(--accent); margin: 8px 0; }
.cover-property { font-weight: 700; font-size: 24px; line-height: 36px; margin-bottom: 8px; }
.cover-addr {
  color: #fff; text-decoration: none; font-size: 16px; line-height: 24px;
  display: flex; align-items: flex-start; gap: 4px;
}
.cover-addr .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); flex: none; }
.cover-cta {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; margin-top: 24px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 12px; line-height: 20px; letter-spacing: .6px; text-transform: uppercase;
  padding: 8px 20px; border: 2px solid var(--accent); border-radius: 4px;
}

/* ---------- iOS A2HS hint ---------- */
#a2hs {
  position: fixed; right: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px);
  z-index: 950; width: 265px; background: #fff; color: var(--ink);
  border-radius: 6px; padding: 14px 34px 14px 14px; font-size: 13.5px; line-height: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
#a2hs::after {
  content: ''; position: absolute; bottom: -8px; right: 46px;
  border: 8px solid transparent; border-top-color: #fff; border-bottom: 0;
}
#a2hs .x { position: absolute; top: 8px; right: 10px; font-size: 15px; color: #666; }

/* ---------- info page ---------- */
.info-wrap { padding: 8px; }
.cat-grid {
  background: var(--panel); border-radius: 4px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
}
.cat-cell {
  padding: 20px; text-align: center; cursor: pointer;
  border-bottom: 1px solid var(--hairline); background: transparent;
}
.cat-cell:nth-child(odd) { border-right: 1px solid var(--hairline); }
.cat-cell .c-ico { color: var(--accent); display: flex; justify-content: center; margin-bottom: 15px; }
.cat-cell .c-ico .ic { width: 35px; height: 35px; }
.cat-cell .c-title { font-size: 16px; line-height: 24px; color: var(--ink); }

/* ---------- category modal ---------- */
.modal-veil { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cat-modal {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 6px;
  padding: 34px 20px 10px; box-shadow: 0 6px 30px rgba(0,0,0,.3);
}
.cat-modal .m-ico {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.cat-modal .m-ico .ic { width: 34px; height: 34px; }
.cat-modal .m-x { position: absolute; top: 10px; right: 12px; color: #666; font-size: 18px; background: none; border: 0; padding: 4px; cursor: pointer; line-height: 0; }
.cat-modal .m-x svg { width: 16px; height: 16px; }
.cat-modal h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.subcat-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 0; border-top: 1px solid var(--hairline);
  font-size: 16px; line-height: 24px; color: var(--ink); text-align: left; text-decoration: none;
}
.subcat-row .ic { width: 20px; height: 20px; color: var(--accent); }

/* ---------- topic collapse items ---------- */
.topics-wrap { padding: 12px; }
.topics-panel { background: #fff; border-radius: 4px; overflow: hidden; }
.t-item + .t-item { border-top: 1px solid var(--hairline); }
.t-head {
  width: calc(100% - 28px); margin: 14px 14px 0; min-height: 75px;
  display: flex; align-items: flex-start; justify-content: space-between;
  background: #fff; padding: 10px 5px 10px 10px; text-align: left;
}
.t-head .t-title {
  font-weight: 700; font-size: 18px; line-height: 27px; color: var(--ink);
  border-bottom: 2px solid transparent; padding-bottom: 4px;
}
.t-item.open .t-head .t-title { border-bottom-color: var(--accent); }
.t-head .t-chev { width: 20px; height: 20px; color: #999; transition: transform .2s; flex: none; margin-left: 8px; }
.t-item.open .t-head .t-chev { transform: rotate(180deg); }
.t-body { padding: 0 0 18px; }
.t-body .t-photo { margin: 15px 0; }
.t-body .t-photo:first-child { margin-top: 0; }
.t-body .t-photo img { width: 100%; height: auto; display: block; }
.t-body .t-html { font-size: 16px; line-height: 28.3px; overflow-wrap: break-word; padding: 8px 16px 0; }
.t-body .map-link-btn { margin-left: 16px; }
.t-body .t-html p { margin: 0 0 16px; }
.t-body .t-html strong, .t-body .t-html b { font-weight: 700; }
.t-body .t-html a { color: var(--accent); }
.t-body .t-html img { max-width: 100%; height: auto; }
.t-body .t-html iframe { max-width: 100%; border: 0; aspect-ratio: 16/9; width: 100%; height: auto; min-height: 200px; }
.t-body .t-html ul, .t-body .t-html ol { padding-left: 40px; margin: 16px 0; }
.t-body .t-html ul { list-style: disc; }
.t-body .t-html ol { list-style: decimal; }
.t-body .t-html table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-body .t-html td, .t-body .t-html th { border: 1px solid #dde5ea; padding: 6px 8px; }
.map-link-btn { display: inline-block; margin-top: 4px; font-weight: 600; }

/* ---------- desktop 2-pane ---------- */
.pane-wrap { display: none; }
@media (min-width: 1200px) {
  .info-wrap, .topics-wrap { display: none; }
  .pane-wrap {
    display: flex; gap: 0; max-width: 1140px; margin: 0 auto; padding: 15px 0 40px;
    align-items: flex-start;
  }
  .pane-cats { width: 475px; flex: none; padding: 0 36.5px; }
  .pane-cats .pc-card {
    background: #fff; border-radius: 4px; box-shadow: 0 0 5px 1px rgba(0,0,0,.1);
    margin-bottom: 15px; padding: 14px; cursor: pointer;
  }
  .pane-cats .pc-head { display: flex; align-items: center; }
  .pane-cats .pc-ico { color: var(--accent); flex: none; margin-right: 16px; display: flex; }
  .pane-cats .pc-ico .ic { width: 32px; height: 32px; }
  .pane-cats .pc-title { flex: 1; font-weight: 500; font-size: 18px; line-height: 28px; color: var(--ink); }
  .pane-cats .pc-chev { width: 20px; height: 20px; color: #999; transition: transform .2s; }
  .pane-cats .pc-card.open .pc-chev { transform: rotate(180deg); }
  .pane-cats .pc-subs { display: none; padding-top: 6px; }
  .pane-cats .pc-card.open .pc-subs { display: block; }
  .pane-cats .pc-sub {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 8px 8px 48px; color: var(--accent); font-size: 16px; line-height: 28px;
    text-decoration: none;
  }
  .pane-cats .pc-sub .ic { width: 18px; height: 18px; }
  .pane-cats .pc-sub.active { color: var(--accent); font-weight: 500; }
  .pane-topics { flex: 1; min-width: 0; padding-right: 0; }
  .pane-topics .ts-header { border-radius: 0; }
  .pane-topics .topics-panel { border-radius: 0; }
}

/* ---------- search ---------- */
.search-view { position: relative; min-height: calc(100svh - var(--tabbar-h) - env(safe-area-inset-bottom)); }
.search-bg { position: fixed; inset: 0 0 var(--tabbar-h) 0; background-size: cover; background-position: center; z-index: 0; }
.search-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.search-inner { position: relative; z-index: 1; padding: 15px; }
.search-input {
  display: flex; align-items: center; background: #fff; border-radius: 4px;
  height: 62px; padding: 1px 11px; box-shadow: inset 0 0 0 1px #dcdfe6;
}
.search-input .ic { width: 24px; height: 24px; color: #909399; margin: 0 8px; flex: none; }
.search-input input {
  flex: 1; border: 0; outline: 0; height: 60px; font-family: var(--font); font-size: 20px; color: var(--ink);
  background: transparent;
}
.search-group-label { color: #e8e8e8; font-size: 15px; font-weight: 500; margin: 22px 2px 10px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.search-results .r-card {
  display: block; background: #fff; border-radius: 4px; padding: 14px 16px; margin-bottom: 10px;
  text-decoration: none; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.15);
  font-size: 16px; line-height: 24px;
}
.search-results mark { background: #ff0; color: inherit; padding: 0; }
.search-results .r-kind { display: block; font-size: 13px; color: #909399; }
.search-none { color: #fff; margin: 26px 4px; font-size: 16px; line-height: 26px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* ---------- map ---------- */
#mapwrap { position: fixed; inset: 0 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom)) 0; z-index: 1; }
#map { width: 100%; height: 100%; }
.map-filter-pill {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 500;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 18px;
  font-weight: 700; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.3); white-space: nowrap;
}
.map-filter-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 600;
  background: #fff; border-radius: 12px 12px 0 0; padding: 16px 18px 20px;
  max-height: 60%; overflow: auto; box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.map-filter-sheet h3 { margin: 0 0 10px; font-size: 17px; }
.map-filter-sheet label { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15.5px; }
.map-filter-sheet input { width: 18px; height: 18px; accent-color: var(--accent); }
.pin {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--nav); border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.4);
  font-size: 16px;
}
.pin span { transform: rotate(45deg); }
.pin.home-pin { background: var(--accent); width: 44px; height: 44px; font-size: 19px; }
.leaflet-popup-content-wrapper { border-radius: 6px; }
.pop-title { font-weight: 700; margin-bottom: 4px; }
.pop-actions { margin-top: 8px; display: flex; gap: 12px; }
.pop-actions a { font-weight: 600; font-size: 13.5px; }

/* ---------- share sheet ---------- */
.share-veil { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1100; }
.share-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1101;
  background: #fff; border-radius: 12px 12px 0 0; padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
}
.share-sheet h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.share-sheet .s-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0;
  font-size: 16px; color: var(--ink); text-decoration: none; text-align: left;
}
.share-sheet .s-row .ic { width: 24px; height: 24px; color: var(--accent); }
.share-sheet .s-x { position: absolute; top: 14px; right: 16px; color: #666; font-size: 18px; }

/* ---------- weather ---------- */
.wx-card { background: var(--panel); border-radius: 4px; padding: 16px; margin: 15px 0; }
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-now .wx-icon { font-size: 42px; }
.wx-now .wx-temp { font-size: 34px; font-weight: 700; }
.wx-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; text-align: center; }
.wx-day { background: #fff; border-radius: 4px; padding: 8px 2px; font-size: 12.5px; }
.wx-day .d-ico { font-size: 20px; display: block; margin: 2px 0; }

/* ---------- translate panel ---------- */
#translate-root { display: none; }
/* hide Google's injected chrome; keep our own UI */
body { top: 0 !important; }
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
#lang-dd {
  position: fixed; top: 62px; right: 12px; z-index: 900; width: 204px;
  max-height: min(70vh, 480px); overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 14px 34px rgba(2,6,23,.28); padding: 6px;
}
#lang-dd .ld-title { font-size: 11px; font-weight: 700; color: #64748b; padding: 8px 10px 4px; text-transform: uppercase; letter-spacing: .05em; }
#lang-dd button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; background: none; border-radius: 10px;
  font: inherit; font-weight: 600; color: #0f172a; text-align: left;
}
#lang-dd button:hover { background: #f1f5f9; }
#lang-dd button.active { color: var(--accent); }
#lang-dd .code { font-weight: 800; min-width: 36px; }
#lang-dd .native { font-weight: 400; color: #64748b; font-size: 13px; }

/* ---------- print ---------- */
.print-all .p-cat { page-break-before: always; }
@media (min-width: 1200px) {
  .t-body .t-html { padding: 8px 16px 0 24px; }
  .t-body .map-link-btn { margin-left: 24px; }
}

@media print {
  #tabbar, .ts-header .h-right, .ts-header .h-back, .cover-translate, #lang-dd, .map-link-btn, #a2hs { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .ts-header { background: #fff; color: #000; border-bottom: 2px solid #000; height: auto; padding: 10px 15px; }
  .ts-header h2 { color: #000; }
}

/* fixes */
#tabbar a .tab-ico { display: flex; width: 24px; height: 24px; }
#tabbar a .tab-ico svg { width: 100%; height: 100%; }
.cover-divider { display: block; }
.t-body { padding: 0 3px 25px; }
@media (min-width: 1200px) {
  .hdr-mobile { display: none; }
  .pane-cats { padding: 0 36.5px 0 0; }
  .pane-cats .ts-header { margin-bottom: 15px; }
}
.cat-cell .c-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- guest assistant chatbot ---------- */
.cb-bubble {
  position: fixed; right: 16px; bottom: 78px; z-index: 1500;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: #17293c; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.cb-bubble svg { width: 26px; height: 26px; }
.cb-panel {
  position: fixed; z-index: 1501; left: 8px; right: 8px; top: 76px; bottom: 146px;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  display: none; flex-direction: column; overflow: hidden;
}
.cb-panel.open { display: flex; }
.cb-head {
  background: #17293c; color: #fff; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; flex: none;
}
.cb-head-t { display: flex; flex-direction: column; line-height: 1.3; }
.cb-head-t strong { font-size: 15px; }
.cb-head-t span { font-size: 11.5px; opacity: .75; }
.cb-close { background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer; padding: 6px; line-height: 1; }
.cb-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: #f4f6f8; }
.cb-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; overflow-wrap: break-word; }
.cb-bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid #e4e9ee; border-bottom-left-radius: 4px; }
.cb-user { align-self: flex-end; background: var(--accent); color: #083038; border-bottom-right-radius: 4px; }
.cb-chip {
  align-self: flex-start; margin-top: 2px; padding: 8px 14px; border-radius: 20px;
  border: 1px solid var(--accent); background: #fff; color: #0a8a80; font-size: 13.5px; cursor: pointer;
}
.cb-typing { display: flex; gap: 4px; }
.cb-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ad; animation: cb-blink 1.2s infinite; }
.cb-typing span:nth-child(2) { animation-delay: .2s; }
.cb-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cb-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.cb-input { flex: none; display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e4e9ee; background: #fff; }
.cb-input input {
  flex: 1; border: 1px solid #d5dde3; border-radius: 22px; padding: 10px 14px;
  font-size: 14.5px; font-family: inherit; outline: none;
}
.cb-input input:focus { border-color: var(--accent); }
.cb-send {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #083038; display: flex; align-items: center; justify-content: center;
}
.cb-send svg { width: 18px; height: 18px; }
@media (min-width: 1200px) {
  .cb-bubble { right: 24px; bottom: 24px; }
  .cb-panel { left: auto; right: 24px; top: auto; bottom: 92px; width: 380px; height: min(600px, 72vh); }
}
@media print { .cb-bubble, .cb-panel { display: none !important; } }
