:root {
  --ink: #17201d;
  --muted: #5e6a65;
  --paper: #f6f3eb;
  --white: #ffffff;
  --forest: #14523f;
  --river: #0b6e7a;
  --gold: #d7a846;
  --rose: #ad4f4a;
  --line: rgba(23, 32, 29, 0.14);
  --shadow: 0 20px 60px rgba(20, 43, 37, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 20, 17, 0.82), rgba(10, 20, 17, 0));
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

nav {
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  opacity: 0.86;
}

nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 14, 0.88), rgba(7, 17, 14, 0.35), rgba(7, 17, 14, 0.08)),
    linear-gradient(0deg, rgba(7, 17, 14, 0.72), rgba(7, 17, 14, 0.02) 46%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 76px) clamp(46px, 9vh, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--forest);
}

.hero .button.primary {
  color: var(--ink);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.button.ghost {
  color: var(--forest);
  border-color: var(--line);
  background: transparent;
}

.button.danger {
  color: var(--white);
  background: var(--rose);
}

.ilp-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 82, 63, 0.1), rgba(11, 110, 122, 0.08)),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.ilp-card h3 {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 1.65rem;
}

.ilp-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ilp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1.18fr;
  gap: 48px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro p,
.section-heading p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 0;
}

.stats article,
.tool-grid article,
.tour-form,
.activity-panel,
.theme-grid article,
.trade-grid article,
.route-card,
.contact-card,
.place-media-card,
.media-admin-list article,
.review-grid article,
.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.stats article {
  padding: 24px;
}

.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.stat-link:hover span {
  color: var(--forest);
}

.stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 2rem;
}

.stats span {
  color: var(--muted);
  line-height: 1.55;
}

.tribes-intro {
  padding-top: 0;
}

.tool-grid,
.review-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.tool-grid {
  grid-template-columns: repeat(4, 1fr);
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tool-grid article,
.review-grid article,
.faq-grid details {
  padding: 22px;
}

.tool-grid strong,
.review-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 1.8rem;
}

.tool-grid h3,
.review-grid h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.15rem;
}

.tool-grid p,
.review-grid p,
.review-grid span,
.faq-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.compact-heading {
  margin-top: 32px;
  margin-bottom: 18px;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.destination-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.destination-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.76)),
    linear-gradient(45deg, rgba(20, 82, 63, 0.22), rgba(11, 110, 122, 0.04));
}

.destination-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.destination-card:hover > img {
  transform: scale(1.04);
}

.destination-card > div,
.destination-card > p,
.destination-card > a {
  position: relative;
  z-index: 1;
}

.card-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  font-weight: 800;
}

.place-media-grid,
.media-admin-list {
  display: grid;
  gap: 16px;
}

.place-media-grid {
  grid-template-columns: repeat(4, 1fr);
}

.place-media-card,
.media-admin-list article {
  padding: 18px;
}

.place-media-card h3,
.media-admin-list h3 {
  margin-bottom: 12px;
  color: var(--forest);
}

.place-media-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--ink);
  object-fit: cover;
}

.place-media-card p,
.media-admin-list p {
  color: var(--muted);
  line-height: 1.55;
}

.social-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.social-video-links span {
  color: var(--muted);
}

.destination-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.destination-card h3 {
  font-size: 1.8rem;
}

.destination-card p {
  margin-bottom: 0;
  line-height: 1.55;
}

.theme-grid,
.trade-grid,
.guide-grid {
  display: grid;
  gap: 16px;
}

.review-grid span {
  display: block;
  margin-top: 12px;
  font-weight: 800;
}

.faq-grid {
  grid-template-columns: 1fr;
}

.faq-grid summary {
  color: var(--forest);
  font-weight: 800;
  cursor: pointer;
}

.faq-grid p {
  margin: 12px 0 0;
}

.theme-grid {
  grid-template-columns: repeat(4, 1fr);
}

.trade-grid {
  grid-template-columns: repeat(3, 1fr);
}

.guide-grid {
  grid-template-columns: repeat(2, 1fr);
}

.theme-grid article,
.trade-grid article,
.guide-grid article {
  padding: 22px;
}

.theme-grid h3,
.trade-grid h3,
.guide-grid h3 {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 1.1rem;
}

.theme-grid p,
.trade-grid p,
.guide-grid p,
.guide-grid li {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.guide-grid article {
  border-left: 4px solid var(--gold);
}

.guide-grid h4 {
  margin: 18px 0 8px;
  color: var(--ink);
}

.guide-grid ul {
  margin: 0;
  padding-left: 20px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.route-card {
  padding: 22px;
}

.route-card h3 {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 1.12rem;
}

.route-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.route-card strong {
  color: var(--ink);
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.route-links a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.contact-section {
  padding-top: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-grid.single-card {
  grid-template-columns: minmax(0, 760px);
}

.contact-card {
  padding: 26px;
}

.contact-role {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: rgba(215, 168, 70, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.activity-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.activity-panel h3,
.tour-form h3 {
  margin-bottom: 4px;
  color: var(--forest);
  font-size: 1.25rem;
}

.tour-form h3 {
  margin-bottom: 18px;
}

.activity-panel label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

input,
select {
  min-height: 48px;
}

textarea {
  min-height: 180px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--forest);
}

.tour-form {
  padding: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.visitor-row {
  grid-template-columns: repeat(3, 1fr);
}

label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--forest);
  font-weight: 800;
}

.local-plan-box {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.feedback-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.local-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.helper-text {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

footer p {
  margin: 0;
}

.footer-contact-link {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-love span {
  color: #e11d48;
  font-weight: 800;
}

.inner-header {
  position: sticky;
  color: var(--white);
  background: var(--ink);
}

.admin-main,
.place-main {
  padding-top: 20px;
}

.admin-shell h1,
.place-hero h1 {
  color: var(--ink);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}

.admin-login,
.admin-panel,
.place-story,
.place-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.admin-login {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 22px;
}

.admin-panel {
  margin-top: 22px;
  padding: 22px;
}

.place-media-admin {
  margin: 28px 0;
}

.media-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.media-form .button,
.media-form .status {
  align-self: end;
}

.media-admin-list {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.admin-summary article {
  padding: 18px;
  border-radius: 8px;
  background: rgba(20, 82, 63, 0.08);
}

.admin-summary strong {
  display: block;
  color: var(--forest);
  font-size: 1.8rem;
}

.admin-summary span {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: var(--white);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--forest);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.place-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.place-hero-image {
  width: 100%;
  min-height: 520px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.place-story {
  padding: 28px;
}

.place-story p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.place-card {
  padding: 24px;
}

.place-card h2 {
  font-size: 1.8rem;
}

.place-card li {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .site-header,
  footer,
  .intro,
  .split,
  .registration-layout,
  .ilp-card,
  .admin-login,
  .place-hero {
    display: block;
  }

  nav {
    margin-top: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .stats,
  .tool-grid,
  .destination-grid,
  .place-media-grid,
  .media-form,
  .media-admin-list,
  .review-grid,
  .theme-grid,
  .trade-grid,
  .guide-grid,
  .route-grid,
  .contact-grid,
  .admin-summary,
  .place-grid,
  .form-row,
  .visitor-row {
    grid-template-columns: 1fr;
  }

  .destination-card {
    min-height: 260px;
  }

  .admin-login .button,
  .ilp-actions .button,
  .admin-actions .button {
    width: 100%;
    margin-top: 12px;
  }

  .ilp-actions {
    margin-top: 18px;
    justify-content: stretch;
  }

  .place-hero-image {
    min-height: 320px;
    margin-top: 18px;
  }

  footer p + p {
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 86vh;
  }

  .hero-content {
    margin-bottom: 36px;
  }

  .section {
    padding: 54px 0;
  }

  .tour-form,
  .activity-panel,
  .local-plan-box {
    padding: 18px;
  }
}
