:root {
  /* Four colours sampled from the 旅遊工匠 wordmark fills */
  --teal: #61C2C5;
  --teal-dark: #3A9A9D;
  --teal-soft: #E8F7F8;
  --green: #8EC31F;
  --green-dark: #6F9A14;
  --green-soft: #F3F8E3;
  --pink: #E95483;
  --pink-dark: #C53D6A;
  --pink-soft: #FDE8EF;
  --gold: #F7AC00;
  --gold-dark: #C78A00;
  --gold-soft: #FFF5D8;
  --ink: #14262a;
  --ink-soft: #3c5156;
  --muted: #66777c;
  --white: #ffffff;
  --sold: #8a7a72;
  --shadow: 0 10px 30px rgba(20, 38, 42, 0.08);
  --radius: 1.15rem;
  --max: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--pink-dark); }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.sr-only, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff;
  padding: 0.5rem 1rem; z-index: 1000; border-radius: 0.4rem;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(20,38,42,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
}
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 0 0 auto;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 10.5rem; height: auto; }
.site-header .brand img { width: 12.6rem; height: auto; }
.header-licence {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-align: right;
}
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 2.75rem; height: 2.75rem;
  padding: 0.55rem; border-radius: 0.6rem;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink);
  margin: 0.35rem 0; border-radius: 2px;
}
.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.35rem;
  flex: 1 1 auto;
  min-width: 0;
}
.site-nav { display: flex; align-items: center; flex: 0 0 auto; }
.site-nav ul {
  display: flex; gap: 0.2rem 1.1rem;
  list-style: none; margin: 0; padding: 0;
  flex-wrap: nowrap;
}
.site-nav ul li,
.site-nav ul a { white-space: nowrap; }
.site-nav ul a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.2rem 0;
  border-bottom: 3px solid transparent;
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--pink-dark);
  border-bottom-color: var(--gold);
}
.header-meta {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0.85rem;
  font-size: 0.88rem;
}
.header-meta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.65rem;
  min-width: 0;
}
a.whatsapp-btn,
a.whatsapp-btn:link,
a.whatsapp-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.45rem 1.75rem;
  margin: 0;
  border: 2px solid #25D366;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
a.whatsapp-btn:hover,
a.whatsapp-btn:focus,
a.whatsapp-btn:focus-visible {
  background: #fff;
  border-color: #25D366;
  color: #25D366;
  text-decoration: none;
}
.header-phone {
  color: var(--ink); font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
}
.icon-phone {
  width: 1em; height: 1em;
  color: var(--teal);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-secondary { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-disabled { background: #ddd2c6; color: #6a5f57; cursor: not-allowed; }
.btn-danger { background: #c44747; color: #fff; border-color: #c44747; }

/* Hero */
.hero {
  position: relative;
  height: 500px;
  min-height: 500px;
  display: grid; align-items: end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20,38,42,0.15) 0%, rgba(20,38,42,0.72) 100%),
    var(--hero-image, none) center / cover no-repeat,
    linear-gradient(135deg, #61C2C5, #8EC31F 50%, #F7AC00);
}
.hero-inner { padding: 3.5rem 0 3rem; }
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0 0 0.4rem;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero-lead { font-size: 1.15rem; max-width: 36rem; margin: 0 0 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Sections */
.section { padding: 3.2rem 0; }
.section-head { margin-bottom: 1.6rem; }
.section-head h2, .page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
  font-weight: 900;
}
.section-head p, .page-hero p { margin: 0; color: var(--ink-soft); }
.page-hero { padding: 2.6rem 0 0.4rem; }
.section-more { margin-top: 1.8rem; }
.tours-home .section-more { text-align: center; }

.theme-grid, .tour-grid, .promise-list, .stat-grid {
  list-style: none; margin: 0; padding: 0;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.theme-card {
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,38,42,0.12); }
.theme-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tour-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex; flex-direction: column;
}
.tour-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: #f6f6f6;
  border: 1px solid rgba(20,38,42,0.08);
  overflow: hidden;
}
.tour-card-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  display: block;
  background: #fff;
}
.tour-card-media .cover-fallback {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
}
.cover-fallback, .cover-fallback-lg {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--teal), var(--green));
  color: #fff; font-weight: 900; font-size: 1.4rem;
  min-height: 16rem;
  border-radius: 0;
}
.cover-fallback[data-category="滑雪遊"] { background: linear-gradient(160deg, var(--teal), var(--teal-soft)); color: var(--ink); }
.cover-fallback[data-category="單車遊"] { background: linear-gradient(160deg, var(--green), var(--green-soft)); color: var(--ink); }
.cover-fallback[data-category="旅拍攝"] { background: linear-gradient(160deg, var(--pink), var(--gold)); color: #fff; }
.cover-fallback[data-category="登山行"] { background: linear-gradient(160deg, var(--green), var(--green-soft)); color: var(--ink); }
.cover-fallback[data-category="其他"] { background: linear-gradient(160deg, #d5d5d5, #ececec); color: var(--ink); }
.tour-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.tour-cat { margin: 0; color: var(--teal-dark); font-weight: 700; font-size: 0.85rem; }
.tour-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.4; }
.tour-card h3 a { color: var(--ink); text-decoration: none; }
.tour-card h3 a:hover { color: var(--pink-dark); }
.tour-dates { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tour-price { margin: 0.15rem 0; font-weight: 900; font-size: 1.2rem; color: var(--ink); }
.text-link { margin-top: auto; font-weight: 700; }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.tour-card-media .badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-size: 1.08rem;
  padding: 0.42rem 1.05rem;
}
.tour-detail-body .badge {
  font-size: 1.08rem;
  padding: 0.42rem 1.05rem;
}
.badge-open { background: var(--green-soft); color: var(--green-dark); }
.badge-almost { background: var(--gold-soft); color: var(--gold-dark); }
.badge-confirmed { background: var(--teal-soft); color: var(--teal-dark); }
.badge-sold { background: #eee7e2; color: #6a5348; }

.promises { background: var(--white); }
.promise-list {
  display: grid; gap: 0.7rem;
}
.promise-list li {
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem 0.85rem 2.6rem;
  box-shadow: var(--shadow);
  position: relative;
}
.promise-list li::before {
  content: "✦";
  position: absolute; left: 0.95rem; color: var(--gold);
  font-size: 1rem;
}

/* Tour detail */
.tour-detail { padding-bottom: 3rem; }
.tour-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding-top: 2rem;
  align-items: start;
}
.tour-detail-media {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tour-detail-media img, .tour-detail-media .cover-fallback-lg {
  width: 90%;
  max-width: 90%;
  height: auto;
  border-radius: 0;
  box-shadow: var(--shadow);
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(20,38,42,0.08);
  display: block;
  margin: 0 auto;
}
.tour-detail-body .tour-detail-category {
  margin: 0 0 0.85rem;
}
.tour-detail-body h1 { margin: 0 0 0.6rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.fact-list { display: grid; gap: 0.55rem; margin: 1.2rem 0; }
.fact-list > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; }
.fact-list dt { color: var(--muted); margin: 0; font-weight: 500; }
.fact-list dd { margin: 0; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0.6rem; }
.fineprint { font-size: 0.9rem; color: var(--muted); }
.tour-copy { padding-top: 2rem; }
.tour-back { margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(20, 38, 42, 0.1); }
.tour-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.tour-back a::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 0.15rem;
}
.tour-back a:hover {
  background: var(--ink);
  color: #fff;
}

/* Prose / pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; color: var(--teal-dark); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.tour-notes h2, .tour-notes h3 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0 0 0.7rem;
  color: inherit;
}
.tour-notes h3:first-child, .tour-notes h2:first-child { margin-top: 0; }
.tour-notes > p:first-child { margin-top: 0; }
.prose-terms { max-width: 50rem; }
.about-layout {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  align-items: start;
}
.about-aside { display: grid; gap: 1rem; }
.about-aside img { width: 100%; }

.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.filter-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid #d7dee0;
  background: #f4f6f6;
  color: var(--ink);
  cursor: pointer;
}
.filter-tabs a[data-category="全部"] {
  background: #000;
  color: #fff;
  border-color: #000;
}
.filter-tabs a[data-category="單車遊"] {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.filter-tabs a[data-category="旅拍攝"] {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.filter-tabs a[data-category="滑雪遊"] {
  background: var(--teal);
  color: var(--ink);
  border-color: var(--teal);
}
.filter-tabs a[data-category="登山行"] {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}
.filter-tabs a[data-category="其他"] {
  background: #d5d5d5;
  color: var(--ink);
  border-color: #d5d5d5;
}
.filter-tabs a:hover {
  filter: brightness(0.92);
}
.filter-tabs a[aria-current="page"] {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #000;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.6rem;
  margin: 2.2rem 0 0;
  font-weight: 700;
}
.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(20,38,42,0.16);
  border-radius: 0.2rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  font-weight: 700;
  font-size: 1rem;
}
.pagination-prev,
.pagination-next {
  min-width: auto;
  padding-inline: 0.9rem;
}
a.pagination-btn:hover {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--ink);
}
a.pagination-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.pagination-btn[aria-current="page"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  cursor: default;
}
.pagination-btn.is-disabled {
  color: var(--muted);
  background: #f6f6f6;
  border-color: rgba(20,38,42,0.08);
  cursor: default;
}
.pagination-ellipsis span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2.75rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}
@media (max-width: 599px) {
  .pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 0.4rem;
    row-gap: 0.55rem;
    align-items: center;
  }
  .pagination-pages {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .pagination-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .pagination-next { grid-column: 3; grid-row: 2; justify-self: end; }
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  text-align: left;
}
.contact-layout > section {
  background: #fff;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-layout > .contact-social {
  grid-column: 1 / -1;
}
.contact-layout h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--teal-dark);
  text-align: left;
}
.contact-layout p, .sns-list {
  margin: 0 0 0.4rem;
  text-align: left;
}
.contact-address {
  font-size: 1.2rem;
  line-height: 1.65;
}
.sns-list { list-style: none; padding: 0; }
.admin-form label { display: block; font-weight: 700; }
.admin-form input,
.admin-form textarea,
.admin-form select,
.login-card input {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #d7cbb8;
  border-radius: 0.7rem;
  font: inherit;
  background: #fff;
}
.admin-form .check label { font-weight: 500; display: flex; gap: 0.4rem; align-items: flex-start; }
.admin-form input[type="checkbox"],
.admin-form input[type="radio"] {
  width: auto;
  margin-top: 0.2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  flex-shrink: 0;
  background: none;
}
.admin-form .tour-visibility {
  margin: 0 0 1.4rem;
}
.admin-form .tour-visibility .check {
  margin: 0;
}
.admin-form .tour-visibility .check label {
  font-size: 1.25rem;
  font-weight: 700;
  align-items: center;
}
.admin-form .tour-visibility input[type="checkbox"] {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0;
}
.admin-form .tour-visibility .fineprint {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}
.has-error input, .has-error textarea { border-color: #c44747; }
.field-error { color: #b42323; font-size: 0.9rem; display: block; margin-top: 0.2rem; }

.notice { padding: 0.9rem 1rem; border-radius: 0.8rem; margin-bottom: 1rem; }
.notice-ok { background: #e8f8de; color: #21561a; }
.notice-error { background: #fde8e8; color: #8a1f1f; }

/* Footer */
.site-footer {
  margin-top: 1rem;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid rgba(20,38,42,0.08);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 2rem;
  padding: 2rem 0 1.6rem;
}
.site-footer h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.5rem; }
.footer-company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1.35;
}
.footer-company-zh,
.footer-company-en { display: block; font-size: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.2rem 0; font-size: 1.05rem; }
.site-footer li a { font-size: 1.05rem; }
.brand-footer { background: transparent; padding: 0; display: inline-block; }
.footer-legal {
  background: #F7AC00;
  color: #fff;
  font-size: 0.95rem;
  padding: 1rem 0 1.2rem;
  border-top: 0;
}
.footer-legal p { margin: 0.15rem 0; }
.footer-legal .footer-licence {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.footer-legal .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Admin */
.admin { background: #f7f7f7; }
.admin-shell { display: grid; grid-template-columns: 15.5rem 1fr; min-height: 100vh; }
.admin-side {
  background: #173035;
  color: #fff;
  padding: 1.3rem 1rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.admin-side .brand { color: #fff; text-decoration: none; display: grid; gap: 0.4rem; justify-items: start; }
.admin-side .brand span { font-weight: 700; }
.admin-side a { color: #d7f3f8; text-decoration: none; }
.admin-side nav a { display: block; padding: 0.4rem 0.55rem; border-radius: 0.5rem; }
.admin-side nav a[aria-current="page"], .admin-side nav a:hover { background: rgba(97,194,197,0.28); color: #fff; }
.admin-side ul { list-style: none; margin: 0; padding: 0; }
.admin-side-foot { margin-top: auto; display: grid; gap: 0.5rem; }
.admin-side-foot .linkish {
  background: none; border: 0; color: #d7f3f8; cursor: pointer;
  font: inherit; padding: 0; text-align: left;
}
.admin-main { padding: 1.5rem 0 3rem; }
.wrap-admin { width: min(65rem, calc(100% - 2.4rem)); margin-inline: auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-form fieldset {
  border: 1px solid #e4d6c0; border-radius: 0.8rem;
  margin: 0 0 1.2rem; padding: 1rem 1.1rem;
  background: #fff;
}
.admin-form legend { font-weight: 800; padding: 0 0.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 0.8rem; overflow: hidden; }
.data th, .data td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid #eee3d4; vertical-align: top; }
.data th { background: #f7efe3; font-size: 0.9rem; }
.data .badge-hidden {
  background: #eee7e2;
  color: #6a5348;
  font-size: 0.78rem;
  padding: 0.12rem 0.5rem;
  font-weight: 700;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.data .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  align-items: center;
}
.data .row-actions form { margin: 0; display: inline; }
.data .row-actions .action-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--teal-dark);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
.data .row-actions .action-link:hover { color: var(--pink-dark); }
.thumb { max-width: 8rem; border-radius: 0.5rem; }
.admin-form .hero-preview { max-width: 22rem; width: 100%; border-radius: 0.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 2rem; }
.stat-grid a {
  display: block; background: #fff; border-radius: var(--radius);
  padding: 1.2rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.stat-grid strong { display: block; font-size: 2rem; color: var(--teal-dark); }
.codey { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.danger-zone { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed #e0c9c9; }

.admin-login-body {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--white);
}
.login-card {
  width: min(24rem, calc(100% - 2rem));
  background: #fff; padding: 2rem 1.6rem;
  border-radius: 1.2rem; box-shadow: var(--shadow);
}
.login-card h1 { margin: 0.6rem 0 1rem; }


/* Notes rich-text editor */
.notes-field { margin: 0 0 1rem; }
.notes-field > label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.notes-source-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.notes-editor {
  border: 1px solid rgba(20,38,42,0.16);
  border-radius: 0.7rem;
  background: #fff;
  overflow: hidden;
}
.notes-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  background: #f7efe3;
  border-bottom: 1px solid rgba(20,38,42,0.08);
}
.notes-toolbar button {
  appearance: none;
  border: 1px solid rgba(20,38,42,0.16);
  background: #fff;
  color: var(--ink);
  border-radius: 0.4rem;
  padding: 0.28rem 0.55rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.2;
}
.notes-toolbar button:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.notes-toolbar-sep {
  width: 1px;
  height: 1.2rem;
  background: rgba(20,38,42,0.16);
  margin: 0 0.15rem;
}
.notes-color {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}
.notes-color input[type="color"] {
  width: 2rem;
  height: 1.6rem;
  padding: 0;
  border: 1px solid rgba(20,38,42,0.2);
  border-radius: 0.3rem;
  background: #fff;
  cursor: pointer;
}
.notes-swatch {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0 !important;
  border-radius: 999px !important;
}
.notes-editor-area {
  min-height: 12rem;
  padding: 0.85rem 1rem;
  outline: none;
  line-height: 1.7;
}
.notes-editor-area:focus { box-shadow: inset 0 0 0 2px var(--gold-soft); }
.notes-editor-area p { margin: 0 0 0.7rem; }
.notes-editor-area h2, .notes-editor-area h3 { margin: 0 0 0.7rem; font-size: inherit; font-weight: inherit; }
.notes-editor[data-preserve-headings] .notes-editor-area { min-height: 24rem; }
.notes-editor[data-preserve-headings] .notes-editor-area h2 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.notes-editor[data-preserve-headings] .notes-editor-area h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.notes-editor[data-preserve-headings] .notes-editor-area h2:first-child,
.notes-editor[data-preserve-headings] .notes-editor-area h3:first-child { margin-top: 0; }

/* Responsive */
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .tour-detail-grid, .contact-layout, .about-layout, .admin-shell, .form-grid {
    grid-template-columns: 1fr;
  }
  .tour-detail-media img, .tour-detail-media .cover-fallback-lg {
    width: 100%;
    max-width: 100%;
  }
  .about-aside { position: static; grid-template-columns: 1fr 1fr; max-width: 20rem; }
  .admin-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side-foot { margin-top: 0; flex-direction: row; }
  .nav-toggle { display: inline-block; }
  .site-header { position: sticky; }
  .header-inner { gap: 1rem; }
  .header-tools {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    padding: 1rem 1.25rem 1.4rem;
    border-bottom: 1px solid rgba(20,38,42,0.08);
    box-shadow: 0 12px 24px rgba(20, 38, 42, 0.08);
    z-index: 51;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    flex: none;
  }
  body.nav-open .header-tools { display: flex; }
  .site-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }
  .site-nav ul li + li {
    margin-top: 1rem;
  }
  .site-nav ul a {
    font-size: 1.47rem;
    line-height: 1.35;
    padding: 0.35rem 0;
  }
  .header-meta {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }
  .header-meta-actions {
    align-items: flex-start;
  }
  .header-phone { font-size: 1.1rem; }
  a.whatsapp-btn,
  a.whatsapp-btn:link,
  a.whatsapp-btn:visited {
    font-size: 0.95rem;
  }
}
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .theme-grid { gap: 0.5rem; }
  .tour-grid, .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .theme-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 400px) {
  .site-header .brand img { width: 11.25rem; }
}
