@charset "utf-8";
/* ============================================================
   GOLFTOP 모바일 메인 리뉴얼 시안 v0.1 (2026-10-21)
   브랜드 토큰: dev 서버 everytee-brand-tokens.css 기준(#6200EA 램프)
   ============================================================ */

:root {
  /* brand */
  --brand-50:  #F3ECFD;
  --brand-100: #E5D4FC;
  --brand-200: #CBA9F9;
  --brand-300: #9C5CF5;
  --brand-600: #6200EA;
  --brand-700: #5C00DD;
  --brand-800: #41009B;
  --brand-900: #35007E;
  --brand-a08: rgba(98, 0, 234, .08);
  --brand-a24: rgba(98, 0, 234, .24);

  /* accent / status */
  --hot:   #FF4D2E;   /* 마감임박·잔여석 */
  --hot-bg:#FFF0EC;
  --sat:   #2F6BFF;
  --sun:   #F03A3A;

  /* neutral */
  --g-900: #15131A;
  --g-700: #3D3A45;
  --g-500: #75717F;
  --g-400: #A19DAA;
  --g-300: #D3D0D9;
  --g-200: #E8E6EC;
  --g-100: #F4F3F6;
  --g-50:  #FAFAFB;
  --white: #FFFFFF;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --shadow-card: 0 1px 2px rgba(21, 19, 26, .04), 0 4px 16px rgba(21, 19, 26, .06);
  --shadow-float: 0 8px 28px rgba(65, 0, 155, .18);

  --header-h: 56px;
  --tabbar-h: 62px;
  --gutter: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--g-900);
  background: #ECEAF0;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
.blind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* 앱 프레임 : 모바일 기준 360~480 */
.gt-app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--g-50);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

/* ---------------- Header ---------------- */
.gt-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 var(--gutter);
  background: var(--brand-600);
  transition: box-shadow .2s;
}
.gt-header.is-scrolled { box-shadow: 0 2px 12px rgba(53, 0, 126, .25); }
.gt-logo { display: flex; align-items: center; height: 24px; }
.gt-logo img { height: 22px; width: auto; }
.gt-logo .logo-txt { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.gt-header__util { display: flex; align-items: center; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: #fff; border-radius: 50%;
}
.icon-btn:active { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn .dot {
  position: absolute; top: 10px; right: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hot); box-shadow: 0 0 0 2px var(--brand-600);
}

/* ---------------- Hero (보라 영역 + 예약 위젯) ---------------- */
.gt-hero {
  position: relative;
  background: linear-gradient(var(--brand-600) calc(100% - 140px), var(--g-50) calc(100% - 140px));
  padding: 4px var(--gutter) 0;
}
.gt-hero__greet { color: #fff; padding: 6px 2px 18px; }
.gt-hero__greet h1 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; }
.gt-hero__greet h1 em { font-style: normal; color: #D8C2FF; }
.gt-hero__login {
  margin-top: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-m);
  font-size: 13px; color: rgba(255,255,255,.9);
}
.gt-hero__login p { flex: 1; }
.gt-hero__login .btn-login {
  flex: none; height: 34px; padding: 0 14px;
  border-radius: 17px; background: #fff; color: var(--brand-600);
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center;
}
.gt-hero__login .btn-join { flex: none; font-size: 13px; color: #fff; text-decoration: underline; text-underline-offset: 3px; padding: 0 4px; }

/* 예약 위젯 */
.finder {
  position: relative; z-index: 2;
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-float);
  padding: 6px 0 16px;
}
.finder__seg {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 0 6px; padding: 4px;
  background: var(--g-100); border-radius: 14px;
}
.finder__seg button {
  height: 52px; border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--g-500);
  transition: background .2s, color .2s, box-shadow .2s;
}
.finder__seg b { font-size: 16px; font-weight: 700; }
.finder__seg span { font-size: 12px; }
.finder__seg span strong { font-weight: 700; }
.finder__seg button[aria-selected="true"] {
  background: #fff; color: var(--g-900);
  box-shadow: 0 1px 3px rgba(21,19,26,.12);
}
.finder__seg button[aria-selected="true"] span strong { color: var(--brand-600); }

.finder__row { padding: 16px 16px 0; }
.finder__label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.finder__label h2 { font-size: 15px; font-weight: 700; }
.finder__label .link-cal {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--g-500);
}
.finder__label .link-cal svg { width: 16px; height: 16px; }

/* 날짜 스트립 */
.dates {
  display: flex; gap: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 2px 16px 4px;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: none; scroll-snap-align: start;
  width: 50px; height: 66px;
  border-radius: 14px;
  border: 1px solid var(--g-200);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff;
}
.date small { font-size: 11px; color: var(--g-500); line-height: 1; }
.date b { font-size: 19px; font-weight: 700; margin: 5px 0 3px; line-height: 1; }
.date i { font-style: normal; font-size: 12px; color: var(--g-500); line-height: 1; }
.date.is-sat b, .date.is-sat i { color: var(--sat); }
.date.is-sun b, .date.is-sun i { color: var(--sun); }
.date[aria-pressed="true"] { background: var(--brand-600); border-color: var(--brand-600); }
.date[aria-pressed="true"] * { color: #fff !important; }

/* 지역 칩 */
.regions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 12px;
  border-radius: 18px;
  border: 1px solid var(--g-200);
  background: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--g-700);
}
.chip .cnt { font-size: 12px; font-weight: 700; color: var(--brand-600); }
.chip .cnt.zero { color: var(--g-400); font-weight: 500; }
.chip[aria-pressed="true"] { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); font-weight: 600; }

.finder__cta { padding: 18px 16px 0; }
.btn-primary {
  width: 100%; height: 52px; border-radius: 14px;
  background: var(--brand-600); color: #fff;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, transform .1s;
}
.btn-primary:active { background: var(--brand-700); transform: scale(.99); }
.btn-primary svg { width: 18px; height: 18px; }

/* ---------------- 공통 섹션 ---------------- */
.sec { padding: 28px 0 0; }
.sec__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 var(--gutter); margin-bottom: 12px;
}
.sec__head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.sec__head h2 .badge-live {
  display: inline-flex; align-items: center; gap: 4px;
  vertical-align: 3px; margin-left: 6px;
  font-size: 11px; font-weight: 700; color: var(--hot);
  background: var(--hot-bg); padding: 3px 7px; border-radius: 6px;
}
.badge-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--hot); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.sec__head p { font-size: 13px; color: var(--g-500); margin-top: 2px; }
.sec__more { font-size: 13px; color: var(--g-500); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.sec__more svg { width: 14px; height: 14px; }

/* ---------------- 퀵 메뉴 ---------------- */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px var(--gutter) 0;
}
.quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 13px; color: var(--g-700); position: relative; }
.quick .ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-card);
  color: var(--brand-600);
}
.quick .ico svg { width: 26px; height: 26px; }
.quick .soon {
  position: absolute; top: -6px; left: 50%; transform: translateX(4px);
  font-size: 10px; font-weight: 700; color: var(--g-500);
  background: var(--g-200); padding: 2px 5px; border-radius: 6px;
}
.quick a.is-soon .ico { color: var(--g-400); }

/* ---------------- 마감 임박 리스트 ---------------- */
.tee-list { padding: 0 var(--gutter); display: grid; gap: 10px; }
.tee {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: #fff; border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}
.tee__time {
  flex: none; width: 62px; text-align: center;
  padding: 8px 0; border-radius: 12px;
  background: var(--brand-50);
}
.tee__time b { display: block; font-size: 18px; font-weight: 800; color: var(--brand-700); line-height: 1.1; }
.tee__time small { font-size: 11px; color: var(--g-500); }
.tee__body { flex: 1; min-width: 0; }
.tee__name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tee__tags { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 6px; overflow: hidden; }
.tee__tags .tag { flex: none; }
.tag { font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--g-100); color: var(--g-700); }
.tag.is-brand { background: var(--brand-a08); color: var(--brand-700); font-weight: 600; }
.tee__side { flex: none; text-align: right; }
.tee__seat { font-size: 12px; font-weight: 700; color: var(--hot); }
.tee__price { font-size: 17px; font-weight: 800; margin-top: 2px; }
.tee__price small { font-size: 12px; font-weight: 600; margin-left: 1px; }

/* ---------------- 이벤트 배너 ---------------- */
.banner { position: relative; padding: 0 var(--gutter); }
.banner__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: var(--radius-l); scrollbar-width: none;
}
.banner__track::-webkit-scrollbar { display: none; }
.banner__item {
  flex: 0 0 100%; scroll-snap-align: start;
  aspect-ratio: 343 / 128;
  padding: 20px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  position: relative; overflow: hidden;
}
.banner__item::after { /* 장식 원 */
  content: ""; position: absolute; right: -30px; bottom: -50px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.banner__item small { font-size: 12px; opacity: .85; font-weight: 600; }
.banner__item strong { font-size: 19px; font-weight: 800; line-height: 1.3; margin-top: 4px; letter-spacing: -0.03em; }
.banner__item.b1 { background: linear-gradient(120deg, #41009B, #6200EA 70%, #9C5CF5); }
.banner__item.b2 { background: linear-gradient(120deg, #0F7A55, #19A974); }
.banner__item.b3 { background: linear-gradient(120deg, #FF6A3D, #FF4D2E); }
.banner__count {
  position: absolute; right: calc(var(--gutter) + 12px); bottom: 12px;
  font-size: 11px; color: #fff; background: rgba(0,0,0,.28);
  padding: 3px 9px; border-radius: 10px;
}

/* ---------------- 최저가 가로 카드 ---------------- */
.low {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.low::-webkit-scrollbar { display: none; }
.low-card {
  flex: 0 0 150px; scroll-snap-align: start;
  background: #fff; border-radius: var(--radius-m);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.low-card__img {
  height: 96px; position: relative;
  background: linear-gradient(160deg, #B9E3C6, #4FA36B);
}
.low-card__img.v2 { background: linear-gradient(160deg, #C7DDF5, #4A86C5); }
.low-card__img.v3 { background: linear-gradient(160deg, #F2DDB8, #C49A52); }
.low-card__img.v4 { background: linear-gradient(160deg, #D6CCF5, #7C5CD6); }
.low-card__img .region {
  position: absolute; left: 8px; top: 8px;
  font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.32); padding: 2px 7px; border-radius: 6px;
}
.low-card__body { padding: 10px 12px 12px; }
.low-card__name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.low-card__meta { font-size: 12px; color: var(--g-500); margin-top: 2px; }
.low-card__price { font-size: 16px; font-weight: 800; margin-top: 6px; }
.low-card__price small { font-size: 11px; color: var(--g-500); font-weight: 500; margin-right: 3px; }

.empty {
  margin: 0 var(--gutter);
  padding: 22px 16px; text-align: center;
  background: #fff; border-radius: var(--radius-m);
  border: 1px dashed var(--g-300);
  font-size: 14px; color: var(--g-500);
}
.empty b { display: block; color: var(--g-700); font-size: 15px; margin-bottom: 4px; }
.empty a { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--brand-600); font-weight: 600; }

/* ---------------- 공지 + 고객센터 ---------------- */
.notice {
  margin: 0 var(--gutter);
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px;
  background: #fff; border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  font-size: 14px;
}
.notice .lbl { flex: none; font-size: 12px; font-weight: 700; color: var(--brand-600); }
.notice .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--g-700); }
.notice svg { flex: none; width: 16px; height: 16px; color: var(--g-400); }

.cs {
  margin: 10px var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.cs a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px; background: #fff; border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}
.cs .ico { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.cs .ico svg { width: 18px; height: 18px; }
.cs a > span:last-child { min-width: 0; }
.cs b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; letter-spacing: -0.02em; }
.cs small { font-size: 12px; color: var(--g-500); }

/* ---------------- Footer ---------------- */
.gt-footer {
  margin-top: 36px; padding: 24px var(--gutter) 28px;
  background: var(--g-100);
  font-size: 12px; color: var(--g-500); line-height: 1.7;
}
.gt-footer__links { display: flex; gap: 14px; margin-bottom: 12px; }
.gt-footer__links a { color: var(--g-700); font-weight: 600; }
.gt-footer__links a.em { color: var(--g-900); font-weight: 700; }
.gt-footer details summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--g-700); }
.gt-footer details summary::-webkit-details-marker { display: none; }
.gt-footer details summary svg { width: 14px; height: 14px; transition: transform .2s; }
.gt-footer details[open] summary svg { transform: rotate(180deg); }
.gt-footer details p { margin-top: 6px; }
.gt-footer .copy { margin-top: 12px; color: var(--g-400); }

/* ---------------- Bottom Tab Bar ---------------- */
.gt-tabbar {
  position: fixed; left: 50%; bottom: 0; z-index: 60;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--g-200);
}
.gt-tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; color: var(--g-400);
}
.gt-tabbar svg { width: 24px; height: 24px; }
.gt-tabbar a[aria-current="page"] { color: var(--brand-600); font-weight: 700; }

/* ---------------- GNB : 전체메뉴 드로어 ---------------- */
.gnb { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.gnb.is-open { visibility: visible; pointer-events: auto; }
.gnb__dim { position: absolute; inset: 0; background: rgba(21,19,26,.48); opacity: 0; transition: opacity .25s; }
.gnb.is-open .gnb__dim { opacity: 1; }
.gnb__panel {
  position: absolute; top: 0; bottom: 0; right: max(0px, calc((100vw - 480px) / 2));
  width: min(100%, 480px);
  display: flex; flex-direction: column;
  background: #fff;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.gnb.is-open .gnb__panel { transform: none; }
.gnb__top {
  flex: none; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 var(--gutter);
  border-bottom: 1px solid var(--g-100);
}
.gnb__top h2 { font-size: 17px; font-weight: 700; }
.gnb__close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--g-900); border-radius: 50%; }
.gnb__close svg { width: 24px; height: 24px; }
.gnb__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }

.gnb__user { margin: 16px var(--gutter) 0; padding: 18px; border-radius: var(--radius-l); background: var(--brand-50); }
.gnb__hello { font-size: 18px; line-height: 1.4; font-weight: 500; letter-spacing: -0.03em; }
.gnb__hello b { font-weight: 700; color: var(--brand-700); }
.gnb__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn-primary.sm, .btn-line.sm { height: 44px; border-radius: 12px; font-size: 15px; }
.btn-line {
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand-600); font-weight: 700;
  border: 1px solid var(--brand-200);
}
.gnb__mylink { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--brand-600); font-weight: 600; }

.gnb__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px var(--gutter) 0; }
.gnb__quick a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 0 12px; border-radius: var(--radius-m);
  border: 1px solid var(--g-200); font-size: 13px; color: var(--g-700);
}
.gnb__quick .ico { color: var(--brand-600); }
.gnb__quick svg { width: 26px; height: 26px; }

.gnb__menu { margin-top: 8px; }
.gnb__group { padding: 20px var(--gutter) 4px; }
.gnb__group + .gnb__group { border-top: 8px solid var(--g-100); }
.gnb__group h3 { font-size: 13px; font-weight: 600; color: var(--g-500); margin-bottom: 4px; }
.gnb__group a {
  display: flex; align-items: center; gap: 8px;
  min-height: 52px; font-size: 16px; font-weight: 600; color: var(--g-900);
}
.gnb__group a::after {
  content: ""; margin-left: auto; width: 8px; height: 8px;
  border-top: 2px solid var(--g-300); border-right: 2px solid var(--g-300);
  transform: rotate(45deg);
}
.gnb__group small { font-size: 13px; font-weight: 400; color: var(--g-500); }
.gnb__group em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--g-500); background: var(--g-100); padding: 2px 6px; border-radius: 6px; }
.gnb__group .is-soon a { color: var(--g-400); }
.gnb__foot {
  flex: none; display: flex; gap: 16px;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--g-100);
  font-size: 12px; color: var(--g-500);
}
.gnb__foot b { color: var(--g-900); }
body.is-locked { overflow: hidden; }
.gnb__close:focus:not(:focus-visible) { outline: none; }
