/* ================================
   호수카 (HOSUCA) - style.css
   Colors: Dark Navy #1e293b + Orange/Blue accent
   ================================ */

:root {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;

  --orange: #f97316;
  --orange-dark: #ea580c;
  --blue: #3b82f6;
  --blue-dark: #2563eb;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.18);
  --transition: 0.3s ease;
  --header-h: 72px;

  --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(249, 115, 22, 0.45); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn--block { width: 100%; }

.btn--call {
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}
.btn--call:hover { background: var(--blue-dark); }
.btn--call__icon { font-size: 1.05rem; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}
.logo__mark { font-size: 1.6rem; }
.logo__text {
  font-weight: 900;
  font-size: 1.35rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo__sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--orange);
}

.nav__list { display: flex; gap: 28px; }
.nav__list a {
  color: var(--slate-200);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav__list a:hover { color: var(--white); }
.nav__list a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(15,23,42,0.92), rgba(30,41,59,0.75)),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.18), transparent 55%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  max-width: 760px;
}
.hero__eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero__title .accent { color: var(--orange); }
.hero__desc {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--slate-200);
  margin-bottom: 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--slate-100); }

.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--navy-800);
  margin-bottom: 14px;
}
.section__lead { color: var(--navy-600); font-size: 1.05rem; }

/* ===== Notice ===== */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.notice-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--slate-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.notice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.notice-card--event { border-top-color: var(--orange); }
.notice-card--tip { border-top-color: var(--blue); }
.notice-card--holiday { border-top-color: var(--navy-600); }

.notice-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--navy-700);
  margin-bottom: 14px;
}
.notice-card--event .notice-card__badge { background: #ffedd5; color: var(--orange-dark); }
.notice-card--tip .notice-card__badge { background: #dbeafe; color: var(--blue-dark); }

.notice-card__date {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 8px;
}
.notice-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--navy-800); }
.notice-card p { color: var(--navy-600); font-size: 0.95rem; }

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--navy-800); }
.service-card p { color: var(--navy-600); font-size: 0.95rem; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-weight: 500;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition);
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.0), rgba(59,130,246,0.0));
  transition: background var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:hover::after { background: linear-gradient(135deg, rgba(249,115,22,0.25), rgba(59,130,246,0.25)); }

.gallery__video-title {
  text-align: center;
  margin: 56px 0 24px;
  font-size: 1.4rem;
  color: var(--navy-800);
}
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===== Forms ===== */
.form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form--reservation { margin: 0; }

/* ===== Reservation layout (calendar + form) ===== */
.reservation-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
  transition: grid-template-columns var(--transition);
}
/* 폼이 숨겨졌을 때는 달력을 가운데로 */
.reservation-wrap.form-hidden {
  grid-template-columns: 460px;
  justify-content: center;
}

/* ===== Calendar ===== */
.calendar {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.calendar__title { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.calendar__nav {
  width: 38px; height: 38px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.calendar__nav:hover { background: var(--orange); }
.calendar__nav:disabled { opacity: 0.25; cursor: not-allowed; }
.calendar__nav:disabled:hover { background: rgba(255, 255, 255, 0.08); }

.calendar__weekdays,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar__weekdays {
  margin-bottom: 8px;
}
.calendar__weekdays span {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-400);
  padding: 4px 0;
}
.calendar__weekdays .is-sun { color: #f87171; }
.calendar__weekdays .is-sat { color: #60a5fa; }

.calendar__day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--slate-200);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.calendar__day:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.calendar__day.is-empty { cursor: default; }
.calendar__day.is-sun { color: #f87171; }
.calendar__day.is-sat { color: #60a5fa; }
.calendar__day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--slate-400);
}
.calendar__day:disabled {
  color: var(--navy-600);
  cursor: not-allowed;
}
.calendar__day.is-selected {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  font-weight: 700;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}
.calendar__hint {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--slate-400);
  text-align: center;
}

/* ===== Selected date banner in form ===== */
.form__selected-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.form__selected-date__label { font-size: 0.85rem; font-weight: 500; color: var(--orange-dark); }
.form__selected-date__value { font-size: 1.05rem; font-weight: 700; color: var(--navy-800); }

/* ===== Form reveal animation ===== */
.form--reservation[hidden] { display: none; }
.form--reservation.form-reveal {
  animation: formReveal 0.5s ease forwards;
}
@keyframes formReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__field { margin-bottom: 20px; }
.form__field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--navy-800);
}
.req { color: var(--orange); }

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy-800);
  background: var(--slate-100);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--slate-400); }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.form__field textarea { resize: vertical; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.map-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 62%; /* 반응형 비율 */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
}
/* 카카오지도 캔버스 */
.map-embed__canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
/* 지도 로딩 전/실패 시 폴백 */
.map-embed__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: repeating-linear-gradient(45deg, var(--slate-100), var(--slate-100) 12px, #e8edf3 12px, #e8edf3 24px);
}
.map-embed__title { font-weight: 700; color: var(--navy-700); font-size: 1.05rem; }
.map-embed__fallback small { color: var(--navy-600); font-size: 0.85rem; }
.map-embed__btn {
  margin-top: 4px;
  background: #fee500; /* 카카오 옐로우 */
  color: #191600;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: filter var(--transition);
}
.map-embed__btn:hover { filter: brightness(0.95); }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-dark);
}
.map-link:hover { text-decoration: underline; }

.info-box {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-box li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.info-box li:last-child { border-bottom: none; }
.info-box__label { font-weight: 700; color: var(--orange); font-size: 0.95rem; }
.info-box__value { color: var(--slate-200); font-size: 0.98rem; }
.info-box__value a:hover { color: var(--white); text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: 48px 0 32px;
  text-align: center;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer__brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-size: 1.2rem;
}
.footer__biz p { font-size: 0.9rem; line-height: 1.7; }
/* ===== 고객용 예약 패널 (내 예약 + 신청) ===== */
.reserve-cta {
  text-align: center;
  padding: 40px 24px;
}
.reserve-cta p { margin: 0 0 16px; color: var(--navy-700, #33415c); font-size: 1rem; }
.reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card-lite {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(20, 33, 61, 0.04);
}
.reserve-h { margin: 0 0 16px; font-size: 1.05rem; }
.my-resv-list { display: flex; flex-direction: column; gap: 12px; }
.my-resv {
  border: 1px solid #e5e8ef;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafbff;
}
.my-resv__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.my-resv__date { font-weight: 700; font-size: 0.95rem; }
.my-resv__svc { margin: 4px 0; font-size: 0.9rem; }
.my-resv__meta { margin: 2px 0; font-size: 0.85rem; color: #64748b; }
.daylist-empty { text-align: center; color: #94a3b8; padding: 24px 0; font-size: 0.9rem; }

/* ===== 고객후기 ===== */
.review-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}
.review-write { position: sticky; top: calc(var(--header-h) + 16px); }

/* 별점 표시(정적) */
.stars { color: var(--orange); font-size: 1rem; letter-spacing: 2px; white-space: nowrap; }
.stars__off { color: #d8dee9; }

/* 작성 폼 별점 선택 */
.review-form textarea {
  width: 100%;
  border: 1px solid #e5e8ef;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
  margin-bottom: 14px;
}
.review-form textarea:focus { outline: none; border-color: var(--blue); }
.star-pick { display: flex; align-items: center; gap: 4px; margin: 4px 0 14px; flex-wrap: wrap; }
.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: #d8dee9; padding: 0 2px;
  transition: transform 0.12s ease, color 0.12s ease;
}
.star-btn:hover { transform: scale(1.15); }
.star-btn.is-on { color: var(--orange); }
.star-pick__hint { margin-left: 8px; font-size: 0.85rem; color: var(--navy-600); font-weight: 700; }

/* 요약(평균 별점) */
.review-summary {
  display: flex; align-items: center; gap: 6px;
  min-height: 24px; margin-bottom: 14px;
  font-size: 1.05rem; color: var(--navy-800);
}
.review-summary .stars { font-size: 1.15rem; }
.review-summary__count { color: var(--navy-600); font-size: 0.9rem; font-weight: 500; }

/* 후기 목록 */
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.review-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 2px 10px rgba(20, 33, 61, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.review-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 33, 61, 0.09); }
.review-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.review-card__name { font-weight: 700; font-size: 0.95rem; color: var(--navy-800); }
.review-card__date { font-size: 0.78rem; color: var(--slate-400); }
.review-card__body { margin-top: 8px; font-size: 0.92rem; color: var(--navy-700); white-space: pre-wrap; word-break: break-word; }
.review-card__del {
  margin-top: 12px; background: none; border: 1px solid #fca5a5;
  color: #dc2626; border-radius: 8px; padding: 4px 12px;
  font-size: 0.8rem; cursor: pointer; transition: background 0.15s ease;
}
.review-card__del:hover { background: #fee2e2; }

@media (max-width: 768px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-write { position: static; }
}

/* ===== 게시물 카드 클릭(상세 보기) ===== */
.is-clickable { cursor: pointer; }
.is-clickable:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.post-more {
  display: inline-block; margin-top: 12px;
  font-size: 0.85rem; font-weight: 700; color: var(--blue-dark);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.notice-card.is-clickable:hover .post-more,
.service-card.is-clickable:hover .post-more,
.notice-card.is-clickable:focus-visible .post-more,
.service-card.is-clickable:focus-visible .post-more { opacity: 1; transform: none; }

/* ===== 게시물 상세 보기 모달 ===== */
#postModalBody { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.post-detail { margin-bottom: 22px; }
.post-detail__badge {
  display: inline-block; background: var(--navy-800); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.post-detail__title { margin: 12px 0 4px; font-size: 1.5rem; line-height: 1.35; color: var(--navy-900); }
.post-detail__date { font-size: 0.82rem; color: var(--slate-400); }
.post-detail__meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.post-detail__author { font-weight: 700; font-size: 1.05rem; color: var(--navy-800); }
.post-detail__body { margin-top: 16px; font-size: 1rem; line-height: 1.8; color: var(--navy-700); white-space: pre-wrap; word-break: break-word; }
.post-detail .video-wrap { margin-top: 16px; }
.post-detail__imgs {
  margin-top: 16px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.post-detail__imgs img { width: 100%; border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }

/* ===== CTA 예약 카드 (상세 페이지 하단 자동 배치) ===== */
.reserve-cta-card {
  margin-top: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbe4f3;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.06);
}
.gallery-post .reserve-cta-card { margin-top: 20px; }
.reserve-cta-card__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.reserve-cta-card__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue); color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.reserve-cta-card__lead h4 { margin: 0 0 2px; font-size: 1.15rem; color: var(--navy-900); }
.reserve-cta-card__lead p { margin: 0; font-size: 0.9rem; color: var(--navy-600); }
.reserve-cta-card__fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.qb-field { display: flex; flex-direction: column; gap: 6px; }
.qb-field--svc { grid-column: 1 / -1; }
.qb-field > span { font-size: 0.83rem; font-weight: 700; color: var(--navy-700); }
.qb-field > span em { font-weight: 400; color: var(--slate-400); font-style: normal; }
.qb-field input, .qb-field select {
  border: 1px solid #cfdaeb; border-radius: 10px; padding: 10px 12px;
  font-family: var(--font); font-size: 0.95rem; background: #fff;
}
.qb-field input:focus, .qb-field select:focus { outline: none; border-color: var(--blue); }
.reserve-cta-card__btn { margin-top: 2px; }

/* 비로그인 안내 바 (버튼 아래, 클릭 시 로그인 유도) */
.reserve-cta-card__lock {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; padding: 11px 14px;
  background: var(--navy-800); color: #fff;
  border-radius: 10px; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: background 0.2s ease, transform 0.1s ease;
}
.reserve-cta-card__lock:hover { background: var(--navy-900); }
.reserve-cta-card__lock:active { transform: translateY(1px); }
.reserve-cta-card__lock:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

@media (max-width: 560px) {
  .reserve-cta-card__fields { grid-template-columns: 1fr; }
}

.st-badge { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.st--pending   { background: #fef3c7; color: #92400e; }
.st--confirmed { background: #dbeafe; color: #1e40af; }
.st--done      { background: #dcfce7; color: #166534; }
.st--cancelled { background: #fee2e2; color: #991b1b; }

.resv-item__cancel {
  margin-top: 8px;
  background: #fee2e2; color: #dc2626; border: 0;
  border-radius: 7px; padding: 6px 12px; cursor: pointer;
  font-size: 0.82rem; font-weight: 700;
}
.resv-item__cancel:hover { background: #fecaca; }

@media (max-width: 720px) {
  .reserve-grid { grid-template-columns: 1fr; }
}

.footer__copy { font-size: 0.85rem; color: var(--navy-600); margin-top: 8px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translate(-50%, 120%);
  background: var(--navy-800);
  color: var(--white);
  padding: 16px 26px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  z-index: 2000;
  max-width: 90%;
  border-left: 4px solid var(--orange);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================
   Responsive
   ================================ */
@media (max-width: 900px) {
  .notice-grid,
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  .reservation-wrap,
  .reservation-wrap.form-hidden {
    grid-template-columns: 1fr;
    max-width: 560px;
    justify-content: stretch;
  }
  .calendar { position: static; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--navy-900);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav.open { max-height: 340px; box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
  }
  .nav__list li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__list a { display: block; padding: 14px 0; }
  .nav__list a::after { display: none; }

  .nav-toggle { display: flex; }
  .btn--call__text { display: none; }
  .btn--call { padding: 10px 12px; }

  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .notice-grid,
  .service-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 24px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* ================================
   예약 관리 시스템 (달력 대시보드 · 모달)
   ================================ */

/* ----- 버튼 추가 변형 ----- */
.btn--dark { background: var(--navy-800); color: var(--white); box-shadow: none; }
.btn--dark:hover { background: var(--navy-900); }
.btn--ghost { background: var(--slate-200); color: var(--navy-700); box-shadow: none; }
.btn--ghost:hover { background: #d7dee7; }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }

/* ----- 헤더 인증 메뉴 ----- */
.auth-menu { display: flex; align-items: center; gap: 8px; }
.auth-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.auth-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.auth-btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: var(--slate-200); }
.auth-btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.auth-user { color: var(--slate-200); font-size: 0.85rem; white-space: nowrap; }
.auth-user strong { color: #fff; }
.auth-badge {
  background: var(--orange);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ----- 예약 대시보드 바 ----- */
.resv-bar {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.resv-bar__left { display: flex; align-items: center; gap: 14px; }
.resv-bar__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: #fff7ed;
  border-radius: 12px;
}
.resv-bar__left h3 { font-size: 1.15rem; color: var(--navy-800); }
.resv-bar__left p { font-size: 0.82rem; color: var(--navy-600); }
.resv-bar__controls { display: flex; gap: 8px; }
.resv-bar__controls button {
  border: 1.5px solid var(--slate-200);
  background: #fff;
  color: var(--navy-700);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.resv-bar__controls button:hover { background: var(--slate-100); }
.resv-bar__controls button.is-primary { background: #fff7ed; border-color: #fed7aa; color: var(--orange-dark); }
.resv-bar__controls button.is-primary:hover { background: #ffedd5; }

/* ----- 범례 / 관리자 배지 ----- */
.resv-legend {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; padding: 0 4px; flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--navy-600); font-weight: 500; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); display: inline-block; }
.admin-mode-badge {
  background: var(--navy-800);
  color: var(--orange);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.admin-mode-badge:hover { background: var(--navy-900); }

/* ----- 관리 달력 ----- */
.mcal {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mcal__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--navy-800); }
.mcal__weekdays span { text-align: center; padding: 12px 0; font-size: 0.82rem; font-weight: 700; color: var(--slate-200); }
.mcal__weekdays .is-sun { color: #fca5a5; }
.mcal__weekdays .is-sat { color: #93c5fd; }

.mcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.mcal__day {
  min-height: 118px;
  padding: 8px;
  border-right: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background var(--transition);
}
.mcal__day:nth-child(7n) { border-right: none; }
.mcal__day:hover { background: var(--slate-100); }
.mcal__day--empty { background: #fafbfc; cursor: default; }
.mcal__day--empty:hover { background: #fafbfc; }
.mcal__day--today { background: #fff7ed; }
.mcal__day--today:hover { background: #ffedd5; }

.mcal__top { display: flex; align-items: center; justify-content: space-between; }
.mcal__num { font-size: 0.9rem; font-weight: 700; color: var(--navy-700); }
.mcal__num.is-sun { color: #ef4444; }
.mcal__num.is-sat { color: #3b82f6; }
.mcal__day--today .mcal__num {
  background: var(--orange); color: #fff;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.mcal__count { font-size: 0.68rem; font-weight: 700; background: var(--orange); color: #fff; padding: 2px 7px; border-radius: 999px; }
.mcal__chips { display: flex; flex-direction: column; gap: 3px; }
.mcal__chip {
  font-size: 0.7rem;
  line-height: 1.35;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--navy-700);
  border-radius: 6px;
  padding: 2px 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mcal__chip b { color: var(--blue-dark); }
.mcal__chip--more { background: transparent; border: none; color: var(--slate-400); font-weight: 600; padding: 0 6px; }

/* ----- 모달 공통 ----- */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.open { display: flex; animation: modalFade 0.25s ease; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal__dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.3s ease;
}
@keyframes modalPop { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__dialog--tall { max-width: 520px; }
.modal__dialog--wide { max-width: 860px; }

.modal__head {
  background: var(--navy-800); color: #fff;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
.modal__head--dark { background: var(--navy-900); }
.modal__head h3 { font-size: 1.1rem; font-weight: 700; }
.modal__sub { font-size: 0.78rem; color: var(--slate-400); margin-top: 2px; }
.modal__close { background: transparent; border: none; color: var(--slate-400); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: color var(--transition); }
.modal__close:hover { color: #fff; }
.modal__body { padding: 22px; }
.modal__body--scroll { overflow-y: auto; }
.modal__foot { padding: 14px 22px; background: var(--slate-100); border-top: 1px solid var(--slate-200); display: flex; justify-content: flex-end; flex-shrink: 0; }
.modal__divider { border: none; border-top: 1px solid var(--slate-200); margin: 22px 0; }
.modal__hint { font-size: 0.8rem; color: var(--navy-600); margin-bottom: 16px; }

/* ----- 로그인 탭 ----- */
.login-tabs { display: flex; background: var(--slate-100); border-bottom: 1px solid var(--slate-200); flex-shrink: 0; }
.login-tab {
  flex: 1; padding: 14px; border: none; background: transparent;
  border-bottom: 2px solid transparent;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--slate-400); cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.login-tab.is-active { color: var(--orange-dark); border-bottom-color: var(--orange); background: #fff; }
.is-hidden { display: none !important; }
.notice-admin {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px;
  padding: 12px 14px; font-size: 0.78rem; color: var(--orange-dark);
  margin-bottom: 16px; line-height: 1.7;
}
.notice-admin b { color: var(--navy-800); }

/* ----- 날짜 상세 목록 ----- */
.daylist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.daylist-head h4 { font-size: 0.95rem; color: var(--navy-800); }
.pill { font-size: 0.75rem; font-weight: 700; background: #fff7ed; color: var(--orange-dark); padding: 3px 10px; border-radius: 999px; }
.daylist { display: flex; flex-direction: column; gap: 10px; }
.daylist-empty { text-align: center; padding: 26px 0; color: var(--slate-400); font-size: 0.85rem; }
.resv-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--slate-100);
}
.resv-item--mine { background: #fff7ed; border-color: #fed7aa; }
.resv-item__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.resv-item__time { font-size: 0.78rem; font-weight: 700; color: var(--blue-dark); background: #fff; border: 1px solid var(--slate-200); border-radius: 6px; padding: 2px 8px; }
.resv-item__name { font-size: 0.95rem; font-weight: 700; color: var(--navy-800); }
.resv-item__phone { font-size: 0.78rem; color: var(--navy-600); font-family: ui-monospace, monospace; }
.resv-item__svc { font-size: 0.82rem; color: var(--navy-600); margin-top: 4px; }
.resv-item__meta { font-size: 0.78rem; color: var(--navy-600); margin-top: 3px; }
.resv-item__info { min-width: 0; }
.tag--mine { background: var(--orange); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.resv-item__cancel {
  background: #fff; border: 1px solid #fecaca; color: #dc2626;
  font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.resv-item__cancel:hover { background: #fef2f2; }

/* ----- 관리자 시간대 현황 보드 ----- */
.slot-status {
  margin-top: 16px;
  background: var(--navy-800);
  border-radius: 12px;
  padding: 14px 16px;
}
.slot-status__head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.slot-status__summary { font-size: 0.75rem; font-weight: 500; color: var(--slate-400); }
.slot-status__summary b { color: var(--orange); }
.slot-status__list { display: flex; flex-direction: column; gap: 6px; }
.slot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 8px; font-size: 0.8rem;
}
.slot--open { background: rgba(255, 255, 255, 0.06); }
.slot--taken { background: rgba(249, 115, 22, 0.14); border: 1px solid rgba(249, 115, 22, 0.35); }
.slot__time { font-weight: 700; color: #fff; font-family: ui-monospace, monospace; }
.slot--open .slot__state { color: #86efac; font-weight: 600; }
.slot--taken .slot__state { color: var(--orange); font-weight: 700; }
.slot__who { margin-left: auto; color: var(--slate-200); font-size: 0.76rem; }
.slot--extra .slot__time { color: #fca5a5; }

/* ----- 예약 신청 폼 (모달 내) ----- */
.booking-title { font-size: 0.95rem; color: var(--navy-800); margin-bottom: 12px; }
.booking-form .form__field { margin-bottom: 14px; }
.booking-form select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--slate-200); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: var(--slate-100); color: var(--navy-800);
  transition: border-color var(--transition), background var(--transition);
}
.booking-form select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,0.12); }
.booking-warn { margin-top: 8px; font-size: 0.78rem; color: #dc2626; font-weight: 600; }
.booking-form select option:disabled { color: var(--slate-400); }
.booking-login { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 18px; text-align: center; }
.booking-login p { font-size: 0.85rem; color: var(--orange-dark); margin-bottom: 12px; font-weight: 500; }

/* ----- 관리자 패널 ----- */
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-toolbar p { font-size: 0.8rem; color: var(--navy-600); }
.link-danger { background: none; border: none; color: #dc2626; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.link-danger:hover { text-decoration: underline; }
.admin-table-wrap { border: 1px solid var(--slate-200); border-radius: 12px; overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table thead { background: var(--slate-100); }
.admin-table th { text-align: left; padding: 12px; font-weight: 700; color: var(--navy-700); white-space: nowrap; }
.admin-table td { padding: 11px 12px; border-top: 1px solid var(--slate-200); color: var(--navy-700); }
.admin-table tbody tr:hover { background: var(--slate-100); }
.admin-table .mono { font-family: ui-monospace, monospace; }
.ta-c { text-align: center; }
.admin-empty { text-align: center; padding: 24px; color: var(--slate-400); }
.btn-mini-danger { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 5px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: background var(--transition); }
.btn-mini-danger:hover { background: #fee2e2; }

/* ----- 예약 시스템 반응형 ----- */
@media (max-width: 768px) {
  .mcal__day { min-height: 84px; padding: 5px; gap: 2px; }
  .mcal__chips { display: none; }
  .resv-bar { flex-direction: column; align-items: stretch; }
  .resv-bar__controls { justify-content: space-between; }
  .resv-bar__controls button { flex: 1; }
  .auth-btn { font-size: 0.74rem; padding: 7px 11px; }
  .auth-user { display: none; }
}
@media (max-width: 560px) {
  .mcal__day { min-height: 62px; }
  .mcal__num { font-size: 0.8rem; }
  .mcal__weekdays span { font-size: 0.72rem; padding: 9px 0; }
  .modal__dialog { border-radius: 14px; }
}
