/* ═══════════════════════════════════════════
   Samantha Guest Platform — Design System
   Served directly by Propshaft (not Tailwind)
   ═══════════════════════════════════════════ */

:root {
  --teal: #0F5B6C;
  --teal-dark: #0A2A33;
  --teal-light: #1A8A9E;
  --gold: #C4964A;
  --gold-light: #E8D5B0;
  --cream: #FAF8F5;
  --stone-50: #F5F3F0;
  --stone-100: #EDEBE7;
  --stone-200: #E0DDD8;
  --stone-400: #9C9690;
  --stone-600: #5C5750;
  --stone-800: #2E2A25;
  --stone-900: #1C1917;
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'DM Sans', system-ui, sans-serif;
}

/* ── Base ── */
body.guest {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--stone-800);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* ── Container ── */
.cg { max-width: 1320px; margin: 0 auto; padding-left: clamp(20px,4vw,40px); padding-right: clamp(20px,4vw,40px); }

/* ── Section spacing ── */
.sp { padding-top: clamp(80px,10vw,128px); padding-bottom: clamp(80px,10vw,128px); }

/* ── Typography ── */
.fd { font-family: var(--font-d); }
.fb { font-family: var(--font-b); }

.t-display {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(48px,9vw,104px); line-height: 1.02;
  letter-spacing: -0.025em; color: white;
}
.t-h1 {
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(32px,4vw,52px); line-height: 1.12;
  letter-spacing: -0.01em; color: var(--stone-900);
}
.t-h2 {
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(24px,3vw,36px); line-height: 1.15;
  color: var(--stone-900);
}
.t-body { font-size: 16px; line-height: 1.7; color: var(--stone-600); }
.t-sm { font-size: 14px; line-height: 1.6; color: var(--stone-600); }
.t-xs { font-size: 13px; line-height: 1.6; color: var(--stone-400); }

.lbl {
  font-family: var(--font-b); font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none;
}
.lbl-gold { font-size: 10px; letter-spacing: 0.25em; color: var(--gold); text-transform: uppercase; font-weight: 600; }

/* ── Accent ── */
.aline { width: 40px; height: 1.5px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 1px; }
.aline-teal { width: 40px; height: 1.5px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); border-radius: 1px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-family: var(--font-b);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  border-radius: 8px; text-decoration: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1); border: none;
}
.btn-teal { color: white; background: var(--teal); box-shadow: 0 2px 12px rgba(15,91,108,0.2); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(15,91,108,0.3); }
.btn-white { color: var(--stone-900); background: white; box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.btn-white:hover { background: #f5f5f5; transform: translateY(-1px); }
.btn-ghost { color: rgba(255,255,255,0.85); background: none; border: 1px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 8px 20px; font-size: 11px; letter-spacing: 0.12em; border-radius: 6px; }
.btn-outline { color: var(--stone-600); background: none; border: 1px solid var(--stone-200); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ── Header ── */
.g-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 68px;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.g-header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.g-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.g-logo-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--teal); display: flex; align-items: center; justify-content: center; }
.g-logo-s { font-family: var(--font-d); font-size: 20px; font-weight: 700; font-style: italic; color: white; }
.g-logo-name { font-family: var(--font-d); font-size: 22px; font-weight: 700; color: var(--teal-dark); letter-spacing: -0.01em; display: block; line-height: 1.1; }
.g-nav { display: flex; align-items: center; gap: 4px; }
.g-nav a { padding: 8px 16px; border-radius: 6px; transition: all 0.2s; }
.g-nav a:hover { color: var(--teal); background: rgba(15,91,108,0.04); }
.g-nav a.active { color: var(--teal); background: rgba(15,91,108,0.06); }
.g-spacer { height: 68px; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: var(--teal-dark);
}
.hero-bg { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; padding: 0 24px; }
.hero-label { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; }
.hero-line { width: 32px; height: 1px; background: var(--gold); }

/* Hero animation */
@keyframes heroIn { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.hi { animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) both; }
.hd1 { animation-delay:.15s } .hd2 { animation-delay:.3s }
.hd3 { animation-delay:.45s } .hd4 { animation-delay:.6s }
.hd5 { animation-delay:.75s }

/* ── Scroll reveal ── */
[data-r] { opacity:0; transform:translateY(24px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
[data-r].rv { opacity:1; transform:translateY(0); }

/* ── Service list ── */
.svc { padding: 20px 0; border-bottom: 1px solid var(--stone-100); display: flex; gap: 20px; align-items: flex-start; transition: padding-left 0.3s ease; }
.svc:last-child { border-bottom: none; }
.svc:hover { padding-left: 12px; }
.svc-n { font-family: var(--font-d); font-size: 14px; font-weight: 600; color: var(--stone-200); width: 24px; flex-shrink: 0; padding-top: 2px; transition: color 0.3s; }
.svc:hover .svc-n { color: var(--teal-light); }
.svc h3 { font-size: 15px; font-weight: 600; color: var(--stone-900); margin: 0 0 3px; }
.svc p { font-size: 13px; line-height: 1.6; color: var(--stone-400); margin: 0; }

/* ── Season columns ── */
.scol { border-radius: 16px; overflow: hidden; background: white; border: 1px solid var(--stone-100); transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.scol:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); border-color: transparent; }
.scol-h { padding: 28px 24px; position: relative; overflow: hidden; }
.scol-h::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(0,0,0,0.08),transparent); }
.scol-h h3 { position:relative;z-index:2;font-family:var(--font-d);font-size:28px;font-weight:700;color:white;letter-spacing:-0.01em;margin:0 }
.scol-h p { position:relative;z-index:2;font-size:10px;letter-spacing:0.2em;text-transform:uppercase;color:rgba(255,255,255,0.4);margin:4px 0 0;font-weight:500 }
/* Activity button */
.act-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; margin: 4px 4px;
  border-radius: 10px; border: 1px solid transparent;
  background: white; text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
}
.act-btn:hover {
  background: var(--cream);
  border-color: var(--teal);
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(15,91,108,0.08);
}
.act-btn:active {
  transform: translateX(2px) scale(0.98);
}
.act-emoji { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; display: none; }
.act-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); transition: color 0.2s;
}
.act-icon svg { width: 20px; height: 20px; }
.act-btn:hover .act-icon { color: var(--teal-dark); }
.act-label { font-size: 13px; font-weight: 500; color: var(--stone-600); flex: 1; transition: color 0.2s; }
.act-btn:hover .act-label { color: var(--teal); }
.act-arrow {
  opacity: 0; transform: translateX(-4px);
  transition: all 0.25s ease; color: var(--teal); flex-shrink: 0;
}
.act-btn:hover .act-arrow { opacity: 1; transform: translateX(0); }

/* ── Message pills ── */
.pill { display:inline-flex;align-items:center;justify-content:center;padding:16px 40px;font-size:14px;font-weight:600;letter-spacing:0.03em;border-radius:999px;color:white;text-decoration:none;transition:all 0.35s cubic-bezier(0.16,1,0.3,1);box-shadow:0 4px 16px rgba(0,0,0,0.12) }
.pill:hover { transform:translateY(-2px);box-shadow:0 8px 28px rgba(0,0,0,0.18) }
.pill-wa { background:#25D366 } .pill-wa:hover { background:#20BD5A }
.pill-tg { background:#0088cc } .pill-tg:hover { background:#0077b5 }
.pill-ln { background:#06C755 } .pill-ln:hover { background:#05B34C }

/* ── Cards (discover, book pages) ── */
.card {
  border-radius: 16px; overflow: hidden; background: white;
  border: 1px solid var(--stone-100); text-decoration: none; display: block;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: transparent; }
.card-color { height: 160px; display: flex; align-items: flex-end; padding: 20px 24px; }
.card-body { padding: 24px; }
.card-body h2 { font-family: var(--font-d); font-size: 22px; font-weight: 600; color: var(--stone-900); margin: 0 0 8px; transition: color 0.2s; }
.card:hover .card-body h2 { color: var(--teal); }
.card-body p { font-size: 14px; line-height: 1.6; color: var(--stone-400); margin: 0; }

/* ── Form elements ── */
.input {
  width: 100%; padding: 14px 18px; font-size: 14px; font-family: var(--font-b);
  border: 1px solid var(--stone-200); border-radius: 10px; background: white;
  transition: all 0.2s; outline: none; color: var(--stone-800);
}
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,91,108,0.08); }
.input::placeholder { color: var(--stone-400); }

/* ── Option buttons (plan page) ── */
.opt {
  padding: 14px 20px; font-size: 14px; font-weight: 500; font-family: var(--font-b);
  border: 1px solid var(--stone-200); border-radius: 10px; background: white;
  cursor: pointer; transition: all 0.2s; color: var(--stone-600); text-align: center;
}
.opt:hover { border-color: var(--teal); color: var(--teal); }
.opt.selected { border-color: var(--teal); background: rgba(15,91,108,0.04); color: var(--teal); font-weight: 600; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── Two-column layout ── */
.two-col { display: grid; grid-template-columns: 380px 1fr; gap: 80px; }
@media (max-width: 1024px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ── Mobile nav ── */
.mnav { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid rgba(0,0,0,0.06); z-index: 50; height: 64px; display: flex; align-items: center; justify-content: space-around; padding: 0 8px; }
.mnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 8px; text-decoration: none; transition: color 0.2s; }
.mnav a span { font-size: 10px; font-weight: 500; }
.mnav a.active { color: var(--teal); }
.mnav a:not(.active) { color: var(--stone-400); }
@media (min-width: 768px) { .mnav { display: none; } }

/* ── Category accordion ── */
.cat-btn {
  display: flex; align-items: center; gap: 20px;
  width: 100%; padding: 24px 28px;
  background: white; border: 1px solid var(--stone-100);
  border-radius: 16px; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  text-align: left; font-family: var(--font-b);
}
.cat-btn:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(15,91,108,0.08);
}
.cat-btn.open {
  border-color: var(--teal);
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}

/* Category column — collapsed by default */
.cat-col .scol-items { display: none; }
.cat-col.open .scol-items { display: block; }
.cat-col .scol-h { cursor: pointer; transition: all 0.3s ease; }
.cat-col .scol-h:hover { opacity: 0.9; }
.cat-col .scol-toggle {
  width: 24px; height: 24px; color: rgba(255,255,255,0.6);
  transition: transform 0.3s ease; position: relative; z-index: 2;
}
.cat-col.open .scol-toggle { transform: rotate(180deg); color: white; }
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-info { flex: 1; }
.cat-info h3 { font-family: var(--font-d); font-size: 22px; font-weight: 600; color: var(--stone-900); margin: 0 0 2px; }
.cat-info p { font-size: 13px; color: var(--stone-400); margin: 0; }
.cat-count {
  font-family: var(--font-d); font-size: 18px; font-weight: 600;
  color: var(--teal); flex-shrink: 0;
}
.cat-arrow {
  width: 20px; height: 20px; color: var(--stone-400);
  transition: transform 0.3s ease; flex-shrink: 0;
}
.cat-btn.open .cat-arrow { transform: rotate(180deg); color: var(--teal); }

.cat-content {
  display: none; border: 1px solid var(--teal);
  border-top: none; border-radius: 0 0 16px 16px;
  background: white; padding: 8px 12px 16px;
}
.cat-content.open { display: block; }

/* Place item inside accordion */
.place-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease; cursor: pointer;
}
.place-item:hover {
  background: var(--cream);
}
.place-item-info { flex: 1; min-width: 0; }
.place-item-name { font-size: 14px; font-weight: 600; color: var(--stone-900); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-item-jp { font-size: 12px; color: var(--stone-400); margin: 1px 0 0; }
.place-item-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.place-item-tag { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 999px; }
.place-item-price { font-size: 12px; color: var(--stone-600); flex-shrink: 0; }
.place-item-rating { font-size: 12px; color: var(--gold); flex-shrink: 0; }
.place-item-arrow { width: 16px; height: 16px; color: var(--teal); opacity: 0; transition: all 0.2s; flex-shrink: 0; }
.place-item:hover .place-item-arrow { opacity: 1; transform: translateX(2px); }

/* ── Sub-category toggle ── */
.sub-cat { border-bottom: 1px solid var(--stone-100); }
.sub-cat:last-child { border-bottom: none; }
.sub-cat-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 16px; background: none; border: none;
  cursor: pointer; font-family: var(--font-b); text-align: left;
  transition: background 0.2s;
}
.sub-cat-btn:hover { background: var(--cream); }
.sub-cat-btn h4 { font-size: 14px; font-weight: 600; color: var(--stone-800); margin: 0; }
.sub-cat-btn .sub-count { font-size: 12px; color: var(--stone-400); }
.sub-cat-btn .sub-chev {
  width: 16px; height: 16px; color: var(--stone-400);
  transition: transform 0.25s ease;
}
[data-sub].open .sub-chev { transform: rotate(180deg); color: var(--teal); }
.sub-cat-items { display: none; padding: 0 8px 8px; }
[data-sub].open .sub-cat-items { display: block; }

/* ── Service icon grid (discover page) ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }

.svc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 8px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: white;
  border: 2px solid transparent;
}
.svc-card:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.svc-card.active {
  border-color: var(--teal);
  background: rgba(15,91,108,0.03);
}
.svc-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.svc-card-icon svg {
  width: 26px;
  height: 26px;
  color: white;
}
.svc-card h3 {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-800);
  margin: 0;
  text-align: center;
}
.svc-card p {
  font-size: 10px;
  color: var(--stone-400);
  margin: 2px 0 0;
  text-align: center;
}
.svc-card.active h3 { color: var(--teal); }

/* Forbes Travel Guide style cards */
.ftg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 8px 16px;
  background: white;
  border: 1px solid var(--stone-100);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ftg-card:hover {
  border-color: var(--stone-300);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.ftg-card.active {
  border-color: var(--teal);
  background: rgba(15,91,108,0.03);
  box-shadow: 0 0 0 1px var(--teal), 0 4px 20px rgba(15,91,108,0.1);
}
.ftg-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--teal);
  transition: all 0.25s ease;
}
.ftg-card:hover .ftg-icon,
.ftg-card.active .ftg-icon {
  background: var(--teal);
  color: white;
}
.ftg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-800);
  margin: 0;
  line-height: 1.3;
}
.ftg-sub {
  font-size: 10px;
  color: var(--stone-400);
  margin: 3px 0 0;
  letter-spacing: 0.03em;
}
/* Request button */
.req-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: var(--teal);
  background: rgba(15,91,108,0.06);
  border: 1px solid rgba(15,91,108,0.15);
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  cursor: pointer;
}
.req-btn:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

@media (max-width: 600px) {
  .ftg-card { padding: 14px 4px 12px; }
  .ftg-icon { width: 48px; height: 48px; margin-bottom: 8px; }
  .ftg-icon svg { width: 22px; height: 22px; }
  .ftg-name { font-size: 11px; }
  .ftg-sub { font-size: 9px; }
  .req-btn { padding: 5px 12px; font-size: 10px; }
}

/* Service detail panel */
.svc-detail {
  display: none;
  background: white;
  border: 1px solid var(--stone-100);
  border-radius: 16px;
  padding: 0;
  margin-top: 16px;
  grid-column: 1 / -1;
}
.svc-detail.open { display: block; }

/* ── Place cards (dining, hotels, onsen) ── */
.place-card {
  border-radius: 16px; overflow: hidden; background: white;
  border: 1px solid var(--stone-100);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.place-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.place-bar { height: 3px; }
.place-body { padding: 24px; }
.place-body h3 { font-family: var(--font-d); font-size: 20px; font-weight: 600; color: var(--stone-900); margin: 0 0 4px; }
.place-body .jp { font-size: 13px; color: var(--stone-400); margin: 0 0 12px; }
.place-tag { display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 500; border-radius: 999px; margin-right: 6px; margin-bottom: 6px; }
.place-price { font-size: 14px; color: var(--stone-600); margin: 12px 0 0; }
.place-action { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--stone-100); }
.place-action a { font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none; }
.place-action a:hover { color: var(--teal-dark); }

/* ── Back link ── */
.back-link { font-size: 14px; color: var(--teal); text-decoration: none; display: inline-block; margin-bottom: 12px; }
.back-link:hover { text-decoration: underline; }

/* ── Empty state ── */
.empty { text-align: center; padding: 80px 20px; }
.empty h3 { font-size: 18px; color: var(--stone-400); margin: 0 0 12px; }
.empty p { font-size: 14px; color: var(--stone-400); margin: 0; }
.empty a { color: var(--teal); text-decoration: none; }
.empty a:hover { text-decoration: underline; }

/* ── Footer mobile padding ── */
@media (max-width: 767px) {
  footer { padding-bottom: 80px !important; }
}

/* ── Utility ── */
.text-center { text-align: center; }

/* ── Responsive visibility ── */
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .g-nav { display: none !important; }
  .two-col { grid-template-columns: 1fr !important; gap: 32px !important; }
}
