:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1f2522;
  background: #f4efe5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #1f2522;
  --green: #0f4c33;
  --deep-green: #0b3425;
  --gold: #b7955b;
  --cream: #f8f3e9;
  --paper: #fffaf1;
  --muted: #6b716d;
  --line: rgba(31, 37, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px clamp(16px, 5vw, 70px);
  background: rgba(248, 243, 233, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-link img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  flex-wrap: wrap;
}

.site-nav a {
  color: #28302c;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--green);
  border-bottom-color: var(--gold);
}

.luxury-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  min-height: calc(100vh - 78px);
  background: #ece3d2;
}

.hero-image-panel {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 54px);
  background:
    linear-gradient(rgba(11, 52, 37, 0.18), rgba(11, 52, 37, 0.18)),
    #d9c8ad;
}

.hero-image-panel img {
  width: min(100%, 760px);
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border: 1px solid rgba(45, 38, 29, 0.28);
  box-shadow: 0 28px 68px rgba(27, 34, 30, 0.26);
}

.hero-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 90px);
  background: var(--paper);
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  color: var(--deep-green);
  font-size: clamp(4.2rem, 10vw, 8.8rem);
  line-height: 0.86;
}

h2 {
  color: var(--deep-green);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.95;
}

h3 {
  color: var(--deep-green);
  font-size: 1.25rem;
}

.hero-tagline {
  margin: 22px 0 18px;
  color: var(--green);
  font-size: clamp(1.3rem, 2.4vw, 2.15rem);
  font-weight: 800;
}

.hero-copy-panel p,
.intro-section p,
.page-heading p,
.destination-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

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

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 900;
}

.primary-action {
  color: white;
  background: var(--deep-green);
}

.secondary-action {
  color: var(--deep-green);
  background: transparent;
  border: 1px solid var(--gold);
}

.intro-section,
.adventure-page,
.gallery-section,
.scoring-section {
  padding: clamp(58px, 8vw, 112px) clamp(16px, 6vw, 88px);
}

.intro-section {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.intro-section p:last-child {
  max-width: 780px;
  margin: 22px auto 0;
}

.adventure-page {
  background: var(--paper);
}

.adventure-page.muted {
  background: #eee3d2;
}

.page-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.page-heading.light {
  color: white;
}

.page-heading.light h2 {
  color: white;
}

.page-heading.light p {
  color: rgba(255, 255, 255, 0.78);
}

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

.destination-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.destination-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 241, 0.98)),
    #ffffff;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.destination-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--gold);
  pointer-events: none;
}

.destination-card.image-card,
.destination-card.featured-card {
  min-height: 430px;
}

.destination-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.destination-card.featured-card {
  grid-column: span 2;
}

.destination-card.featured-card img {
  opacity: 0.36;
}

.destination-card > *:not(img) {
  position: relative;
  z-index: 1;
}

.card-label {
  width: fit-content;
  display: inline-flex;
  margin-bottom: 14px;
  color: white;
  background: var(--deep-green);
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 900;
}

.destination-card h3 {
  max-width: 460px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.destination-card p {
  max-width: 520px;
  margin: 12px 0 0;
}

.destination-card .trip-date {
  color: var(--green);
  font-weight: 900;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.destination-card a {
  width: fit-content;
  margin-top: 18px;
  color: var(--deep-green);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.gallery-section {
  background: #f4efe5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.gallery-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #ddd1bb;
}

.scoring-section {
  background:
    linear-gradient(135deg, rgba(183, 149, 91, 0.2), transparent 28%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--deep-green);
}

.scoring-layout {
  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(390px, 610px);
  gap: 26px;
  align-items: start;
}

.setup-panel {
  display: grid;
  gap: 14px;
}

.event-card,
.control-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(35, 80, 60, 0.12);
  box-shadow: 0 18px 45px rgba(29, 54, 43, 0.08);
  border-radius: 4px;
  padding: 18px;
}

.event-heading,
.leader-head,
.split-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  color: #17633f;
  background: #e7f4ec;
  border: 1px solid #b9dfc9;
  font-weight: 900;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.event-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #4b5a52;
}

.format-list {
  display: grid;
  gap: 8px;
}

.format-option {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px 1fr 20px;
  align-items: center;
  gap: 8px;
  color: #24332b;
  background: #f6f8f6;
  border: 1px solid #dfe7e1;
  border-radius: 4px;
  padding: 10px 12px;
  text-align: left;
}

.format-option.selected {
  color: #0b5938;
  background: #e7f4ec;
  border-color: #8fcaab;
}

.inline-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stepper {
  background: #f6f8f6;
  border: 1px solid #dfe7e1;
  border-radius: 4px;
  padding: 10px;
}

.stepper span {
  display: block;
  color: #637169;
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-weight: 900;
}

.stepper div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stepper button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #17633f;
  background: #e5f1ea;
}

.quiet-copy {
  color: #68766e;
  margin: 12px 0 0;
  line-height: 1.45;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  background: #eef2ef;
  border-radius: 4px;
}

.segmented.wide {
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
}

.segmented button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 2px;
  color: #526158;
  background: transparent;
  font-weight: 900;
}

.segmented button.active {
  color: #0d5136;
  background: white;
  box-shadow: 0 3px 10px rgba(27, 57, 44, 0.08);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #34443b;
  font-weight: 900;
}

.toggle-row input {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d6ded9;
  position: relative;
  transition: background 160ms ease;
}

.toggle-row input::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.toggle-row input:checked {
  background: #17633f;
}

.toggle-row input:checked::after {
  transform: translateX(20px);
}

.phone-frame {
  width: min(100%, 610px);
  height: 860px;
  overflow: hidden;
  border: 1px solid rgba(21, 33, 28, 0.14);
  box-shadow: 0 24px 70px rgba(5, 25, 14, 0.38);
  background: #fff;
}

.live-screen {
  position: relative;
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 88px;
  display: grid;
  grid-template-columns: 44px 1fr 54px;
  align-items: center;
  gap: 8px;
  background: #17633f;
  color: white;
  padding: 14px 18px;
}

.mobile-topbar button {
  display: grid;
  place-items: center;
  color: white;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 900;
}

.mobile-topbar strong,
.mobile-topbar span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-topbar strong {
  font-size: 1.1rem;
  font-weight: 650;
}

.mobile-topbar span {
  font-size: 1rem;
  opacity: 0.95;
  margin-top: 4px;
}

.tab-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 22px 18px 20px;
}

.tab-scroller button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 54px;
  color: #414141;
  background: #f5f5f5;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 0 24px;
  font-size: 1.03rem;
}

.tab-scroller button.active {
  background: #1c7b4d;
  color: white;
}

.leader-card {
  margin: 4px 18px 10px;
  padding: 18px 18px 16px;
  background: #eaf5ed;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
}

.leader-card.collapsed {
  padding-bottom: 18px;
}

.leader-head {
  display: grid;
  grid-template-columns: 1fr 54px 64px;
  color: #202924;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.leader-head button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #202924;
  background: transparent;
  padding: 0;
  text-transform: uppercase;
  font-weight: 950;
}

.leader-row {
  display: grid;
  grid-template-columns: 1fr 54px 64px;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 1.12rem;
}

.leader-row div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leader-row div span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collapse-button {
  text-align: center;
  margin: 12px 0 18px;
}

.collapse-button button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #177247;
  background: #f0f2f1;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}

.score-grid {
  padding: 0 18px 36px;
  overflow-x: auto;
}

.grid-header,
.grid-row {
  display: grid;
  grid-template-columns: 62px 58px 58px 76px repeat(4, minmax(70px, 1fr));
  align-items: center;
  min-width: 720px;
}

.grid-header {
  position: sticky;
  top: 88px;
  z-index: 3;
  background: white;
  padding: 10px 0 14px;
}

.grid-header > span:not(.initial-badge) {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  justify-self: center;
  font-size: 1.04rem;
  font-weight: 850;
}

.initial-badge {
  --badge: #17633f;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  color: white;
  background: var(--badge);
  border-radius: 50%;
  font-weight: 950;
  font-size: 0.88rem;
}

.grid-row {
  min-height: 82px;
  padding: 10px 0;
}

.grid-row:nth-child(even) {
  background: #efefef;
}

.grid-row > span {
  justify-self: center;
  font-size: 1.18rem;
  font-weight: 850;
}

.score-cell {
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 68px;
  height: 44px;
}

.score-cell button {
  width: 26px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #177247;
  background: transparent;
  font-size: 1.3rem;
}

.score-cell strong {
  min-width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

.score-cell .add-score {
  width: 54px;
  height: 44px;
}

.float-tools {
  position: sticky;
  left: 12px;
  bottom: 18px;
  width: 56px;
  display: grid;
  gap: 12px;
  margin-left: 12px;
  margin-top: -178px;
  padding-bottom: 20px;
}

.float-tools button {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: white;
  background: #1c7b4d;
  border-radius: 4px;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.24);
  font-size: 0.75rem;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 32px clamp(16px, 6vw, 88px);
  color: white;
  background: #101a16;
}

.site-footer img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1080px) {
  .luxury-hero,
  .scoring-layout {
    grid-template-columns: 1fr;
  }

  .destination-grid,
  .destination-grid.compact,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .destination-card.featured-card {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.7rem;
  }

  .hero-image-panel {
    min-height: 420px;
  }

  h1 {
    font-size: clamp(3.5rem, 19vw, 6rem);
  }

  .destination-grid,
  .destination-grid.compact,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .destination-card.featured-card {
    grid-column: auto;
  }

  .gallery-grid img {
    height: 360px;
  }

  .setup-panel {
    display: none;
  }

  .phone-frame {
    height: 780px;
  }
}

@media (max-width: 520px) {
  .intro-section,
  .adventure-page,
  .gallery-section,
  .scoring-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-copy-panel {
    padding: 36px 18px;
  }

  .phone-frame {
    width: calc(100vw - 24px);
    height: 760px;
  }

  .tab-scroller button {
    min-height: 50px;
    padding: 0 18px;
  }
}
