:root {
  --ink: #1c2321;
  --snow: #f7f9fb;
  --paper: #ffffff;
  --line: #dfe4e8;
  --accent: #1f6f5c;
  --accent-dark: #154e40;
  --warn: #b3541e;
  --danger: #a3282c;
  --muted: #64748b;
  --open: #1f6f5c;
  --filling: #b3541e;
  --full: #a3282c;
  --closed: #94a3b8;
  --radius: 10px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--snow);
  color: var(--ink);
  line-height: 1.5;
}

header.site-header {
  background: var(--accent-dark);
  color: white;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.site-header a { color: white; text-decoration: none; font-weight: 600; }
header.site-header nav a { margin-left: 18px; opacity: 0.9; font-weight: 500; }
header.site-header nav a:hover { opacity: 1; text-decoration: underline; }

main { max-width: 960px; margin: 0 auto; padding: 24px; }
main.wide { max-width: 1200px; }

h1, h2, h3 { line-height: 1.25; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { background: #a9b4b1; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 6px 12px; font-size: 13px; }

label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: inherit; background: white;
}
textarea { resize: vertical; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }
.help { color: var(--muted); font-size: 13px; margin-top: 4px; }
.error-box { background: #fdecea; border: 1px solid #f3b6b6; color: var(--danger); padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.notice-box { background: #eaf3ee; border: 1px solid #bcdccb; color: var(--accent-dark); padding: 10px 14px; border-radius: 8px; margin: 10px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }

.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: white; }
.status-pending { background: var(--warn); }
.status-confirmed { background: var(--open); }
.status-declined, .status-cancelled { background: var(--danger); }
.status-expired { background: var(--muted); }
.status-unconfirmed { background: #6b5bd2; }
.tag.source-partner { background: #e8e5f8; color: #453a8f; font-weight: 600; }

.day-cell { padding: 8px 4px; border-radius: 8px; text-align: center; cursor: pointer; font-size: 13px; border: 2px solid transparent; }
.day-open { background: #eaf3ee; color: var(--open); }
.day-filling { background: #fbeee1; color: var(--filling); }
.day-full { background: #f8e7e7; color: var(--full); cursor: not-allowed; opacity: 0.7; }
.day-closed { background: #f1f3f5; color: var(--closed); cursor: not-allowed; }
.day-cell.selected { border-color: var(--accent-dark); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-grid .dow { font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; }

.legend { display: flex; gap: 14px; font-size: 13px; margin-top: 10px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.scroll-box { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfd; font-size: 14px; }
.scroll-box p { margin: 0 0 10px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 26, 24, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal { background: white; border-radius: var(--radius); padding: 22px; max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto; }

.price-summary { background: #f4f7f6; border-radius: 8px; padding: 14px; font-size: 14px; }
.price-summary .line { display: flex; justify-content: space-between; padding: 3px 0; }
.price-summary .total { font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }

.muted { color: var(--muted); }
.tag { display: inline-block; background: #eef1f3; padding: 2px 8px; border-radius: 999px; font-size: 12px; margin-left: 6px; }

/* ---- Marketing pages (index / about / faqs) ---- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.hero img { width: 100%; height: 360px; object-fit: cover; display: block; }
.hero .hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; background: linear-gradient(to top, rgba(10,20,17,0.75), rgba(10,20,17,0)); color: white; }
.hero .hero-caption h1 { margin: 0 0 4px; font-size: 28px; }

.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.feature-pair figure { margin: 0; }
.feature-pair img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); display: block; }
.feature-pair figcaption { text-align: center; margin-top: 10px; }
.feature-pair figcaption h3 { margin: 0 0 4px; }
.feature-pair figcaption p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .feature-pair { grid-template-columns: 1fr; } }

.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-bottom: 28px; }
.about-row img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); display: block; }
.about-row.reverse .about-row-text { order: 2; }
.about-row.reverse img { order: 1; }
@media (max-width: 640px) { .about-row { grid-template-columns: 1fr; } .about-row.reverse .about-row-text, .about-row.reverse img { order: initial; } }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; display: block; }

.gallery-scroll-wrap { position: relative; }
.gallery-scroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 14px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.gallery-scroll img {
  flex: 0 0 auto; width: 280px; height: 200px; object-fit: cover; border-radius: 10px;
  scroll-snap-align: start; display: block;
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.gallery-nav {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: white; color: var(--accent-dark); font-size: 18px; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center;
}
.gallery-nav:hover { background: var(--snow); }
.gallery-nav.prev { left: -6px; }
.gallery-nav.next { right: -6px; }
@media (max-width: 640px) { .gallery-nav { display: none; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-grid .detail { margin: 6px 0; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

.social-row { display: flex; gap: 14px; align-items: center; }
.social-row a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.social-row a:hover { text-decoration: underline; }

footer.site-footer { text-align: center; padding: 24px; color: var(--muted); font-size: 13px; }

details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; float: right; font-weight: 400; color: var(--muted); }
details.faq[open] summary::after { content: '\2212'; }
details.faq p { color: var(--muted); margin: 10px 0 0; }

.tour-price-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.tour-price-row .price { font-size: 20px; font-weight: 700; color: var(--accent-dark); }
