@charset "utf-8";
/* GOLFTOP 카테고리 메인(조인/양도 · 골프예약) 리뉴얼 시안 — gt-main.css 토큰 사용 */

/* 타이틀 밴드 */
.cat-hero { background: var(--brand-600); color: #fff; padding: 6px var(--gutter) 32px; }
.cat-hero h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.cat-hero p { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.78); }

/* 검색 조건 패널 (헤더 아래 고정) */
.cat-filter {
  position: sticky; top: var(--header-h); z-index: 40;
  background: #fff;
  border-radius: 20px 20px 0 0; margin-top: -20px;
  padding-top: 14px;
  box-shadow: 0 1px 0 var(--g-200);
  transition: box-shadow .2s, border-radius .2s;
}
.cat-filter.is-stuck { border-radius: 0; box-shadow: 0 6px 16px rgba(21,19,26,.08); }
.cat-filter__dates { display: flex; align-items: center; padding-left: var(--gutter); }
.month-btn {
  flex: none; display: inline-flex; align-items: center; gap: 2px;
  height: 66px; padding-right: 10px; margin-right: 6px;
  font-size: 15px; font-weight: 700;
  border-right: 1px solid var(--g-200);
}
.month-btn svg { width: 16px; height: 16px; color: var(--g-500); }
.cat-filter__dates .dates { margin: 0; padding-left: 4px; flex: 1; scroll-padding-inline: 4px; }

.cat-filter__regions {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 12px var(--gutter) 0;
}
.cat-filter__regions::-webkit-scrollbar { display: none; }
.cat-filter__regions .chip { flex: none; height: 34px; }

.cat-filter__tools {
  display: flex; align-items: center; gap: 6px;
  padding: 10px var(--gutter) 12px;
}
.seg-mini { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--g-100); }
.seg-mini button { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 13px; color: var(--g-500); }
.seg-mini button[aria-selected="true"] { background: #fff; color: var(--g-900); font-weight: 700; box-shadow: 0 1px 2px rgba(21,19,26,.12); }
.toggle-hot {
  height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--g-200); font-size: 13px; color: var(--g-700);
  display: inline-flex; align-items: center; gap: 4px;
}
.toggle-hot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g-300); }
.toggle-hot[aria-pressed="true"] { border-color: var(--hot); color: var(--hot); background: var(--hot-bg); font-weight: 700; }
.toggle-hot[aria-pressed="true"]::before { background: var(--hot); }
.btn-filter {
  margin-left: auto;
  height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--g-200); font-size: 13px; color: var(--g-700);
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-filter svg { width: 16px; height: 16px; }
.btn-filter .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-600); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.btn-filter.is-on { border-color: var(--brand-600); color: var(--brand-700); font-weight: 600; }

/* 결과 요약 */
.cat-result {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter) 10px;
}
.cat-result p { font-size: 14px; color: var(--g-700); }
.cat-result p b { font-size: 16px; font-weight: 800; color: var(--brand-600); }
.cat-result p span { margin-left: 6px; font-size: 13px; color: var(--g-500); }
.sort select {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent no-repeat right center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375717F' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  padding-right: 18px; font: inherit; font-size: 13px; color: var(--g-700);
}

/* 조인/양도 카드 */
.post-list { display: grid; gap: 10px; padding: 0 var(--gutter); }
.post {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-card);
  padding: 16px;
}
.post__head { display: flex; align-items: center; gap: 8px; }
.type { flex: none; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.type.is-join { background: var(--brand-50); color: var(--brand-700); }
.type.is-trans { background: #E6F6EF; color: #0F7A55; }
.post__name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__name small { font-size: 13px; font-weight: 500; color: var(--g-500); margin-left: 2px; }
.hot { flex: none; font-size: 11px; font-weight: 700; color: var(--hot); background: var(--hot-bg); padding: 3px 7px; border-radius: 6px; }

.post__when { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--g-500); }
.post__when b { font-size: 24px; font-weight: 800; color: var(--g-900); letter-spacing: -0.02em; line-height: 1; }
.dot-sep::before { content: "·"; margin-right: 8px; color: var(--g-300); }

.post__seats { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.seats { display: inline-flex; gap: 3px; }
.seats i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed var(--brand-200); }
.seats i.on { border: 0; background: var(--brand-300); }
.post__seats strong { font-weight: 700; color: var(--brand-600); }
.post__seats strong.done { color: var(--g-500); }
.team { font-weight: 700; color: #0F7A55; }
.post__mgr { margin-left: auto; font-size: 12px; color: var(--g-500); }

.post__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }

.post__foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--g-200);
}
.post__price small { display: block; font-size: 11px; color: var(--g-500); }
.post__price b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.post__price em { font-style: normal; font-size: 13px; font-weight: 600; margin-left: 1px; }
.post__cmt { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--g-500); }
.post__cmt svg { width: 16px; height: 16px; }
.btn-apply {
  margin-left: auto; height: 40px; padding: 0 16px; border-radius: 12px;
  background: var(--brand-600); color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center;
}
.btn-apply.is-trans { background: #0F7A55; }
.btn-apply.is-disabled { background: var(--g-100); color: var(--g-400); }
.post.is-closed .post__when b, .post.is-closed .post__name, .post.is-closed .post__price b { color: var(--g-400); }

/* 바텀시트 */
.sheet { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.sheet.is-open { visibility: visible; pointer-events: auto; }
.sheet__dim { position: absolute; inset: 0; background: rgba(21,19,26,.48); opacity: 0; transition: opacity .25s; }
.sheet.is-open .sheet__dim { opacity: 1; }
.sheet__panel {
  position: absolute; left: 50%; bottom: 0;
  width: min(100%, 480px); max-height: 88vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 22px 22px 0 0;
  transform: translate(-50%, 100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.sheet.is-open .sheet__panel { transform: translate(-50%, 0); }
.sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: var(--g-300); margin: 8px auto 0; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 4px var(--gutter); }
.sheet__top h2 { font-size: 18px; font-weight: 700; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 8px; }
.opt { border: 0; padding: 14px 0; }
.opt + .opt { border-top: 1px solid var(--g-100); }
.opt legend { font-size: 15px; font-weight: 700; margin-bottom: 10px; float: left; width: 100%; }
.opt legend small { font-size: 12px; font-weight: 400; color: var(--g-500); margin-left: 4px; }
.opt__chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.search-field {
  clear: both; display: flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 14px; border-radius: 12px; background: var(--g-100);
}
.search-field svg { width: 18px; height: 18px; color: var(--g-500); }
.search-field input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; outline: none; }
.sheet__foot {
  display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--g-100);
}
.sheet__foot .btn-line, .sheet__foot .btn-primary { height: 52px; border-radius: 14px; font-size: 16px; }

/* 골프예약 전용 */
.tee-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.tee-row::-webkit-scrollbar { display: none; }
.tee-slot {
  flex: none; min-width: 74px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--g-200); text-align: center; background: #fff;
}
.tee-slot b { display: block; font-size: 15px; font-weight: 800; }
.tee-slot small { font-size: 11px; color: var(--g-500); }
.tee-slot.is-low { border-color: var(--brand-200); background: var(--brand-50); }
.tee-slot.is-low small { color: var(--brand-700); font-weight: 600; }
.course { background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; }
.course__top { display: flex; gap: 12px; padding: 14px 14px 0; }
.course__thumb { flex: none; width: 76px; height: 76px; border-radius: 12px; background: linear-gradient(160deg, #B9E3C6, #4FA36B); position: relative; }
.course__thumb.v2 { background: linear-gradient(160deg, #C7DDF5, #4A86C5); }
.course__thumb.v3 { background: linear-gradient(160deg, #F2DDB8, #C49A52); }
.course__info { flex: 1; min-width: 0; }
.course__name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course__meta { font-size: 12px; color: var(--g-500); margin-top: 2px; }
.course__price { margin-top: 6px; font-size: 13px; color: var(--g-500); }
.course__price b { font-size: 18px; font-weight: 800; color: var(--g-900); margin-left: 2px; }
.course__body { padding: 0 14px 14px; }
.course__more { display: flex; align-items: center; justify-content: center; gap: 2px; height: 44px; border-top: 1px solid var(--g-100); font-size: 13px; color: var(--g-700); font-weight: 600; }
.course__more svg { width: 14px; height: 14px; }

/* tools 줄바꿈 방지 */
.seg-mini button, .toggle-hot, .btn-filter { white-space: nowrap; flex: none; }
.seg-mini button { padding: 0 10px; }
.btn-filter .badge[hidden] { display: none; }

/* ---------- 골프예약 (개발서버 구성 반영) ---------- */
.cs-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; }
.cs-card summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px; cursor: pointer; }
.cs-card summary::-webkit-details-marker { display: none; }
.cs-card__info { flex: 1; min-width: 0; }
.cs-card__region { display: inline-block; font-size: 11px; font-weight: 600; color: var(--g-700); background: var(--g-100); padding: 2px 7px; border-radius: 6px; }
.cs-card__name { font-size: 16px; font-weight: 700; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-card__price { font-size: 13px; color: var(--g-500); margin-top: 2px; }
.cs-card__price b { font-size: 18px; font-weight: 800; color: var(--brand-600); }
.cs-card__teams { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 17px; background: var(--g-100); font-size: 13px; color: var(--g-700); }
.cs-card__teams b { font-weight: 800; color: var(--g-900); }
.cs-card__teams svg { width: 14px; height: 14px; transition: transform .2s; }
.cs-card[open] .cs-card__teams { background: var(--brand-50); color: var(--brand-700); }
.cs-card[open] .cs-card__teams svg { transform: rotate(180deg); }
.cs-card__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 16px 14px; }
.slot { display: flex; flex-direction: column; align-items: center; padding: 9px 0 8px; border-radius: 12px; border: 1px solid var(--g-200); }
.slot b { font-size: 15px; font-weight: 800; }
.slot span { font-size: 12px; color: var(--g-700); margin-top: 1px; }
.slot small { font-size: 11px; color: var(--g-400); }
.slot.is-low { border-color: var(--brand-200); background: var(--brand-50); }
.slot.is-low span { color: var(--brand-700); font-weight: 700; }
.slot-more { display: flex; justify-content: center; align-items: center; height: 44px; border-top: 1px solid var(--g-100); font-size: 13px; font-weight: 600; color: var(--g-700); }
.tt-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); }
.tt-row > b { font-size: 18px; font-weight: 800; color: var(--brand-700); }
.tt-row div { flex: 1; min-width: 0; }
.tt-row__name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-row__meta { font-size: 12px; color: var(--g-500); }
.tt-row > span { font-size: 15px; font-weight: 800; }
.map-ph { margin: 0 var(--gutter); height: 420px; border-radius: 16px; display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--g-500);
  background: repeating-linear-gradient(45deg, var(--g-100) 0 12px, #fff 12px 24px); border: 1px dashed var(--g-300); }
.map-ph b { display: block; font-size: 15px; color: var(--g-700); }
.view-panel[hidden] { display: none; }
