/* ==========================================================================
   Athiti — interior page components

   Loaded alongside styles.css on every page except the homepage. Built on the
   same tokens; nothing here redefines a colour, a font or a spacing step.
   ========================================================================== */

/* --- Section shells ------------------------------------------------------ */

.psec {
  padding: var(--s6) 0;
}

.psec--tight {
  padding: var(--s5) 0;
}

.psec--tint {
  background: var(--sand);
}

.psec--mist {
  background: var(--mist);
}

.psec--dark {
  background: var(--teal-900);
  color: var(--on-dark);
}

.psec--dark h2,
.psec--dark h3 {
  color: #fff;
}

.psec--dark p {
  color: var(--on-dark-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s6);
  align-items: start;
}

.split--even {
  grid-template-columns: 1fr 1fr;
}

.split--legal {
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: var(--s5);
}

/* Long-form pages lead with the text; the aside is a margin note, not a
   second column of equal weight. */
.split--prose {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
}

/* --- Page hero ----------------------------------------------------------- */

.phero {
  position: relative;
  padding: var(--s6) 0 var(--s5);
  background: linear-gradient(180deg, var(--rice) 0%, var(--sand) 100%);
  overflow: hidden;
}

.phero__inner {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

.phero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  margin-bottom: var(--s2);
}

.phero__lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 0;
}

.phero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

/* Destination and service heroes carry a photo behind a scrim. */
.phero--photo {
  background: var(--teal-900);
  color: var(--on-dark);
}

.phero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.phero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 49, 47, 0.93) 0%,
    rgba(6, 49, 47, 0.72) 58%,
    rgba(6, 49, 47, 0.42) 100%
  );
}

.phero--photo h1 {
  color: #fff;
}

.phero--photo .phero__lede {
  color: var(--on-dark-soft);
}

.phero--photo .eyebrow {
  color: var(--teal-300);
}

/* The status chips are tuned for light surfaces; on the dark photo hero they
   need the light treatment or they read as dark-on-dark. */
.phero--photo .status--live {
  background: rgba(159, 211, 200, 0.2);
  color: #9fd3c8;
}

.phero--photo .status--assisted {
  background: rgba(232, 162, 71, 0.22);
  color: var(--saffron);
}

.phero--photo .status--soon {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

.phero--kodagu::before {
  background-image: url("assets/hero-kodagu.jpg");
}

.phero--coastal::before {
  background-image: url("assets/hero-coastal.jpg");
}

.phero--nashik::before {
  background-image: url("assets/dest-nashik.jpg");
}

.phero--stays::before {
  background-image: url("assets/hero-stays.jpg");
}

.phero--food::before {
  background-image: url("assets/hero-food.jpg");
}

.phero--rides::before {
  background-image: url("assets/hero-rides.jpg");
}

.phero--partners::before {
  background-image: url("assets/hero-partners.jpg");
}

.phero--destinations::before {
  background-image: url("assets/hero-destinations.jpg");
}

.phero--about::before {
  background-image: url("assets/hero-about.jpg");
}

/* --- Breadcrumbs --------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--s2);
  font-size: 0.8rem;
  color: var(--muted);
}

.crumbs a {
  color: inherit;
  padding: 6px 0;
  box-shadow: inset 0 -1px transparent;
}

.crumbs a:hover {
  box-shadow: inset 0 -1px currentColor;
}

.phero--photo .crumbs {
  color: var(--teal-300);
}

/* --- Reality strip: what we can actually do here ------------------------- */

.reality {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.reality__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--s3);
  background: var(--rice);
}

.reality__item h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.reality__item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.reality__item .status {
  align-self: flex-start;
}

/* --- Towns --------------------------------------------------------------- */

.towns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s2);
}

.towns li {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--rice);
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- Reason / info cards ------------------------------------------------- */

.infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--s3);
}

.infos--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

.info {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--rice);
}

.psec--tint .info {
  background: var(--rice);
}

.info h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.info__num {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--clay-600);
}

.info__meta {
  display: block;
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Corridor availability grid ------------------------------------------ */

.corridors {
  display: grid;
  gap: var(--s2);
}

.corridor {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s2);
  padding-right: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.corridor:hover {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* The thumbnail is a pseudo-element grid item keyed off the link target, so
   every corridor row across the site gets its photo without touching markup. */
.corridor::before {
  content: "";
  align-self: stretch;
  min-height: 92px;
  border-radius: 12px;
  background: var(--mist) center / cover no-repeat;
}

.corridor[href*="kodagu"]::before {
  background-image: url("assets/dest-kodagu.jpg");
}

.corridor[href*="coastal"]::before {
  background-image: url("assets/dest-coastal.jpg");
}

.corridor[href*="nashik"]::before {
  background-image: url("assets/dest-nashik.jpg");
}

.corridor[href="destinations.html"]::before {
  background-image: url("assets/moment-escape.jpg");
  filter: grayscale(0.7) opacity(0.8);
}

.corridor h3 {
  margin: 0;
  font-size: 1.15rem;
}

.corridor p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* --- Long-form prose (company + legal) ----------------------------------- */

.prose {
  max-width: 42rem;
}

.prose > h2 {
  margin-top: var(--s5);
  font-size: 1.7rem;
  scroll-margin-top: 120px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--s3);
  font-size: 1.08rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  margin: 0 0 var(--s2);
  padding-left: var(--s3);
  list-style: disc;
}

.prose li {
  margin-bottom: 8px;
}

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

.prose a {
  color: var(--teal-700);
  font-weight: 600;
  box-shadow: inset 0 -1px currentColor;
}

/* --- Callouts ------------------------------------------------------------ */

.callout {
  padding: var(--s3);
  border-radius: var(--radius);
  background: var(--mist);
  border-left: 3px solid var(--teal-600);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout--gate {
  background: rgba(232, 162, 71, 0.15);
  border-left-color: var(--saffron);
}

.callout h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1rem;
}

.callout p {
  font-size: 0.92rem;
}

/* --- Legal side nav ------------------------------------------------------ */

.legal__nav {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 2px;
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
}

.legal__nav strong {
  display: block;
  margin-bottom: var(--s1);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal__nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.legal__nav a:hover {
  background: var(--mist);
  color: var(--ink);
}

/* --- Contact ------------------------------------------------------------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr));
  gap: var(--s3);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--rice);
}

.contact-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-card .btn,
.contact-card .link-arrow {
  margin-top: auto;
}

/* --- FAQ groups ---------------------------------------------------------- */

.faq-group {
  margin-bottom: var(--s5);
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group > h2 {
  margin-bottom: var(--s2);
  font-size: 1.5rem;
  scroll-margin-top: 120px;
}

/* --- System pages -------------------------------------------------------- */

.sys {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: var(--s6) 0;
  text-align: center;
}

.sys__inner {
  max-width: 36rem;
}

.sys__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s3);
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal-700);
  font-size: 1.5rem;
}

.sys__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
  margin-top: var(--s4);
}

.sys__next {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s5);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  text-align: left;
}

.sys__next li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.sys__next b {
  flex: none;
  color: var(--clay-600);
}

/* --- Sample journey ------------------------------------------------------ */

.journey {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--rice);
  overflow: hidden;
}

.journey__day {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3);
  border-bottom: 1px solid var(--line);
}

.journey__day:last-of-type {
  border-bottom: 0;
}

.journey__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-600);
}

.journey__body p {
  margin: 0 0 5px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.journey__body p:last-child {
  margin-bottom: 0;
}

.journey__foot {
  margin: 0;
  padding: var(--s2) var(--s3);
  background: var(--mist);
  font-size: 0.78rem;
  color: var(--muted);
}

/* --- Checklist ----------------------------------------------------------- */

.checks {
  display: grid;
  gap: 10px;
}

.checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.checks li::before {
  content: "✓";
  color: var(--teal-600);
  font-weight: 700;
}

.checks--no li::before {
  content: "×";
  color: var(--clay-600);
}

/* --- Interior responsive ------------------------------------------------- */

@media (max-width: 1080px) {
  .split,
  .split--even,
  .split--legal,
  .split--prose {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .corridor {
    grid-template-columns: 1fr;
    gap: var(--s1);
  }

  .legal__nav {
    position: static;
  }
}

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

  .journey__day {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .phero {
    padding: var(--s5) 0 var(--s4);
  }

  .phero__ctas .btn {
    width: 100%;
  }

  .psec {
    padding: var(--s5) 0;
  }
}

/* ==========================================================================
   VISUAL COMPONENTS
   A travel site that is only type is a brochure nobody reads. These carry the
   photography into the body of every page, not just the hero.
   ========================================================================== */

/* --- Photo cards: an image-led variant of .info ------------------------- */

.info--photo {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease),
    border-color 0.26s var(--ease);
}

.info--photo:hover {
  transform: translateY(-4px);
  border-color: var(--teal-600);
  box-shadow: var(--shadow-md);
}

.info__img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--mist);
  transition: transform 0.5s var(--ease);
}

.info--photo:hover .info__img {
  transform: scale(1.04);
}

.info__imgwrap {
  overflow: hidden;
}

.info--photo .info__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s3);
}

.info--photo h3 {
  margin-bottom: 8px;
}

.info--photo .info__meta {
  margin-top: auto;
}

/* --- Editorial split: image beside prose --------------------------------- */

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}

.editorial--flip .editorial__media {
  order: 2;
}

.editorial__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.editorial__media img {
  width: 100%;
  height: clamp(300px, 34vw, 440px);
  object-fit: cover;
}

.editorial__tag {
  position: absolute;
  left: var(--s2);
  bottom: var(--s2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(6, 49, 47, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.editorial__body h2 {
  margin-bottom: var(--s2);
}

.editorial__body p {
  color: var(--ink-soft);
}

.psec--dark .editorial__body p {
  color: var(--on-dark-soft);
}

/* --- Full-width photo band ---------------------------------------------- */

.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: var(--s6) 0;
  background: var(--teal-900) center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}

/* These photos are busy, so the scrim has to be heavy enough that the headline
   wins outright rather than competing with a face behind it. */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at center,
      rgba(6, 49, 47, 0.58) 0%,
      rgba(6, 49, 47, 0.8) 75%
    ),
    linear-gradient(180deg, rgba(6, 49, 47, 0.4) 0%, rgba(6, 49, 47, 0.72) 100%);
}

.band__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding-inline: 20px;
}

.band h2 {
  color: #fff;
  margin-bottom: var(--s2);
}

.band p {
  color: var(--on-dark-soft);
  font-size: 1.05rem;
  margin-bottom: var(--s3);
}

.band--arrival {
  background-image: url("assets/hero-arrival.jpg");
}

.band--group {
  background-image: url("assets/moment-group.jpg");
}

.band--escape {
  background-image: url("assets/moment-escape.jpg");
}

.band--food {
  background-image: url("assets/food-menu.jpg");
}

.band--contact {
  background-image: url("assets/hero-contact.jpg");
}

.band--campus {
  background-image: url("assets/coastal-campus.jpg");
}

.band--road {
  background-image: url("assets/kodagu-road.jpg");
}

/* --- Gallery strip ------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
}

.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}

.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s3) var(--s2) 10px;
  background: linear-gradient(180deg, rgba(6, 49, 47, 0), rgba(6, 49, 47, 0.85));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.gallery--tall img {
  height: 300px;
}

/* --- Section eyebrow rule ------------------------------------------------ */

.section-head--rule {
  position: relative;
  padding-top: var(--s3);
}

.section-head--rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--clay-600), var(--saffron));
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .editorial {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .editorial--flip .editorial__media {
    order: 0;
  }

  .corridor {
    grid-template-columns: 104px minmax(0, 1fr) auto;
  }

  .corridor p {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  .corridor {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .corridor::before {
    height: 150px;
    min-height: 0;
  }

  .corridor p {
    grid-column: auto;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .gallery img,
  .gallery--tall img {
    height: 150px;
  }

  .band {
    min-height: 280px;
  }

  .info__img {
    height: 170px;
  }
}

/* ==========================================================================
   LISTINGS
   The core object of a travel site: a place you can look at and choose.
   Every card carries a "Sample listing" chip — these are not real properties.
   ========================================================================== */

/* --- Filter bar ---------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  box-shadow: var(--shadow-sm);
}

.filters .field {
  flex: 1 1 168px;
}

.filters__count {
  flex: 1 1 100%;
  margin: 0;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.filters__count b {
  color: var(--ink);
}

.filters__reset {
  border: 0;
  background: transparent;
  padding: 6px 4px;
  color: var(--teal-700);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Listing grid -------------------------------------------------------- */

.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}

.listing {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--rice);
  overflow: hidden;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease),
    border-color 0.26s var(--ease);
}

.listing:hover {
  transform: translateY(-4px);
  border-color: var(--teal-600);
  box-shadow: var(--shadow-md);
}

.listing[hidden] {
  display: none;
}

.listing__media {
  position: relative;
  overflow: hidden;
}

.listing__media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--mist);
  transition: transform 0.5s var(--ease);
}

.listing:hover .listing__media img {
  transform: scale(1.05);
}

.listing__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(6, 49, 47, 0.86);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.listing__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: var(--s3);
}

.listing__place {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.listing__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.listing__body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.listing {
  position: relative;
}

.listing__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.listing__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.listing__specs li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  color: var(--muted);
}

.listing__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1);
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}

.listing__rate {
  font-size: 0.95rem;
  font-weight: 700;
}

.listing__rate span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.listings__empty {
  padding: var(--s5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--mist);
  text-align: center;
}

.listings__empty h3 {
  margin-bottom: 6px;
}

.listings__empty p {
  max-width: 46ch;
  margin: 0 auto var(--s3);
  color: var(--ink-soft);
}

/* --- Listing detail ------------------------------------------------------ */

.ldgallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 132px 132px;
  gap: 10px;
}

.ldgallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}

.ldgallery figure:first-child {
  grid-row: span 2;
}

/* Four images in a 3-column grid leaves one cell empty, so the last one
   stretches across the gap rather than sitting beside a hole. */
.ldgallery figure:nth-child(4) {
  grid-column: span 2;
}

.ldgallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.ldgallery figure:hover img {
  transform: scale(1.04);
}

.ldhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s4);
}

.ldhead h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.ldhead__place {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  overflow: hidden;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  padding: 12px var(--s3);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.host {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.host__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-800);
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.host h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.host p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
  .ldgallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 120px;
  }

  .ldgallery figure:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .ldgallery figure:nth-child(4) {
    display: none;
  }
}

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

  .filters .field {
    flex: 1 1 100%;
  }

  .ldgallery {
    grid-template-rows: 200px 100px;
  }

  .ldhead {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   AUTH PAGES
   Deliberately stripped: no site nav, no marketing, nothing to click except
   the one thing the page is for. Login logs in. Signup signs up.
   ========================================================================== */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(180deg, var(--rice) 0%, var(--sand) 100%);
}

.auth__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s3) 0;
}

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.auth__back:hover {
  color: var(--teal-700);
}

.auth__main {
  display: grid;
  place-items: center;
  padding: var(--s4) 0 var(--s6);
}

.auth__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  width: min(1000px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--rice);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Left panel: says what the account is for, rather than a bare logo. */
.auth__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s3);
  padding: var(--s5);
  background: var(--teal-900) center / cover no-repeat;
  color: var(--on-dark);
  position: relative;
}

.auth__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-arrival.jpg");
  background-size: cover;
  background-position: 55% 50%;
  opacity: 0.3;
}

.auth__aside > * {
  position: relative;
  z-index: 1;
}

.auth__aside--partner::before {
  background-image: url("assets/dest-kodagu.jpg");
}

.auth__logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  align-self: flex-start;
}

.auth__aside h2 {
  color: #fff;
  font-size: 1.7rem;
  margin: 0;
}

.auth__aside p {
  color: var(--on-dark-soft);
  font-size: 0.94rem;
  margin: 0;
}

.auth__points {
  display: grid;
  gap: 10px;
  margin-top: var(--s1);
}

.auth__points li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.88rem;
  color: var(--on-dark-soft);
}

.auth__points li::before {
  content: "✓";
  color: var(--saffron);
  font-weight: 700;
}

.auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s5);
}

.auth__panel h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 6px;
}

.auth__sub {
  margin-bottom: var(--s4);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --- Tabs ---------------------------------------------------------------- */

.auth__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--s3);
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--mist);
}

.auth__tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.auth__tab.is-active {
  background: var(--rice);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* --- Form ---------------------------------------------------------------- */

.auth__form {
  display: grid;
  gap: var(--s3);
}

.auth__form[hidden] {
  display: none;
}

/* Country code + number, so a guest with a non-Indian number can still book. */
.phone-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px;
}

.pw-wrap {
  position: relative;
}

.pw-wrap input {
  padding-right: 78px !important;
}

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--teal-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.pw-toggle:hover {
  background: var(--mist);
}

.field__error {
  display: none;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clay-700);
}

.field__error.is-shown {
  display: block;
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
}

.auth__alt {
  margin: var(--s3) 0 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

.auth__alt a {
  font-weight: 700;
  color: var(--teal-700);
  box-shadow: inset 0 -1px currentColor;
}

.auth__switch {
  margin: var(--s2) 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* --- OTP step ------------------------------------------------------------ */

.otp-sent {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.otp-sent p {
  margin: 0 0 var(--s2);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.otp-sent b {
  color: var(--ink);
}

.otp-actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
}

.linkbtn {
  border: 0;
  background: transparent;
  padding: 8px 2px;
  min-height: 40px;
  color: var(--teal-700);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.linkbtn[disabled] {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}

/* --- Footer -------------------------------------------------------------- */

.auth__foot {
  padding: var(--s3) 0 var(--s4);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth__foot a {
  color: var(--ink-soft);
  box-shadow: inset 0 -1px var(--line-strong);
  padding: 4px 2px;
}

.auth__foot a:hover {
  color: var(--teal-700);
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 860px) {
  .auth__grid {
    grid-template-columns: 1fr;
  }

  .auth__aside {
    padding: var(--s4);
  }

  .auth__aside .auth__points {
    display: none;
  }

  .auth__panel {
    padding: var(--s4);
  }
}

@media (max-width: 480px) {
  .auth__grid {
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .phone-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

/* ==========================================================================
   PARTNER ONBOARDING STAGES
   The live site demands Aadhaar and bank details as required fields before a
   host has had a single booking. This component exists to show the opposite:
   what is asked, at which stage, and what is deliberately not asked yet.
   ========================================================================== */

.stages {
  display: grid;
  gap: var(--s2);
  counter-reset: stage;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.stage:hover {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-sm);
}

.stage__num {
  display: grid;
  place-items: center;
  align-self: start;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal-700);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.stage--now {
  border-color: var(--teal-600);
  background: linear-gradient(
    90deg,
    rgba(21, 112, 104, 0.06),
    rgba(21, 112, 104, 0)
  );
}

.stage--now .stage__num {
  background: var(--teal-800);
  color: var(--on-dark);
}

.stage__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.stage h3 {
  margin: 0;
  font-size: 1.15rem;
}

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

.stage > div > p {
  margin: 0 0 var(--s2);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.stage__asks li {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.stage--now .stage__asks li {
  background: rgba(21, 112, 104, 0.12);
  color: var(--teal-600);
}

.stage__asks li.is-doc {
  background: rgba(232, 162, 71, 0.18);
  color: #8a5a12;
}

/* --- The contrast callout ------------------------------------------------ */

.notyet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--s3);
  padding: var(--s4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.notyet h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.notyet p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.notyet__list {
  display: grid;
  gap: 6px;
  margin-top: var(--s2);
}

.notyet__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.notyet__list li::before {
  content: "×";
  color: var(--clay-600);
  font-weight: 700;
}

@media (max-width: 640px) {
  .stage {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: var(--s2);
  }

  .stage__num {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   DESTINATION SYSTEM
   Built to ATHITI-DESTINATION-PAGES-UI-UX-PLAN.md. Five page types share
   these components: all-destinations, destination experience, results,
   trip planner, and the campaign variant.
   ========================================================================== */

/* --- Travel-moment chips ------------------------------------------------- */

.moments-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.moment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--rice);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}

.moment-chip:hover {
  border-color: var(--teal-600);
  color: var(--ink);
}

.moment-chip.is-active {
  background: var(--teal-800);
  border-color: var(--teal-800);
  color: var(--on-dark);
}

.phero--photo .moment-chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.phero--photo .moment-chip.is-active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--teal-900);
}

/* --- Practical facts rail ------------------------------------------------ */

.facts-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.facts-rail div {
  padding: var(--s3);
  background: var(--rice);
}

.facts-rail dt {
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts-rail dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

/* --- Service availability rail (4 cards) --------------------------------- */

.servicerail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: var(--s2);
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.svc:hover {
  border-color: var(--teal-600);
  transform: translateY(-3px);
}

.svc__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--teal-700);
  font-size: 1.1rem;
}

.svc h3 {
  margin: 0;
  font-size: 1.08rem;
}

.svc p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.svc .status {
  align-self: flex-start;
  margin-top: auto;
}

.svc--off {
  background: var(--mist);
}

/* --- Journey bundles ----------------------------------------------------- */

.bundles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--s3);
}

.bundle-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--rice);
}

.bundle-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.bundle-card__parts {
  display: grid;
  gap: 8px;
  margin: var(--s1) 0 var(--s2);
}

.bundle-card__parts li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.bundle-card__parts b {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-600);
  padding-top: 2px;
}

.bundle-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* --- Arrival / getting around -------------------------------------------- */

.arrival {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--s3);
}

.arrival__col h3 {
  margin-bottom: var(--s2);
  font-size: 1.15rem;
}

.arrival__list {
  display: grid;
  gap: 8px;
}

.arrival__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 12px var(--s3);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--rice);
  font-size: 0.9rem;
}

.arrival__how {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.arrival__how--books {
  color: var(--teal-600);
}

.arrival__how--arranges {
  color: #8a5a12;
}

/* ==========================================================================
   TRIP PLANNER
   Four steps: stay, food, transport, review. One decision at a time, with a
   running summary that never claims a booking Athiti cannot make.
   ========================================================================== */

.planner-bar {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.planner-bar strong {
  font-size: 0.95rem;
}

.planner-bar__sep {
  color: var(--line-strong);
}

.planner-bar button {
  margin-left: auto;
}

.steps-ind {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: var(--s4) 0 var(--s3);
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--mist);
}

.steps-ind button {
  flex: 1 1 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.steps-ind button .n {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 48, 46, 0.1);
  font-size: 0.74rem;
  font-weight: 700;
}

.steps-ind button.is-active {
  background: var(--teal-800);
  color: var(--on-dark);
  box-shadow: var(--shadow-sm);
}

.steps-ind button.is-active .n {
  background: rgba(255, 255, 255, 0.22);
}

.steps-ind button.is-done .n {
  background: var(--teal-600);
  color: #fff;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s4);
  align-items: start;
}

.planner-step[hidden] {
  display: none;
}

.planner-step > h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.planner-step > .section-sub {
  margin-bottom: var(--s3);
}

/* --- Selectable option cards --------------------------------------------- */

.options {
  display: grid;
  gap: var(--s2);
}

.option {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s2);
  padding-right: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.option:hover {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-sm);
}

.option.is-selected {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 2px rgba(21, 112, 104, 0.18);
}

.option img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--mist);
}

.option__body h4 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
}

.option__body p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.option__side {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.option__price {
  font-weight: 700;
  font-size: 0.95rem;
}

.option__price span {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
}

.option__pick {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.option.is-selected .option__pick {
  background: var(--teal-800);
  border-color: var(--teal-800);
  color: var(--on-dark);
}

.option--none {
  grid-template-columns: 1fr;
  border-style: dashed;
  background: var(--mist);
}

/* --- Trip summary --------------------------------------------------------- */

.summary {
  position: sticky;
  top: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--rice);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.summary__head {
  padding: var(--s3);
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.summary__head h2 {
  margin: 0 0 2px;
  font-size: 1.15rem;
}

.summary__head p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.summary__row {
  display: grid;
  gap: 4px;
  padding: var(--s3);
  border-bottom: 1px solid var(--line);
}

.summary__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary__pick {
  font-size: 0.94rem;
  font-weight: 600;
}

.summary__meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.summary__price {
  font-size: 0.88rem;
  font-weight: 700;
}

.summary__total {
  display: grid;
  gap: 6px;
  padding: var(--s3);
  background: var(--sand);
}

.summary__total-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 0.88rem;
}

.summary__total-row--big {
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
  font-size: 1.05rem;
  font-weight: 700;
}

.summary__note {
  margin: 0;
  padding: 0 var(--s3) var(--s3);
  background: var(--sand);
  font-size: 0.76rem;
  color: var(--muted);
}

.summary__cta {
  padding: var(--s3);
}

.pill-status {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-status--request {
  background: rgba(232, 162, 71, 0.2);
  color: #8a5a12;
}

.pill-status--available {
  background: rgba(21, 112, 104, 0.14);
  color: var(--teal-600);
}

.pill-status--optional {
  background: rgba(16, 48, 46, 0.08);
  color: var(--muted);
}

/* --- Planner responsive --------------------------------------------------- */

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

  /* On tablet and below the summary drops below the selection area rather
     than fighting it for width. */
  .summary {
    position: static;
    order: 2;
  }
}

@media (max-width: 640px) {
  .option {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .option img {
    height: 150px;
  }

  .option__side {
    justify-items: start;
    text-align: left;
  }

  .planner-bar {
    top: 0;
    font-size: 0.84rem;
  }

  .planner-bar button {
    margin-left: 0;
    width: 100%;
  }

  .steps-ind button {
    flex: 1 1 auto;
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .steps-ind button .n {
    display: none;
  }
}

/* ==========================================================================
   PLACES & FOOD
   The destinations index lists towns and dishes, not just regions. Every
   entry carries the same live / assisted / building label used sitewide.
   ========================================================================== */

/* --- Filter bar ---------------------------------------------------------- */

.dfilter {
  display: grid;
  gap: var(--s3);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  box-shadow: var(--shadow-sm);
}

.dfilter__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s2);
}

.dfilter__row .field {
  flex: 1 1 220px;
}

.dfilter__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dfilter__count {
  margin: 0;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.dfilter__count b {
  color: var(--ink);
}

/* --- Place grid ---------------------------------------------------------- */

.places {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(272px, 100%), 1fr));
  gap: var(--s3);
}

.place {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--rice);
  overflow: hidden;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease),
    border-color 0.26s var(--ease);
}

.place:hover {
  transform: translateY(-4px);
  border-color: var(--teal-600);
  box-shadow: var(--shadow-md);
}

.place[hidden] {
  display: none;
}

.place__media {
  position: relative;
  overflow: hidden;
}

.place__media img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: var(--mist);
  transition: transform 0.5s var(--ease);
}

.place:hover .place__media img {
  transform: scale(1.05);
}

.place__region {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(6, 49, 47, 0.84);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.place__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: var(--s3);
}

.place__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.place__body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.place__why {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.place__services {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.place__services li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--muted);
}

.place__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1);
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}

.place__go {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-700);
}

/* --- Food / dish cards --------------------------------------------------- */

.dishgroup {
  margin-bottom: var(--s5);
}

.dishgroup:last-child {
  margin-bottom: 0;
}

.dishgroup__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s2);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}

.dishgroup__head h3 {
  margin: 0;
  font-size: 1.4rem;
}

.dishgroup__head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(244px, 100%), 1fr));
  gap: var(--s2);
}

.dish {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  overflow: hidden;
}

.dish__media {
  height: 130px;
  overflow: hidden;
  background: var(--mist);
}

.dish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dishes without a photo get a typographic tile rather than a grey box. */
.dish__mark {
  display: grid;
  place-items: center;
  height: 130px;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-size: 2.2rem;
}

.dish__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: var(--s3);
}

.dish__body h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
}

.dish__body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.dish__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1);
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
}

/* --- Empty state --------------------------------------------------------- */

.places__empty {
  padding: var(--s5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--mist);
  text-align: center;
}

.places__empty p {
  max-width: 48ch;
  margin: 0 auto var(--s3);
  color: var(--ink-soft);
}

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

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

  .dish__media,
  .dish__mark {
    height: 100px;
  }

  .dish__mark {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   DESTINATION BOOKING MODULE
   Dates and guests drive an availability check across stays, food and rides
   on one page. The final action is a confirmation request, never a booking.
   ========================================================================== */

.bookbar {
  position: sticky;
  top: 64px;
  z-index: 22;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: var(--s2);
  align-items: end;
  padding: var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--rice);
  box-shadow: var(--shadow-md);
}

.bookbar .field label {
  font-size: 0.7rem;
}

.bookbar__go {
  align-self: end;
}

.bookbar__note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.bookbar__note b {
  color: var(--ink);
}

/* --- Availability state on each bookable item ---------------------------- */

.avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.avail--unchecked {
  background: rgba(16, 48, 46, 0.07);
  color: var(--muted);
}

.avail--checking {
  background: rgba(232, 162, 71, 0.16);
  color: #8a5a12;
}

.avail--free {
  background: rgba(21, 112, 104, 0.13);
  color: var(--teal-600);
}

.avail--request {
  background: rgba(232, 162, 71, 0.2);
  color: #8a5a12;
}

.avail--full {
  background: rgba(168, 69, 28, 0.12);
  color: var(--clay-700);
}

.book-item.is-full {
  opacity: 0.62;
}

.book-item.is-full .option__pick {
  pointer-events: none;
  color: var(--muted);
  border-style: dashed;
}

/* --- Section groups ------------------------------------------------------ */

.booksec {
  margin-bottom: var(--s5);
}

.booksec:last-child {
  margin-bottom: 0;
}

.booksec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s2);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}

.booksec__head h3 {
  margin: 0;
  font-size: 1.4rem;
}

.booksec__head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Food and ride rows are denser than stay cards — no image, more facts. */
.book-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rice);
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.book-row:hover {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-sm);
}

.book-row.is-selected {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 2px rgba(21, 112, 104, 0.18);
}

.book-row h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
}

.book-row__meta {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.book-row__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.book-row__facts li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--muted);
}

.book-row__side {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

/* --- Ride: getting there vs getting around -------------------------------- */

.ridegroups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--s4);
}

.ridegroup > h4 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.ridegroup > p {
  margin: 0 0 var(--s2);
  font-size: 0.85rem;
  color: var(--muted);
}

.ridegroup .options {
  gap: 10px;
}

/* --- Booking summary variant --------------------------------------------- */

.summary--book {
  top: 148px;
}

.summary__dates {
  display: flex;
  justify-content: space-between;
  gap: var(--s1);
  padding: 10px var(--s3);
  border-bottom: 1px solid var(--line);
  background: var(--rice);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .summary--book {
    position: static;
  }
}

@media (max-width: 640px) {
  .bookbar {
    grid-template-columns: 1fr 1fr;
    top: 0;
  }

  .bookbar__go {
    grid-column: 1 / -1;
  }

  .bookbar__go .btn {
    width: 100%;
  }

  .book-row {
    grid-template-columns: 1fr;
  }

  .book-row__side {
    justify-items: start;
    text-align: left;
  }
}

/* ==========================================================================
   MOBILE REFINEMENTS
   From a per-page audit at 375px and 320px. Two classes of fix:
   standalone controls brought up to a 40px touch target, and the small
   uppercase meta labels brought up to a readable size on a phone.
   Inline links inside a sentence gain their hit area through padding with a
   matching negative margin, so the line height does not change.
   ========================================================================== */

/* --- Standalone controls: 40px minimum ----------------------------------- */

.crumbs a,
.filters__reset,
.state-link,
.pw-toggle,
.auth__sub a,
.auth__alt a,
.auth__foot a,
.linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.checkline {
  min-height: 44px;
}

/* Inline links keep their place in the sentence but gain a taller hit area. */
.prose a,
.checkline--consent a,
.option__body h4 a,
.sys__next a,
.summary__meta a,
.dish__body a {
  padding-block: 12px;
  margin-block: -12px;
}

/* --- Meta labels: readable on a phone ------------------------------------ */

@media (max-width: 640px) {
  .chip {
    font-size: 0.7rem;
  }

  .status {
    font-size: 0.72rem;
  }

  .pill-status,
  .listing__flag,
  .place__region {
    font-size: 0.7rem;
  }

  .announce__tag,
  .proof__state,
  .itin__day,
  .facts-rail dt,
  .reality__item h3,
  .summary__label,
  .listing__place {
    font-size: 0.72rem;
  }

  .place__services li,
  .listing__specs li,
  .book-row__facts li,
  .stage__asks li,
  .dest-card__services li {
    font-size: 0.74rem;
  }

  /* Sticky bars: the header is already sticky at the top, so a second
     sticky bar sitting at 0 would cover it. Park them below it. */
  .bookbar,
  .planner-bar {
    top: 60px;
  }

  /* Two sticky bars plus a sticky CTA leaves too little reading room on a
     small phone, so the booking bar releases and scrolls away. */
  @media (max-height: 700px) {
    .bookbar,
    .planner-bar {
      position: static;
    }
  }
}

/* --- 320px: the narrowest phone still in use ------------------------------ */

@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }

  .phero h1 {
    font-size: 1.9rem;
  }

  .steps-ind {
    gap: 2px;
  }

  .steps-ind button {
    padding: 10px 4px;
    font-size: 0.74rem;
  }

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

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

  .gallery img,
  .gallery--tall img {
    height: 180px;
  }

  .phone-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .facts div,
  .facts-rail div {
    padding: var(--s2);
  }
}
