﻿/* ════════════════════════════════════════════════════════════════
   fluff_road — 디자인 시스템
   파스텔 녹색 톤 / 둥근 모서리 / 부드러운 그림자
   ════════════════════════════════════════════════════════════════ */

/* ─── 디자인 토큰 (CSS 변수) ─── */
/* ─── 가로 스크롤 (맞춤추천·화제가게 카드) ─── */
.fr-hscroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.fr-hscroll-item {
  flex: 0 0 auto;
  width: 210px;
  scroll-snap-align: start;
}
/* 스크롤바 살짝 얇게 */
.fr-hscroll::-webkit-scrollbar { height: 7px; }
.fr-hscroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
.fr-hscroll::-webkit-scrollbar-track { background: transparent; }

/* ─── 인스타식 사진 가로 스크롤 (커뮤니티 글·리뷰) ─── */
.fr-photo-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.fr-photo-scroll img {
  flex: 0 0 auto;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  scroll-snap-align: center;
  background: var(--color-primary-light);
}
.fr-photo-scroll::-webkit-scrollbar { height: 7px; }
.fr-photo-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
.fr-img-del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.55); border: none; color: #fff;
  border-radius: 50%; width: 22px; height: 22px; padding: 0;
  font-size: 0.75rem; line-height: 22px; text-align: center;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.fr-img-del:hover { background: rgba(180,0,0,0.8); }

/* ─── 관리자 페이지 — 사이트 톤 통일 ─── */
.fr-admin-section { margin-bottom: 1.5rem; }
.fr-admin-report {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  background: var(--color-bg-card);
}
.fr-admin-report.handled { opacity: 0.5; }
.fr-admin-report-body { flex: 1; min-width: 0; }
.fr-admin-report-title { font-weight: 700; color: var(--color-text-primary); }
.fr-count-badge {
  display: inline-block;
  background: #ffe0e0;
  color: #c0392b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ─── 로드뷰 / 카드 사진 ─── */
.fr-rv-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-beige));
}
/* 상세 페이지 대표 이미지/로드뷰 영역 */
.fr-detail-hero {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.fr-detail-hero img,
.fr-detail-hero .fr-rv-host {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 홈 카드 이미지 영역 — 로드뷰가 링크 클릭을 방해하지 않도록 오버레이 */
.fr-place-card-image { position: relative; overflow: hidden; }
/* 로드뷰/내부 div가 컨테이너를 항상 꽉 채우도록 (카드 높이 제각각 방지) */
.fr-place-card-image .fr-rv-host {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.fr-place-card-image .fr-rv-host > div {
  width: 100% !important;
  height: 100% !important;
}
.fr-place-card-image .fr-rv-click-guard {
  position: absolute; inset: 0; z-index: 3;  /* 로드뷰 위를 덮어 클릭은 카드 링크로 */
}
/* 카드·사이드바 로드뷰 썸네일: 나침반·방위라벨·컨트롤·미니맵·저작권 UI 숨김 */
.fr-rv-host [id^="_rfs_"],    .fr-result-thumb [id^="_rfs_"],
.fr-rv-host [id^="_al_"],     .fr-result-thumb [id^="_al_"],
.fr-rv-host [id^="_atl_"],    .fr-result-thumb [id^="_atl_"],
.fr-rv-host [id^="_box_util_"],.fr-result-thumb [id^="_box_util_"],
.fr-rv-host [id^="_mm_view_"],.fr-result-thumb [id^="_mm_view_"],
.fr-rv-host [id^="_mm_box_"], .fr-result-thumb [id^="_mm_box_"],
.fr-rv-host [id^="_kakao_copyright_"],.fr-result-thumb [id^="_kakao_copyright_"],
.fr-rv-host [id^="_extra_copyright_"],.fr-result-thumb [id^="_extra_copyright_"] {
  display: none !important;
}
/* 리뷰 사진 미리보기 + 대표 선택 */
.fr-img-preview { position: relative; width: 76px; height: 76px; }
.fr-img-preview img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm);
  border: 2px solid transparent;
}
.fr-img-preview.is-rep img { border-color: var(--color-primary); }
.fr-img-preview .rep-badge {
  position: absolute; top: 2px; left: 2px;
  background: var(--color-primary); color: #fff;
  font-size: 8px; font-weight: 700; padding: 1px 5px; border-radius: 8px;
}
.fr-img-preview .rep-pick {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  font-size: 8.5px; cursor: pointer; background: rgba(255,255,255,0.9);
  border-radius: 6px; padding: 0 4px;
}
.fr-modal-fixed-card {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  height: 560px;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.fr-modal-scroll-results {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: 320px;
}

/* ─── 날씨 효과 오버레이 (색은 그대로, 효과만 얹음) ─── */
.weather-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;   /* 클릭 통과 — 사이트 사용에 지장 없음 */
  overflow: hidden;
  z-index: -1;            /* 콘텐츠 뒤 — 글씨·카드를 가리지 않음 */
}
/* 비 */
.weather-fx .rain-drop {
  position: absolute;
  top: -10%;
  width: 2px;
  height: 55px;
  background: linear-gradient(transparent, rgba(120, 165, 210, 0.55));
  border-radius: 1px;
  animation: fr-rain linear infinite;
}
@keyframes fr-rain {
  to { transform: translateY(120vh); }
}
/* 눈 */
.weather-fx .snow-flake {
  position: absolute;
  top: -5%;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(120, 150, 190, 0.7);
  user-select: none;
  animation: fr-snow linear infinite;
}
@keyframes fr-snow {
  0%   { transform: translate(0, -5vh) rotate(0deg); }
  100% { transform: translate(24px, 110vh) rotate(360deg); }
}
/* 구름 */
.weather-fx .cloud {
  position: absolute;
  opacity: 0.55;
  animation: fr-cloud linear infinite;
}
@keyframes fr-cloud {
  from { transform: translateX(-25vw); }
  to   { transform: translateX(125vw); }
}
/* 맑음 — 우상단 은은한 햇살 glow */
.weather-fx.sunny-glow {
  background: radial-gradient(circle at 88% 10%, rgba(255, 238, 170, 0.38), transparent 42%);
}

:root {
  /* 컬러 */
  --color-primary: hsl(122, 27%, 38%);          /* 차분한 세이지 녹색 */
  --color-primary-hover: #4f8850;    /* primary hover */
  --color-primary-light: #eef5ec;    /* 은은한 연녹색 배경 */
  --color-beige: #FFFAD3;            /* 베이지 (따뜻한 강조) */
  --color-beige-hover: #FFF5B8;

  --color-text-primary: #2C3E2D;     /* 본문 진한 녹색 */
  --color-text-secondary: #5A6B5B;
  --color-text-tertiary: #8A968B;
  --color-text-muted: #A8B0A8;

  --color-bg: #FAFBF9;               /* 페이지 배경 */
  --color-bg-card: #FFFFFF;          /* 카드 배경 */
  --color-bg-soft: #eff8ec;          /* 부드러운 강조 */

  --color-border: #E0E8DF;
  --color-border-strong: #C5D2C3;

  --color-danger: #E66565;
  --color-danger-bg: #FFE5E5;

  /* 폰트 */
  --font-base: 'Gmarket Sans', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --font-cute: 'Hakgyoansim Nadeuri', 'Pretendard', sans-serif;

  /* 그림자 */
  --shadow-sm: 0 1px 3px rgba(44, 62, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 62, 45, 0.08);
  --shadow-lg: 0 8px 24px rgba(44, 62, 45, 0.10);

  /* 둥근 모서리 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

/* ─── 전역 리셋 / 기본 ─── */
* {
  box-sizing: border-box;
}

html {
  /* 페이지 배경을 html에 두어, 날씨 효과(z-index:-1)가 body 콘텐츠 뒤로 가도 보이게 함 */
  background: var(--color-bg);
  font-size: 16px;
}
body {
  font-family: var(--font-base);
  color: var(--color-text-primary);
  background: transparent;   /* 투명 — 뒤의 날씨 효과가 비침 */
  line-height: 1.6;
  margin: 0;
  /* 네비가 sticky라 흐름 공간을 차지 → 별도 padding-top 불필요 */
}

a {
  color: var(--color-text-primary);
  text-decoration: none;
}
a:hover { opacity: 0.7; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-cute);
  color: var(--color-text-primary);
  font-weight: 700;
}

/* ─── Bootstrap 색상 오버라이드 ─── */
.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.4rem;
  transition: all 0.15s;
  white-space: nowrap;   /* "작성" 등 두 글자가 세로로 쪼개지지 않게 */
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--color-primary-hover) !important;
  border-color: var(--color-primary-hover) !important;
  color: #fff !important;
}

.btn-outline-primary {
  border: 1.5px solid #91a68f;
  color: var(--color-text-primary);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.4rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn-outline-primary:hover {
  background: #edf4eb;
  border-color: #6f9670;
  color: var(--color-text-primary);
}

.btn-soft {
  background: #f3f5f2;
  border: 1px solid #d9e1d7;
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-weight: 500;
}
.btn-soft:hover {
  background: #d9e4d6;
}

.btn-danger-soft {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-weight: 500;
}
.btn-danger-soft:hover {
  background: var(--color-danger);
  color: white;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  padding: 0.6rem 0.9rem;
  transition: border-color 0.15s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(177, 242, 179, 0.25);
}

/* ─── 네비게이션 바 ─── */
.fr-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: 70px;
  min-width: 0;
}
.fr-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.fr-nav-logo {
  font-family: var(--font-cute);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary) !important;
}
.fr-nav-logo:hover {
  opacity: 1;
  color: #4A7A4C !important;
}
.fr-nav-menu {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  margin-left: 1rem;
}
.fr-nav-menu a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.fr-nav-menu a:hover,
.fr-nav-menu a.active {
  color: var(--color-text-primary);
  opacity: 1;
}
.fr-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

/* ─── 컨테이너 ─── */
.fr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.fr-container-sm {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.fr-container-md {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ─── 카드 ─── */
.fr-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* ─── 히어로 ─── */
.fr-hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-beige) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.fr-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.fr-hero p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ─── 배지 (카테고리 칩) ─── */
.fr-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
}
.fr-badge-outline {
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
}

/* ─── 섹션 헤더 ─── */
.fr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.fr-section-header h2 {
  font-size: 1.4rem;
  margin: 0;
}
.fr-section-header a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ─── 메타 텍스트 ─── */
.fr-meta {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
}

/* ─── 가게 카드 ─── */
.fr-place-card {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s;
  color: var(--color-text-primary);
}
.fr-place-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  opacity: 1;
}
.fr-place-card-image {
  height: 140px;
  flex: 0 0 140px;       /* column flex 안에서 줄거나 늘지 않게 고정 */
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: 2rem;
}
.fr-place-card-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* ─── 마이페이지 고정 높이 카드 (5개 아이템 기준) ─── */
.fr-mypage-card {
  min-height: 22rem;
}

/* ─── 게시글 리스트 행 ─── */
.fr-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.fr-post-row:last-child { border-bottom: none; }
.fr-post-row-title {
  flex: 1;
  min-width: 0;
  color: var(--color-text-primary);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fr-post-row-title:hover { color: #4A7A4C; opacity: 1; }
.fr-post-card-title-link h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.fr-place-mention-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  font-size: 0.9em;
  line-height: 1;
  vertical-align: text-bottom;
}
.fr-post-row-meta {
  display: flex;
  gap: 0.75rem;
  color: var(--color-text-tertiary);
  font-size: 0.85rem;
  margin-left: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.fr-post-row-time {
  min-width: 80px;
  text-align: center;
}
.fr-post-row-likes {
  min-width: 40px;
  text-align: left;
}
.fr-rank {
  display: inline-block;
  width: 24px;
  color: var(--color-primary-hover);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ─── 강아지 멘트 카드 (홈) ─── */
.fr-quote {
  background: var(--color-beige);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.fr-quote h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}
.fr-quote-time {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin-top: 0.5rem;
}

/* ─── 통계 카드 ─── */
.fr-stat-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.fr-stat-card-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.fr-stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ─── 강아지 카드 (마이페이지) ─── */
.fr-pet-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.fr-pet-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.fr-pet-info {
  flex: 1;
}
.fr-pet-name {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* ─── 검색 히어로 ─── */
.fr-search-hero {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.fr-search-hero input {
  font-size: 1rem;
}

/* ─── 좋아요·추천 버튼 (토글) ─── */
.fr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-card);
  border-radius: var(--radius-pill);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all 0.15s;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
}
.fr-action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-text-primary);
}
.fr-action-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

/* ─── 댓글 ─── */
.fr-comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.fr-comment:last-child { border-bottom: none; }
.fr-comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin-bottom: 0.35rem;
}
.fr-comment-author {
  color: var(--color-text-primary);
  font-weight: 600;
}
.fr-comment-reply {
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-primary-light);
}
.fr-reply-form {
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary-light);
}

/* ─── 카테고리 칩 그룹 ─── */
.fr-chip-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.fr-chip {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.fr-chip:hover {
  border-color: var(--color-primary);
}
.fr-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

/* ─── 네비 통합 검색바 ─── */
.fr-nav-search {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin: 0 0.5rem;
}
.fr-nav-search form {
  display: flex;
  align-items: center;
  background: #f5f6f7;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0 0.5rem 0 1rem;
  transition: border-color 0.15s;
}
.fr-nav-search form:focus-within {
  border-color: var(--color-primary);
  background: #f5f6f7;
}
.fr-nav-search-input {
  flex: 1;
  border: none;
  background: inherit;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  outline: none;
  color: var(--color-text-primary);
  -webkit-appearance: none;
  appearance: none;
}
.fr-nav-search-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.3rem;
}
.fr-nav-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
  padding: 0.5rem 0;
}
.fr-nav-search-dropdown.show { display: block; }
.nav-search-section-title {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  padding: 0.5rem 1rem 0.25rem;
  font-weight: 600;
}
.nav-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.nav-search-item:hover {
  background: var(--color-primary-light);
}
.nav-search-item-label {
  color: var(--color-text-primary);
}
.nav-search-remove {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  padding: 0 0.25rem;
}
.nav-search-remove:hover {
  color: var(--color-danger);
}

/* ─── 지도 사이드바 레이아웃 (네이버 지도 형태) ─── */
.fr-map-layout {
  display: flex;
  height: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--color-border);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.fr-map-sidebar {
  width: 380px;
  flex-shrink: 0;
  background: white;
  overflow-y: auto;
  border-right: 1px solid var(--color-border);
  transition: width 0.25s ease, opacity 0.2s;
  display: flex;
  flex-direction: column;
}
.fr-map-sidebar.collapsed {
  width: 0;
  border-right: none;
  opacity: 0;
}
.fr-map-canvas {
  flex: 1;
  height: 100%;
  min-width: 0;
}
/* 사이드바 열기/닫기 토글 (지도 위 플로팅) */
.fr-sidebar-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* 사이드바 검색 영역 */
.fr-map-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.fr-map-report-text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.fr-map-report-text-link:hover {
  color: var(--color-text-primary);
}
.fr-map-search {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.fr-map-search .d-flex {
  min-width: 0;
}
.fr-map-search input {
  min-width: 0;
}
.fr-map-current-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
}
.fr-map-current-btn:hover {
  background: var(--color-primary-light);
}
.fr-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.fr-filter-btn {
  border: 1px solid #d8e0d6;
  background: #fff;
  border-radius: 999px;
  padding: 0.34rem 0.78rem;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.fr-filter-btn:hover {
  background: #f4f7f3;
  border-color: #b8c8b5;
  color: var(--color-text-primary);
}
.fr-filter-btn.active {
  background: #e4efe2;
  border-color: #7fa17d;
  color: #2f5535;
  font-weight: 700;
}

/* 검색 결과 목록 */
.fr-result-list {
  overflow-y: auto;
  flex: 1;
}
.fr-result-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.12s;
}
.fr-result-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-primary-light);
}
.fr-result-thumb .fr-rv-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.4rem;
}
.fr-result-body {
  flex: 1;
  min-width: 0;
}
.fr-result-item:hover {
  background: var(--color-primary-light);
}
.fr-result-item-name {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* 사이드바 상세 카드 */
.fr-detail-card {
  padding: 0.9rem;
  overflow-y: auto;
  flex: 1;
}
.fr-detail-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
}
.fr-detail-review {
  background: var(--color-bg-soft, #f8f9fa);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
}
.fr-dog-badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  margin-right: 0.3rem;
}

/* 모바일 — 세로로 쌓기 */
@media (max-width: 768px) {
  .fr-map-layout {
    flex-direction: column;
    height: auto;
    gap: 0.75rem;
  }
  .fr-map-sidebar {
    width: 100% !important;
    max-height: 420px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    opacity: 1 !important;
  }
  .fr-map-sidebar.collapsed {
    display: none;
  }
  .fr-map-canvas {
    height: 360px;
  }
}

/* ─── 강아지 사진 배너 (캐러셀) ─── */
.fr-banner {
  margin: 0 0 1.5rem;          /* 풀폭 (컨테이너 폭 전체 사용) */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.fr-home-hero {
  position: relative;
  width: 100%;
  margin-bottom: 0.25rem !important;
}
.fr-banner-slide {
  aspect-ratio: 3 / 1;         /* 가로:세로 = 3:1 (와이드 배너) */
  /* 이미지 없을 때(404) 보이는 폴백 그라데이션 */
  background-color: var(--color-primary-light);
  background-image: linear-gradient(135deg, var(--color-primary-light), var(--color-beige));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.fr-banner-slide::after {
  content: none;
}
.fr-mascot-hero-strip {
  min-height: clamp(96px, 11vw, 140px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.fr-mascot-hero-inner {
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-height: clamp(96px, 11vw, 140px);
  padding: clamp(0.6rem, 1.5vw, 0.95rem) clamp(0.25rem, 1.4vw, 0.75rem) 0;
}
.fr-hero-speech-zone {
  grid-column: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.fr-hero-speech-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: clamp(76px, 7.5vw, 108px);
  padding: clamp(0.85rem, 1.8vw, 1.25rem) clamp(1rem, 2.4vw, 1.55rem);
  border: 4px solid rgba(224, 232, 223, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(44, 62, 45, 0.1);
}
.fr-hero-speech-bubble::after {
  content: '';
  position: absolute;
  right: -15px;
  bottom: 28%;
  width: 26px;
  height: 26px;
  border-top: 4px solid rgba(224, 232, 223, 0.9);
  border-right: 4px solid rgba(224, 232, 223, 0.9);
  background: rgba(255, 255, 255, 0.88);
  transform: rotate(45deg);
}
.fr-hero-speech-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}
.fr-hero-speech-bubble h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.02rem, 1.7vw, 1.38rem);
  line-height: 1.45;
  text-align: center;
}
.fr-hero-dog-zone {
  --dog-pad: clamp(16px, 2vw, 28px);
  grid-column: 2;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.fr-dog-banner-actor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(70px, 8vw, 110px);
  aspect-ratio: 1 / 1;
  background-image: var(--dog-sprite, url('/static/img/R_walk_sp.png?v=20260624-143627'));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: var(--dog-sheet-width, 440px) 100%;
  filter: drop-shadow(0 8px 9px rgba(44, 62, 45, 0.24));
  transform: translateX(var(--dog-x, 16px)) scaleX(1);
  transform-origin: center bottom;
  will-change: transform, background-position;
  animation: frDogWalkFrames 0.85s steps(4) infinite;
}
.fr-dog-banner-actor[data-direction="left"] {
  transform: translateX(var(--dog-x, 16px)) scaleX(-1);
}
@keyframes frDogWalkFrames {
  from { background-position-x: 0; }
  to { background-position-x: var(--dog-walk-end, -440px); }
}
.fr-banner-text {
  position: relative;
  z-index: 1;
  color: white;
  font-family: var(--font-cute);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  padding-bottom: 2rem;
  text-align: center;
}
@media (max-width: 768px) {
  .fr-mascot-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: clamp(0.9rem, 3vw, 1.25rem);
  }
  .fr-hero-speech-bubble {
    max-width: 100%;
  }
  .fr-hero-speech-bubble::after {
    display: none;
  }
  .fr-hero-dog-zone {
    display: none;
  }
}
@media (max-width: 520px) {
  .fr-hero-speech-meta {
    display: block;
  }
  .fr-hero-speech-bubble h2 {
    font-size: clamp(0.95rem, 4.5vw, 1.18rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fr-dog-banner-actor {
    animation: none;
  }
}

/* ─── 푸터 ─── */
.fr-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
}

/* ─── 카카오맵 컨테이너 ─── */
.fr-map-container {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

/* ─── 토스트 알림 ─── */
#fr-toast-container {
  position: fixed;
  top: 4.5rem;
  right: 1.2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 340px;
  width: calc(100vw - 2.4rem);
}
.fr-toast {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  pointer-events: auto;
  animation: fr-toast-in 0.22s ease forwards;
  line-height: 1.45;
  word-break: keep-all;
  white-space: pre-line;
}
.fr-toast-error { border-left-color: #d94f4f; }
.fr-toast-out   { animation: fr-toast-out 0.22s ease forwards !important; }
@keyframes fr-toast-in  { from { opacity:0; transform:translateX(1.5rem); } to { opacity:1; transform:translateX(0); } }
@keyframes fr-toast-out { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(1.5rem); } }

/* ─── 헬퍼 ─── */
.fr-text-primary { color: var(--color-text-primary) !important; }
.fr-text-secondary { color: var(--color-text-secondary) !important; }
.fr-text-tertiary { color: var(--color-text-tertiary) !important; }

/* 메뉴 활성 상태 (페이지별 변경) */
.fr-nav-menu a.active {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ── 댓글/대댓글 액션 버튼: 네모칸 없이 텍스트만 ── */
.fr-comment-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.fr-comment-actions button {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s;
}
.fr-comment-actions button:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.fr-comment-actions .comment-like-btn.active {
  color: #e84855;
}
.fr-comment-actions .comment-delete-btn {
  color: var(--color-danger, #d9534f);
}

/* ── 리뷰 작성 모달 (카카오맵식 팝업) ── */
.fr-review-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.fr-review-modal-card {
  background: white;
  border-radius: var(--radius-lg, 16px);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.4rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.fr-review-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.fr-review-modal-x {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text-tertiary);
}
.fr-review-image-picker {
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: var(--color-bg-soft);
}
.fr-review-cancel-btn {
  background: white;
  border-color: var(--color-border);
}
.fr-review-cancel-btn:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-primary);
}
.fr-review-empathy {
  margin-left: 0.5rem;
  border: 1px solid var(--color-border);
  background: white;
  border-radius: var(--radius-pill);
  padding: 0.16rem 0.55rem;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  vertical-align: middle;
}
.fr-review-empathy.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-text-primary);
  font-weight: 700;
}

/* ── 반응형: 좁은 화면에서 가로 스크롤 / 글자 세로 깨짐 방지 ── */
@media (max-width: 768px) {
  /* 지도 사이드바·검색 결과가 너무 좁아질 때 가로 스크롤 허용 */
  .fr-map-sidebar,
  .fr-result-list {
    overflow-x: auto;
  }
  /* 가게명·버튼 등이 세로로 한 글자씩 깨지지 않도록 */
  .fr-result-item-name,
  .fr-detail-card h4,
  .fr-action-btn,
  .fr-filter-btn,
  .btn {
    white-space: nowrap;
  }
  /* 헤더의 추천/저장 버튼이 줄바꿈되도록 (세로 깨짐 대신) */
  .fr-card .d-flex.gap-2 {
    flex-wrap: wrap;
  }
}

/* ── 네비게이션 반응형 ── */
.fr-nav-logo,
.fr-nav-menu a,
.fr-nav-right,
.fr-nav-right * {
  white-space: nowrap;
}
/* 검색창은 줄어들 수 있게, 메뉴/우측은 줄어들지 않게 */
.fr-nav-search { flex-shrink: 1; min-width: 0; }
.fr-nav-menu { flex-shrink: 0; }
.fr-nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 검색창 wrap은 ≤770px 에서 통합 처리 (아래 반응형 섹션) */

/* ── 커뮤니티 피드 카드 ── */
.fr-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.fr-feed-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 0.75rem;
}
.fr-feed-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fr-feed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 1:1로 잘라서 채움 */
  display: block;
}
.fr-feed-photo-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ── 홈 카드 캐러셀 (화살표) ── */
.fr-carousel {
  position: relative;
  overflow: hidden;
}
.fr-carousel .fr-hscroll {
  overflow-x: hidden;       /* 가로 스크롤바 제거 — 화살표로만 이동 */
  scroll-behavior: smooth;
  scroll-snap-type: none;
  max-width: 100%;
}
/* 캐러셀 카드 너비는 반응형 섹션에서 고정 210px 으로 설정 */
.fr-carousel-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-text-primary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.fr-carousel-arrow.show { display: flex; }
.fr-carousel-arrow.left { left: 8px; }
.fr-carousel-arrow.right { right: 8px; }
.fr-carousel-arrow:hover { background: var(--color-primary-light); }

/* 카드 높이 통일: 같은 줄 카드들이 같은 높이로 끝나게 */
.fr-hscroll { align-items: stretch; }
.fr-hscroll-item { display: flex; }
.fr-place-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.fr-place-card-reason {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  min-height: calc(1.5em * 3);
  margin-top: auto;          /* 카드 하단에 붙여 5장 끝점 정렬 */
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border);
}

/* 가로 스크롤 없이 반응형으로만 동작 */
body {
  min-width: 0;
}

/* ── 글 안 '언급한 장소' 카드 (방식 B) ── */
.fr-place-mention {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  color: inherit;
}
.fr-place-mention-map {
  width: 100%;
  height: 180px;
  background: var(--color-primary-light);
  pointer-events: none;
}
.fr-place-mention-info {
  padding: 12px 16px;
}
.fr-place-mention-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.fr-hscroll .fr-place-card {
  flex-shrink: 0 !important;
}


/* ═══════════════════════════════════════════════════════════════
   반응형 레이아웃 (홈 · 네비 · 지도 · 프로필)
   단일 기준으로 정리 — 이 섹션 이전의 충돌 규칙은 모두 제거됨
   ═══════════════════════════════════════════════════════════════ */

html, body {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* ─── 기본: 네비 간격 조정 (1.5rem→1.1rem) / 상하 여백 고정 ─── */
.fr-nav { height: auto; }
.fr-nav-inner {
  min-height: 64px;
  flex-wrap: nowrap;
  gap: 1.1rem;
  padding: 0.5rem 1.1rem;  /* 상하 0.5rem 고정 — 두 줄로 바뀌어도 동일하게 유지 */
}
.fr-nav-logo, .fr-nav-menu, .fr-nav-search, .fr-nav-right { min-width: 0; }
.fr-nav-search {
  flex: 1 1 160px;
  max-width: 320px;
}
/* 데스크탑에서 fr-nav-expand는 투명 래퍼 — 자식들이 fr-nav-inner 플렉스에 직접 참여 */
.fr-nav-expand { display: contents; }

/* 두 토글 버튼 모두 기본 숨김 — 각 VERSION CSS 에서 필요 시 오버라이드 */
.fr-nav-toggle, .fr-nav-toggler { display: none; }


/* ════ VERSION B: 강아지 토글 방식 — 현재 활성
   비활성화: 이 블록 전체를 단일 블록주석으로 묶기 + VERSION A 주석 제거
   HTML base.html 의 VERSION B 버튼/JS 도 comment 처리 필요
   ════ */
@media (max-width: 900px) {
  /* 네비 바는 한 줄 고정 — 로고 + 토글 버튼만 */
  .fr-nav-inner { flex-wrap: nowrap; padding: 0.4rem 1.1rem; gap: 0.5rem; align-items: center; }
  .fr-nav-logo { order: 1; flex: 0 0 auto; }

  /* 토글 버튼: 오른쪽 끝에 고정, 순서 2번 */
  .fr-nav-toggle {
    order: 2; flex: 0 0 auto; margin-left: auto;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 2px;
    border: none; background: transparent; cursor: pointer;
    border-radius: 50%; overflow: hidden; flex-shrink: 0;
  }
  .fr-nav-toggle img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .fr-nav-toggle .fr-nav-toggle-active { display: none; }
  .fr-nav-toggle:hover .fr-nav-toggle-basic,
  .fr-nav-toggle[aria-expanded="true"] .fr-nav-toggle-basic { display: none; }
  .fr-nav-toggle:hover .fr-nav-toggle-active,
  .fr-nav-toggle[aria-expanded="true"] .fr-nav-toggle-active { display: block; }

  /* 확장 패널: 기본 숨김 */
  .fr-nav-expand { display: none; }

  /* 열렸을 때: 네비 아래에 절대 위치로 페이지 위에 겹쳐서 표시 */
  .fr-nav-inner.is-open .fr-nav-expand {
    display: flex; flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    z-index: 999;
    padding: 0.2rem 1.1rem 0.8rem;
  }

  /* 드롭다운 순서: 검색창 → 지도/커뮤니티 → 구분선 → 계정 영역 */
  .fr-nav-inner.is-open .fr-nav-search { order: 1; }
  .fr-nav-inner.is-open .fr-nav-menu   { order: 2; }
  .fr-nav-inner.is-open .fr-nav-right  { order: 3; }

  .fr-nav-inner.is-open .fr-nav-search {
    display: block; flex: none; max-width: 100%;
    padding: 0.35rem 0 0;
  }

  .fr-nav-inner.is-open .fr-nav-menu {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 0.4rem 0 0.2rem; margin-left: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .fr-nav-inner.is-open .fr-nav-menu a {
    display: block; width: 100%; padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm); text-decoration: none;
    color: var(--color-text-primary); font-size: 0.95rem; font-weight: 500;
    transition: background 0.15s;
  }
  .fr-nav-inner.is-open .fr-nav-menu a:hover,
  .fr-nav-inner.is-open .fr-nav-menu a.active { background: var(--color-bg-soft); }

  .fr-nav-inner.is-open .fr-nav-right {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0; padding: 0.2rem 0;
  }
  .fr-nav-inner.is-open .fr-nav-right a {
    display: block; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--color-text-secondary); font-size: 0.9rem;
    transition: background 0.15s;
  }
  .fr-nav-inner.is-open .fr-nav-right a:hover { background: var(--color-bg-soft); color: var(--color-text-primary); }
  .fr-nav-inner.is-open .fr-nav-right form { display: block; }
  .fr-nav-inner.is-open .fr-nav-right form > button.btn-soft {
    display: block; width: 100%; padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm); background: transparent; border: none;
    cursor: pointer; text-align: left; font-size: 0.9rem;
    color: var(--color-text-secondary); transition: background 0.15s; font-family: inherit;
  }
  .fr-nav-inner.is-open .fr-nav-right form > button.btn-soft:hover { background: var(--color-bg-soft); color: var(--color-text-primary); }

  .fr-nav-inner.is-open .fr-nav-search {
    display: block; max-width: 100%;
    padding: 0.35rem 0 0.2rem;
  }
}
/* ════ VERSION B END ════ */

/* ─── 캐러셀: 5장이 배너·한마디·인기글과 좌우 끝점 일치 ─── */
.fr-carousel .fr-hscroll {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  padding: 0.1rem 0 0.7rem;
  gap: 16px;
  width: 100%;
}
.fr-carousel .fr-hscroll-item {
  flex: 1 0 0;       /* 균등 분배 — 개수에 상관없이 마지막 카드가 우측 끝점과 일치 */
  min-width: 150px;
}
.fr-carousel .fr-hscroll .fr-place-card {
  width: 100% !important;
}

/* ─── 배너 ─── */
.fr-banner-slide {
  aspect-ratio: 3 / 1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.fr-banner-text {
  font-size: 1.1rem;
  padding: 0 1rem 1.8rem;
}

/* ─── 오늘의 한 마디 ─── */
.fr-quote h2 {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ─── 통계 카드: 항상 3열 ─── */
.fr-home-stats > [class*="col-"] {
  flex: 0 0 auto;
  width: 33.333333%;
}
.fr-home-stats .fr-stat-card {
  min-height: 88px;
  padding: 0.85rem 0.5rem;
}
.fr-home-stats .fr-stat-card-label {
  font-size: 0.82rem;
  line-height: 1.25;
}
.fr-home-stats .fr-stat-card-value {
  font-size: 1.4rem;
  line-height: 1.2;
  margin-top: 0.45rem;
}

@media (max-width: 768px) {
  .fr-container,
  .fr-container-md,
  .fr-container-sm {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  /* 배너 비율 고정: 3/1 그대로 유지 (여기서 바꾸지 않음) */
}

/* 배너 aspect-ratio 를 480px 이하에서도 변경하지 않음 — 항상 3:1 유지 */

/* ─── 지도 레이아웃 ─── */
@media (max-width: 768px) {
  .fr-map-layout {
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    gap: 0.75rem;
  }
  .fr-map-sidebar,
  .fr-map-sidebar.collapsed {
    display: flex !important;
    width: 100% !important;
    max-height: none;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    opacity: 1 !important;
  }
  .fr-map-search .d-flex { flex-wrap: wrap; }
  .fr-result-list {
    max-height: 360px;
    min-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .fr-map-canvas {
    width: 100%;
    height: 420px !important;
    min-height: 320px;
    flex: 0 0 auto;
  }
  .fr-sidebar-toggle { display: none; }
}
@media (max-width: 560px) {
  .fr-map-canvas { height: 360px !important; min-height: 300px; }
  .fr-result-list { max-height: 320px; }
}

/* ─── 프로필 ─── */
.fr-profile-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.fr-profile-info { flex: 1 1 auto; min-width: 0; }
.fr-profile-meta {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-profile-actions {
  flex: 0 0 auto;
  min-width: 116px;
  margin-left: auto;
}
.fr-profile-actions .btn-soft {
  display: block;
  white-space: nowrap;
  font-size: 0.88rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
@media (max-width: 480px) {
  .fr-profile-summary { gap: 0.75rem; }
  .fr-profile-info h2 { font-size: 1.2rem !important; }
  .fr-profile-meta { font-size: 0.78rem; }
  .fr-profile-actions {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    justify-content: flex-end;
  }
}
