*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F5F0E8;
  --card-bg: #FAF7F0;
  --primary-text: #1B2E1F;
  --secondary-text: #5A5548;
  --helper-text: #7A746A;
  --accent1: #2D5F3E;
  --accent2: #B5452A;
  --accent3: #3A7D8C;
  --border: #D4CFC4;
  --border-light: #E8E3D9;
  --btn-primary: #2D5F3E;
  --btn-text: #FFFFFF;
  --highlight: #FFF8E7;
  --highlight-border: #E8D5A0;
  --tab-active: #2D5F3E;
  --tab-inactive: #9A9488;
  --header-bg: #2D5F3E;
  --header-text: #FAF7F0;
  --white: #FFFFFF;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--primary-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
}
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  text-align: center;
  overflow: hidden;
}
.header-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--header-text);
  letter-spacing: 0.3px;
  padding: 14px 16px 12px;
  background: var(--header-bg);
}
.tab-bar {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  scrollbar-width: none;
  gap: 0;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 0 0 auto;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--tab-inactive);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.tab-btn.active {
  color: var(--tab-active);
  border-bottom-color: var(--tab-active);
}
.content {
  padding-bottom: 40px;
}
.card {
  background: var(--card-bg);
  border-radius: 16px;
  margin: 12px 12px 0;
  padding: 20px 18px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--primary-text);
  line-height: 1.3;
}
.card-helper {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--helper-text);
  line-height: 1.4;
}
.body-text {
  font-size: 15px;
  color: var(--secondary-text);
  line-height: 1.5;
}
.body-italic {
  font-size: 15px;
  color: var(--secondary-text);
  line-height: 1.5;
  font-style: italic;
}
.body-note {
  font-size: 14px;
  color: var(--helper-text);
  line-height: 1.45;
  font-style: italic;
}
.subhead {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, transform 0.1s;
  width: 100%;
  text-decoration: none;
}
.btn:active { opacity: 0.85; transform: scale(0.97); }
.btn-primary {
  background: var(--btn-primary);
  color: var(--btn-text);
}
.btn-secondary {
  background: transparent;
  color: var(--accent1);
  border: 1.5px solid var(--accent1);
}
.btn-row {
  display: flex;
  gap: 10px;
}
.btn-row .btn { flex: 1; min-width: 0; }
.address-text {
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-text);
  line-height: 1.5;
}
.map-preview {
  background: var(--bg);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-light);
}
.map-preview-text {
  font-size: 14px;
  color: var(--helper-text);
}
.contact-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-text);
}
.wifi-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wifi-label {
  font-size: 14px;
  color: var(--helper-text);
}
.wifi-value {
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-text);
}
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--border-light);
}
.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  background: var(--bg);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--accent1);
  transform: scale(1.25);
}
.step-list { display: flex; flex-direction: column; gap: 10px; }
.step-row { display: flex; align-items: flex-start; gap: 12px; }
.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.step-text {
  font-size: 15px;
  color: var(--primary-text);
  line-height: 1.5;
  padding-top: 3px;
  flex: 1;
}
.callout {
  background: var(--highlight);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--highlight-border);
}
.callout-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--accent2);
  margin-bottom: 6px;
}
.callout-text {
  font-size: 14px;
  color: var(--accent2);
  line-height: 1.45;
}
.map-thumbnail {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.15s;
}
.map-thumbnail:active { opacity: 0.85; }
.map-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
}
.map-caption {
  font-size: 13px;
  color: var(--accent3);
  text-align: center;
  padding: 8px 0;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-text);
  z-index: 10;
}
.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.menu-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border-light);
}
.menu-modal-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--primary-text);
}
.menu-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-text);
}
.menu-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
}
.menu-modal-body img {
  width: 100%;
  display: block;
}
.spot-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.spot-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-text);
  flex: 1;
}
.spot-body {
  font-size: 14px;
  color: var(--secondary-text);
  line-height: 1.45;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.badge-default {
  background: #E8F4F6;
  color: var(--accent3);
}
.badge-onsite {
  background: #E8F0E8;
  color: var(--accent1);
}
.rule-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rule-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
}
.rule-icon.check { color: var(--accent1); }
.rule-icon.warn { color: var(--accent2); }
.rule-text {
  font-size: 15px;
  color: var(--secondary-text);
  line-height: 1.5;
  flex: 1;
}
.quiz-container { display: flex; flex-direction: column; gap: 0; }
.quiz-progress {
  font-weight: 600;
  font-size: 13px;
  color: var(--accent3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.quiz-question {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--primary-text);
  line-height: 1.4;
  margin-bottom: 16px;
}
.quiz-answers { display: flex; flex-direction: column; gap: 8px; }
.quiz-answer {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--primary-text);
  line-height: 1.35;
}
.quiz-answer:active { opacity: 0.85; transform: scale(0.97); }
.quiz-answer.selected {
  background: var(--accent1);
  border-color: var(--accent1);
  color: var(--white);
  font-weight: 600;
}
.quiz-answer-icon { font-size: 18px; flex-shrink: 0; }
.quiz-answer.selected .quiz-answer-icon { color: var(--white) !important; }
.quiz-result-header {
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.quiz-result-icon { font-size: 48px; color: var(--accent1); }
.quiz-result-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--primary-text);
}
.quiz-result-subtitle {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.quiz-result-desc {
  font-size: 16px;
  color: var(--secondary-text);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 16px;
}
.quiz-onesie-box {
  background: var(--highlight);
  border-radius: 12px;
  border: 1px solid var(--highlight-border);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.quiz-onesie-icon { font-size: 20px; color: var(--accent1); }
.quiz-onesie-text {
  font-size: 14px;
  color: var(--primary-text);
  line-height: 1.45;
}
.quiz-result-buttons { display: flex; flex-direction: column; gap: 10px; }
.quiz-tie-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--primary-text);
  margin-bottom: 4px;
}
.quiz-tie-subtitle {
  font-size: 15px;
  color: var(--secondary-text);
  margin-bottom: 16px;
}
.quiz-tie-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-tie-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: 12px;
  padding: 18px 20px;
  border: 1.5px solid var(--accent1);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--accent1);
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.quiz-tie-btn:active { opacity: 0.85; transform: scale(0.97); }
.pricing-list { display: flex; flex-direction: column; gap: 4px; }
.pricing-item {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-text);
  line-height: 1.6;
}
.subtitle-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--helper-text);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.footer {
  padding: 20px 16px;
  text-align: center;
}
.footer a {
  font-size: 14px;
  color: var(--accent1);
  text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
}
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent1);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  animation: toastIn 0.25s ease;
  pointer-events: none;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.hidden { display: none !important; }
