/* ===== 기본 리셋 & 전역 설정 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #E85C0D;
  --primary-dark: #C84B0A;
  --dark: #1a1a1a;
  --dark2: #2c2c2c;
  --gray: #f5f5f5;
  --gray2: #e0e0e0;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --mobile-width: min(390px, 100vw);
  /* 헤더 고정 시 본문 패딩용 (padding 32px + 로고 36px + border 1px) */
  --header-height: 69px;
}

html {
  height: 100%;
}

html, body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #c8c8c8;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== 모바일 고정 래퍼 ===== */
.mobile-wrap {
  width: 100%;
  max-width: 390px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-top: var(--header-height);
  background-color: #fafafa;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.25);
}

/* ===== 헤더 ===== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.header-inner-sub {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.header-brand {
  justify-self: center;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-main {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}


/* ===== 햄버거 버튼 ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 30px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== 메뉴 오버레이 ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== 사이드 메뉴 ===== */
.side-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: calc(50% - var(--mobile-width) / 2);
  width: 280px;
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.side-menu.active {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray2);
}

.menu-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
}

.menu-list {
  list-style: none;
  flex: 1;
  padding: 12px 0;
}

.menu-list li {
  border-bottom: 1px solid var(--gray);
}

.menu-link {
  display: block;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  transition: background 0.2s;
}

.menu-link:active {
  background: var(--gray);
}

.menu-call {
  display: block;
  margin: auto 20px 40px;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.header-call {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}

.header-call:active {
  background: var(--primary-dark);
}

/* ===== 히어로 섹션 ===== */
.hero {
  position: relative;
  background: url('images/hero.jpg') center center / cover no-repeat;
  padding: 48px 20px 0;
  overflow: hidden;
}

/* 히어로: 아주 은은한 그라데이션(가독 살짝만 보조) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(8, 10, 14, 0.2) 0%,
    rgba(8, 10, 14, 0.08) 38%,
    rgba(0, 0, 0, 0.06) 72%,
    rgba(0, 0, 0, 0.04) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.hero-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  border: 1px solid rgba(232, 92, 13, 0.9);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -1px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 4px 20px rgba(0, 0, 0, 0.45),
    0 0 1px rgba(0, 0, 0, 0.9);
}

.hero-title span {
  color: var(--primary);
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 2px rgba(0, 0, 0, 0.9);
}

.hero-desc {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.65;
  margin-bottom: 28px;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
}

.btn {
  flex: 1;
  padding: 14px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:active {
  background: var(--primary-dark);
}

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

.btn-outline:active {
  background: rgba(255,255,255,0.1);
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 10px;
  margin: 0 -20px;
  position: relative;
  z-index: 1;
}

.badge {
  flex: 1;
  text-align: center;
}

.badge-num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.badge-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.badge-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.15);
}

/* ===== 빠른 상담 배너 ===== */
.quick-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  padding: 16px 20px;
}

.quick-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.quick-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.quick-call {
  background: var(--white);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 20px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.quick-call:active {
  opacity: 0.85;
}

/* ===== 공통 섹션 ===== */
.section {
  padding: 44px 10px;
}

.section-dark {
  background: var(--dark);
}

.section-gray {
  background: var(--gray);
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(232,92,13,0.07);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-title.white {
  color: var(--white);
}

.section-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  word-break: keep-all;
}

/* ===== 서비스 그리드 ===== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-card {
  background: var(--white);
  border: 1px solid #f0f0f0;
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    opacity 0.55s ease,
    transform 0.14s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.14s ease,
    border-color 0.14s ease,
    background-color 0.14s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.service-grid .service-card.hidden {
  transition-property: opacity, transform, box-shadow, border-color, background-color;
  transition-duration: 0.65s, 0.65s, 0.14s, 0.14s, 0.14s;
  transition-timing-function:
    cubic-bezier(0.22, 1, 0.36, 1),
    cubic-bezier(0.22, 1, 0.36, 1),
    ease,
    ease,
    ease;
}

.service-grid .service-card:nth-child(1).hidden {
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}

.service-grid .service-card:nth-child(2).hidden {
  transition-delay: 0.12s, 0.12s, 0.12s, 0.12s, 0.12s;
}

.service-grid .service-card:nth-child(3).hidden {
  transition-delay: 0.24s, 0.24s, 0.24s, 0.24s, 0.24s;
}

.service-grid .service-card:nth-child(4).hidden {
  transition-delay: 0.36s, 0.36s, 0.36s, 0.36s, 0.36s;
}

.service-grid .service-card:nth-child(5).hidden {
  transition-delay: 0.48s, 0.48s, 0.48s, 0.48s, 0.48s;
}

.service-grid .service-card:nth-child(6).hidden {
  transition-delay: 0.6s, 0.6s, 0.6s, 0.6s, 0.6s;
}

.service-card:active {
  transform: translateY(2px) scale(0.97);
  border-color: rgba(232, 92, 13, 0.35);
  background: #f6f6f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.service-icon {
  font-size: 34px;
  margin-bottom: 6px;
}

.service-icon-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.service-card p {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.45;
  word-break: keep-all;
}

/* ===== 왜 태형철거인가 ===== */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.why-item:last-child {
  border-bottom: none;
}

.why-num {
  font-size: 32px;
  font-weight: 900;
  color: rgba(232,92,13,0.3);
  line-height: 1;
  flex-shrink: 0;
  width: 46px;
}

.why-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.why-content p {
  font-size: 13px;
  color: #aaaaaa;
  line-height: 1.6;
  word-break: keep-all;
}

/* ===== 진행 과정 ===== */
.process-list {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.step-circle {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(232,92,13,0.35);
}

.step-line {
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% + 0px);
  background: linear-gradient(to bottom, var(--primary), var(--gray2));
}

.process-step {
  padding-bottom: 28px;
}

.process-step.last {
  padding-bottom: 0;
}

.step-content {
  padding-top: 8px;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== 후기 섹션 ===== */
.review-slider-wrap {
  overflow: hidden;
  margin: 0 -10px;
}

.review-list {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: max-content;
  animation: reviewScroll 20s linear infinite;
}

.review-list:hover {
  animation-play-state: paused;
}

@keyframes reviewScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-left: 4px solid var(--primary);
  min-width: 270px;
  max-width: 270px;
  flex-shrink: 0;
  margin-right: 14px;
}

.review-stars {
  color: #FFA500;
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 14px;
  word-break: keep-all;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.review-location {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 연락처 섹션 ===== */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: 18px;
  padding: 16px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.contact-item:not(.no-link):active {
  background: #fdf5f0;
  transform: scale(0.98);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.phone-icon,
.kakao-icon,
.time-icon,
.loc-icon {
  background: #eee;
}

.contact-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-label {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-arrow {
  font-size: 20px;
  color: var(--text-light);
  font-weight: 300;
}

/* ===== 푸터 ===== */
.footer {
  background: var(--dark);
  padding: 28px 20px 20px;
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-logo {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo a {
  display: inline-flex;
  align-items: center;
}

.footer-logo .logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-info {
  margin-bottom: 16px;
}

.footer-info p {
  font-size: 11px;
  color: #888888;
  line-height: 1.8;
}

.footer-copy {
  font-size: 11px;
  color: #555555;
  border-top: 1px solid #333333;
  padding-top: 14px;
}

/* ===== 플로팅 버튼 ===== */
.floating-btns {
  position: fixed;
  bottom: 24px;
  right: calc(50% - var(--mobile-width)/2 + 16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: all 0.2s;
  cursor: pointer;
}

.float-btn:active {
  transform: scale(0.9);
}

.float-btn.kakao {
  background: #FEE500;
}

.float-btn.call {
  background: var(--primary);
}

/* ===== 서브페이지 헤더 ===== */
.back-btn {
  font-size: 26px;
  font-weight: 300;
  color: #1a1a1a;
  line-height: 1;
  padding: 0 4px;
  text-decoration: none;
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== 페이지 히어로 ===== */
.page-hero {
  position: relative;
  background: url('images/hero.jpg') center center / cover no-repeat;
  text-align: center;
  padding: 50px 20px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

.page-hero-title,
.page-hero-sub {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 3px 18px rgba(0, 0, 0, 0.5);
}

.page-hero-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ===== 회사소개 텍스트 ===== */
.about-text p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.about-message-box {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid var(--gray2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-message-box .about-text p:last-child {
  margin-bottom: 0;
}

/* ===== 회사정보 테이블 ===== */
.info-table {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray2);
}

.info-row {
  display: flex;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray2);
  gap: 16px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 13px;
  color: var(--text-light);
  flex-shrink: 0;
  width: 80px;
}

.info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ===== 서비스 상세 ===== */
.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-detail-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-detail-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.service-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.service-detail-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.service-detail-top h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.service-detail-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.service-detail-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-detail-tags li {
  background: rgba(232,92,13,0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(232,92,13,0.2);
}

/* ===== 상담 유도 ===== */
.cta-section {
  background: var(--dark);
  padding: 32px 20px;
  text-align: center;
}

.cta-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.cta-sub {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

/* ===== 갤러리 필터 ===== */
.gallery-filter {
  display: flex;
  gap: 8px;
  padding: 16px 20px 0;
  overflow-x: auto;
}

.gallery-filter::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--gray2);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}

/* ===== 게시판 글쓰기 ===== */
.board-write-btn-wrap {
  padding: 16px 20px 12px;
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid var(--gray2);
  border-bottom: 1px solid var(--gray2);
}

.user-post-section .board-item:first-child {
  border-top: none;
}

.user-post-section .board-item:last-child {
  border-bottom: none;
}

.board-write-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -0.3px;
}

.board-write-btn:active {
  background: var(--primary-dark);
}

.board-write-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.board-write-form.open {
  max-height: 700px;
}

.board-form-inner {
  margin: 0 16px 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid var(--gray2);
}

.bwf-group {
  margin-bottom: 12px;
}

.bwf-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.bwf-group input[type="text"],
.bwf-group input[type="password"],
.bwf-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray2);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  background: #fff;
  box-sizing: border-box;
  outline: none;
}

.bwf-group input[type="text"]:focus,
.bwf-group input[type="password"]:focus,
.bwf-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 92, 13, 0.15);
}

.bwf-group textarea {
  min-height: 100px;
  resize: vertical;
}

.bwf-check-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px !important;
}

.bwf-check-label input[type="checkbox"] {
  width: auto !important;
  padding: 0 !important;
  border: none !important;
  accent-color: var(--primary);
}

.bwf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.bwf-btn-cancel {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--gray2);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
}

.bwf-btn-submit {
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
}

.bwf-btn-submit:active {
  background: var(--primary-dark);
}

.board-reply-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.board-reply-status.answered {
  background: #ecfdf5;
  color: #059669;
}

.board-reply-status.waiting {
  background: #fff7ed;
  color: #d97706;
}

.board-admin-reply {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f0f4ff;
  border-radius: 8px;
  border-left: 3px solid var(--primary-dark, #4338ca);
}

.board-admin-reply-label {
  font-size: 12px;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 6px;
}

.user-post-box {
  border: none;
  border-radius: 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.up-empty {
  padding: 48px 20px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.user-post-section {
  padding: 4px 0 44px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.up-post-item {
  cursor: pointer;
}

.up-notice-item {
  background: #f0f4ff;
}

.up-notice-badge {
  display: inline-block;
  background: #1d4ed8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.up-post-item .board-item-top {
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.up-post-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  flex: 1;
  line-height: 1.5;
}

.up-post-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #aaa;
  padding-bottom: 2px;
}

.up-post-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.user-post-box .board-list {
  padding: 0;
  flex: 1;
  min-height: 0;
}

.user-post-box .board-item:first-child {
  border-top: none;
}

.up-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--gray2);
}

.up-page-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--gray2);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.15s;
}

.up-page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.up-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.up-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ===== 게시판 (서브페이지) ===== */
.board-item-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-q {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(232,92,13,0.12);
  color: var(--primary);
}

.board-pinned > .board-item-top::before {
  content: '📌';
  font-size: 12px;
  margin-right: -4px;
}

.board-arrow {
  font-size: 20px;
  color: var(--text-light);
  margin-left: auto;
  transition: transform 0.2s;
}

.board-body {
  display: none;
  padding: 14px 0 4px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
  border-top: 1px solid var(--gray2);
  margin-top: 12px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.board-item.open .board-body {
  display: block;
}

.board-item.open .board-arrow {
  transform: rotate(90deg);
}

/* ===== 지도 버튼 ===== */
.map-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.naver-map-btn {
  background: #03C75A;
  color: var(--white);
}

/* ===== 갤러리 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 4px;
}

.gallery-item {
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.gallery-item-img {
  aspect-ratio: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:active .gallery-item-img img {
  transform: scale(1.03);
}

/* ===== 갤러리 상세 ===== */
.gd-wrap {
  padding: 0 0 24px;
}

.gd-header {
  padding: 16px 20px 16px;
}

.gd-back {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.gd-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.4;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray2);
}

.gd-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  user-select: none;
}

.gd-carousel-track {
  display: flex;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gd-carousel-slide {
  flex-shrink: 0;
  width: 100%;
}

.gd-carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gd-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.gd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.gd-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

.gd-desc {
  margin: 16px 20px 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.8;
  padding: 16px;
  background: var(--gray);
  border-radius: 10px;
}

.gd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 20px 0;
}

.gd-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(232,92,13,0.1);
  color: var(--primary);
}

.gallery-item-title {
  padding: 7px 4px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: none;
  background: transparent;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: #e0dbd4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 22px;
  color: #aaa;
}

.gallery-placeholder span {
  font-size: 9px;
  color: #bbb;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 게시판 ===== */
.board-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.board-item {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray2);
  cursor: pointer;
  transition: background 0.2s;
}

.board-item:first-child {
  border-top: 1px solid var(--gray2);
}

.board-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gray2);
  color: var(--text-light);
}

.board-badge.notice {
  background: rgba(232,92,13,0.12);
  color: var(--primary);
}

.board-content {
  flex: 1;
  min-width: 0;
}

.board-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.board-date {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 오시는길 ===== */
.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.map-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-info-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  word-break: keep-all;
}

.map-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.map-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.map-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.map-label {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.map-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.map-btn {
  display: block;
  background: #FEE500;
  color: #3a1d1d;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.map-btn.naver-btn {
  background: #03c75a;
  color: #fff;
}

.map-btn:active {
  opacity: 0.85;
}

/* ===== 이미지 모달 ===== */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.img-modal.active {
  display: flex;
}

.img-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.img-modal-content {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.img-modal-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
}

.img-modal-title {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.img-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== 어드민 링크 ===== */
.footer-admin {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  color: #444;
  text-decoration: none;
}

.footer-admin:hover {
  color: #666;
}

/* ===== 스크롤바 숨기기 ===== */
.mobile-wrap::-webkit-scrollbar {
  display: none;
}

/* ===== 애니메이션 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

.hidden {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.visible {
  opacity: 1;
  transform: translateY(0);
}
