/* ==========================================================================
   Trekking Nepal — Trip detail page styles — page-specific styles
   Shared tokens, reset, navbar, footer, and buttons live in base.css
   ==========================================================================

   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--pine-950);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pine-950), rgba(13, 31, 22, 0.7), rgba(13, 31, 22, 0.3));
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 5rem;
}
@media (min-width: 640px) {
  .hero__inner { padding-block: 7rem; }
}
@media (min-width: 1024px) {
  .hero__inner { padding-block: 9rem; }
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--amber-100);
  backdrop-filter: blur(4px);
}

.hero__title {
  max-width: 48rem;
  font-size: var(--text-hero);
  font-weight: 600;
  color: var(--parchment);
}
.hero__title em {
  font-style: italic;
  color: var(--amber-400);
}

.hero__desc {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(220, 236, 226, 0.85);
}
@media (min-width: 640px) {
  .hero__desc { font-size: 1.1875rem; }
}

.hero__search {
  margin-top: 2.25rem;
  display: flex;
  width: 100%;
  max-width: 36rem;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.625rem;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 640px) {
  .hero__search { flex-direction: row; }
}
.hero__search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
}
.hero__search-field svg {
  flex-shrink: 0;
  color: var(--ink-soft);
}
.hero__search-field input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--ink);
  outline: none;
}
.hero__search-field input::placeholder {
  color: rgba(74, 83, 70, 0.7);
}
.hero__search-btn {
  flex-shrink: 0;
  min-height: 44px;
  border-radius: 0.75rem;
  background-color: var(--pine-800);
  color: var(--parchment);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  transition: background-color 0.2s ease;
}
.hero__search-btn:hover {
  background-color: var(--pine-700);
}

.hero__stats {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 2rem;
  font-size: 0.9375rem;
  color: rgba(220, 236, 226, 0.85);
}
.hero__stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sub-page hero / page header */
.page-header {
  border-bottom: 1px solid rgba(18, 51, 34, 0.05);
  background-color: var(--pine-50);
  padding-block: 3.5rem;
}
@media (min-width: 640px) {
  .page-header { padding-block: 4rem; }
}
.breadcrumb {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.breadcrumb a:hover {
  color: var(--pine-700);
}
.page-header__eyebrow {
  margin-top: 1rem;
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--amber-600);
}
.page-header__title {
  margin-top: 0.5rem;
  max-width: 42rem;
  font-size: var(--text-h1);
  font-weight: 600;
  color: var(--pine-950);
}
.page-header__title em {
  font-style: italic;
}
.page-header__desc {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

/* Hero on dark trip-detail page header */
.trip-header {
  position: relative;
  overflow: hidden;
  background-color: var(--pine-950);
}
.trip-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.trip-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pine-950), rgba(13, 31, 22, 0.7), rgba(13, 31, 22, 0.4));
}
.trip-header__inner {
  position: relative;
  padding-block: 4rem;
}
@media (min-width: 640px) {
  .trip-header__inner { padding-block: 5rem; }
}
.trip-header .breadcrumb { color: rgba(220, 236, 226, 0.7); }
.trip-header .breadcrumb a:hover { color: var(--parchment); }

.trip-header__badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.pill--ghost {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--parchment);
  backdrop-filter: blur(4px);
}
.trip-header__wishlist {
  border: none;
  cursor: pointer;
  font: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.trip-header__wishlist:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.trip-header__wishlist.is-active {
  background-color: rgba(255, 255, 255, 0.92);
  color: #e0554f;
}
.trip-header__wishlist.is-active:hover {
  background-color: #fff;
}
.trip-header__wishlist.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.trip-header__wishlist svg {
  fill-opacity: 0;
  transition: fill-opacity 0.15s ease;
}
.trip-header__wishlist.is-active svg {
  fill-opacity: 1;
}
.pill--amber {
  background-color: var(--amber-500);
  color: #fff;
}
.pill--dark {
  background-color: rgba(13, 31, 22, 0.8);
  color: var(--parchment);
  backdrop-filter: blur(4px);
}

.trip-header__title {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: var(--text-h1);
  font-weight: 600;
  color: var(--parchment);
}
.trip-header__desc {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgba(220, 236, 226, 0.85);
}

.trip-header__meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.9375rem;
  color: rgba(220, 236, 226, 0.85);
}
.trip-header__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   CTA sections
   ========================================================================== */
.cta-dark {
  background-color: var(--pine-950);
  padding-block: 4rem;
  text-align: center;
}
@media (min-width: 640px) {
  .cta-dark { padding-block: 5rem; }
}
.cta-dark__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-dark__title {
  max-width: 32rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--parchment);
}
@media (min-width: 640px) {
  .cta-dark__title { font-size: 1.875rem; }
}
.cta-dark__desc {
  max-width: 28rem;
  color: rgba(220, 236, 226, 0.8);
}

/* ==========================================================================
   Grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.flex-between {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .flex-between { flex-direction: row; align-items: flex-end; }
}

/* ==========================================================================
   Trip filters sidebar
   ========================================================================== */
.filters-panel {
  border-radius: 1rem;
  background-color: #fff;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 51, 34, 0.05);
}
@media (min-width: 640px) {
  .filters-panel { padding: 1.5rem; }
}
.filters-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters-panel__head h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-950);
}
.filters-panel__clear {
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pine-700);
  padding: 0;
}
.filters-panel__clear:hover { text-decoration: underline; }

.field-group {
  margin-top: 1.25rem;
}
.field-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pine-950);
}
.select, .text-input, textarea.text-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(18, 51, 34, 0.15);
  background-color: #fff;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink);
}
.select:focus, .text-input:focus, textarea.text-input:focus {
  border-color: var(--pine-600);
  outline: none;
}

/* Date-of-birth picker — three plain selects (partials/dob_select.php)
   instead of a calendar popup, so the year can be picked directly rather
   than clicking prev/next a few dozen times. */
.dob-select {
  display: flex;
  gap: 0.5rem;
}
.dob-select .select { width: auto; }
.dob-select__day { flex: 0 0 4.75rem; }
.dob-select__month { flex: 1 1 auto; min-width: 7rem; }
.dob-select__year { flex: 0 0 5.5rem; }

.filters-panel__count {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.filters-panel__count strong {
  color: var(--pine-950);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 28rem;
  margin-top: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  background-color: #fff;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
}
.search-field svg { color: var(--ink-soft); flex-shrink: 0; }
.search-field input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  outline: none;
}

.toolbar {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.toolbar select {
  width: 100%;
}
@media (min-width: 640px) {
  .toolbar select { width: 14rem; }
}

.empty-state {
  border-radius: 1rem;
  border: 1px dashed rgba(18, 51, 34, 0.2);
  background-color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-950);
}
.empty-state p {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Trip cards
   ========================================================================== */
.trip-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 51, 34, 0.05);
  transition: transform 0.3s ease;
  /* The whole card navigates on click (trip-card-link.js), not just
     "Join group" — cursor says so even before the click lands. */
  cursor: pointer;
}
.trip-card:hover {
  transform: translateY(-4px);
}
.trip-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.trip-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.trip-card:hover .trip-card__media img {
  transform: scale(1.05);
}
.trip-card__badges {
  position: absolute;
  inset-inline: 0;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.75rem;
}
.trip-card__wishlist {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: none;
  background-color: rgba(13, 31, 22, 0.55);
  color: var(--parchment);
  backdrop-filter: blur(4px);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 31, 22, 0.25);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.trip-card__wishlist:hover {
  background-color: rgba(13, 31, 22, 0.75);
  transform: scale(1.06);
}
.trip-card__wishlist.is-active {
  background-color: rgba(255, 255, 255, 0.92);
  color: #e0554f;
}
.trip-card__wishlist.is-active:hover {
  background-color: #fff;
}
.trip-card__wishlist.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.trip-card__wishlist svg {
  width: 15px;
  height: 15px;
  fill-opacity: 0;
  transition: fill-opacity 0.15s ease;
}
.trip-card__wishlist.is-active svg {
  fill-opacity: 1;
}
.trip-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}
.trip-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-950);
}
.trip-card__meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.trip-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.trip-card__footer {
  margin-top: 1.25rem;
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.trip-card__price {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.trip-card__price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pine-950);
}
.trip-card__cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background-color: var(--pine-50);
  color: var(--pine-800);
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.trip-card:hover .trip-card__cta {
  background-color: var(--pine-800);
  color: var(--parchment);
}

/* ==========================================================================
   Forms (contact, apply, login/register)
   ========================================================================== */
.form-field { display: block; }
.form-field + .form-field { margin-top: 1rem; }
.form-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pine-950);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-error {
  border-radius: 0.5rem;
  background-color: var(--amber-100);
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--amber-600);
}
.password-field { position: relative; }
.password-field input { padding-right: 2.5rem; }
.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--ink-soft);
  display: flex;
}
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
}
.checkbox-label--start { align-items: flex-start; }
.checkbox-label input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--pine-700);
}
.link-inline {
  font-weight: 500;
  color: var(--pine-800);
}
.link-inline:hover { text-decoration: underline; }

/* Auth card */
.auth-wrap {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--pine-50);
  padding: 3.5rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  background-color: #fff;
  padding: 1.75rem;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 640px) {
  .auth-card { padding: 2.25rem; }
}
.auth-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-900);
}
.auth-card__logo-img {
  height: 2.5rem;
  width: auto;
  flex: 0 0 auto;
}
.auth-card__title {
  margin-top: 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pine-950);
}
.auth-card__subtitle {
  margin-top: 0.375rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.auth-card__body { margin-top: 1.75rem; }
.auth-card__footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.auth-divider {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.auth-divider span:not(.auth-divider__label) {
  height: 1px;
  flex: 1;
  background-color: rgba(18, 51, 34, 0.1);
}
.auth-divider__label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.social-btn {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(18, 51, 34, 0.15);
  background-color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.social-btn:hover { background-color: var(--pine-50); }

/* ==========================================================================
   Misc: dashboard placeholder cards, 404, contact page
   ========================================================================== */
.placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px dashed rgba(18, 51, 34, 0.2);
  background-color: #fff;
  padding: 2rem;
}
.placeholder-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: var(--pine-100);
  color: var(--pine-800);
}
.placeholder-card h2 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-950);
}
.placeholder-card p { font-size: 0.9375rem; color: var(--ink-soft); }

.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1rem;
}
.not-found__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: var(--pine-100);
  color: var(--pine-800);
}
.not-found h1 {
  margin-top: 1.5rem;
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--pine-950);
}
.not-found p {
  margin-top: 0.75rem;
  max-width: 28rem;
  color: var(--ink-soft);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1rem;
  background-color: #fff;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 51, 34, 0.05);
}
.contact-detail-card__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--pine-800);
  color: var(--parchment);
}
.contact-detail-card p:first-of-type {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.contact-detail-card p:last-of-type {
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--pine-950);
}
.contact-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
}
.contact-image img { width: 100%; height: 100%; object-fit: cover; }

.contact-form-card {
  border-radius: 1rem;
  background-color: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 51, 34, 0.05);
}
@media (min-width: 640px) {
  .contact-form-card { padding: 2rem; }
}
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0;
  text-align: center;
}
.contact-success svg { color: var(--pine-600); }
.contact-success h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pine-950);
}
.contact-success p { max-width: 22rem; font-size: 0.9375rem; color: var(--ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1fr 1.2fr; }
}
.two-col--filters {
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .two-col--filters { grid-template-columns: 280px 1fr; }
}

.hidden { display: none !important; }

/* Utility text/color helpers used inline in markup */
.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.review-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background-color: #fff;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 51, 34, 0.05);
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  /* Unfilled baseline. The star SVGs use fill="currentColor", and the
     "is-filled" class lands on the wrapping <span> (see trip/index.php),
     not the <svg> itself — so color has to be set here (and overridden by
     .is-filled below) rather than targeted at the svg element directly,
     or the inherited color never reaches the SVG's fill. */
  color: rgba(18, 51, 34, 0.2);
}
.star-rating .is-filled { color: var(--amber-500); }

.review-card__quote {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--pine-950);
}
.review-card__author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-card__author img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  object-fit: cover;
}
.review-card__author strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pine-950);
}
.review-card__author span {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Sticky trip tabs
   ========================================================================== */
.trip-tabs {
  position: sticky;
  top: 4rem;
  z-index: 30;
  border-bottom: 1px solid rgba(18, 51, 34, 0.1);
  background-color: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(8px);
}
@media (min-width: 640px) {
  .trip-tabs { top: 5rem; }
}
.trip-tabs__scroller {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-block: 0.25rem;
  scrollbar-width: none;
}
.trip-tabs__scroller::-webkit-scrollbar { display: none; }
.trip-tab {
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 9999px;
  border: none;
  background: transparent;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.trip-tab:hover { background-color: var(--pine-50); }
.trip-tab.is-active {
  background-color: var(--pine-800);
  color: var(--parchment);
}

/* ==========================================================================
   Trip detail layout
   ========================================================================== */
.trip-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 3rem;
}
@media (min-width: 640px) {
  .trip-detail-grid { padding-block: 4rem; }
}
@media (min-width: 1024px) {
  .trip-detail-grid { grid-template-columns: 1fr 340px; }
}
/* Departure page has no sidebar anymore — stay single-column at every width. */
.trip-detail-grid--no-aside {
  grid-template-columns: 1fr;
}
.trip-detail-main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.trip-section {
  scroll-margin-top: 9rem;
  /* A section's content is a flex child of .trip-detail-main; without this,
     an unbroken run of characters (a long URL, a WYSIWYG paste with no
     spaces, etc.) can force the flex item wider than the column and spill
     into the sidebar instead of wrapping. min-width: 0 lets it shrink back
     to the column width, and overflow-wrap (inherited by every child below)
     breaks long runs so the text wraps instead of overflowing. */
  min-width: 0;
  overflow-wrap: anywhere;
}
.trip-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pine-950);
}
.trip-section > p.lede {
  margin-top: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.trip-overview__body,
.trip-route__note {
  margin-top: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-size: 1.1875rem;
  max-width: 68ch;
}
.trip-overview__body p + p,
.trip-overview__body ul + p,
.trip-overview__body ol + p,
.trip-overview__body p + ul,
.trip-overview__body p + ol,
.trip-route__note p + p,
.trip-route__note ul + p,
.trip-route__note ol + p,
.trip-route__note p + ul,
.trip-route__note p + ol {
  margin-top: 1rem;
}
.trip-overview__body ul,
.trip-overview__body ol,
.trip-route__note ul,
.trip-route__note ol {
  padding-left: 1.25rem;
}
.trip-overview__body li + li,
.trip-route__note li + li {
  margin-top: 0.35rem;
}
.trip-overview__body a,
.trip-route__note a {
  color: var(--pine-700);
  text-decoration: underline;
}
.trip-route__map {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 51, 34, 0.05);
}
.highlight-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.highlight-list svg { flex-shrink: 0; margin-top: 0.125rem; color: var(--pine-600); }

.trip-aside {
  align-self: start;
}
@media (min-width: 1024px) {
  .trip-aside { position: sticky; top: 10rem; }
}

/* Includes / excludes */
.includes-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .includes-grid { grid-template-columns: 1fr 1fr; }
}
.includes-box {
  border-radius: 1rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  background-color: #fff;
  padding: 1.5rem;
}
.includes-box h3 { font-weight: 600; color: var(--pine-950); }
.includes-box ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.includes-box li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.includes-box li svg { flex-shrink: 0; margin-top: 0.125rem; }
.includes-box.excludes li svg { color: rgba(74, 83, 70, 0.6); }
.includes-box:not(.excludes) li svg { color: var(--pine-600); }

/* Packing list */
.packing-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .packing-grid { grid-template-columns: 1fr 1fr; }
}
.packing-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.5rem;
  background-color: var(--pine-50);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.packing-item svg { flex-shrink: 0; color: var(--pine-600); }

/* Permits/safety table */
.permits-table-wrap {
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  background-color: #fff;
}
.permits-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}
.permits-table thead {
  background-color: var(--pine-50);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.permits-table th, .permits-table td { padding: 0.75rem 1.25rem; }
.permits-table tbody tr { border-top: 1px solid rgba(18, 51, 34, 0.1); }
.permits-table td:first-child { font-weight: 500; color: var(--pine-950); }
.permits-table td { color: var(--ink-soft); }

/* ==========================================================================
   Itinerary accordion
   ========================================================================== */
.itinerary-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.itinerary-item {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  background-color: #fff;
}
.itinerary-item__head {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  border: none;
  background: transparent;
  padding: 1rem 1.25rem;
  text-align: left;
}
.itinerary-item__day {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: var(--pine-100);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pine-800);
}
.itinerary-item__title {
  flex: 1;
  font-weight: 600;
  color: var(--pine-950);
}
.itinerary-item__chevron {
  flex-shrink: 0;
  color: var(--pine-700);
  transition: transform 0.2s ease;
}
.itinerary-item.is-open .itinerary-item__chevron {
  transform: rotate(180deg);
}
.itinerary-item__body {
  display: none;
  border-top: 1px solid rgba(18, 51, 34, 0.1);
  padding: 1rem 1.25rem;
  padding-left: 4.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.itinerary-item.is-open .itinerary-item__body {
  display: block;
}

/* Generic accordion (FAQs) */
.accordion {
  border-radius: 1rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  background-color: #fff;
  overflow: hidden;
}
.accordion-item + .accordion-item {
  border-top: 1px solid rgba(18, 51, 34, 0.1);
}
.accordion-item__head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: none;
  background: transparent;
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 500;
  color: var(--pine-950);
}
.accordion-item__chevron {
  flex-shrink: 0;
  color: var(--pine-700);
  transition: transform 0.2s ease;
}
.accordion-item.is-open .accordion-item__chevron {
  transform: rotate(180deg);
}
.accordion-item__body {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.accordion-item.is-open .accordion-item__body {
  display: block;
}

/* ==========================================================================
   Gallery + lightbox
   ========================================================================== */
.gallery-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-grid button {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
  border: none;
  padding: 0;
  background: none;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid button:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 31, 22, 0.9);
  padding: 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-height: 85vh;
  max-width: 100%;
  border-radius: 0.5rem;
  object-fit: contain;
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--parchment);
  border: none;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
}
.lightbox__prev, .lightbox__next {
  width: 2.75rem;
  height: 2.75rem;
}
.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }
@media (min-width: 640px) {
  .lightbox__prev { left: 1.5rem; }
  .lightbox__next { right: 1.5rem; }
}

/* ==========================================================================
   Booking card
   ========================================================================== */
.booking-card {
  border-radius: 1rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  background-color: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-lift);
}
.booking-card__label { font-size: 0.9375rem; color: var(--ink-soft); }
.booking-card__price {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--pine-950);
}
.booking-card__price span {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.booking-card form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.booking-card__perks {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.booking-card__perks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.booking-card__perks svg { color: var(--pine-600); }

/* ==========================================================================
   Available departures panel (trip detail sidebar)
   ========================================================================== */
.departures-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.departures-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  /* The panel is narrow; letting the head wrap keeps the title on one line
     instead of breaking it across two beside the count. */
  flex-wrap: wrap;
}
.departures-panel__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-950);
  white-space: nowrap;
}
.departures-panel__count {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  white-space: nowrap;
}
.departures-panel__empty {
  border-radius: 1rem;
  border: 1px dashed rgba(18, 51, 34, 0.2);
  background-color: var(--pine-50);
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Shown when a visitor lands back on a departure they already have a
   confirmed booking for (see Trip::view() / Booking_model::confirmed_departure_map()). */
.departure-already-booked-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-radius: 0.85rem;
  border: 1px solid var(--pine-200, rgba(18, 51, 34, 0.18));
  background: var(--pine-50);
  color: var(--pine-800);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  font-size: var(--text-sm);
}
.departure-already-booked-banner svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--pine-600); }
.departure-already-booked-banner p { margin: 0; }
.departure-already-booked-banner p + p { margin-top: 0.2rem; color: var(--ink-soft); }
.departure-already-booked-banner a { color: var(--pine-700); font-weight: 600; }

.departure-card {
  border-radius: 1rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  background-color: #fff;
  padding: 1.25rem;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.departure-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.departure-card__date {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.departure-card__day {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--pine-950);
  line-height: 1;
}
.departure-card__month-year {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.15;
}
.departure-card__month-year strong { color: var(--pine-800); font-size: 0.9375rem; }
.departure-card__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.departure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.departure-badge--guaranteed { background: var(--pine-100); color: var(--pine-700); }
.departure-badge--guaranteed::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pine-600); display: inline-block; }
.departure-badge--confirmed { background: #eef1ee; color: var(--ink-soft); }
.departure-badge--filling { background: var(--amber-100); color: var(--amber-600); }
.departure-badge--waitlist { background: #f3e8e8; color: #a3453f; }

.departure-card__duration {
  font-size: 0.875rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Free-text line under the duration on a departure card ("Half Board",
   "Full Board", ...). Rendered only when that departure has something in
   its Additional Information field, so it never leaves an empty band. */
.departure-card__info {
  background: rgba(18, 51, 34, 0.05);
  border-radius: 0.75rem;
  padding: 0.7rem 0.95rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--pine-900);
  line-height: 1.35;
  /* Admins can type anything here, including one very long unbroken word —
     wrap it rather than letting it widen the card. */
  overflow-wrap: anywhere;
}

.departure-card__progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.departure-card__progress-row strong { color: var(--pine-900); }
.departure-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--pine-50);
  overflow: hidden;
}
.departure-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pine-500), var(--pine-700));
}
.departure-progress-fill--filling { background: linear-gradient(90deg, var(--amber-400), var(--amber-600)); }

.departure-card__remaining {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber-600);
}

.departure-card__avatars {
  display: flex;
  align-items: center;
}
.departure-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
  background: var(--pine-100);
  color: var(--pine-700);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.departure-card__avatar:first-child { margin-left: 0; }
.departure-card__avatar-more {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: var(--pine-800);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.departure-card__footer {
  display: flex;
  /* flex-end (not center) so the button lines up with the "/ person" line,
     not the vertical midpoint of the whole two-line price block. */
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(18, 51, 34, 0.08);
}
.departure-card__price-label { font-size: 0.75rem; color: var(--ink-soft); }
.departure-card__price {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--pine-950);
}
.departure-card__price span { font-size: 0.75rem; font-weight: 400; color: var(--ink-soft); }
.departure-card__cta {
  white-space: nowrap;
}
.departure-reserve-form {
  display: inline-flex;
  margin: 0;
}
.departure-reserve-form button {
  cursor: pointer;
}
.departure-card__error:empty {
  display: none;
}
.departure-card__error .form-error {
  margin-top: 0.6rem;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 31, 22, 0.6);
  padding: 1rem;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  background-color: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 640px) {
  .modal-box { padding: 1.75rem; }
}
.modal-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-box__head h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-950);
}
.modal-box__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
}
.modal-box__close:hover { background-color: var(--pine-50); }
.modal-box__body { margin-top: 1rem; }
.modal-box__body p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }


/* ==========================================================================
   Booking a departure (trek page sidebar)
   --------------------------------------------------------------------------
   The trek page's "Available departures" panel is now the booking form, so
   each card carries a traveller selector and a submit button rather than a
   link to a separate departure page.
   ========================================================================== */
.departure-card.is-selected {
  border-color: var(--pine-600);
  box-shadow: 0 0 0 2px rgba(34, 98, 63, 0.18);
}
.departure-card__selected-flag {
  margin: 0 0 0.75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine-700);
}
/* The logged-in "Book this date" form is just a one-button wrapper now —
   quantity/total lived here before, but booking is always one seat at a
   time from this card (matching signed-out visitors' "Log in to book" in
   the same spot); anyone booking a group adds the rest on checkout. */
.departure-card__book-form {
  display: inline-flex;
  margin: 0;
}
.departure-card__note {
  margin: 0.6rem 0 0;
  font-size: var(--text-xs);
  color: var(--ink-soft);
  line-height: 1.45;
}
.departure-card__error {
  margin: 0.6rem 0 0;
  border-radius: 0.5rem;
  background-color: #fdecec;
  color: #a12525;
  padding: 0.5rem 0.65rem;
  font-size: var(--text-xs);
}
a.departure-card__cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; }

.booking-alert {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
}
.booking-alert--error {
  background-color: #fdecec;
  color: #a12525;
  border: 1px solid rgba(161, 37, 37, 0.2);
}

/* Brief highlight when a card is deep-linked, so the eye lands on it. */
@keyframes departure-flash {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 98, 63, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 98, 63, 0.28); }
}
.departure-card.is-flashing { animation: departure-flash 0.8s ease 2; }
@media (prefers-reduced-motion: reduce) {
  .departure-card.is-flashing { animation: none; }
}

/* ==========================================================================
   Reviews
   --------------------------------------------------------------------------
   Each trek has its own reviews, average and count (table `trip_reviews`).
   The summary block carries the headline figure and a per-star breakdown;
   below it sits the review form and then the reviews themselves.
   ========================================================================== */
.reviews-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  border-radius: 1rem;
  background: var(--pine-50);
}
@media (min-width: 720px) {
  .reviews-summary { grid-template-columns: 13rem minmax(0, 1fr); gap: 2.5rem; }
}
.reviews-summary__score { text-align: center; }
.reviews-summary__average {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--pine-950);
}
.reviews-summary__outof {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.reviews-summary__count {
  margin: 0.5rem 0 0;
  font-size: var(--text-base);
  color: var(--ink-soft);
}
.star-rating { display: inline-flex; gap: 0.1rem; color: rgba(18, 51, 34, 0.18); }
.star-rating .is-filled { color: var(--amber-500); }
.star-rating--lg { margin-top: 0.6rem; justify-content: center; }

.reviews-summary__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.reviews-summary__bars li {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.reviews-summary__bar {
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(18, 51, 34, 0.12);
  overflow: hidden;
}
.reviews-summary__bar > span {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background: var(--amber-500);
}
.reviews-summary__bar-count { text-align: right; font-variant-numeric: tabular-nums; }

.review-form-wrap { margin-top: 1.5rem; }
.review-form-prompt {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border: 1px dashed rgba(18, 51, 34, 0.2);
  border-radius: 0.75rem;
  font-size: var(--text-base);
  color: var(--ink-soft);
}
.review-form {
  border: 1px solid rgba(18, 51, 34, 0.12);
  border-radius: 0.85rem;
  background: #fff;
}
.review-form > summary {
  padding: 0.9rem 1.15rem;
  font-weight: 600;
  font-size: var(--text-md);
  cursor: pointer;
  color: var(--pine-800);
  list-style: none;
}
.review-form > summary::-webkit-details-marker { display: none; }
.review-form > summary::before { content: '✍  '; }
.review-form__body {
  padding: 0 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}
.review-form__body .form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.review-form__body .form-field > span { font-size: var(--text-base); font-weight: 600; }
.review-form__body .form-field em { font-weight: 400; color: var(--ink-soft); font-style: normal; }

/* Star picker: radios reversed in the DOM (5 first) so plain CSS sibling
   selectors can light up the chosen star and everything to its left. */
.review-form__stars {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}
.review-form__stars legend {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0.35rem;
  float: left;
  width: 100%;
}
.review-form__stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.review-form__stars label {
  color: rgba(18, 51, 34, 0.2);
  cursor: pointer;
  line-height: 0;
  padding: 0.15rem;
}
.review-form__stars input:checked ~ label,
.review-form__stars label:hover,
.review-form__stars label:hover ~ label { color: var(--amber-500); }
.review-form__stars input:focus-visible + label { outline: 2px solid var(--pine-600); border-radius: 0.25rem; }

.review-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.review-card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  border-radius: 0.85rem;
  background: #fff;
}
.review-card__head { display: flex; align-items: flex-start; gap: 0.85rem; }
.review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: var(--pine-800);
  color: var(--parchment);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
}
.review-card__name {
  margin: 0;
  font-weight: 600;
  font-size: var(--text-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  background: var(--pine-50);
  color: var(--pine-700);
  font-size: var(--text-xs);
  font-weight: 600;
}
.review-card__meta {
  margin: 0.3rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.review-card__title {
  margin: 0.9rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--pine-950);
}
.review-card__quote {
  margin: 0.6rem 0 0;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Signed-out departure card
   The login link used to be a full-width primary pill on every card, which
   read as the main action of the page. It is now a compact secondary control
   sitting on the price row, and the "create an account" line appears once
   under the panel rather than on each card.
   -------------------------------------------------------------------------- */
a.departure-card__signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0.35rem 0.85rem;
  min-height: 2.1rem;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.departures-panel__signup {
  margin: 0.35rem 0 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-align: center;
}
