*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --accent: #d4a853;
  --accent-light: #f5e6c8;
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #2c2416;
  --text-muted: #6b5d4d;
  --border: #e8dfd0;
  --shadow: 0 4px 24px rgba(44, 36, 22, 0.08);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* Header */
header {
  background: #c0392b;
  color: #fff;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

header .inner { max-width: 800px; margin: 0 auto; }

header .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

header h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

header p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
}

/* Nav */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

nav a:hover { background: var(--accent-light); color: var(--primary); }

/* Layout */
main { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

section { margin-bottom: 3.5rem; }

section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

section .section-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

/* Schedule table */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

.schedule-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s;
}

.schedule-item:hover { transform: translateY(-2px); }

.schedule-item.holiday {
  background: linear-gradient(160deg, #fff5f0, #ffe8dc);
  border-color: #f0c4b0;
}

.schedule-item.chuseok {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary-dark);
}

.schedule-item .date { font-size: 1.1rem; font-weight: 700; }
.schedule-item .day { font-size: 0.85rem; opacity: 0.8; margin: 0.25rem 0; }
.schedule-item .label { font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; }

.schedule-item.chuseok .label { color: var(--accent-light); }

.info-box {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--accent-light);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-left: 4px solid var(--accent);
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.about-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-item .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.about-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Travel spots */
.spot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.spot {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.spot h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.spot .tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--accent-light);
  color: var(--primary-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.spot p { font-size: 0.85rem; color: var(--text-muted); }

/* Banner links */
.banner-list { display: flex; flex-direction: column; gap: 1rem; }

.banner-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}

.banner-link:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 6px 28px rgba(192, 57, 43, 0.12);
}

.banner-link .thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.banner-link:nth-child(1) .thumb { background: linear-gradient(135deg, #96281b, #c0392b); }
.banner-link:nth-child(2) .thumb { background: linear-gradient(135deg, #a93226, #e74c3c); }
.banner-link:nth-child(3) .thumb { background: linear-gradient(135deg, #922b21, #cb4335); }

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

.banner-link .source {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.banner-link h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.banner-link p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.banner-link .arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  transition: background 0.2s;
}

.banner-link:hover .arrow { background: var(--primary); color: #fff; }

/* Tips */
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tips-list li {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
}

.tips-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Footer */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin: 0 0 0.25rem;
}

.seo-intro {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.seo-intro strong { color: var(--text); }

/* Outbound floating banner — 좌/우 분리, 개별 닫기 */
.outbound-float {
  position: fixed;
  bottom: 1.25rem;
  z-index: 200;
  max-width: 280px;
}

.outbound-left { left: 1.25rem; }
.outbound-right { right: 1.25rem; }

.outbound-float.is-hidden { display: none; }

.outbound-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.outbound-item:hover { transform: translateY(-2px); }

/* 좌측 — 채움형 (빨강 배경 · 흰 글씨) */
.outbound-item.item-driver {
  background: linear-gradient(135deg, #96281b, #c0392b);
  color: #fff;
  box-shadow: 0 8px 28px rgba(192, 57, 43, 0.35);
}

.outbound-item.item-driver:hover {
  box-shadow: 0 12px 32px rgba(192, 57, 43, 0.45);
}

.outbound-item.item-driver .float-icon {
  background: rgba(255, 255, 255, 0.18);
}

.outbound-item.item-driver .float-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.outbound-item.item-driver .float-desc { opacity: 0.9; }

/* 우측 — 반전형 (흰 배경 · 빨강 글씨) */
.outbound-item.item-silbi {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  box-shadow: 0 8px 28px rgba(44, 36, 22, 0.12);
}

.outbound-item.item-silbi:hover {
  box-shadow: 0 12px 32px rgba(192, 57, 43, 0.2);
  background: var(--accent-light);
}

.outbound-item.item-silbi .float-icon {
  background: rgba(192, 57, 43, 0.1);
}

.outbound-item.item-silbi .float-tag {
  background: rgba(192, 57, 43, 0.12);
  color: var(--primary);
}

.outbound-item.item-silbi .float-desc {
  color: var(--text-muted);
  opacity: 1;
}

.outbound-item .float-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.outbound-item .float-text { min-width: 0; }

.outbound-item .float-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-bottom: 0.2rem;
}

.outbound-item .float-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.outbound-item .float-title-m { display: none; }

.outbound-item .float-desc {
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.outbound-float .float-close {
  position: absolute;
  top: -8px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
  z-index: 1;
}

.outbound-left .float-close {
  right: -8px;
  background: var(--text);
  color: #fff;
}

.outbound-right .float-close {
  left: -8px;
  background: var(--primary);
  color: #fff;
}

.outbound-float .float-close:hover { opacity: 1; }

@media (max-width: 768px) {
  .outbound-float {
    max-width: none;
    bottom: 0.7rem;
  }

  .outbound-left { left: 0.6rem; }
  .outbound-right { right: 0.6rem; }

  .outbound-item {
    padding: 0.55rem 0.7rem 0.55rem 0.55rem;
    gap: 0.45rem;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  }

  .outbound-item.item-silbi { border-width: 1.5px; }

  .outbound-item .float-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 50%;
  }

  .outbound-item .float-tag,
  .outbound-item .float-desc,
  .outbound-item .float-title-pc { display: none; }

  .outbound-item .float-title-m {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .outbound-float .float-close {
    top: -6px;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }

  .outbound-left .float-close { right: -4px; }
  .outbound-right .float-close { left: -4px; }
}

/* Subpage */
header.sub-header { padding: 2rem 1.5rem 2.5rem; }
header.sub-header h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }

.breadcrumb {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; opacity: 0.5; }

.content-body { font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; }
.content-body h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}
.content-body p { margin-bottom: 1rem; }
.content-body ul, .content-body ol { margin: 0 0 1rem 1.25rem; }
.content-body li { margin-bottom: 0.4rem; }
.content-body a { color: var(--primary); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  background: var(--accent-light);
  color: var(--text);
  font-weight: 600;
}

.data-table tr:last-child td { border-bottom: none; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.related-card {
  display: block;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.related-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.related-card span { font-size: 0.82rem; color: var(--text-muted); }

nav a.active { background: var(--accent-light); color: var(--primary); font-weight: 600; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hub-card {
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.hub-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.hub-card .hub-icon { font-size: 1.75rem; margin-bottom: 0.65rem; }
.hub-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.hub-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
