:root {
  --ink: #15211c;
  --muted: #627067;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --sand: #e7d6b8;
  --sage: #627e5f;
  --cedar: #26483b;
  --clay: #b76545;
  --gold: #d7a943;
  --line: #e2ddd2;
  --shadow: 0 18px 50px rgba(21, 33, 28, 0.14);

  /* Override Bootstrap blue with site palette */
  --bs-primary: #26483b;
  --bs-primary-rgb: 38, 72, 59;
  --bs-link-color: #26483b;
  --bs-link-color-rgb: 38, 72, 59;
  --bs-link-hover-color: #15211c;
  --bs-link-hover-color-rgb: 21, 33, 28;
  --bs-nav-link-color: #15211c;
  --bs-nav-link-hover-color: #26483b;
  --bs-navbar-color: #15211c;
  --bs-navbar-hover-color: #26483b;
  --bs-navbar-active-color: #26483b;
  --bs-focus-ring-color: rgba(38, 72, 59, 0.25);
  --bs-btn-focus-shadow-rgb: 38, 72, 59;
  --bs-form-valid-color: #26483b;
  --bs-form-valid-border-color: #26483b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.page-shell {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cedar);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: white;
}

.brand-symbol {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  flex-shrink: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 650;
}

.nav-link:hover {
  color: white !important;
}

.nav-pill {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding-inline: 18px !important;
  color: var(--gold) !important;
}

.nav-pill:hover {
  background: var(--gold);
  color: #1d2118 !important;
}

.language-toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 850;
  padding: 8px 14px;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.language-toggle:focus-visible,
.nav-link:focus-visible,
.nav-pill:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: none;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(215, 169, 67, 0.4);
}

/* White hamburger icon on dark green header */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c 255%2c 255%2c 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
  position: relative;
  min-height: 720px;
  color: white;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 31, 26, 0.88), rgba(17, 31, 26, 0.54), rgba(17, 31, 26, 0.2)),
    url("https://images.unsplash.com/photo-1548786811-dd6e453ccca7?auto=format&fit=crop&w=1800&q=80") center/cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  align-items: end;
  gap: 34px;
  padding-block: 92px 56px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.card-kicker {
  display: block;
  color: var(--gold);
  font-size: 1.0rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-actions,
.tag-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  background: var(--gold);
  color: #1d2118;
  border: 0;
  padding: 13px 22px;
}

.secondary-action {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.62);
  padding: 12px 21px;
}

.search-panel {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.filter-explainer {
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff7e3;
  padding: 12px 14px;
}

.filter-explainer strong,
.filter-explainer span {
  display: block;
}

.filter-explainer span {
  color: #5f543e;
  line-height: 1.45;
}

.search-panel label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-select {
  min-height: 46px;
  border-color: var(--line);
  border-radius: 8px;
}

.search-button {
  background: var(--cedar);
  color: white;
  min-height: 46px;
}

.value-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.value-grid div {
  padding-block: 26px;
}

.value-grid strong {
  display: block;
  color: var(--clay);
  font-size: 1.9rem;
}

.value-grid span {
  color: var(--muted);
  font-weight: 650;
}

.section-block {
  padding-block: 82px;
}

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

.section-heading h2,
.split-layout h2,
.trust-grid h2,
.roadmap-grid h2,
.cta-inner h2,
.seo-grid h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p,
.split-layout p,
.trust-grid p,
.cta-inner p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hike-grid,
.organizer-grid,
.destination-grid,
.testimonial-grid,
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hike-card,
.organizer-card,
.trust-card,
.seo-card,
.testimonial-card,
.matrix-card,
.architecture-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(21, 33, 28, 0.08);
}

.destination-band {
  background: linear-gradient(180deg, #f7f2e8, var(--paper));
}

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

.destination-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  isolation: isolate;
}

.destination-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.7)),
    var(--image) center/cover;
  z-index: -1;
  transition: transform 220ms ease;
}

.destination-card:hover::before {
  transform: scale(1.06);
}

.destination-card span {
  color: var(--gold);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.destination-card strong {
  font-size: 1.18rem;
  line-height: 1.25;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 16px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.category-chip:hover,
.category-chip.is-active {
  transform: translateY(-2px);
  border-color: var(--clay);
  background: #fff7e3;
}

.hike-card.is-hidden {
  display: none;
}

.no-results {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 18px;
  font-weight: 800;
}

.hike-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
}

.card-body h3,
.organizer-card strong,
.trust-card strong,
.seo-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.card-body p,
.organizer-card p,
.seo-card span {
  color: var(--muted);
  line-height: 1.58;
}

.tag-row span {
  background: #f3efe6;
  color: #4b4435;
  border: 1px solid #e5dccb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 750;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.quick-facts div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  font-weight: 800;
}

.whatsapp-button {
  width: 100%;
  background: #1f8f5f;
  color: white;
  padding-block: 12px;
}

.muted-band {
  background: #f2efe6;
}

.split-layout,
.trust-grid,
.roadmap-grid,
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 38px;
  align-items: center;
}

.decision-list {
  display: grid;
  gap: 12px;
}

.decision-list div {
  background: var(--surface);
  border-left: 5px solid var(--clay);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(21, 33, 28, 0.08);
}

.decision-list strong,
.decision-list span,
.organizer-card span {
  display: block;
}

.decision-list span,
.organizer-card span {
  color: var(--muted);
}

.organizer-card {
  padding: 22px;
}

.testimonial-card,
.matrix-card,
.architecture-card {
  padding: 24px;
}

.testimonial-card {
  margin: 0;
}

.testimonial-card blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.7;
}

.testimonial-card figcaption {
  color: var(--muted);
  font-weight: 800;
}

.dark-band {
  background: #15211c;
  color: white;
}

.dark-band p,
.dark-band li {
  color: rgba(255, 255, 255, 0.76);
}

.trust-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  padding: 24px;
}

.trust-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}

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

.matrix-card {
  border-top: 5px solid var(--sage);
}

.matrix-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.matrix-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.matrix-card ul,
.architecture-card ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.75;
}

.priority-now {
  border-top-color: #1f8f5f;
}

.priority-next {
  border-top-color: var(--gold);
}

.priority-later {
  border-top-color: var(--sage);
}

.priority-remove {
  border-top-color: #b7483d;
}

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

.workflow span {
  min-height: 78px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--sage);
  border-radius: 8px;
  font-weight: 850;
  text-align: center;
}

.architecture-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.architecture-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.architecture-card strong {
  display: block;
  margin-bottom: 12px;
  color: white;
}

.architecture-card li {
  color: rgba(255, 255, 255, 0.76);
}

.seo-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.seo-card {
  padding: 20px;
}

.roadmap {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 14px;
  line-height: 1.65;
}

.organizer-cta {
  padding-block: 72px;
  background: var(--cedar);
  color: white;
}

.organizer-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.form-hero {
  background:
    linear-gradient(90deg, rgba(21, 33, 28, 0.92), rgba(21, 33, 28, 0.72)),
    url("https://images.unsplash.com/photo-1522163182402-834f871fd851?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
  padding-block: 92px 58px;
}

.form-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 36px;
  align-items: end;
}

.form-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.form-hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.72;
}

.submission-steps {
  display: grid;
  gap: 10px;
}

.submission-steps span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 850;
}

.add-hike-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.form-aside,
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(21, 33, 28, 0.08);
}

.form-aside {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.form-aside h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.form-aside ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.moderation-note {
  margin-top: 22px;
  border-left: 5px solid var(--clay);
  background: #fff7e3;
  border-radius: 8px;
  padding: 14px;
}

.moderation-note strong,
.moderation-note span {
  display: block;
}

.moderation-note span {
  color: #5f543e;
  margin-top: 4px;
  font-weight: 750;
}

.form-card {
  padding: 26px;
}

.organizer-form {
  display: grid;
  gap: 26px;
}

.organizer-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.organizer-form legend {
  float: none;
  width: auto;
  margin-bottom: 14px;
  color: var(--cedar);
  font-size: 1.16rem;
  font-weight: 900;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

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

.organizer-form label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.form-control,
.organizer-form .form-select {
  min-height: 46px;
  border-color: var(--line);
  border-radius: 8px;
  background-color: var(--surface);
  color: var(--ink);
}

.organizer-form textarea.form-control {
  min-height: 112px;
}

.text-danger {
  display: block;
  margin-top: 5px;
  font-size: 0.84rem;
  font-weight: 750;
}

.submit-action {
  justify-self: start;
}

.success-panel {
  display: grid;
  gap: 14px;
  border-left: 6px solid #1f8f5f;
  background: #effaf3;
  border-radius: 8px;
  padding: 24px;
}

.blocked-panel {
  border-left-color: #b7483d;
  background: #fff0ec;
}

.success-panel strong {
  font-size: 1.35rem;
}

.success-panel p {
  margin: 0;
  color: #425448;
  line-height: 1.65;
}

.auth-page {
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: center;
  padding-block: 70px;
  background:
    linear-gradient(90deg, rgba(21, 33, 28, 0.94), rgba(21, 33, 28, 0.7)),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.45fr);
  gap: 34px;
  align-items: center;
}

.auth-copy h1 {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.demo-credentials {
  display: grid;
  gap: 8px;
  max-width: 540px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
}

.demo-credentials span {
  color: rgba(255, 255, 255, 0.78);
}

.auth-card {
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  color: var(--ink);
  padding: 24px;
  box-shadow: var(--shadow);
}

.auth-card label {
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 850;
}

.auth-card a {
  color: var(--cedar);
  font-weight: 850;
}

.password-wrap {
  position: relative;
  display: flex;
}
.password-wrap input {
  flex: 1;
  padding-right: 68px;
}
.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 14px;
  background: none;
  border: none;
  color: var(--cedar);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.password-toggle:hover { color: var(--slate); }

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .filter-explainer,
[dir="rtl"] .decision-list div,
[dir="rtl"] .moderation-note,
[dir="rtl"] .success-panel {
  border-left: 0;
  border-right: 5px solid var(--gold);
}

[dir="rtl"] .decision-list div {
  border-right-color: var(--clay);
}

[dir="rtl"] .success-panel {
  border-right-color: #1f8f5f;
}

[dir="rtl"] .blocked-panel {
  border-right-color: #b7483d;
}

.admin-hero {
  background: #15211c;
  color: white;
  padding-block: 70px 48px;
}

.admin-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.admin-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.admin-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-size: 1.08rem;
}

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

.admin-shell {
  padding-block: 34px 78px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-kpis article,
.admin-panel,
.admin-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(21, 33, 28, 0.08);
}

.admin-kpis article {
  padding: 18px;
}

.admin-kpis span,
.admin-kpis small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.admin-kpis strong {
  display: block;
  color: var(--clay);
  font-size: 2rem;
  line-height: 1.1;
  margin-block: 6px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.admin-sidebar a {
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 11px 12px;
  text-decoration: none;
}

.admin-sidebar a:hover {
  background: #fff7e3;
}

.admin-panels {
  display: grid;
  gap: 20px;
}

.admin-panel {
  padding: 22px;
}

.priority-panel {
  border-top: 6px solid var(--gold);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.panel-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-tabs button,
.table-actions button,
.flag-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
  padding: 8px 10px;
}

.status-tabs button.is-active,
.table-actions button:first-child,
.flag-list button {
  background: var(--cedar);
  border-color: var(--cedar);
  color: white;
}

.table-actions button[data-action*="reject"],
.approval-actions button[data-action*="reject"] {
  border-color: #791d1d;
  color: #ffffff;
}

.table-actions button[data-action*="publish"] {
  border-color: var(--gold);
  background: #fff7e3;
  color: #6a5421;
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table-wrap::after {
  display: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 0.9rem;
}

.admin-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-table th {
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 14px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
  text-align: left;
}

.admin-table td {
  padding: 14px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.admin-table tbody tr:nth-child(even) {
  background: #222922;
}

.admin-table td strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.admin-table td span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Organizer accounts table identity cell */
.table-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.table-email {
  font-size: 0.84rem;
  color: var(--muted);
}

.role-chip {
  display: inline-block;
  background: #eef5ee;
  color: var(--cedar);
  border: 1px solid #c6ddc6;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-badge,
.priority {
  display: inline-block !important;
  width: fit-content;
  border-radius: 999px;
  background: #ffffff;
  color: #6a5421 !important;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

.status-approved {
  background: #eaf7ef;
  color: #1f6f46 !important;
}

.status-published {
  background: #e9f2ff;
  color: #245a93 !important;
}

.status-rejected {
  background: #fff0ec;
  color: #9f3325 !important;
}

.status-docs {
  background: #fff7e3;
  color: #6a5421 !important;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions form,
.approval-actions form,
.flag-list form {
  margin: 0;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.request-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(21, 33, 28, 0.05);
  overflow: hidden;
  transition: box-shadow 200ms ease, transform 150ms ease;
}

.request-card:hover {
  box-shadow: 0 8px 28px rgba(21, 33, 28, 0.11);
  transform: translateY(-1px);
}

.request-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, var(--cedar) 0%, #1a3329 100%);
  border-bottom: none;
}

.request-card-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.request-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.request-card-header strong {
  display: block;
  font-size: 1.06rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  line-height: 1.2;
}

.request-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status badge on dark card header */
.request-card-header .status-badge {
  color: white;
  border-color: #000;
  flex-shrink: 0;
}

.request-details {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 18px;
}

.request-details div {
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.request-details div:last-child {
  border-bottom: none;
}

.request-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.request-details dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}

.approval-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid #d0e4d3;
}

.approval-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
  padding: 9px 11px;
}

.approval-actions button[data-action*="approve"] {
  background: var(--cedar);
  border-color: var(--cedar);
  color: white;
}

.approval-actions button[data-action*="reject"] {
  border-color: #e1b7ab;
  color: #9f3325;
}

.approval-actions button[data-action*="docs"] {
  background: #fff7e3;
  border-color: var(--gold);
  color: #6a5421;
}

[data-admin-item].is-complete {
  opacity: 0.76;
}

[data-admin-item].is-complete .approval-actions button:not(:disabled),
[data-admin-item].is-complete .table-actions button:not(:disabled) {
  opacity: 0.55;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

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

.verification-card,
.analytics-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.verification-card {
  display: grid;
  gap: 10px;
  background-color: #013f5f;
}

.verification-card strong,
.verification-card span,
.analytics-grid strong,
.analytics-grid span {
  display: block;
}

.verification-card p,
.analytics-grid span,
.flag-list p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.flag-list {
  display: grid;
  gap: 12px;
}

/* Review flags: priority | content | resolve button */
.flag-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

/* Trip review items: content | action buttons */
#trip-reviews .flag-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.settings-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.settings-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #f4f6f4;
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
  margin: 0;
}

.settings-toggle-list,
.settings-field-list {
  display: flex;
  flex-direction: column;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 130ms ease;
}

.settings-toggle-row:last-child {
  border-bottom: none;
}

.settings-toggle-row:hover {
  background: #fafcfa;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.toggle-info strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.toggle-info span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.settings-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 180ms ease;
}

.settings-toggle:checked {
  background: var(--cedar);
}

.settings-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 180ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.settings-toggle:checked::after {
  transform: translateX(18px);
}

.settings-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.settings-field-row:last-child {
  border-bottom: none;
}

.settings-field-row--wide {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.settings-field-row label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: default;
}

.settings-field-row label strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.settings-field-row label span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 420px;
}

.settings-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--surface);
  min-width: 0;
  width: 100%;
  max-width: 260px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.settings-field-row--wide .settings-input {
  max-width: 100%;
}

.settings-input:focus {
  outline: none;
  border-color: var(--cedar);
  box-shadow: 0 0 0 3px rgba(38, 72, 59, 0.12);
}

/* Legacy grid — keep for any page that still references it */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font-weight: 750;
}

.site-footer {
  background: #111814;
  color: rgba(255, 255, 255, 0.72);
  padding-block: 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-grid strong {
  color: white;
  margin-right: 10px;
}

.footer-links a {
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121713;
    --surface: #1b241f;
    --ink: #f6f1e8;
    --muted: #b7c0b7;
    --line: #344138;
    --sand: #745f3c;
  }

  .site-nav {
    background: var(--cedar);
  }

  .muted-band {
    background: #202820;
  }

  .tag-row span {
    background: #28342b;
    border-color: #3b493f;
    color: #e7dcc8;
  }
}

@media (max-width: 980px) {
  .hero-content,
  .split-layout,
  .trust-grid,
  .roadmap-grid,
  .cta-inner,
  .seo-grid,
  .architecture-grid,
  .form-hero-grid,
  .add-hike-layout,
  .admin-hero-grid,
  .auth-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .form-aside {
    position: static;
  }

  /* Sidebar → horizontal scroll tab bar on tablet/mobile */
  .admin-sidebar {
    position: static;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar a {
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    border: 1px solid var(--line);
    font-size: 0.85rem;
  }

  .admin-sidebar a:hover,
  .admin-sidebar a.is-active {
    background: #fff7e3;
    border-color: var(--gold);
  }

  .admin-kpis,
  .verification-grid,
  .analytics-grid,
  .request-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-heading {
    display: grid;
    gap: 12px;
  }

  .panel-heading h2 {
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  }

  .status-tabs,
  .admin-actions {
    justify-content: flex-start;
  }

  /* Scroll hint on tables on tablet/mobile */
  .admin-table-wrap::after {
    content: "Swipe to see more →";
    display: block;
    text-align: right;
    font-size: 0.72rem;
    color: var(--muted);
    padding-top: 5px;
  }

  /* Admin hero — compact on tablet */
  .admin-hero {
    padding-block: 44px 32px;
  }

  .admin-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }

  .admin-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* Admin shell — less bottom padding on tablet */
  .admin-shell {
    padding-block: 28px 52px;
  }

  .hike-grid,
  .organizer-grid,
  .value-grid,
  .destination-grid,
  .testimonial-grid,
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 16px;
  }

  .hero-section,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding-block: 72px 28px;
  }

  .hike-grid,
  .organizer-grid,
  .value-grid,
  .workflow,
  .destination-grid,
  .testimonial-grid,
  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .section-block {
    padding-block: 58px;
  }

  .two-columns,
  .three-columns,
  .verification-grid,
  .analytics-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  /* Keep admin KPIs and request grid at 2 cols on phones */
  .admin-kpis {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .admin-kpis article {
    padding: 12px 14px;
  }

  .admin-kpis strong {
    font-size: 1.5rem;
  }

  /* Compact panel padding on phones */
  .admin-panel {
    padding: 14px;
  }

  .request-grid {
    grid-template-columns: 1fr !important;
  }

  /* Flag list — stack vertically on mobile */
  .flag-list article,
  #trip-reviews .flag-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flag-list article form,
  .flag-list article .table-actions {
    justify-self: start;
  }

  /* Status tabs — smaller + wrap on mobile */
  .status-tabs {
    gap: 5px;
  }

  .status-tabs button {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  /* Admin table — reduce font on small screens */
  .admin-table {
    font-size: 0.82rem;
    min-width: 640px;
  }

  .admin-table th,
  .admin-table td {
    padding: 9px 7px;
  }

  /* Scroll hint only shows on mobile (hide on desktop) */
  .admin-table-wrap::after {
    display: block;
  }

  /* Verification cards — table-actions stack */
  .verification-card .table-actions {
    flex-direction: column;
    gap: 6px;
  }

  .verification-card .table-actions button {
    width: 100%;
    text-align: center;
  }

  /* Approval actions — stack on mobile */
  .approval-actions {
    flex-direction: column;
  }

  .approval-actions button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ─── Image upload widget ──────────────────────────────────────── */

.image-upload-wrap {
  display: grid;
  gap: 8px;
}

.image-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 28px 20px;
  cursor: pointer;
  background: #fafaf8;
  transition: border-color 180ms, background 180ms;
  text-align: center;
}

.image-upload-label:hover {
  border-color: var(--cedar);
  background: #f4f9f5;
}

.upload-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.upload-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 340px;
}

.image-upload-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.upload-hint {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}

/* ─── Destination management (admin) ───────────────────────────── */

.destination-add-form {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #44443d;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dest-add-fields {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.dest-add-fields label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--muted);
}

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

.destination-manage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.dest-thumb {
  height: 80px;
  background-size: cover;
  background-position: center;
}

.dest-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 6px;
}

.dest-info strong {
  font-size: 0.95rem;
}

.destination-manage-card .table-actions {
  padding: 6px 12px 10px;
}

@media (max-width: 980px) {
  .destination-manage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dest-add-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .destination-manage-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Missing utility classes ──────────────────────────────────── */

.btn-link-nav {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  line-height: inherit;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-link-btn:hover {
  color: white;
}

.muted-note {
  color: var(--muted);
  font-style: italic;
  padding: 20px;
  text-align: center;
}

/* ─── Status badge — Hidden ─────────────────────────────────────── */

.status-hidden {
  background: #f0edf8;
  color: #5f4b82 !important;
}

/* ─── Admin action button variants ─────────────────────────────── */

.table-actions button[data-action="hide-hike"] {
  border-color: #e8c97a;
  background: #fffbeb;
  color: #7a5c1a;
}

.table-actions button[data-action="hide-hike"]:hover {
  background: #fef3c7;
  border-color: #d7a943;
}

.table-actions button[data-action="disable-organizer"] {
  border-color: #e1b7ab;
  color: #9f3325;
  background: #fff5f3;
}

.table-actions button[data-action="disable-organizer"]:hover {
  background: #fff0ec;
  border-color: #c9443a;
}

.table-actions button[data-action="enable-organizer"] {
  border-color: #86c9a5;
  background: #eaf7ef;
  color: #1f6f46;
}

.table-actions button[data-action="enable-organizer"]:hover {
  background: #d3f0e1;
}

/* ─── Global transitions ─────────────────────────────────────────── */

.btn,
.primary-action,
.secondary-action,
.whatsapp-button,
.category-chip,
.nav-link,
.nav-pill,
.destination-card,
.approval-actions button,
.flag-list button,
.status-tabs button {
  transition: transform 150ms ease, opacity 150ms ease, background 150ms ease,
    border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.table-actions button {
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

/* ─── Button micro-interactions ─────────────────────────────────── */

.primary-action:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(215, 169, 67, 0.4);
}

.primary-action:active {
  transform: none;
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

.whatsapp-button:hover {
  background: #178a57;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 143, 95, 0.4);
}

.whatsapp-button:active {
  transform: none;
}

/* ─── WhatsApp icon ──────────────────────────────────────────────── */

.whatsapp-button::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ─── Hike card hover lift ───────────────────────────────────────── */

.hike-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hike-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 64px rgba(21, 33, 28, 0.16);
}

.hike-card img {
  transition: transform 380ms ease;
}

.hike-card:hover img {
  transform: scale(1.05);
}

/* ─── Organizer card hover ───────────────────────────────────────── */

.organizer-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.organizer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(21, 33, 28, 0.13);
}

/* ─── Completed trip row in admin table ─────────────────────────── */

.row-completed td {
  opacity: 0.55;
}

.row-completed td:last-child {
  opacity: 1;
}

.completed-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  padding: 4px 0;
  white-space: nowrap;
}

/* ─── Admin table row hover ──────────────────────────────────────── */

.admin-table tbody tr {
  transition: background 130ms ease;
}

.admin-table tbody tr:hover {
  background: #ecf3ec;
}

.admin-table tbody tr:hover td:first-child {
  border-left: 3px solid var(--cedar);
  padding-left: 11px;
}

/* ─── Input focus ring ───────────────────────────────────────────── */

.form-control:focus,
.form-select:focus,
.organizer-form .form-select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(98, 126, 95, 0.18);
  outline: none;
}

/* ─── Value strip top accent ─────────────────────────────────────── */

.value-strip {
  border-top: 3px solid var(--gold);
}

.value-grid div {
  border-right: 1px solid var(--line);
  padding-left: 24px;
}

.value-grid div:last-child {
  border-right: none;
}

/* ─── Hike card title link ───────────────────────────────────────── */

.hike-card h3 a {
  color: inherit;
  text-decoration: none;
}

.hike-card h3 a:hover {
  color: var(--cedar);
}

/* ─── Hike detail page ───────────────────────────────────────────── */

.hike-detail-hero {
  position: relative;
  background-image: var(--image);
  background-size: cover;
  background-position: center;
  padding: 80px 0 48px;
  color: white;
}

.hike-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,25,20,.55) 0%, rgba(15,25,20,.78) 100%);
}

.hike-detail-hero .container-fluid {
  position: relative;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 24px;
  opacity: .88;
}

.breadcrumb-nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}

.breadcrumb-nav a:hover { color: white; }
.breadcrumb-nav span { color: rgba(255,255,255,.5); }

.hike-detail-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 12px 0 8px;
  color: white;
}

.hike-detail-organizer {
  opacity: .78;
  margin: 0;
}

.hike-detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: start;
}

.hike-detail-section {
  margin-bottom: 36px;
}

.hike-detail-section h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--cedar);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.what-to-know-block {
  margin-bottom: 16px;
}

.what-to-know-block strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.reviews-list {
  display: grid;
  gap: 16px;
}

.quick-facts--lg dt {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.quick-facts--lg dd {
  font-size: 1rem;
  margin: 0;
}

/* ─── Booking sidebar card ───────────────────────────────────────── */

.booking-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow);
}

.booking-card strong {
  font-size: 1.1rem;
}

.booking-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.booking-note {
  font-size: 0.78rem !important;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.organizer-instagram {
  margin-top: 16px;
  padding: 14px;
  background: var(--paper);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}

.card-img-link {
  display: block;
  text-decoration: none;
}

/* ─── Destination hero (Hikes page) ─────────────────────────────── */

.destination-hero {
  position: relative;
  background-image: var(--image);
  background-size: cover;
  background-position: center;
  padding: 72px 0 40px;
  color: white;
}

.destination-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,25,20,.5) 0%, rgba(15,25,20,.72) 100%);
}

.destination-hero .container-fluid {
  position: relative;
}

.destination-hero-copy h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 8px 0;
  color: white;
}

.destination-hero-copy p {
  max-width: 540px;
  opacity: .85;
  margin: 0;
}

@media (max-width: 900px) {
  .hike-detail-body {
    grid-template-columns: 1fr;
  }

  .booking-card {
    position: static;
  }
}

/* ─── Partners section (homepage) ───────────────────────────────── */

.partners-band {
  background: linear-gradient(to bottom, #f5f3ee, var(--paper));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: stretch;
  margin-top: 40px;
}

.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(21, 33, 28, 0.06);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(21, 33, 28, 0.14);
  border-color: var(--sage);
}

.partner-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: 28px 24px 20px;
  background: #fafaf8;
  border-bottom: 1px solid var(--line);
}

.partner-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 280ms ease;
}

.partner-card:hover .partner-card-img img {
  transform: scale(1.06);
}

.partner-name-fallback {
  font-weight: 800;
  font-size: 1rem;
  color: var(--cedar);
  text-align: center;
  line-height: 1.3;
}

.partner-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 16px 18px;
}

.partner-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.partner-insta-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.partner-insta-link:hover {
  color: #c13584;
}

.partner-insta-link::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='ig' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23f09433'/%3E%3Cstop offset='25%25' stop-color='%23e6683c'/%3E%3Cstop offset='50%25' stop-color='%23dc2743'/%3E%3Cstop offset='75%25' stop-color='%23cc2366'/%3E%3Cstop offset='100%25' stop-color='%23bc1888'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='24' height='24' rx='5' ry='5' fill='url(%23ig)'/%3E%3Crect x='2' y='2' width='20' height='20' rx='4' ry='4' fill='none' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='4.5' fill='none' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='white'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.partner-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ─── Partners admin form ────────────────────────────────────────── */

.partner-add-fields {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
}

.partner-add-fields label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .partner-add-fields {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    gap: 16px;
  }

  .partner-card {
    width: 160px;
  }

  .partner-card-img {
    height: 120px;
    padding: 20px 16px 16px;
  }
}

/* ─── Hero entrance animations ───────────────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy .eyebrow {
  animation: fadeUp 0.55s ease both 0.05s;
}

.hero-copy h1 {
  animation: fadeUp 0.6s ease both 0.18s;
}

.hero-copy p {
  animation: fadeUp 0.6s ease both 0.32s;
}

.hero-actions {
  animation: fadeUp 0.6s ease both 0.46s;
}

.search-panel {
  animation: fadeUp 0.65s ease both 0.22s;
}

/* ─── Scroll reveal ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── KPI counter pulse ──────────────────────────────────────────── */

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); color: var(--gold); }
  100% { transform: scale(1); }
}

.counter-pop {
  animation: countPop 0.35s ease;
}

/* ─── Sidebar active link ────────────────────────────────────────── */

.admin-sidebar a.is-active {
  background: #fff7e3;
  color: var(--cedar);
}

/* ─── Toast notifications ────────────────────────────────────────── */

.toast-shelf {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--cedar);
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(21, 33, 28, 0.28);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.toast::before {
  content: "✓";
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  text-align: center;
  line-height: 20px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.toast--error {
  background: #9f3325;
}

.toast--error::before {
  content: "!";
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(32px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(32px) scale(0.88); }
}

.toast.is-leaving {
  animation: toastOut 0.24s ease forwards;
}

/* ─── Card image overlay badges ──────────────────────────────────── */

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  display: block;
  transition: transform 380ms ease;
}

.hike-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-img-badges {
  position: absolute;
  inset: 10px 10px auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.diff-badge,
.price-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
  letter-spacing: 0.01em;
}

.diff-badge {
  background: rgba(21, 33, 28, 0.72);
  color: white;
  text-transform: uppercase;
}

.diff-badge.diff-easy { background: rgba(31, 143, 95, 0.82); }
.diff-badge.diff-moderate { background: rgba(183, 101, 69, 0.82); }
.diff-badge.diff-hard { background: rgba(159, 51, 37, 0.84); }

.price-badge {
  background: rgba(215, 169, 67, 0.92);
  color: #1d2118;
}

/* lifecycle badge — bottom-left of card image */
.lifecycle-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.lifecycle-upcoming  { background: rgba(80, 120, 80, 0.85);  color: #fff; }
.lifecycle-in-progress { background: rgba(215, 140, 30, 0.9); color: #fff; }
.lifecycle-completed { background: rgba(50, 50, 80, 0.85);   color: #fff; }

/* card actions row */
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.card-actions .btn { flex: 1; text-align: center; }

.review-button {
  background: var(--slate);
  color: #fff;
}
.review-button:hover { background: #2c3028; }

/* trip reviews on cards */
.trip-reviews {
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.trip-review-item {
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}
.review-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 4px; }
.review-text  { font-size: 0.82rem; color: var(--slate); margin: 0 0 4px; line-height: 1.5; }
.review-author { font-size: 0.75rem; color: var(--muted); font-style: italic; }

/* star picker on review form */
.star-picker {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}
.star-label { display: flex; align-items: center; cursor: pointer; }
.star-radio  { position: absolute; opacity: 0; width: 0; height: 0; }
.star-icon   { font-size: 2rem; color: #ccc; transition: color 150ms; }
.star-label:hover .star-icon,
.star-label:hover ~ .star-label .star-icon { color: #ccc; }
.star-picker:has(.star-radio:checked) .star-label .star-icon { color: #ccc; }
.star-picker .star-label:has(~ .star-label .star-radio:checked) .star-icon,
.star-picker .star-label:has(.star-radio:checked) .star-icon { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Remove old hike-card img rule (now inside card-img-wrap) ───── */

.hike-card > img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  display: block;
  transition: transform 380ms ease;
}

.hike-card:hover > img {
  transform: scale(1.05);
}

/* ─── Spots remaining color cues ─────────────────────────────────── */

.spots-ok { color: var(--sage); }
.spots-low { color: var(--clay); font-weight: 900; }
.spots-critical { color: #9f3325; font-weight: 900; }

/* ─── Homepage empty state ───────────────────────────────────────── */

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 72px 24px;
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}

.empty-state strong {
  font-size: 1.35rem;
  color: var(--ink);
}

.empty-state p {
  max-width: 440px;
  line-height: 1.65;
  margin: 0;
}

/* ─── Dark-mode enhancements ─────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
  .admin-table tbody tr:hover {
    background: #202d24;
  }

  .hike-card:hover {
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.4);

  }

  .value-strip {
    background: var(--surface);
  }

  .empty-state {
    border-color: var(--line);
  }
}

/* ─── Organizer dashboard ────────────────────────────────────── */

.pending-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8e6;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pending-banner strong {
  color: #7a5a00;
  font-weight: 700;
}

.pending-banner span {
  color: #7a5a00;
}

.dash-section {
  margin-top: 48px;
}

.review-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ─── Completed trip status badge ───────────────────────────── */

.status-completed {
  background: #e8f0e9;
  color: #2d5f35 !important;
}

/* ─── Close trip button (organizer dashboard) ────────────────── */

.btn-close-trip {
  border: 1px solid #e1b7ab;
  border-radius: 8px;
  background: #fff5f3;
  color: #9f3325;
  font-weight: 850;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.84rem;
  transition: background 140ms ease, border-color 140ms ease;
}

.btn-close-trip:hover {
  background: #fff0ec;
  border-color: #c9443a;
}

/* ─── Closed trip note on homepage card ──────────────────────── */

.trip-closed-note {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: #f3efe6;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

/* ─── Organizer dashboard — trip cards with reviews ─────────── */

.my-trips-list {
  display: grid;
  gap: 16px;
}

.my-trip-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(21, 33, 28, 0.05);
  overflow: hidden;
}

.my-trip-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.my-trip-title {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.my-trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.my-trip-badges {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.my-trip-action {
  min-width: 90px;
  text-align: right;
}

.trip-closed-label {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

/* Inline spots update form */
.spots-update-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.spots-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.spots-input {
  width: 64px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  text-align: center;
}

.spots-input:focus {
  outline: 2px solid var(--cedar);
  outline-offset: 1px;
  border-color: var(--cedar);
}

.spots-save {
  padding: 5px 12px;
  border: 1px solid var(--cedar);
  border-radius: 6px;
  background: var(--cedar);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.spots-save:hover {
  background: #1e3d2e;
}

.spots-readonly {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}

/* Reviews section — <details> expander */

.trip-reviews-section {
  border-top: 1px solid var(--line);
}

.trip-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cedar);
  background: #f7fbf8;
  list-style: none;
  user-select: none;
  gap: 12px;
}

.trip-reviews-summary::-webkit-details-marker { display: none; }

.trip-reviews-summary::after {
  content: "▸";
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 180ms;
}

details[open] .trip-reviews-summary::after {
  transform: rotate(90deg);
}

.avg-rating {
  color: #c48a1b;
  font-size: 0.92rem;
  margin-left: auto;
  margin-right: 6px;
}

.trip-reviews-list {
  display: grid;
  gap: 0;
  padding: 0 18px;
}

.trip-review-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.trip-review-item:last-child {
  border-bottom: none;
}

.review-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.review-stars-text {
  color: #c48a1b;
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.review-body {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: 0.92rem;
}

.no-reviews-note {
  border-top: 1px solid var(--line);
  padding: 11px 18px;
  font-size: 0.84rem;
  color: var(--muted);
  background: #fafaf8;
}

.no-reviews-note a {
  color: var(--cedar);
}

@media (max-width: 640px) {
  .my-trip-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .my-trip-badges {
    flex-direction: row;
    align-items: center;
  }

  .my-trip-action {
    text-align: left;
  }
}

/* ─── Homepage design enhancements ──────────────────────────── */

/* Value strip — icon prefix */
.value-grid div::before {
  content: attr(data-icon);
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

/* Testimonials band — light warm background */
.testimonials-band {
  background: linear-gradient(180deg, var(--paper), #f7f2e8);
}

.testimonial-card {
  position: relative;
  padding-top: 36px;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
}

.testimonial-card blockquote {
  font-style: italic;
}

.testimonial-card figcaption::before {
  content: "— ";
}

/* Destination card — add region label text-shadow */
.destination-card strong {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Section block separators */
.section-block + .section-block {
  border-top: 1px solid var(--line);
}

/* Dark band — no separator */
.dark-band + .section-block,
.section-block + .dark-band {
  border-top: none;
}

/* Improved hike-card body spacing */
.card-body h3 {
  line-height: 1.25;
}

/* Better footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─── Mobile-first improvements ──────────────────────────────── */

@media (max-width: 640px) {
  /* Keep value-grid at 3 equal columns on phones */
  .value-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .value-grid div {
    padding-block: 18px;
    padding-left: 10px;
  }

  .value-grid strong {
    font-size: 1.55rem;
  }

  .value-grid span {
    font-size: 0.72rem;
  }

  /* Destination grid — 2 columns on phone */
  .destination-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

  /* Hero buttons stacked */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  /* Organizer CTA actions stacked */
  .organizer-cta .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Compact organizer CTA */
  .organizer-cta {
    padding-block: 52px;
  }

  /* Admin hero — compact on small phones */
  .admin-hero {
    padding-block: 28px 20px;
  }

  .admin-hero h1 {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    margin-bottom: 10px;
  }

  .admin-hero p {
    font-size: 0.88rem;
  }

  .admin-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-actions .btn {
    flex: 1 1 140px;
    text-align: center;
  }

  /* Admin shell — reduce bottom padding */
  .admin-shell {
    padding-block: 20px 40px;
  }

  /* Admin KPIs — 2 columns */
  .admin-kpis {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Search panel compact */
  .search-panel {
    padding: 14px;
  }

  /* Testimonials grid — 1 col */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Mobile navbar ─────────────────────────────────────────── */

@media (max-width: 991px) {
  /* Dropdown sits directly below the sticky nav */
  .navbar-collapse {
    background: #15211c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0 16px;
    margin-inline: -24px; /* bleed to page edge */
  }

  /* All nav items take full row, flush left */
  .navbar-nav {
    gap: 0 !important;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  /* Every link / button in the nav gets the same block style */
  .nav-link,
  .btn-link-nav {
    display: block;
    width: 100%;
    padding: 11px 24px !important;
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    border-radius: 0 !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .nav-link:hover,
  .btn-link-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white !important;
  }

  /* Remove the pill border on mobile — accent color on dark bg */
  .nav-pill {
    border: none !important;
    border-radius: 0 !important;
    padding-inline: 24px !important;
    color: var(--gold) !important;
    font-weight: 800;
  }

  /* Language toggle — full row, left-aligned, separated from nav links */
  .language-toggle {
    display: block;
    width: calc(100% - 48px);
    margin: 8px 24px 0;
    border-radius: 8px !important;
    text-align: center;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
  }
}

/* ─── Very small screens (≤ 420 px) ─────────────────────────── */

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 12px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .section-block {
    padding-block: 46px;
  }

  .card-body {
    padding: 14px;
  }

  /* Quick facts single column on very small screens */
  .quick-facts {
    grid-template-columns: 1fr;
  }

  .category-chip {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .admin-kpis {
    grid-template-columns: 1fr !important;
  }

  /* Trust grid single col */
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   HikeJordan 2.0 — Places, Map, Discovery
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Place card ────────────────────────────────────────────────────── */

.place-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 220ms, box-shadow 220ms, border-color 220ms;
}

.place-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(21, 33, 28, 0.14);
  border-color: var(--sage);
  text-decoration: none;
  color: var(--ink);
}

.place-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
}

.place-type-badge {
  background: rgba(21, 33, 28, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.place-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.place-card-region {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
}

.place-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.place-card-body p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.place-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.place-card-meta span {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--paper);
  padding: 3px 8px;
  border-radius: 6px;
}

.place-icons {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.place-icon {
  font-size: 1rem;
  cursor: default;
}

/* ─── Places grid ────────────────────────────────────────────────────── */

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.places-grid-home {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ─── Place type chips ───────────────────────────────────────────────── */

.place-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.place-type-chip {
  display: inline-block;
  padding: 10px 20px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms, border-color 180ms, color 180ms;
}

.place-type-chip:hover {
  background: var(--cedar);
  border-color: var(--cedar);
  color: #fff;
  text-decoration: none;
}

/* ─── Places hero (discovery page) ──────────────────────────────────── */

.places-hero {
  background: var(--cedar);
  color: #fff;
  padding: 60px 0 48px;
}

.places-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin: 0 0 12px;
}

.places-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin: 0 0 24px;
  max-width: 560px;
}

.places-search-bar {
  display: flex;
  gap: 12px;
  max-width: 540px;
}

.places-search-input {
  flex: 1;
  border-radius: 10px;
}

/* ─── Places layout (discovery) ─────────────────────────────────────── */

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

.places-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.places-filters {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group { display: flex; flex-direction: column; gap: 8px; }

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.filter-checks { gap: 10px; }

.filter-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
}

.filter-clear {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--clay);
  text-decoration: underline;
  margin-top: 4px;
}

.places-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.map-link-btn {
  font-weight: 600;
  color: var(--cedar);
  text-decoration: none;
}

.map-link-btn:hover { text-decoration: underline; }

/* ─── Place detail page ──────────────────────────────────────────────── */

.place-hero {
  min-height: 460px;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.place-hero-overlay {
  width: 100%;
  background: linear-gradient(to top, rgba(15, 26, 20, 0.88) 0%, rgba(15, 26, 20, 0.3) 60%, transparent 100%);
  padding: 40px 0 36px;
  color: #fff;
}

.place-hero-content { margin-top: 16px; }

.place-hero-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.place-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.1;
}

.place-name-ar {
  font-size: 1.2rem;
  opacity: 0.8;
  margin: 0 0 10px;
  font-weight: 500;
}

.place-hero-region {
  font-size: 0.9rem;
  opacity: 0.75;
  font-weight: 500;
}

/* Quick info strip */
.place-quick-info-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 62px;
  z-index: 10;
}

.quick-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow-x: auto;
}

.qi-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 8px 0;
  margin-right: 24px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.qi-item:last-child { border-right: none; }

.qi-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.qi-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

/* Place body */
.place-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 60px;
  align-items: start;
}

.place-main { display: flex; flex-direction: column; gap: 0; }

.place-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.place-section:last-child { border-bottom: none; }

.place-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.place-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
}

.place-safety { background: #fff8f0; border-radius: 12px; padding: 24px; margin: 0; border: 1.5px solid #f0d3a0; }

.coords-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: monospace;
  margin-top: 12px;
}

/* Sidebar */
.place-sidebar { display: flex; flex-direction: column; gap: 20px; }

.place-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.place-sidebar-card > strong {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.sidebar-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-facts li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-facts li:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-facts li span:first-child { color: var(--muted); }
.sidebar-facts li span:last-child { font-weight: 600; }

.sidebar-maps-btn {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nearby-list li a {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--cedar);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.nearby-list li:last-child a { border-bottom: none; }

.nearby-list li a span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 400;
}

/* ─── Trail card ─────────────────────────────────────────────────────── */

.trail-list { display: flex; flex-direction: column; gap: 16px; }

.trail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trail-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trail-card-header strong { font-size: 1rem; font-weight: 700; }

.trail-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trail-stats span {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.trail-points {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.trail-card p {
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
}

/* ─── Map page ───────────────────────────────────────────────────────── */

.map-page { display: flex; flex-direction: column; }

.map-header {
  background: var(--cedar);
  color: #fff;
  padding: 32px 0 28px;
}

.map-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin: 0 0 6px;
}

.map-header p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0;
}

#map {
  height: calc(100vh - 220px);
  min-height: 500px;
  width: 100%;
  z-index: 1;
}

.map-popup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: Inter, sans-serif;
}

.map-popup strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.map-popup span {
  font-size: 0.78rem;
  color: var(--muted);
}

.map-popup a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cedar);
  text-decoration: none;
  margin-top: 4px;
}

/* ─── Admin edit place ───────────────────────────────────────────────── */

.edit-place-form fieldset { margin-bottom: 32px; }

/* ─── Responsive – places ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .places-layout {
    grid-template-columns: 1fr;
  }

  .places-filters {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .filter-group { flex: 1 1 140px; }

  .place-body {
    grid-template-columns: 1fr;
  }

  .place-sidebar { order: -1; }

  .quick-info-grid { gap: 0; }

  .place-hero { min-height: 320px; }
}

@media (max-width: 600px) {
  .places-grid { grid-template-columns: 1fr; }
  .places-grid-home { grid-template-columns: 1fr; }
  .place-type-chips { gap: 8px; }
  .place-type-chip { padding: 8px 14px; font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   HikeJordan Community — social platform
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Nav additions ──────────────────────────────────────────────────── */
.site-nav .nav-link.nav-active {
  color: #fff !important;
  font-weight: 700;
  position: relative;
}
.site-nav .nav-link.nav-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-pill.nav-active::after { display: none; }

.char-count-wrap { position: relative; }
.char-count {
  position: absolute;
  right: 4px;
  bottom: -20px;
  font-size: 0.75rem;
  color: var(--muted);
}
.char-count.low { color: var(--clay); font-weight: 600; }

.nav-avatar {
  display: inline-flex !important;
  align-items: center;
  padding: 2px !important;
}
.nav-avatar img,
.nav-avatar .avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  font-size: 0.9em;
  text-transform: uppercase;
}

/* ─── Feed layout ────────────────────────────────────────────────────── */
.feed-layout,
.explore-layout,
.profile-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 60px;
}
.profile-feed { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.explore-layout { grid-template-columns: minmax(0, 1fr); max-width: 680px; }

.feed-main { min-width: 0; }

.feed-side {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Feed tabs ──────────────────────────────────────────────────────── */
.feed-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 18px;
}
.feed-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 160ms, color 160ms;
}
.feed-tab.active { background: var(--cedar); color: #fff; }

/* ─── Compose prompt ─────────────────────────────────────────────────── */
.compose-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.compose-prompt:hover { border-color: var(--sage); box-shadow: var(--shadow); }
.compose-avatar { width: 42px; height: 42px; flex: none; }
.compose-avatar img, .compose-avatar .avatar-fallback {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
}
.compose-placeholder { flex: 1; color: var(--muted); font-size: 0.95rem; }
.compose-go {
  background: var(--cedar); color: #fff; font-weight: 600;
  padding: 8px 18px; border-radius: 100px; font-size: 0.9rem;
}

/* ─── Feed welcome (guests) ──────────────────────────────────────────── */
.feed-welcome {
  position: relative;
  color: #fff;
  border-radius: 18px;
  padding: 44px 36px;
  margin-bottom: 24px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink) 0%, var(--cedar) 100%);
}
.feed-welcome-body { position: relative; z-index: 1; }
.welcome-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
}
.feed-welcome h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; margin: 0 0 10px; }
.feed-welcome p { opacity: 0.9; margin: 0 0 22px; max-width: 480px; line-height: 1.6; }
.welcome-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.welcome-regions { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome-region-chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 13px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 150ms;
}
.welcome-region-chip:hover { background: rgba(255, 255, 255, 0.32); text-decoration: none; color: #fff; }

/* ─── Profile hike badges ────────────────────────────────────────────── */
.profile-badges { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.badges-title { font-size: 1rem; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.badges-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cedar);
  background: rgba(38, 72, 59, 0.1);
  border-radius: 100px;
  padding: 2px 10px;
}
.badges-empty { color: var(--muted); font-size: 0.9rem; margin: 0; }
.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.hike-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 92px;
  padding: 14px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: transform 160ms, box-shadow 160ms, border-color 160ms;
}
.hike-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage); color: var(--ink); text-decoration: none; }
.hike-badge-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--sand), #f3e8cf);
  border-radius: 50%;
}
.hike-badge-label { font-size: 0.78rem; font-weight: 600; line-height: 1.2; }

/* ─── Segmented control (account type) ───────────────────────────────── */
.segmented { display: flex; gap: 10px; }
.seg-option {
  flex: 1;
  cursor: pointer;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 160ms, background 160ms;
}
.seg-option input { position: absolute; opacity: 0; pointer-events: none; }
.seg-body { display: flex; flex-direction: column; gap: 3px; }
.seg-body strong { font-size: 0.95rem; }
.seg-body small { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.seg-option:has(input:checked) { border-color: var(--cedar); background: rgba(38, 72, 59, 0.06); }

/* ─── Input with @ prefix ────────────────────────────────────────────── */
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--muted);
  font-weight: 600;
}
.input-prefix .form-control { border-radius: 0 8px 8px 0; }
[dir="rtl"] .input-prefix > span { border-right: 1px solid var(--line); border-left: none; border-radius: 0 8px 8px 0; }
[dir="rtl"] .input-prefix .form-control { border-radius: 8px 0 0 8px; }

/* ─── Group profile extras ───────────────────────────────────────────── */
.badge-group { font-size: 0.72rem; background: var(--sage); color: #fff; padding: 3px 10px; border-radius: 100px; font-weight: 700; }
.profile-insta { color: var(--clay); text-decoration: none; font-weight: 600; }
.profile-insta:hover { text-decoration: underline; }
.profile-rating { font-weight: 700; }
.profile-rating .muted-text { color: var(--muted); font-weight: 400; }

.group-section {
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 780px;
}

.qr-card {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.qr-image { flex: none; }
.qr-image img { width: 150px; height: 150px; display: block; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.qr-info h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; }
.qr-info p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.qr-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.qr-link { font-size: 0.78rem; color: var(--muted); word-break: break-all; }

.reviews-block { }
.reviews-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.review-head strong { font-size: 0.95rem; }
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.review-stars .star-empty { color: var(--line); }
.review-time { font-size: 0.78rem; color: var(--muted); margin-inline-start: auto; }
.review-comment { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }

/* ─── Star rating input ──────────────────────────────────────────────── */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 2rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { color: var(--line); cursor: pointer; transition: color 120ms; line-height: 1; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--gold); }

.review-group-head { margin-bottom: 8px; }
.review-avatar { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; }
.review-avatar img, .review-avatar .avatar-fallback { width: 100%; height: 100%; object-fit: cover; font-size: 1.6rem; }

@media (max-width: 560px) {
  .qr-card { flex-direction: column; text-align: center; }
  .segmented { flex-direction: column; }
}

/* ─── Post card ──────────────────────────────────────────────────────── */
.post-feed { display: flex; flex-direction: column; gap: 20px; }

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 8px;
  transition: box-shadow 180ms, border-color 180ms;
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card-detail:hover { box-shadow: none; }

.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-avatar { width: 46px; height: 46px; flex: none; text-decoration: none; }
.post-avatar img, .post-avatar .avatar-fallback {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
}
.post-head-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.post-author { font-weight: 700; color: var(--ink); text-decoration: none; }
.post-author:hover { text-decoration: underline; }
.post-sub { font-size: 0.82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.post-sub a { color: var(--muted); text-decoration: none; }
.post-sub .dot { opacity: 0.6; }

.post-region-chip {
  flex: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sage);
  background: rgba(98, 126, 95, 0.12);
  padding: 4px 12px;
  border-radius: 100px;
  text-decoration: none;
}
.post-region-chip:hover { background: rgba(98, 126, 95, 0.22); }

.post-body-link { text-decoration: none; color: inherit; display: block; }
.post-body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.post-body-full { font-size: 1.05rem; }

.post-location { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }

.post-image-wrap {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  max-height: 520px;
}
.post-image-wrap img { width: 100%; height: auto; display: block; object-fit: cover; }
.post-image-full { max-height: none; }

.post-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 6px 0;
  margin-top: 4px;
}
.post-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 140ms, color 140ms;
}
.post-action:hover { background: var(--paper); color: var(--ink); }
.post-action.liked { color: var(--clay); }
.post-action.static { cursor: default; }
.post-action.static:hover { background: none; color: var(--muted); }
.action-icon { font-size: 1.1rem; line-height: 1; }
.inline-form { display: inline; margin: 0; }

/* ─── Sidebar cards ──────────────────────────────────────────────────── */
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.side-title { font-size: 1rem; font-weight: 800; margin: 0 0 14px; }
.side-stat-row { display: flex; gap: 12px; margin-bottom: 14px; }
.side-stat { flex: 1; text-align: center; }
.side-stat strong { display: block; font-size: 1.4rem; font-weight: 900; color: var(--cedar); }
.side-stat span { font-size: 0.78rem; color: var(--muted); }
.side-join { width: 100%; text-align: center; }

.suggest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.suggest-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.suggest-user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.suggest-avatar { width: 40px; height: 40px; flex: none; }
.suggest-avatar img, .suggest-avatar .avatar-fallback { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.suggest-meta { display: flex; flex-direction: column; min-width: 0; }
.suggest-meta strong { font-size: 0.9rem; }
.suggest-meta span { font-size: 0.78rem; color: var(--muted); }
.btn-follow-sm {
  flex: none;
  background: var(--cedar);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
}
.btn-follow-sm:hover { background: var(--ink); }

/* ─── Region chips ───────────────────────────────────────────────────── */
.region-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.region-chip {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 140ms, color 140ms, border-color 140ms;
}
.region-chip:hover, .region-chip.active { background: var(--cedar); color: #fff; border-color: var(--cedar); }

/* ─── Empty state ────────────────────────────────────────────────────── */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state a { color: var(--cedar); font-weight: 600; }

/* ─── Explore header ─────────────────────────────────────────────────── */
.explore-header { background: var(--cedar); color: #fff; padding: 36px 0 26px; }
.explore-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; margin: 0 0 18px; }
.explore-search { display: flex; gap: 10px; max-width: 520px; margin-bottom: 18px; }
.explore-search .form-control { border-radius: 10px; }
.explore-chips .region-chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.explore-chips .region-chip:hover, .explore-chips .region-chip.active {
  background: #fff; color: var(--cedar); border-color: #fff;
}

/* ─── Post detail ────────────────────────────────────────────────────── */
.post-detail-layout { padding-top: 24px; padding-bottom: 60px; }
.post-detail { max-width: 680px; margin-inline: auto; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--ink); }

.comments-section { margin-top: 24px; }
.comments-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 16px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.comment-form textarea { border-radius: 10px; }
.comment-form button { align-self: flex-end; }
.comment-signin { color: var(--muted); margin-bottom: 20px; }
.comment-signin a { color: var(--cedar); font-weight: 600; }

.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comment-item { display: flex; gap: 12px; }
.comment-avatar { width: 38px; height: 38px; flex: none; }
.comment-avatar img, .comment-avatar .avatar-fallback { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.comment-bubble { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; flex: 1; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.comment-meta a { text-decoration: none; color: var(--ink); }
.comment-time { font-size: 0.76rem; color: var(--muted); }
.comment-bubble p { margin: 0; font-size: 0.92rem; line-height: 1.55; white-space: pre-wrap; }

/* ─── Profile ────────────────────────────────────────────────────────── */
.profile-cover {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--sage);
}
.profile-header { position: relative; padding-bottom: 8px; }
.profile-avatar-lg {
  width: 120px; height: 120px;
  margin-top: -60px;
  border-radius: 50%;
  border: 5px solid var(--paper);
  overflow: hidden;
  background: var(--surface);
}
.profile-avatar-lg img, .profile-avatar-lg .avatar-fallback { width: 100%; height: 100%; object-fit: cover; font-size: 2.4rem; }
.profile-actions { position: absolute; right: 24px; top: 12px; }
.profile-identity { margin-top: 14px; }
.profile-identity h1 { font-size: 1.7rem; font-weight: 900; margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.badge-admin { font-size: 0.7rem; background: var(--gold); color: var(--ink); padding: 3px 10px; border-radius: 100px; font-weight: 700; }
.profile-username { color: var(--muted); font-size: 0.95rem; }
.profile-bio { margin: 12px 0; font-size: 1rem; line-height: 1.6; max-width: 620px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.profile-stats { display: flex; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.profile-stats span { font-size: 0.9rem; color: var(--muted); }
.profile-stats strong { color: var(--ink); font-size: 1rem; }

/* ─── Forms (compose / settings / auth) ──────────────────────────────── */
.form-page, .auth-page { padding-top: 40px; padding-bottom: 60px; display: flex; justify-content: center; }
.form-card, .auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow);
}
.auth-card { max-width: 420px; }
.form-card h1, .auth-card h1 { font-size: 1.6rem; font-weight: 900; margin: 0 0 6px; }
.form-sub, .auth-sub { color: var(--muted); margin: 0 0 24px; }

.stack-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }
.field-error { color: var(--clay); font-size: 0.82rem; }
.form-error { background: #fdecea; color: #a02c1e; border: 1px solid #f5c6bf; border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; }
.form-success { background: #eaf6ec; color: #2b6a34; border: 1px solid #bfe3c6; border-radius: 10px; padding: 12px 16px; font-size: 0.9rem; }
.form-buttons { display: flex; justify-content: flex-end; gap: 12px; }
.full-width { width: 100%; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.auth-switch a { color: var(--cedar); font-weight: 600; }
.verify-icon { font-size: 3rem; line-height: 1; margin-bottom: 12px; }

/* ─── Language toggle ────────────────────────────────────────────────── */
.language-toggle {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms;
}
.language-toggle:hover { background: rgba(255, 255, 255, 0.28); text-decoration: none; }

/* ─── RTL (Arabic) adjustments ───────────────────────────────────────── */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .profile-actions { right: auto; left: 24px; }
[dir="rtl"] .char-count { right: auto; left: 4px; }
[dir="rtl"] .post-avatar,
[dir="rtl"] .comment-avatar,
[dir="rtl"] .compose-avatar,
[dir="rtl"] .suggest-avatar { margin-left: 0; }
[dir="rtl"] .qi-item {
  border-right: none;
  border-left: 1px solid var(--line);
  padding: 8px 0 8px 24px;
  margin-right: 0;
  margin-left: 24px;
}
[dir="rtl"] .nav-active::after { left: 0; right: 0; }
@media (max-width: 560px) {
  [dir="rtl"] .profile-actions { left: 0; }
}

.settings-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.settings-avatar { width: 60px; height: 60px; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface); }
.settings-avatar img, .settings-avatar .avatar-fallback { width: 100%; height: 100%; object-fit: cover; }
.settings-preview strong { display: block; }
.settings-username { color: var(--muted); font-size: 0.88rem; }

/* ─── Admin ──────────────────────────────────────────────────────────── */
.admin-page { padding-top: 32px; padding-bottom: 60px; }
.admin-page h1 { font-size: 1.8rem; font-weight: 900; margin: 0 0 20px; }
.admin-stats { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.admin-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 28px; }
.admin-stat strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--cedar); }
.admin-stat span { font-size: 0.82rem; color: var(--muted); }
.admin-section { margin-bottom: 40px; }
.admin-section h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.88rem; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { background: var(--paper); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .row-hidden { opacity: 0.55; }
.cell-clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.cell-actions { display: flex; gap: 8px; }
.btn-mini { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.btn-mini:hover { background: var(--line); }
.btn-mini.danger { color: var(--clay); border-color: #f0c9bd; }
.btn-mini.danger:hover { background: #fdecea; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feed-layout { grid-template-columns: 1fr; }
  .feed-side { position: static; order: 2; }
}
@media (max-width: 560px) {
  .field-row { flex-direction: column; }
  .profile-actions { position: static; margin-top: 12px; }
  .profile-avatar-lg { width: 96px; height: 96px; margin-top: -48px; }
  .form-card, .auth-card { padding: 22px; }
}
