:root {
  /* Brand Color Palette */
  --primary: #1e3d34; /* Deep Forest Pine */
  --primary-hover: #142a24;
  --primary-light: #e8f0ec;
  --primary-glow: rgba(30, 61, 52, 0.12);
  
  --accent: #2a6f62; /* Teal Sage */
  --accent-warm: #d97706; /* Warm Amber */
  --accent-terracotta: #c2593f;
  
  --bg-body: #f7f6f2; /* Warm Alabaster */
  --bg-surface: #ffffff;
  --bg-elevated: #faf9f6;
  --bg-subtle: #f0eee8;
  
  --text-main: #18201d;
  --text-muted: #566460;
  --text-soft: #859490;
  
  --border-subtle: #e4e2da;
  --border-focus: #2a6f62;
  
  /* Status Colors */
  --status-tip-bg: #eaf6ee;
  --status-tip-border: #38a169;
  --status-tip-text: #1f643e;
  
  --status-warn-bg: #fef7ea;
  --status-warn-border: #d97706;
  --status-warn-text: #8c4c00;
  
  --status-danger-bg: #fdf0ee;
  --status-danger-border: #dc2626;
  --status-danger-text: #991b1b;

  --shadow-sm: 0 2px 8px rgba(24, 32, 29, 0.04);
  --shadow-md: 0 8px 24px rgba(24, 32, 29, 0.06);
  --shadow-lg: 0 16px 40px rgba(24, 32, 29, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* Container Shell */
.shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* Top Sticky Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s;
}
.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #faf8f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(30, 61, 52, 0.14);
  border: 1px solid rgba(30, 61, 52, 0.08);
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.2;
}
.brand-text span {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Top Right Header Search Bar */
.header-search-wrap {
  position: relative;
  width: clamp(240px, 34vw, 420px);
  display: flex;
  align-items: center;
}
.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 9px 105px 9px 38px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 111, 98, 0.15);
}
.search-icon-left {
  position: absolute;
  left: 13px;
  color: var(--text-soft);
  pointer-events: none;
}

/* Search Navigation Controls (Counter & Up/Down jump) */
.search-nav-controls {
  position: absolute;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.match-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.search-nav-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.6rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.search-nav-btn:hover {
  background: var(--primary-light);
  border-color: var(--accent);
  color: var(--primary);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}
.search-clear-btn:hover {
  background: var(--text-soft);
  color: #fff;
}

/* Top-Right Hamburger Menu Button (Mobile/Tablet only) */
.menu-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.menu-toggle-btn:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(30, 61, 52, 0.08);
}
.menu-toggle-btn:active {
  transform: translateY(0);
  background: var(--primary-light);
}
.menu-toggle-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  background: linear-gradient(145deg, #ffffff 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 56px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 111, 98, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 36rem;
}
.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.meta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  transition: border-color 0.2s;
}
.meta-card:hover {
  border-color: var(--accent);
}
.meta-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.meta-info small {
  display: block;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.meta-info strong {
  font-size: 0.86rem;
  color: var(--text-main);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 340px;
  background: var(--bg-subtle);
  box-shadow: var(--shadow-sm);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-visual:hover img {
  transform: scale(1.03);
}
.visual-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 10px 14px;
  background: rgba(24, 32, 29, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Quick Access Bar (Essential Widgets) */
.quick-bar {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.quick-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}
.quick-widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.widget-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}
.wifi-details {
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
.copy-chip {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.copy-chip:hover { opacity: 0.9; }

/* Quick Recommendation Keyword Bar */
.quick-keyword-bar {
  margin-top: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.keyword-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.keyword-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.shortcut-pill {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.shortcut-pill:hover {
  border-color: var(--accent);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Main Layout */
.layout-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  margin-top: 28px;
  align-items: start;
}

/* Sticky Sidebar */
.sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.nav-item a:hover {
  background: var(--bg-body);
  color: var(--primary);
  text-decoration: none;
}
.nav-item a.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}

/* Content Area */
.content-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Section Cards */
.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
  transition: border-color 0.25s ease, opacity 0.2s ease;
}
.section-card:hover {
  border-color: rgba(42, 111, 98, 0.35);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}
.section-num-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  display: block;
}
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.section-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Prose & Text */
.lead-text {
  font-size: 1.12rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 18px;
}
p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

/* Callout Boxes */
.callout {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.6;
}
.callout-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.callout.tip {
  background: var(--status-tip-bg);
  border-left: 4px solid var(--status-tip-border);
  color: var(--status-tip-text);
}
.callout.tip .callout-icon { background: rgba(56, 161, 105, 0.2); color: var(--status-tip-border); }

.callout.warning {
  background: var(--status-warn-bg);
  border-left: 4px solid var(--status-warn-border);
  color: var(--status-warn-text);
}
.callout.warning .callout-icon { background: rgba(217, 119, 6, 0.2); color: var(--status-warn-border); }

.callout.danger {
  background: var(--status-danger-bg);
  border-left: 4px solid var(--status-danger-border);
  color: var(--status-danger-text);
}
.callout.danger .callout-icon { background: rgba(220, 38, 38, 0.2); color: var(--status-danger-border); }

.callout > strong:first-child,
.callout > div > strong:first-child {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}
.callout-body {
  flex: 1;
  min-width: 0;
}
.callout-body > strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
  line-height: 1.4;
  color: inherit;
}
.callout p strong,
.callout li strong {
  display: inline;
  margin-bottom: 0;
  font-size: inherit;
}
.callout p { color: inherit; margin: 0; font-size: 0.92rem; word-break: keep-all; }

/* Numbered Step List */
.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.2s, border-color 0.2s;
}
.step-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(30, 61, 52, 0.25);
}
.step-content {
  flex: 1;
  min-width: 0;
}
.step-content > strong {
  color: var(--text-main);
  font-size: 1rem;
  display: block;
  margin-bottom: 6px;
}
.step-content strong {
  color: var(--text-main);
}
.step-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.step-content ul {
  margin-top: 10px;
  padding-left: 18px;
}
.step-content li {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Sub-list for TV Trouble */
.sub-trouble-list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.sub-trouble-item {
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-trouble-item span {
  font-weight: 800;
  color: var(--accent);
}

/* Clean House Table (분리수거 스케줄) */
.trash-schedule-card {
  margin: 16px 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(24, 32, 29, 0.04);
}
.schedule-header {
  background: var(--primary-light);
  padding: 12px 18px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.schedule-time-badge {
  font-size: 0.76rem;
  background: rgba(30, 61, 52, 0.09);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 14px 16px;
  gap: 12px;
}
.schedule-col {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}
.schedule-col h4 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.schedule-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border-subtle);
}
.schedule-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.schedule-label {
  font-weight: 700;
  color: var(--primary);
  min-width: 66px;
  flex-shrink: 0;
  font-size: 0.82rem;
}
.schedule-label.highlight {
  color: var(--accent-terracotta);
}
.schedule-val {
  color: var(--text-main);
  word-break: keep-all;
  line-height: 1.45;
}
.schedule-val.highlight {
  font-weight: 600;
  color: var(--accent-terracotta);
}
.schedule-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
}

/* Grid List for Places / Attractions */
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.place-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.place-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.place-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}
.place-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}
.distance-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
}
.place-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Food & Cafe Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.tag-chip {
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.tag-chip:hover {
  border-color: var(--accent);
  background: var(--primary-light);
  color: var(--primary);
}

/* Inventory Items Section */
.inventory-section {
  margin-top: 20px;
}
.inventory-group {
  margin-bottom: 24px;
}
.inventory-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inventory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inventory-item {
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-main);
}

/* Media Visuals in Content */
.content-media {
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-sm);
}
.content-media img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.content-media figcaption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

/* Video Link Banner */
.video-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #2b1b1b 0%, #4a2828 100%);
  color: #fff;
  border-radius: var(--radius-md);
  margin: 20px 0;
}
.video-banner a {
  background: #ff0000;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
  transition: transform 0.2s;
}
.video-banner a:hover {
  transform: scale(1.04);
  color: #fff;
}

/* Footer */
.page-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.footer-host-signature {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-main);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Floating Back to Top Button */
.btn-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
}
.btn-top.show {
  opacity: 1;
  visibility: visible;
}
.btn-top:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Navigation Drawer (TOC) */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 32, 28, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 86vw);
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer-panel.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-title-group .brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
  border-radius: 10px;
}
.drawer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.drawer-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 2px;
}
.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.drawer-close-btn:hover {
  background: var(--bg-body);
  color: var(--primary);
  border-color: var(--accent);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}
.drawer-nav-link:hover {
  background: var(--primary-light);
  border-color: var(--accent);
  transform: translateX(3px);
  text-decoration: none;
}
.drawer-nav-link.active {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(30, 61, 52, 0.1);
}
.drawer-nav-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(30, 61, 52, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.drawer-nav-link.active .drawer-nav-num {
  background: var(--primary);
  color: #ffffff;
}
.drawer-nav-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drawer-nav-text strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary);
}
.drawer-nav-text small {
  font-size: 0.76rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-nav-arrow {
  color: var(--text-soft);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.drawer-nav-link:hover .drawer-nav-arrow {
  transform: translateX(2px);
  color: var(--accent);
}

.drawer-quick-info {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}
.drawer-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.drawer-info-label {
  color: var(--text-soft);
  font-weight: 600;
}
.drawer-info-val {
  color: var(--primary);
  font-weight: 700;
}

/* Search Highlighting & Active Target Pulse */
mark.match {
  background: #ffe58f;
  color: #1a1a1a;
  border-radius: 3px;
  padding: 2px 4px;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.2);
  transition: all 0.25s ease;
}
mark.match.current-match {
  background: #e65100 !important;
  color: #ffffff !important;
  font-weight: 700;
  outline: 3px solid #ff9800;
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(230, 81, 0, 0.6);
  animation: pulseMatch 1.2s infinite alternate ease-in-out;
}
@keyframes pulseMatch {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .menu-toggle-btn {
    display: inline-flex;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 12px 80px;
  }
  .header-inner {
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand menu"
      "search search";
    gap: 10px 12px;
    align-items: center;
  }
  .brand-group {
    grid-area: brand;
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    min-width: 0;
  }
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-text span {
    display: inline;
    font-size: 0.72rem;
  }
  .menu-toggle-btn {
    display: inline-flex;
    grid-area: menu;
    justify-self: end;
    width: 38px;
    height: 38px;
  }
  .header-search-wrap {
    grid-area: search;
    width: 100%;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-meta-grid {
    grid-template-columns: 1fr;
  }
  .quick-bar {
    grid-template-columns: 1fr;
  }
  .places-grid {
    grid-template-columns: 1fr;
  }
  .section-card {
    padding: 18px 12px;
    border-radius: var(--radius-md);
  }
  .video-banner {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile Spacing & Clean Grid Layout for Step Items */
  .step-list {
    gap: 12px;
    margin: 14px 0;
  }
  .step-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
    padding: 15px 13px;
    align-items: start;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  .step-num {
    grid-column: 1;
    grid-row: 1;
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
    margin-top: 0;
    align-self: center;
  }
  .step-content {
    display: contents;
  }
  .step-content > strong {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    align-self: center;
    font-size: 0.96rem;
    line-height: 1.35;
    word-break: keep-all;
  }
  .step-content > *:not(strong) {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .step-content > p {
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: keep-all;
    color: var(--text-muted);
  }

  /* Schedule Card on Mobile */
  .trash-schedule-card {
    margin: 6px 0 0 0 !important;
    border-radius: var(--radius-sm);
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .schedule-header {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .schedule-header .schedule-title {
    font-size: 0.86rem;
  }
  .schedule-header .schedule-time-badge {
    font-size: 0.74rem;
    padding: 2px 7px;
  }
  .schedule-grid {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 8px;
  }
  .schedule-col {
    padding: 9px 11px;
    border-radius: 8px;
  }
  .schedule-item {
    padding: 4px 0;
    font-size: 0.82rem;
  }
  .schedule-label {
    min-width: 60px;
    font-size: 0.8rem;
  }

  /* Callout on Mobile */
  .callout {
    margin: 8px 0 0 0 !important;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 8px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .callout-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
  }
  .callout-body {
    flex: 1;
    min-width: 0;
  }
  .callout-body strong {
    font-size: 0.88rem;
    color: inherit;
    display: block;
    margin-bottom: 4px;
    line-height: 1.4;
  }
  .callout-body p {
    font-size: 0.84rem;
    line-height: 1.55;
    word-break: keep-all;
  }

  .content-media {
    margin: 12px 0 0 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Print Stylesheet */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .top-header, .sidebar, .btn-top, .quick-bar, .quick-keyword-bar, .video-banner a, .drawer-backdrop, .drawer-panel, .menu-toggle-btn { display: none !important; }
  .shell { max-width: 100%; padding: 0; }
  .hero, .section-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; page-break-inside: avoid; margin-bottom: 20px; }
  .hero-visual img, .content-media img { max-height: 240px; }
}
