/* ==========================================================================
   Taiwan Golf Concierge — design tokens & shared styles
   Mood: smart travel-tech booking product — confident navy + teal duotone,
   bold display type, big-radius cards floating across dark/light sections.
   Reference: modern golf/travel planner platforms (TabiGolf-style UI).
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --navy-950: #070c17;
  --navy-900: #0f172a;
  --navy-800: #182238;
  --navy-700: #263449;
  --navy-600: #3a4a63;

  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --mint-300: #81d8d0;
  --mint-200: #b7ece6;

  --paper: #ffffff;
  --surface: #f5f8fb;
  --surface-deep: #eaf1f4;

  --ink: #0f172a;
  --ink-soft: #5b6b82;
  --ink-faint: #94a3b8;
  --line: #e1e8f0;

  --amber: #d97706;
  --amber-soft: #fdf1de;
  --red: #c0392b;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', system-ui, sans-serif;
  --font-display: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', system-ui, sans-serif;

  --shadow-card: 0 12px 28px -14px rgba(15, 23, 42, 0.18);
  --shadow-pop: 0 30px 70px -20px rgba(7, 12, 23, 0.45);
  --shadow-teal: 0 14px 30px -12px rgba(20, 184, 166, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ---------------- shared icon ---------------- */
.pin-icon { display: inline-block; line-height: 0; }
.pin-icon svg { display: block; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  flex-wrap: wrap;
  row-gap: 10px;
}

@media (max-width: 860px) {
  .site-header .container { height: auto; padding-top: 14px; padding-bottom: 14px; }
  .main-nav { order: 3; width: 100%; justify-content: center; gap: var(--space-5); }
}

@media (max-width: 480px) {
  .brand-text { font-size: 16px; }
  .main-nav { gap: var(--space-4); font-size: 13px; }
  .main-nav a { font-size: 13px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--navy-900);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--teal-400), var(--teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy-950);
  font-size: 15px;
  box-shadow: 0 8px 18px -8px rgba(20, 184, 166, 0.65);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal-600);
  text-transform: uppercase;
}

.main-nav { display: flex; gap: var(--space-6); align-items: center; }
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 160ms ease;
}
.main-nav a:hover { color: var(--teal-600); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-gold {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--navy-950);
  box-shadow: var(--shadow-teal);
}
.btn-gold:hover { box-shadow: 0 18px 34px -10px rgba(20, 184, 166, 0.7); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--mint-300); color: var(--mint-300); }

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-800);
}
.btn-line:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--paper); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------- hero / calculator ---------------- */
.hero {
  position: relative;
  color: var(--paper);
  background: var(--navy-900);
  padding: var(--space-9) 0 var(--space-9);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 82% -10%, rgba(20, 184, 166, 0.35), transparent 60%),
    radial-gradient(600px 500px at -10% 100%, rgba(20, 184, 166, 0.18), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 18px 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(129, 216, 208, 0.35);
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-300);
  margin-bottom: var(--space-5);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
}

.hero h1 {
  position: relative;
  color: var(--paper);
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.16;
  max-width: 760px;
  font-weight: 800;
}
.hero h1 em { color: var(--mint-300); font-style: normal; }

.hero p.lead {
  position: relative;
  margin-top: var(--space-4);
  max-width: 560px;
  color: rgba(255,255,255,0.68);
  font-size: 16.5px;
}

.calc-card {
  position: relative;
  margin-top: var(--space-7);
  margin-bottom: calc(-1 * var(--space-9) - 30px);
  background: var(--paper);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  padding: var(--space-6);
  color: var(--ink);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-card { margin-bottom: calc(-1 * var(--space-8) - 20px); }
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.field select,
.field input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
}
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
  background: var(--paper);
}

.calc-result {
  margin-top: var(--space-5);
  border-top: 1px dashed var(--line);
  padding-top: var(--space-5);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.calc-result .price-block .label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
  font-weight: 600;
}
.calc-result .price-block .amount {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--navy-900);
}
.calc-result .price-block .amount small {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: 6px;
}
.calc-result .note {
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 320px;
}

/* ---------------- section headers ---------------- */
.section { padding: var(--space-9) 0 var(--space-8); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 800;
  margin-bottom: var(--space-2);
  padding: 6px 14px;
  background: var(--mint-200);
  border-radius: var(--radius-pill);
}
.section-head p { color: var(--ink-soft); max-width: 480px; font-size: 14.5px; }

/* ---------------- region tabs ---------------- */
.region-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.region-tab {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 140ms ease;
}
.region-tab:hover { border-color: var(--teal-500); color: var(--teal-600); }
.region-tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--paper);
}

.city-group { margin-bottom: var(--space-7); }
.city-group h3 {
  font-size: 18px;
  color: var(--navy-900);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.city-group h3::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  display: inline-block;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 980px) { .course-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } }

.course-card {
  background: var(--paper);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }

.course-photo {
  height: 156px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-4);
  color: var(--paper);
  overflow: hidden;
}
.course-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(20, 184, 166, 0.35), transparent 55%),
    linear-gradient(200deg, rgba(7,12,23,0) 20%, rgba(7,12,23,0.55) 100%);
}
.course-photo .flag {
  position: relative;
  z-index: 1;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.course-photo .cn-name {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(7, 12, 23, 0.35);
  backdrop-filter: blur(4px);
}

.course-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.course-body h4 { font-size: 17px; }
.course-body .desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  flex: 1;
}
.course-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-top: 1px dashed var(--line);
  padding-top: var(--space-3);
}
.course-price-row .p-item .p-label { color: var(--ink-soft); font-weight: 600; }
.course-price-row .p-item .p-val { font-weight: 800; color: var(--navy-900); }

/* ---------------- hotels ---------------- */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 980px) { .hotel-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hotel-grid { grid-template-columns: 1fr; } }

.hotel-card {
  background: var(--paper);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}
.hotel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }

.hotel-photo {
  height: 130px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-4);
  color: var(--paper);
  overflow: hidden;
}
.hotel-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(20, 184, 166, 0.32), transparent 55%),
    linear-gradient(200deg, rgba(7,12,23,0) 20%, rgba(7,12,23,0.55) 100%);
}
.hotel-stars {
  position: relative; z-index: 1;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mint-300);
}
.hotel-region {
  position: relative; z-index: 1;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 12, 23, 0.4);
  backdrop-filter: blur(4px);
}

.hotel-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.hotel-body h4 { font-size: 17px; }
.hotel-body .desc { font-size: 13.5px; color: var(--ink-soft); flex: 1; }

.disclosure-note {
  margin-top: var(--space-6);
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------------- CTA band ---------------- */
.cta-band {
  position: relative;
  background: var(--navy-900);
  color: var(--paper);
  padding: var(--space-8) 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(20, 184, 166, 0.28), transparent 65%);
  pointer-events: none;
}
.cta-band > .container { position: relative; }
.cta-band h2 { color: var(--paper); font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: rgba(255,255,255,0.65); margin: var(--space-3) auto var(--space-6); max-width: 480px; }

/* ---------------- modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 12, 23, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-4);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper);
  border-radius: var(--radius-l);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
  box-shadow: var(--shadow-pop);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-5);
}
.modal-close {
  background: var(--surface); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; color: var(--ink-soft); line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--surface-deep); color: var(--navy-900); }
.form-grid { display: grid; gap: var(--space-4); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
  background: var(--surface);
}
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
  background: var(--paper);
}
.form-msg { font-size: 13.5px; padding: var(--space-3); border-radius: var(--radius-s); display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: var(--mint-200); color: var(--teal-600); }
.form-msg.error { background: #fbeae7; color: var(--red); }

/* ---------------- footer ---------------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.55);
  padding: var(--space-7) 0 var(--space-6);
  font-size: 13.5px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.site-footer nav { display: flex; gap: var(--space-5); }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--mint-300); }

/* ---------------- board ---------------- */
.board-page-head {
  background: var(--navy-900);
  color: var(--paper);
  padding: var(--space-8) 0 var(--space-6);
}
.board-page-head .kicker { color: var(--mint-300); }
.board-page-head h1 { color: var(--paper); font-size: clamp(26px, 3.4vw, 38px); }

.board-list { display: flex; flex-direction: column; gap: var(--space-4); }

.board-item {
  background: var(--paper);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  padding: var(--space-5);
}
.board-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.board-item-title { font-size: 16.5px; font-weight: 800; color: var(--navy-900); }
.board-item-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.status-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.status-pill.pending { background: var(--amber-soft); color: var(--amber); }
.status-pill.answered { background: var(--mint-200); color: var(--teal-600); }

.board-reply {
  margin-top: var(--space-4);
  background: var(--surface);
  border-left: 3px solid var(--teal-500);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: var(--space-3) var(--space-4);
  font-size: 14px;
}
.board-reply .reply-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-600);
  margin-bottom: 4px;
  display: block;
}
.board-empty {
  text-align: center;
  padding: var(--space-8) 0;
  color: var(--ink-soft);
}

/* ---------------- admin ---------------- */
.admin-login {
  max-width: 380px;
  margin: var(--space-9) auto;
  background: var(--paper);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  padding: var(--space-6);
  text-align: center;
}
.admin-login h1 { font-size: 22px; margin-bottom: var(--space-2); }
.admin-login p { color: var(--ink-soft); font-size: 13.5px; margin-bottom: var(--space-5); }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.admin-item { background: var(--paper); border-radius: var(--radius-m); box-shadow: var(--shadow-card); border: 1px solid var(--line); padding: var(--space-5); margin-bottom: var(--space-4); }
.admin-item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-5); font-size: 13.5px; margin: var(--space-3) 0 var(--space-4); }
@media (max-width: 600px) { .admin-item-grid { grid-template-columns: 1fr; } }
.admin-item-grid .k { color: var(--ink-soft); font-weight: 600; }
.admin-item-grid .v { font-weight: 700; }
.reply-box { margin-top: var(--space-3); }

.hidden { display: none !important; }

.utility-bar {
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-800);
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 7px 0;
}
