/* =========================================================
   후쿠오카 맛집 지도 - 스타일 v2
   - 카드 2타입: 대표 추천(이미지+배지) / 일반(텍스트 중심)
   - 이모지 단독 영역 완전 제거
   - 모바일 탭 스크롤 정돈
   ========================================================= */

:root {
  --wine:     #7a2233;
  --wine-deep:#5e1726;
  --red:      #a8324a;
  --red-soft: #c75a6e;
  --ivory:    #fbf6ec;
  --cream:    #fffdf8;
  --cream-2:  #f5ecdc;
  --ink:      #2b2326;
  --ink-soft: #6b5f63;
  --gold:     #c9a24b;
  --gold-bg:  #fdf3df;
  --line:     #e7dcc8;
  --shadow:   0 6px 22px rgba(94,23,38,.10);
  --shadow-sm:0 2px 10px rgba(94,23,38,.07);
  --radius:   18px;
  --radius-sm:12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans KR", system-ui, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 헤더 ===== */
.site-header {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(168,50,74,.18), transparent 60%),
    linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 44px 16px 50px;
  position: relative;
  overflow: hidden;
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 24px;
  background: var(--ivory);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.header-inner { position: relative; z-index: 1; }
.header-eyebrow {
  font-size: 12.5px;
  letter-spacing: .03em;
  color: #f5d9df;
  margin-bottom: 10px;
}
.header-eyebrow i { margin-right: 4px; }
.site-title {
  font-family: "Gowun Batang", serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.site-subtitle {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #f3dde2;
  line-height: 1.55;
}
.btn-map-hero {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  background: #fff;
  color: var(--wine);
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
}
.btn-map-hero:active { transform: scale(.97); }
.btn-map-hero i { color: var(--red); }

/* ===== 섹션 공통 ===== */
section { padding: 32px 0; }
.section-title {
  font-family: "Gowun Batang", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--wine);
  text-align: center;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  background: var(--red);
  border-radius: 3px;
  margin: 8px auto 0;
}
.section-desc {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  margin: 7px auto 18px;
  max-width: 540px;
  line-height: 1.6;
}

/* ===== 지도 영역 ===== */
.map-section { background: var(--ivory); }
.map-embed {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #eee;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.area-map-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.area-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1.5px solid var(--wine);
  color: var(--wine);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.area-btn.primary { background: var(--wine); color: #fff; }
.area-btn:active { transform: scale(.96); }

/* ===== 추천 조합 ===== */
.combo-section { background: var(--cream-2); }
.combo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.combo-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.combo-card h3 {
  font-size: 16px;
  color: var(--wine);
  display: flex;
  align-items: center;
  gap: 7px;
}
.combo-emoji { font-size: 18px; }
.combo-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 5px 0 10px;
}
.combo-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.combo-chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--wine-deep);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.combo-chip:hover { background: var(--wine); color: #fff; }

/* ===== 카테고리 탭 ===== */
.main-section { background: var(--ivory); }
.category-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  scroll-snap-align: start;
}
.cat-tab .cat-emoji { font-size: 14px; }
.cat-tab.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
  font-weight: 700;
}

/* ===== 상황별 필터 ===== */
.filter-block {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 12px 0 16px;
  box-shadow: var(--shadow-sm);
}
.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.filter-label { font-weight: 700; color: var(--wine); font-size: 13.5px; }
.filter-label i { margin-right: 4px; }
.filter-clear {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
}
.situation-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.situ-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.situ-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-weight: 700;
}

/* ===== 결과 카운트 ===== */
.result-count {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  text-align: center;
}
.result-count strong { color: var(--wine); }

/* ===== 카드 그리드 ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ===== 카드 공통 기반 ===== */
.shop-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.shop-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   타입 1 — 대표 추천 카드
   ============================================================ */
.card-featured {
  border-color: var(--gold);
  border-width: 1.5px;
}
.card-featured .card-body { padding: 14px 15px 16px; }

/* 이미지 래퍼 */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-2);
  flex-shrink: 0;
}
.card-img-wrap .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.card-featured:hover .card-img { transform: scale(1.04); }

/* 폴백 (이미지 URL 없을 때) */
.card-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-icon { font-size: 52px; opacity: .55; }

/* 이미지 위 오버레이 */
.card-img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: linear-gradient(to bottom, rgba(0,0,0,.42) 0%, transparent 100%);
}

/* 대표 추천 배지 */
.badge-rec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--gold), #e0bf6e);
  color: #4a3608;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  white-space: nowrap;
}
.badge-rec i { font-size: 10px; }

/* 스타일 배지 (오사카식/히로시마식 등) */
.card-style-badge {
  display: inline-block;
  background: rgba(255,255,255,.88);
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

/* ============================================================
   타입 2 — 일반 카드 (이미지 없음)
   ============================================================ */
.card-normal .card-body { padding: 14px 15px 16px; }

/* 카테고리 아이콘 + 이름 한 줄 */
.card-cat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.card-cat-icon { font-size: 16px; line-height: 1; }

/* ===== 카드 내부 공통 요소 ===== */
.card-cat {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .02em;
  line-height: 1;
}
.card-name {
  font-family: "Gowun Batang", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 5px 0 8px;
  line-height: 1.3;
}
.card-meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 9px;
  align-items: center;
}
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-item i { color: var(--wine); width: 13px; text-align: center; }

.price-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.price-value   { background: #e7f1e6; color: #2f6b3a; }
.price-normal  { background: #eef0f5; color: #4a5775; }
.price-high    { background: #f7e7d6; color: #9a5a1d; }
.price-premium { background: #f4e0e6; color: var(--wine); }

.card-rec {
  font-size: 12.5px;
  color: var(--ink);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  margin-bottom: 9px;
  line-height: 1.5;
}
.card-rec .rec-key { color: var(--wine); font-weight: 700; }

.card-point {
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 9px;
  line-height: 1.55;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--wine-deep);
  border: 1px solid var(--line);
}
.tag.highlight { background: var(--wine); color: #fff; border-color: var(--wine); }

.card-warn {
  font-size: 12px;
  color: #9a5a1d;
  background: #fdf3e6;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.card-warn i { margin-right: 4px; }

/* 구글맵 버튼 */
.card-footer { margin-top: auto; }
.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn-map:hover { background: var(--wine-deep); }
.btn-map:active { transform: scale(.98); }

/* 일반 카드 버튼 — 아웃라인 */
.btn-map-sm {
  background: var(--cream);
  color: var(--wine);
  border: 1.5px solid var(--wine);
  font-size: 13.5px;
  padding: 11px;
}
.btn-map-sm:hover { background: var(--wine); color: #fff; }

/* ===== 더보기 ===== */
.more-wrap { text-align: center; margin-top: 20px; }
.btn-more {
  background: var(--cream);
  border: 1.5px solid var(--wine);
  color: var(--wine);
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn-more:hover { background: var(--wine); color: #fff; }
.btn-more:active { transform: scale(.97); }
.btn-more i { margin-left: 4px; font-size: 12px; }

.empty-msg {
  text-align: center;
  color: var(--ink-soft);
  padding: 28px 0;
  font-size: 14.5px;
}

/* ===== 하단 안내 ===== */
.notice-section { background: var(--cream-2); }
.notice-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.notice-title { font-size: 17px; color: var(--wine); margin-bottom: 7px; }
.notice-title i { margin-right: 6px; color: var(--red); }
.notice-box p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }
.notice-box strong { color: var(--wine); }

/* ===== 푸터 ===== */
.site-footer {
  background: var(--wine-deep);
  color: #f1dde2;
  text-align: center;
  padding: 30px 16px 38px;
}
.footer-title { font-family: "Gowun Batang", serif; font-size: 20px; font-weight: 700; color: #fff; }
.footer-sub { font-size: 13.5px; margin: 5px 0 12px; color: #e9c9d0; }
.footer-note { font-size: 11px; color: #c79aa4; line-height: 1.6; max-width: 540px; margin: 0 auto; }

/* ===== 맨 위로 ===== */
.to-top {
  position: fixed;
  right: 14px; bottom: 16px;
  width: 46px; height: 46px;
  background: var(--wine);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(94,23,38,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  z-index: 50;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== 반응형 ===== */
@media (min-width: 600px) {
  .site-title { font-size: 46px; }
  .site-subtitle { font-size: 17px; }
  .map-embed { height: 380px; }
  .combo-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 25px; }
}

@media (min-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr 1fr; }
  .combo-grid { grid-template-columns: repeat(3, 1fr); }
  .map-embed { height: 420px; }
}
