/* ==========================================================================
   MountainMate — Shared base styles
   Design tokens, reset, layout primitives, navbar, footer, buttons.
   Extracted once and shared by every page (was duplicated per-page in
   the original static export).
   ==========================================================================

/* ==========================================================================
   MountainMate — Base styles, design tokens, reset
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Color system — deep pine forest + sunrise amber, warm parchment neutrals */
  --pine-950: #0d1f16;
  --pine-900: #123322;
  --pine-800: #16402c;
  --pine-700: #1b4d35;
  --pine-600: #22623f;
  --pine-500: #2c7a4e;
  --pine-400: #4a9968;
  --pine-100: #dcece2;
  --pine-50: #f0f7f2;

  --amber-600: #b96a2c;
  --amber-500: #d98a3d;
  --amber-400: #e8a75c;
  --amber-100: #fbe8d2;

  --parchment: #faf7f0;
  --ink: #1c231b;
  --ink-soft: #4a5346;

  --font-display: "Fraunces", "Georgia", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --shadow-card: 0 1px 2px rgba(20, 30, 20, 0.04), 0 8px 24px -8px rgba(20, 30, 20, 0.12);
  --shadow-lift: 0 20px 40px -16px rgba(13, 31, 22, 0.35);

  --container-max: 80rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--parchment);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Rich-text content (admin WYSIWYG output, via format_rich_text())
   The global ul/ol reset above strips bullets, numbers, and indentation
   from every list on the site — including real <ul>/<ol> markup authored
   in the trip overview / itinerary day fields. Restore native list
   rendering and paragraph/heading spacing inside those content areas only.
   ========================================================================== */
.lede ul, .lede ol,
.itinerary-item__body ul, .itinerary-item__body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.lede ul, .itinerary-item__body ul { list-style: disc; }
.lede ol, .itinerary-item__body ol { list-style: decimal; }
.lede ul ul, .lede ol ul, .itinerary-item__body ul ul, .itinerary-item__body ol ul { list-style: circle; }
.lede li, .itinerary-item__body li {
  margin-bottom: 0.5rem;
}
.lede p, .itinerary-item__body p {
  margin: 0 0 1rem;
}
.lede h1, .lede h2, .lede h3, .lede h4, .lede h5, .lede h6,
.itinerary-item__body h1, .itinerary-item__body h2, .itinerary-item__body h3,
.itinerary-item__body h4, .itinerary-item__body h5, .itinerary-item__body h6 {
  margin: 1.5rem 0 0.5rem;
}
.lede > :first-child, .itinerary-item__body > :first-child { margin-top: 0; }
.lede > :last-child, .itinerary-item__body > :last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--pine-600);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container-page {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container-page { padding-inline: 2rem; }
}

@media (min-width: 1024px) {
  .container-page { padding-inline: 2.5rem; }
}

.text-balance {
  text-wrap: balance;
}

.section {
  padding-block: 5rem;
}
@media (min-width: 640px) {
  .section { padding-block: 6rem; }
}

.section-tight {
  padding-block: 3.5rem;
}
@media (min-width: 640px) {
  .section-tight { padding-block: 4rem; }
}

.bg-parchment { background-color: var(--parchment); }
.bg-pine-50 { background-color: var(--pine-50); }
.bg-pine-950 { background-color: var(--pine-950); }

.min-h-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.min-h-app > main {
  flex: 1;
}

/* Skip to content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine-800);
  color: var(--parchment);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Section heading
   ========================================================================== */

.section-heading {
  max-width: 42rem;
}
.section-heading--center {
  margin-inline: auto;
  text-align: center;
}
.section-heading__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--amber-600);
}
.section-heading__title {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--pine-950);
}
@media (min-width: 640px) {
  .section-heading__title { font-size: 2.25rem; }
}
.section-heading__desc {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (min-width: 640px) {
  .section-heading__desc { font-size: 1.125rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 40px;
}
.btn-primary {
  background-color: var(--pine-800);
  color: var(--parchment);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  background-color: var(--pine-700);
}
.btn-secondary {
  background-color: transparent;
  color: var(--pine-800);
  border: 1px solid var(--pine-800);
}
.btn-secondary:hover {
  background-color: var(--pine-50);
}
.btn-amber {
  background-color: var(--amber-500);
  color: var(--parchment);
  box-shadow: var(--shadow-card);
}
.btn-amber:hover {
  background-color: var(--amber-600);
}
.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(18, 51, 34, 0.05);
  background-color: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(8px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) {
  .navbar__inner { height: 5rem; }
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pine-900);
}
@media (min-width: 640px) {
  .navbar__logo { font-size: 1.25rem; }
}
.navbar__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: var(--pine-800);
  color: var(--parchment);
}
@media (min-width: 640px) {
  .navbar__logo-mark { width: 2.25rem; height: 2.25rem; }
}
.navbar__logo-img {
  height: 2rem;
  width: auto;
  object-fit: contain;
}
@media (min-width: 640px) {
  .navbar__logo-img { height: 2.25rem; }
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 1024px) {
  .navbar__links { display: flex; }
}
.navbar__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.navbar__link:hover,
.navbar__link.is-active {
  color: var(--pine-700);
}

.navbar__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .navbar__actions { display: flex; }
}
.navbar__login-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.navbar__login-link:hover { color: var(--pine-700); }

/* Logged-in avatar + account dropdown (desktop) */
.navbar__profile {
  position: relative;
}
.navbar__avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: transparent;
  padding: 0.25rem 0.4rem 0.25rem 0.25rem;
  border-radius: 9999px;
  transition: background-color 0.15s ease;
}
.navbar__avatar-btn:hover { background-color: var(--pine-100); }
.navbar__avatar-btn.is-open { background-color: var(--pine-100); }
.navbar__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: cover;
  background-color: var(--pine-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(18, 51, 34, 0.12);
}
.navbar__avatar-caret {
  color: var(--ink-soft);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.navbar__avatar-btn.is-open .navbar__avatar-caret { transform: rotate(180deg); }

.navbar__dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 19rem;
  max-width: calc(100vw - 2rem);
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(18, 51, 34, 0.08);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 60;
}
.navbar__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.navbar__dropdown-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(18, 51, 34, 0.08);
  margin-bottom: 0.4rem;
}
.navbar__dropdown-head .navbar__avatar { width: 2.75rem; height: 2.75rem; font-size: 1rem; }
.navbar__dropdown-head-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pine-950);
  line-height: 1.25;
}
.navbar__dropdown-head-role {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber-600);
  background-color: var(--amber-100);
  border-radius: 9999px;
  padding: 0.1rem 0.55rem;
}
.navbar__dropdown-items { display: flex; flex-direction: column; gap: 1px; }
.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.12s ease;
}
.navbar__dropdown-item svg { color: var(--pine-700); flex-shrink: 0; }
.navbar__dropdown-item:hover { background-color: var(--pine-50); }
.navbar__dropdown-item--danger { color: #b3261e; }
.navbar__dropdown-item--danger svg { color: #b3261e; }
.navbar__dropdown-item--danger:hover { background-color: #fdecea; }
.navbar__dropdown-divider {
  height: 1px;
  background-color: rgba(18, 51, 34, 0.08);
  margin: 0.4rem 0.25rem;
}

/* Logged-in state on mobile panel */
.navbar__mobile-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(18, 51, 34, 0.1);
  margin-bottom: 0.5rem;
}
.navbar__mobile-profile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pine-950);
}
.navbar__mobile-profile-role {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber-600);
  margin-top: 0.15rem;
}

.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--pine-900);
}
@media (min-width: 1024px) {
  .navbar__toggle { display: none; }
}

.navbar__mobile {
  display: none;
  border-top: 1px solid rgba(18, 51, 34, 0.05);
  background-color: var(--parchment);
}
.navbar__mobile.is-open {
  display: block;
}
@media (min-width: 1024px) {
  .navbar__mobile { display: none !important; }
}
.navbar__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
}
.navbar__mobile-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.navbar__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(18, 51, 34, 0.1);
  padding: 1rem 0.5rem 0;
}
.navbar__mobile-actions .btn {
  width: 100%;
}
.navbar__mobile-login {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--pine-950);
  color: var(--pine-100);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { padding-block: 4rem; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--parchment);
}
.footer__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: var(--pine-100);
  color: var(--pine-900);
}
.footer__brand-desc {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(240, 243, 240, 0.7);
}
.footer__contact {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(240, 243, 240, 0.8);
}
.footer__contact a:hover { color: var(--parchment); }

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(240, 243, 240, 0.6);
}
.footer__col-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__col-list a {
  font-size: 0.875rem;
  color: rgba(240, 243, 240, 0.8);
  transition: color 0.15s ease;
}
.footer__col-list a:hover { color: var(--parchment); }

.footer__bottom {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(240, 243, 240, 0.1);
  padding-block: 1.5rem;
}
@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.footer__copy {
  font-size: 0.75rem;
  color: rgba(240, 243, 240, 0.6);
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: rgba(240, 243, 240, 0.1);
  color: rgba(240, 243, 240, 0.8);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.footer__social a:hover {
  background-color: rgba(240, 243, 240, 0.2);
  color: var(--parchment);
}

/* ==========================================================================

/* ==========================================================================
   Shared: portal switcher (customer / guide login toggle)
   ========================================================================== */
.portal-switch {
  display: flex;
  gap: 0.25rem;
  margin: 1.5rem auto 0;
  max-width: fit-content;
  background-color: var(--pine-50);
  border-radius: 9999px;
  padding: 0.25rem;
}
.portal-switch__option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.portal-switch__option:hover { color: var(--pine-800); }
.portal-switch__option.is-active {
  background-color: #fff;
  color: var(--pine-900);
  box-shadow: 0 1px 2px rgba(20, 30, 20, 0.08);
}
