/* static/css/40-pages/field-albums.css */
.hp-field-album {
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface);
}

.hp-field-album__details > summary {
  list-style: none;
}

.hp-field-album__details > summary::-webkit-details-marker {
  display: none;
}

.hp-field-album__summary {
  align-items: end;
  cursor: pointer;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
}

.hp-field-album__eyebrow,
.hp-field-album__date,
.hp-field-album__credit {
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.hp-field-album__eyebrow {
  display: block;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
  text-transform: uppercase;
}

.hp-field-album__summary-text {
  color: var(--color-text-secondary);
  margin: var(--space-3) 0;
  max-width: 68ch;
}

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

.hp-field-album__photo {
  background: var(--color-surface-muted);
  margin: 0;
  min-width: 0;
}

.hp-field-album__photo img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.hp-field-album__photo figcaption {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3) var(--space-3);
}

.hp-field-album__caption {
  font-size: 0.86rem;
}

@media (min-width: 760px) {
  .hp-field-album__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* static/css/40-pages/geo.css */
/* Breadcrumb above page header on /region, /country, /city pages. */
.hp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-meta);
  color: var(--color-text-secondary);
  padding-block: var(--space-3) 0;
}

.hp-breadcrumb__link {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.hp-breadcrumb__link:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}
.hp-breadcrumb__link:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
  border-radius: var(--radius-control, 4px);
}

.hp-breadcrumb__sep {
  color: var(--color-text-tertiary);
}

.hp-breadcrumb__current {
  color: var(--color-text-primary);
  font-weight: var(--fw-medium);
}

.hp-geo-map-cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  max-width: 100%;
  padding: var(--space-2) var(--space-1);
  border-bottom: 1px solid color-mix(in srgb, var(--color-cta-secondary) 44%, transparent);
  color: var(--color-cta-secondary);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-standard),
              border-color var(--dur-micro) var(--ease-standard),
              transform var(--dur-micro) var(--ease-standard);
}

.hp-geo-map-cta svg {
  flex: 0 0 auto;
  transition: transform var(--dur-micro) var(--ease-standard);
}

.hp-geo-map-cta:hover {
  border-bottom-color: var(--color-border-strong);
  color: var(--color-text-primary);
}

.hp-geo-map-cta:hover svg {
  transform: translateY(-1px);
}

.hp-geo-map-cta:active {
  transform: translateY(1px);
}

.hp-geo-map-cta:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 3px;
  border-radius: var(--radius-control);
}

/* Editorial data-sheet: no box, just rhythm. */
.hp-geo-nav {
  display: grid;
  gap: var(--space-3);
}

.hp-geo-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  align-items: baseline;
}

@media (min-width: 720px) {
  .hp-geo-row {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: var(--space-4);
  }
}

.hp-geo-row__label {
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--color-text-tertiary);
  padding-top: 6px;
  white-space: nowrap;
}

.hp-geo-row__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.hp-geo-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: var(--tap);
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  transition: border-color var(--dur-micro) var(--ease-standard),
              background var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard),
              box-shadow var(--dur-micro) var(--ease-standard),
              transform var(--dur-micro) var(--ease-standard);
}

.hp-geo-chip:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
}

.hp-geo-chip:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
}

/* Recent hostel demand is encoded relatively within each visible city list.
   It never reuses Punk Score tier colors and never prints the underlying count. */
.hp-geo-chip--pop-quiet {
  border-color: color-mix(in srgb, var(--color-city-popularity-cool) 24%, var(--color-border-subtle));
  background: color-mix(in srgb, var(--color-city-popularity-cool) 4%, var(--color-surface));
}

.hp-geo-chip--pop-rising {
  border-color: color-mix(in srgb, var(--color-city-popularity-cool) 44%, var(--color-border-subtle));
  background: color-mix(in srgb, var(--color-city-popularity-cool) 10%, var(--color-surface));
  box-shadow: 0 0 10px -7px color-mix(in srgb, var(--color-city-popularity-cool) 52%, transparent);
  font-weight: var(--fw-semibold);
}

.hp-geo-chip--pop-busy {
  min-height: 46px;
  padding-inline: 14px;
  border-color: color-mix(in srgb, var(--color-city-popularity-hot) 56%, var(--color-city-popularity-cool));
  background: color-mix(in srgb, var(--color-city-popularity-hot) 14%, var(--color-surface));
  box-shadow: 0 0 15px -6px color-mix(in srgb, var(--color-city-popularity-hot) 56%, transparent);
  font-weight: var(--fw-semibold);
}

.hp-geo-chip--pop-peak {
  min-height: 48px;
  padding-inline: 16px;
  border: 2px solid color-mix(in srgb, var(--color-city-popularity-hot) 76%, var(--color-city-popularity-cool));
  background:
    radial-gradient(120% 150% at 25% 0%,
      color-mix(in srgb, var(--color-city-popularity-cool) 22%, var(--color-surface)) 0%,
      color-mix(in srgb, var(--color-city-popularity-hot) 18%, var(--color-surface)) 72%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-city-popularity-cool) 18%, transparent),
    0 0 22px -7px color-mix(in srgb, var(--color-city-popularity-hot) 70%, transparent);
  font-weight: var(--fw-bold);
}

.hp-geo-chip[class*="hp-geo-chip--pop-"]:hover {
  transform: translateY(-1px);
  border-color: var(--color-city-popularity-hot);
  box-shadow: 0 0 24px -7px color-mix(in srgb, var(--color-city-popularity-hot) 78%, transparent);
}

.hp-geo-chip[class*="hp-geo-chip--pop-"]:focus-visible {
  outline-color: var(--color-city-popularity-hot);
}

/* Inline tertiary link sitting next to the chips: "all 13 →" */
.hp-geo-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 34px;
  padding: var(--space-1) var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-micro) var(--ease-standard),
              border-color var(--dur-micro) var(--ease-standard);
}
.hp-geo-more:hover {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-border-strong);
}
.hp-geo-more:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
}

/* Methodology strip: hairline above, mono eyebrow, tight body, arrow link. */
.hp-geo-trust {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.hp-geo-trust__eyebrow {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.hp-geo-trust__body {
  max-width: 68ch;
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-copy, 1.55);
  color: var(--color-text-secondary);
}

.hp-geo-trust__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-1);
  padding: var(--space-1) 0;
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: border-color var(--dur-micro) var(--ease-standard);
}
.hp-geo-trust__link:hover {
  border-bottom-color: var(--color-text-primary);
}
.hp-geo-trust__link:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
}

.hp-main > .container > .hp-guide-teasers + .hp-list {
  margin-top: var(--space-6);
}

.hp-geo-city-spotlights {
  display: grid;
  gap: var(--space-5);
  margin-block: var(--space-6) var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
}

.hp-geo-city-spotlights__head {
  display: grid;
  gap: var(--space-2);
  max-width: 68ch;
}

.hp-geo-city-spotlights__title,
.hp-geo-results__title {
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.hp-geo-city-spotlights__intro {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.hp-geo-results {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hp-geo-chip,
  .hp-geo-map-cta,
  .hp-geo-map-cta svg {
    transition: none;
  }

  .hp-geo-chip[class*="hp-geo-chip--pop-"]:hover,
  .hp-geo-map-cta:hover svg,
  .hp-geo-map-cta:active {
    transform: none;
  }
}

.hp-geo-activities {
  display: grid;
  gap: var(--space-4);
  margin-block: var(--space-5) var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.hp-geo-activities__head {
  display: grid;
  gap: var(--space-1);
}

.hp-geo-activities__eyebrow {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.hp-geo-activities__title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight, 1.2);
}

.hp-geo-activities__grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 760px) {
  .hp-geo-activities__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hp-geo-activity {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.hp-geo-activity__rank {
  color: var(--color-text-tertiary);
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
}

.hp-geo-activity__body {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.hp-geo-activity__title {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--fs-card);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight, 1.2);
}

.hp-geo-activity__emoji {
  flex: 0 0 auto;
  font-size: 0.95em;
  line-height: 1;
}

.hp-geo-activity__summary {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
  line-height: 1.45;
}

.hp-geo-activity__sources {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hp-geo-activity__source {
  color: var(--color-text-secondary);
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-tiny);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-subtle);
}

.hp-geo-activity__source:hover {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-border-strong);
}

.hp-geo-activity__source:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
}

.hp-world-page > .container {
  max-width: min(1200px, 100vw);
}

.hp-world-rankings {
  display: grid;
  gap: var(--space-4);
}

.hp-world-list {
  container-type: inline-size;
  container-name: hp-list;
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-world-list__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  min-width: 0;
}

.hp-world-list__rank {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: var(--space-1) var(--space-2);
  border-left: 2px solid var(--color-border-strong);
  color: var(--color-text-primary);
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  line-height: 1;
}

@media (min-width: 760px) {
  .hp-world-list__item {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
  }

  .hp-world-list__rank {
    position: sticky;
    top: calc(var(--app-header-height, 64px) + var(--space-4));
    justify-self: stretch;
    min-height: 40px;
    padding-top: var(--space-3);
  }
}

/* Section blocks below the hostel list (All countries). */
.hp-geo-section__title {
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight, 1.2);
  color: var(--color-text-primary);
  margin: 0;
}

/* static/css/40-pages/guides.css */
/* HostelPunk Guides — "Field Notebook × Terminal" surface.
   Editorial long-read with terminal-style data stamps. Consumes existing
   tokens from 00-tokens.css; adds no new tokens. Scoped to guide pages. */

.hp-guide-page {
  padding-bottom: var(--space-8);
}

.hp-translation-lab {
  display: grid;
  gap: var(--space-4);
}

.hp-translation-row {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: 18px;
  background: var(--color-surface);
}

.hp-translation-row__key {
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  overflow-wrap: anywhere;
}

.hp-translation-row__source,
.hp-translation-row__context,
.hp-translation-row__approved,
.hp-translation-row__candidates {
  display: grid;
  gap: var(--space-2);
}

.hp-translation-row strong {
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
}

.hp-translation-row p,
.hp-translation-row ul {
  margin: 0;
}

.hp-translation-row ul {
  display: grid;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.hp-translation-row code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.hp-translation-candidate {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border-left: 3px solid var(--color-signal-info);
  background: var(--color-surface-muted);
}

@media (min-width: 920px) {
  .hp-translation-row {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: start;
  }
}

/* ─────────────────────────────────────────────────────────────
   1. Hero
   ───────────────────────────────────────────────────────────── */

.hp-guide-hero {
  padding-block: var(--space-5) var(--space-8);
}

.hp-guide-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-guide-hero__kicker-iso,
.hp-guide-hero__kicker-place {
  text-transform: uppercase;
}

.hp-guide-hero__kicker-iso {
  color: var(--color-text-primary);
}

.hp-guide-hero__kicker-sep {
  color: var(--color-signal-positive);
  font-size: 0.85em;
}

.hp-guide-hero__kicker-place {
  color: var(--color-text-primary);
}

.hp-guide-hero__kicker-version {
  margin-left: auto;
  color: var(--color-text-tertiary);
  text-transform: none;
  letter-spacing: 0.04em;
}

.hp-guide-hero__title {
  max-width: 18ch;
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3.5rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
  line-height: 0.98;
}

@media (min-width: 720px) {
  .hp-guide-hero__title {
    max-width: 22ch;
  }
}

.hp-guide-hero__title-mark {
  display: inline-block;
  margin-left: 0.05em;
  color: var(--color-signal-positive);
}

.hp-guide-hero__sig {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--color-text-tertiary);
}

.hp-guide-hero__sig-item {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hp-guide-hero__sig-item--type {
  padding: 4px 10px;
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  font-weight: var(--fw-semibold);
}

.hp-guide-hero__summary {
  max-width: 60ch;
  margin: var(--space-5) 0 0;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.55;
  opacity: 0.78;
}

/* ─────────────────────────────────────────────────────────────
   2. Prose — long-read body
   ───────────────────────────────────────────────────────────── */

.hp-guide-prose {
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
}

.hp-guide-prose > * + * {
  margin-top: var(--space-4);
}

.hp-guide-prose p,
.hp-guide-prose ul,
.hp-guide-prose ol,
.hp-guide-prose blockquote {
  max-width: 680px;
}

.hp-guide-prose h2,
.hp-guide-prose h3 {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.hp-guide-prose h2 {
  position: relative;
  margin-top: calc(var(--space-8) + var(--space-4));
  padding-left: 1.5em;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  letter-spacing: -0.005em;
}

.hp-guide-prose h2::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--color-signal-positive);
  font-size: 0.85em;
  line-height: 1;
}

.hp-guide-prose h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin-top: var(--space-3);
  background: var(--color-text-primary);
  opacity: 0.6;
}

@media (min-width: 1080px) {
  .hp-guide-prose h2 {
    padding-left: 0;
  }
  .hp-guide-prose h2::before {
    left: -1.4em;
  }
}

.hp-guide-prose h3 {
  margin-top: var(--space-8);
  font-size: 1.25rem;
}

.hp-guide-prose h3 > span,
.hp-guide-prose h3 {
  display: inline-block;
}

.hp-guide-prose h3 {
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: var(--space-2);
}

.hp-guide-prose strong {
  color: var(--color-text-primary);
  font-weight: var(--fw-bold);
}

.hp-guide-prose ul,
.hp-guide-prose ol {
  padding-left: 1.4em;
}

.hp-guide-prose ul {
  list-style: none;
  padding-left: 0;
}

.hp-guide-prose ul > li {
  position: relative;
  padding-left: 1.6em;
}

.hp-guide-prose ul > li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-signal-positive);
  font-weight: var(--fw-bold);
}

.hp-guide-prose li + li {
  margin-top: var(--space-2);
}

.hp-guide-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}

.hp-guide-prose th,
.hp-guide-prose td {
  min-width: 12rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-subtle);
  text-align: left;
  vertical-align: top;
}

.hp-guide-prose th {
  background: var(--color-surface-muted);
  font-weight: var(--fw-bold);
}

.hp-guide-prose td:first-child,
.hp-guide-prose th:first-child {
  min-width: 10rem;
}

.hp-guide-prose blockquote {
  margin-inline: 0;
  padding: var(--space-3) var(--space-5);
  border-left: 3px solid var(--color-signal-positive);
  background: transparent;
  color: var(--color-text-primary);
  font-style: italic;
}

.hp-guide-details {
  max-width: 760px;
  margin-block: var(--space-6);
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-signal-danger);
  background: var(--color-surface);
}

.hp-guide-details__summary {
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hp-guide-details__summary:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
}

.hp-guide-details__body {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}

.hp-guide-details__body > * {
  max-width: none;
}

.hp-guide-prose a {
  overflow-wrap: anywhere;
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-signal-positive);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness var(--dur-micro) var(--ease-standard);
}

.hp-guide-prose a:hover {
  text-decoration-thickness: 3px;
  color: var(--color-text-primary);
}

.hp-guide-prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  background: var(--color-surface-muted);
  border-radius: 6px;
}

.hp-guide-prose pre {
  font-family: var(--font-mono);
  padding: var(--space-4);
  background: var(--color-surface-muted);
  border-radius: var(--radius-control);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
}

.hp-guide-prose pre code {
  padding: 0;
  background: transparent;
}

/* ─────────────────────────────────────────────────────────────
   2b. Inline hostel photo strips
   ───────────────────────────────────────────────────────────── */

.hp-guide-photo-strip {
  max-width: 680px;
  margin-block: var(--space-4) var(--space-6);
  padding-block: var(--space-3);
  border-block: 1px solid var(--color-border-subtle);
}

.hp-guide-photo-strip__label {
  margin: 0 0 var(--space-3);
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hp-guide-photo-strip__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 42vw);
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.hp-guide-photo-card {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  color: var(--color-text-primary);
  text-decoration: none;
  scroll-snap-align: start;
}

.hp-guide-prose .hp-guide-photo-card {
  text-decoration: none;
}

.hp-guide-photo-card__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  background: var(--color-surface-muted);
}

.hp-guide-photo-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-micro) var(--ease-standard);
}

.hp-guide-photo-card:hover .hp-guide-photo-card__frame img {
  transform: scale(1.035);
}

.hp-guide-photo-card__fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--color-text-tertiary);
}

.hp-guide-photo-card__frame--no-img .hp-guide-photo-card__fallback {
  display: grid;
}

.hp-guide-photo-card__name,
.hp-guide-photo-card__place {
  display: block;
  overflow-wrap: anywhere;
}

.hp-guide-photo-card__name {
  color: var(--color-text-primary);
  font-size: 0.84rem;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
}

.hp-guide-photo-card:hover .hp-guide-photo-card__name {
  text-decoration: underline;
  text-decoration-color: var(--color-signal-positive);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hp-guide-photo-card__place {
  color: var(--color-text-secondary);
  font-size: var(--fs-tiny);
  line-height: 1.25;
}

@media (min-width: 680px) {
  .hp-guide-photo-strip__rail {
    grid-auto-columns: minmax(128px, 148px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-guide-photo-card__frame img {
    transition: none;
  }

  .hp-guide-photo-card:hover .hp-guide-photo-card__frame img {
    transform: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   3. Live Panel — embedded ranking widget
   ───────────────────────────────────────────────────────────── */

.hp-live-panel {
  margin-block: var(--space-8);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.hp-live-panel__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-subtle);
}

.hp-live-panel__pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-signal-positive);
  flex-shrink: 0;
}

.hp-live-panel__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-signal-positive);
  opacity: 0.5;
  animation: hp-pulse 1.6s ease-out infinite;
}

@keyframes hp-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%  { transform: scale(2.5); opacity: 0;    }
  100% { transform: scale(2.5); opacity: 0;    }
}

@media (prefers-reduced-motion: reduce) {
  .hp-live-panel__pulse::after {
    animation: none;
    opacity: 0;
  }
}

.hp-live-panel__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  color: var(--color-signal-positive);
  text-transform: uppercase;
}

.hp-live-panel__sep {
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
}

.hp-live-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-card-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
}

.hp-live-panel__meta {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  color: var(--color-text-secondary);
}

.hp-live-panel__body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hp-live-panel__body .c-property-card {
  box-shadow: 0 2px 8px rgba(29, 38, 47, 0.06);
}

[data-theme="dark"] .hp-live-panel__body .c-property-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.hp-live-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--fs-meta);
}

.hp-live-panel__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-decoration-color: var(--color-signal-positive);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hp-live-panel__cta svg {
  transition: transform var(--dur-micro) var(--ease-standard);
}

.hp-live-panel__cta:hover svg {
  transform: translateX(2px);
}

.hp-live-panel__methodology {
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
}

.hp-live-panel__methodology:hover {
  color: var(--color-text-primary);
}

/* Neutralize .hp-guide-prose bleed inside the embedded live widget so the
   panel header keeps its strip layout and property cards keep their normal
   link styling (no green prose underline, no diamond marker, no h2 rule). */
.hp-guide-prose .hp-live-panel__title {
  position: static;
  margin: 0;
  padding: 0;
  font-size: var(--fs-card-lg);
  letter-spacing: -0.005em;
}
.hp-guide-prose .hp-live-panel__title::before,
.hp-guide-prose .hp-live-panel__title::after {
  content: none;
  display: none;
}
.hp-guide-prose .hp-live-panel a {
  text-decoration: none;
}
.hp-guide-prose .hp-live-panel .c-property-card__name a:hover,
.hp-guide-prose .hp-live-panel .c-property-card__name a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
}
.hp-guide-prose .hp-live-panel__cta {
  text-decoration: underline;
  text-decoration-color: var(--color-signal-positive);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ─────────────────────────────────────────────────────────────
   4. Inline city link — coordinates stamp
   ───────────────────────────────────────────────────────────── */

.hp-guide-link-row {
  margin-block: var(--space-5);
}

.hp-guide-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  color: var(--color-text-primary);
  text-decoration: none;
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-signal-positive);
  border-radius: 0;
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color var(--dur-micro) var(--ease-standard),
              transform var(--dur-micro) var(--ease-standard);
}

.hp-guide-chip:hover {
  border-color: var(--color-border-strong);
  border-left-color: var(--color-signal-positive);
  transform: translateY(-1px);
}

.hp-guide-chip svg {
  color: var(--color-signal-positive);
}

/* ─────────────────────────────────────────────────────────────
   4b. Funnel blocks — fact chip, social/shield accents, next move
   ───────────────────────────────────────────────────────────── */

.hp-guide-fact-chip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-block: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--color-border-subtle);
  border-left: 3px solid var(--color-signal-positive);
  background: color-mix(in srgb, var(--color-signal-positive) 6%, transparent);
}

.hp-guide-fact-chip__icon {
  flex: none;
  margin-top: 2px;
  color: var(--color-signal-positive);
}

.hp-guide-fact-chip__text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  line-height: 1.5;
  color: var(--color-text-primary);
}

.hp-guide-fact-chip__link {
  color: var(--color-signal-positive);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp-live-panel--social .hp-live-panel__pulse {
  color: var(--color-signal-positive);
}

.hp-live-panel--shield .hp-live-panel__pulse {
  color: var(--color-signal-info, var(--color-signal-positive));
}

.hp-guide-next-move {
  margin-block: var(--space-8);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
}

.hp-guide-next-move .hp-guide-module__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.hp-guide-next-move__doors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
}

.hp-guide-next-move__primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  background: color-mix(in oklab, var(--color-signal-positive) 24%, var(--color-surface));
  border: 1px solid var(--color-signal-positive);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-standard),
              filter var(--dur-micro) var(--ease-standard);
}

.hp-guide-next-move__primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.hp-guide-next-move__alt {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 4px;
}

.hp-guide-next-move__alt:hover {
  color: var(--color-text-primary);
}

.hp-guide-next-move__cards.hp-list {
  display: grid;
  gap: var(--space-3);
}

/* ─────────────────────────────────────────────────────────────
   5. Route stops — stepper
   ───────────────────────────────────────────────────────────── */

.hp-guide-module--route {
  margin-block: var(--space-8);
  padding-block: var(--space-5);
}

.hp-guide-module--route .hp-guide-module__title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  line-height: var(--lh-tight);
}

.hp-guide-route {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hp-stop;
}

.hp-guide-route__stop {
  position: relative;
  counter-increment: hp-stop;
}

.hp-guide-route__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.hp-guide-route__node::before {
  content: counter(hp-stop);
}

.hp-guide-route__stop:last-child .hp-guide-route__node {
  background: var(--color-signal-positive);
  border-color: var(--color-signal-positive);
  color: var(--color-text-inverse);
}

.hp-guide-route__label {
  font-family: var(--font-display);
  font-size: var(--fs-card);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  text-decoration: none;
}

a.hp-guide-route__label:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-signal-positive);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Mobile (default) — vertical stepper with left connector */
.hp-guide-route__stop {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.hp-guide-route__stop:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: calc(28px + var(--space-2));
  width: 1px;
  height: calc(100% - 28px);
  background: var(--color-border-subtle);
}

@media (min-width: 640px) {
  .hp-guide-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }

  .hp-guide-route__stop {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: var(--space-2);
    padding-block: 0;
    min-width: 0;
  }

  .hp-guide-route__stop:not(:last-child)::after {
    content: "";
    position: static;
    flex: 1 1 24px;
    min-width: 24px;
    height: 1px;
    width: auto;
    background: var(--color-border-subtle);
    margin-inline: var(--space-2);
  }
}

/* ─────────────────────────────────────────────────────────────
   6. Related-guide teasers — card grid
   ───────────────────────────────────────────────────────────── */

.hp-guide-module--related {
  margin-block: var(--space-8);
}

.hp-guide-module--related > .hp-guide-module__title {
  position: relative;
  margin: 0 0 var(--space-5);
  padding-left: 1.5em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  line-height: var(--lh-tight);
}

.hp-guide-module--related > .hp-guide-module__title::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--color-signal-positive);
  font-size: 0.85em;
}

.hp-guide-teasers {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .hp-guide-teasers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hp-guide-teasers--tape {
  align-items: start;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  scrollbar-width: none;
}

.hp-guide-teasers--tape::-webkit-scrollbar {
  display: none;
}

.hp-guide-teaser {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  padding-bottom: calc(var(--space-4) + 20px);
  color: var(--color-text-primary);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  transition: border-color var(--dur-micro) var(--ease-standard),
              transform var(--dur-micro) var(--ease-standard);
}

.hp-guide-teaser:hover {
  border-color: var(--color-text-primary);
  transform: translateY(-1px);
}

.hp-guide-teaser--warning {
  border-color: color-mix(in srgb, var(--color-signal-danger) 34%, var(--color-border-subtle));
}

.hp-guide-teaser--warning:hover {
  border-color: var(--color-signal-danger);
}

.hp-guide-teaser__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-surface-muted);
  color: var(--color-signal-positive);
  flex-shrink: 0;
}

.hp-guide-teaser--warning .hp-guide-teaser__icon {
  background: color-mix(in srgb, var(--color-signal-danger) 12%, var(--color-surface-muted));
  color: var(--color-signal-danger);
}

.hp-guide-teaser__body {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.hp-guide-teaser__kicker {
  color: var(--color-signal-positive);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-guide-teaser--warning .hp-guide-teaser__kicker {
  color: var(--color-signal-danger);
}

.hp-guide-teaser__date {
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-medium);
}

.hp-guide-teaser__title {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-card-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
}

.hp-guide-teaser__summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-primary);
  opacity: 0.7;
  font-size: var(--fs-meta);
  line-height: var(--lh-body);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hp-guide-teaser__arrow {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: inline-flex;
  color: var(--color-text-tertiary);
  transition: transform var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard);
}

.hp-guide-teaser:hover .hp-guide-teaser__arrow {
  transform: translateX(2px);
  color: var(--color-signal-positive);
}

.hp-guide-teaser--warning:hover .hp-guide-teaser__arrow {
  color: var(--color-signal-danger);
}

.hp-guide-teaser:hover .hp-guide-teaser__title {
  text-decoration: underline;
  text-decoration-color: var(--color-signal-positive);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hp-guide-teaser--warning:hover .hp-guide-teaser__title {
  text-decoration-color: var(--color-signal-danger);
}

.hp-guide-teasers--tape .hp-guide-teaser {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: color-mix(in srgb, var(--color-surface) 82%, var(--color-surface-muted));
}

.hp-guide-teasers--tape .hp-guide-teaser:hover {
  transform: none;
}

.hp-guide-teasers--tape .hp-guide-teaser__icon {
  width: 22px;
  height: 22px;
}

.hp-guide-teasers--tape .hp-guide-teaser__body {
  gap: 2px;
}

.hp-guide-teasers--tape .hp-guide-teaser__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--fs-meta);
  line-height: var(--lh-snug);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hp-guide-teasers--tape .hp-guide-teaser__summary {
  display: none;
}

.hp-guide-teasers--tape .hp-guide-teaser__arrow {
  position: static;
  align-self: center;
}

.hp-guide-teaser-group {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  transition: border-color var(--dur-micro) var(--ease-standard);
}

.hp-guide-teaser-group[open],
.hp-guide-teaser-group:hover {
  border-color: var(--color-text-primary);
}

.hp-guide-teasers--tape .hp-guide-teaser-group {
  grid-column: auto;
  min-width: 0;
  background: color-mix(in srgb, var(--color-surface) 82%, var(--color-surface-muted));
}

.hp-guide-teaser-group__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  min-height: 88px;
  padding: var(--space-4);
  cursor: pointer;
  list-style: none;
}

.hp-guide-teasers--tape .hp-guide-teaser-group__summary {
  min-height: 64px;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
}

.hp-guide-teaser-group__summary::-webkit-details-marker {
  display: none;
}

.hp-guide-teaser-group__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-muted);
  color: var(--color-signal-info);
}

.hp-guide-teaser-group__body {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.hp-guide-teasers--tape .hp-guide-teaser-group__body {
  gap: 2px;
}

.hp-guide-teaser-group__kicker,
.hp-guide-teaser-group__item-kicker,
.hp-guide-teaser-group__count {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-guide-teaser-group__kicker,
.hp-guide-teaser-group__item-kicker {
  color: var(--color-signal-info);
}

.hp-guide-teaser-group__title {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-card-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

.hp-guide-teasers--tape .hp-guide-teaser-group__title {
  overflow: hidden;
  font-size: var(--fs-meta);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-guide-teaser-group__summary-text,
.hp-guide-teaser-group__item-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-primary);
  opacity: 0.72;
  font-size: var(--fs-meta);
  line-height: var(--lh-body);
  -webkit-box-orient: vertical;
}

.hp-guide-teaser-group__summary-text {
  -webkit-line-clamp: 2;
}

.hp-guide-teasers--tape .hp-guide-teaser-group__summary-text {
  display: none;
}

.hp-guide-teasers--tape .hp-guide-teaser-group[open] .hp-guide-teaser-group__summary-text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
}

.hp-guide-teaser-group__item-summary {
  -webkit-line-clamp: 1;
}

.hp-guide-teaser-group__preview {
  display: none;
}

.hp-guide-teasers--tape .hp-guide-teaser-group__preview {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
  mask-image: linear-gradient(90deg, #000 82%, transparent);
}

.hp-guide-teasers--tape .hp-guide-teaser-group[open] .hp-guide-teaser-group__preview {
  display: none;
}

.hp-guide-teaser-group__preview-chip {
  flex: 0 0 auto;
  max-width: 12rem;
  overflow: hidden;
  padding: 2px 8px;
  color: var(--color-text-secondary);
  font-size: var(--fs-tiny);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: color-mix(in srgb, var(--color-signal-info) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-signal-info) 28%, transparent);
  border-radius: 999px;
}

.hp-guide-teaser-group__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
}

.hp-guide-teaser-group__chevron,
.hp-guide-teaser-group__item-arrow {
  display: inline-flex;
  color: var(--color-text-tertiary);
  transition: transform var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard);
}

.hp-guide-teaser-group[open] .hp-guide-teaser-group__chevron {
  transform: rotate(90deg);
  color: var(--color-signal-info);
}

.hp-guide-teaser-group__items {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
  background: color-mix(in srgb, var(--color-surface-muted) 36%, transparent);
}

.hp-guide-teasers--tape.is-enhanced .hp-guide-teaser-group__items {
  overflow: hidden;
  will-change: height;
  transition: height var(--dur-panel) var(--ease-standard);
}

.hp-guide-teasers--tape .hp-guide-teaser-group__items {
  padding: var(--space-2);
}

@media (min-width: 700px) {
  .hp-guide-teaser-group__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-guide-teasers--tape .hp-guide-teaser-group__items {
    grid-template-columns: 1fr;
  }
}

.hp-guide-teaser-group__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  min-height: 72px;
  padding: var(--space-3);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: calc(var(--radius-control) - 4px);
  transition: background-color var(--dur-micro) var(--ease-standard);
}

.hp-guide-teasers--tape .hp-guide-teaser-group__item {
  min-height: 56px;
  padding: var(--space-2);
}

.hp-guide-teaser-group__item:hover {
  background: var(--color-surface);
}

.hp-guide-teaser-group__item:hover .hp-guide-teaser-group__item-title {
  text-decoration: underline;
  text-decoration-color: var(--color-signal-info);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hp-guide-teaser-group__item:hover .hp-guide-teaser-group__item-arrow {
  color: var(--color-signal-info);
  transform: translateX(2px);
}

.hp-guide-teaser-group__item-body {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.hp-guide-teaser-group__item-title {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-card);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

/* ─────────────────────────────────────────────────────────────
   Airport walk field reports
   ───────────────────────────────────────────────────────────── */

.hp-airport-walk {
  max-width: 760px;
  margin-block: var(--space-6);
}

.hp-airport-walk__details {
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-signal-info);
  background: var(--color-surface);
}

.hp-airport-walk__summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  padding: var(--space-4) calc(var(--space-6) + var(--space-3)) var(--space-4) var(--space-4);
  cursor: pointer;
  list-style: none;
}

.hp-airport-walk__summary::-webkit-details-marker {
  display: none;
}

.hp-airport-walk__summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: var(--space-4);
  color: var(--color-signal-info);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  transform: translateY(-50%);
}

.hp-airport-walk__details[open] .hp-airport-walk__summary::after {
  content: "−";
}

.hp-airport-walk__signal,
.hp-airport-walk__airport {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hp-airport-walk__signal {
  grid-column: 1;
  color: var(--color-text-secondary);
  font-weight: var(--fw-bold);
}

.hp-airport-walk__summary-copy {
  grid-column: 1;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

.hp-airport-walk__airport {
  grid-column: 1;
  color: var(--color-text-secondary);
  letter-spacing: 0;
  text-transform: none;
}

.hp-airport-walk__body {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.hp-guide-prose .hp-airport-walk__intro,
.hp-guide-prose .hp-airport-walk__privacy,
.hp-guide-prose .hp-airport-walk__thanks {
  max-width: none;
}

.hp-airport-walk__intro,
.hp-airport-walk__privacy {
  color: var(--color-text-secondary);
}

.hp-airport-walk__intro {
  font-size: 0.96rem;
  line-height: 1.6;
}

.hp-airport-walk__form {
  display: grid;
  gap: var(--space-4);
}

.hp-airport-walk__field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  color: var(--color-text-primary);
  font-size: 0.92rem;
  font-weight: var(--fw-semibold);
}

.hp-airport-walk__field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-weight: var(--fw-normal);
}

.hp-airport-walk__field textarea {
  min-height: 7rem;
  resize: vertical;
}

.hp-airport-walk__field textarea:focus-visible,
.hp-airport-walk__summary:focus-visible {
  outline: 2px solid var(--color-signal-info);
  outline-offset: 2px;
}

.hp-airport-walk__privacy {
  font-size: var(--fs-meta);
  line-height: 1.55;
}

.hp-airport-walk__thanks {
  padding: var(--space-3);
  border-left: 3px solid var(--color-signal-positive);
  background: var(--color-surface-muted);
}

.hp-airport-walk__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   7. Focus + misc
   ───────────────────────────────────────────────────────────── */

.hp-guide-inline-muted {
  color: var(--color-text-secondary);
}

.hp-guide-teaser:focus-visible,
.hp-guide-teaser-group__summary:focus-visible,
.hp-guide-teaser-group__item:focus-visible,
.hp-guide-chip:focus-visible,
.hp-guide-prose a:focus-visible,
.hp-live-panel__cta:focus-visible,
.hp-live-panel__methodology:focus-visible,
.hp-guide-route__label:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 3px;
  border-radius: var(--radius-control);
}

@media (max-width: 640px) {
  .hp-airport-walk__summary {
    padding-inline: var(--space-3) calc(var(--space-6) + var(--space-2));
  }

  .hp-airport-walk__body {
    padding: var(--space-3);
  }

  .hp-airport-walk__form .c-button {
    width: 100%;
  }

  .hp-guide-hero {
    padding-bottom: var(--space-6);
  }

  .hp-live-panel__strip,
  .hp-live-panel__foot {
    padding-inline: var(--space-4);
  }

  .hp-live-panel__body {
    padding-inline: var(--space-3);
  }

  .hp-live-panel__meta {
    margin-left: 0;
    flex-basis: 100%;
  }

  .hp-guide-teaser {
    grid-template-columns: 1fr;
  }

  .hp-guide-teaser-group__summary {
    grid-template-columns: 1fr;
  }

  .hp-guide-teaser-group__icon {
    display: none;
  }

  .hp-guide-teaser-group__meta {
    justify-content: space-between;
  }

  .hp-guide-teaser__icon {
    display: none;
  }
}

@media (max-width: 640px) {
  .hp-guide-teasers--tape {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .hp-guide-teasers--tape > .hp-guide-teaser,
  .hp-guide-teasers--tape > .hp-guide-teaser-group {
    flex: 0 0 min(86vw, 336px);
    scroll-snap-align: start;
  }

  .hp-guide-teasers--tape .hp-guide-teaser,
  .hp-guide-teasers--tape .hp-guide-teaser-group__summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .hp-guide-teasers--tape .hp-guide-teaser__icon,
  .hp-guide-teasers--tape .hp-guide-teaser-group__icon {
    display: inline-flex;
  }

  .hp-guide-teasers--tape .hp-guide-teaser-group__meta {
    justify-content: flex-end;
  }
}

/* static/css/40-pages/hostel.css */
.hp-hostel {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-block: var(--space-5);
}

/* HERO — full-bleed image with a dark-glass info overlay.
   Mobile: overlay anchored to the bottom (image up top, info below).
   Desktop: cinema poster (image full-bleed, info on the right with edge fade). */
.hp-hostel__hero {
  --hp-hero-dark: #0b0e14;
  --hp-hostel-warning-height: 0px;
  --hp-hero-glass-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --hp-hero-glass-bottom: var(--hp-hero-glass-noise),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px),
    color-mix(in oklab, var(--hp-hero-dark) 22%, transparent);
  --hp-hero-glass-right: var(--hp-hero-glass-noise),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 6px),
    linear-gradient(
      to right,
      transparent 0%,
      color-mix(in oklab, var(--hp-hero-dark) 18%, transparent) 42%,
      color-mix(in oklab, var(--hp-hero-dark) 36%, transparent) 65%,
      color-mix(in oklab, var(--hp-hero-dark) 52%, transparent) 100%
    );
  --color-text-primary: rgb(244, 246, 250);
  --color-text-secondary: rgba(244, 246, 250, 0.78);
  --color-text-tertiary: rgba(244, 246, 250, 0.55);
  --color-border-subtle: rgba(255, 255, 255, 0.18);

  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--hp-hero-dark);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .hp-hostel__hero {
    aspect-ratio: 16 / 8;
  }
}
@media (min-width: 1024px) {
  .hp-hostel__hero {
    aspect-ratio: 16 / 7;
  }
}

.hp-hostel__hero-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--hp-hero-dark);
  z-index: 0;
}
.hp-hostel__hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hp-hostel__hero-media img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  display: block;
  transform: translateY(-23%);
  transform-origin: center top;
}
@media (min-width: 768px) {
  .hp-hostel__hero-media img {
    height: 100%;
    transform: none;
  }
}
.hp-hostel__hero-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  opacity: 0;
}
.hp-hostel__hero-media--no-img .hp-hostel__hero-media-fallback { opacity: 1; }

.hp-hostel__hero-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-5) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  max-height: 100%;
  background: var(--hp-hero-glass-bottom);
  backdrop-filter: blur(3px) saturate(120%);
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -16px 36px -18px rgba(0, 0, 0, 0.4);
  color: var(--color-text-primary);
}

/* Trim heavy elements out of the mobile hero — they live in dedicated
   sections below, or aren't useful in the overlay. */
@media (max-width: 767.98px) {
  .hp-hostel__hero .c-lang-stack {
    display: none;
  }
  .hp-hostel__rank-labels {
    gap: var(--space-1);
  }
  .hp-hostel__rank-labels .c-rank-label {
    font-size: var(--fs-tiny);
  }
}

@media (min-width: 768px) {
  .hp-hostel__hero-info {
    /* Cinema poster: info spans the hero, the stained-glass panel sits on
       the right via ::before. The element itself is transparent so the
       text floats above the glass. */
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    padding: var(--space-6) var(--space-8) var(--space-6) 50%;
    gap: var(--space-4);
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    box-shadow: none;
  }
  .hp-hostel__hero-info::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hp-hero-glass-right);
    backdrop-filter: blur(2px) saturate(125%);
    -webkit-backdrop-filter: blur(2px) saturate(125%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 42%, black 62%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 42%, black 62%, black 100%);
  }
  /* Mobile-only trim doesn't apply — show the language stack here. */
  .hp-hostel__hero .c-lang-stack {
    display: revert;
  }
}
@media (min-width: 1024px) {
  .hp-hostel__hero-info {
    padding-left: 48%;
  }
}

.hp-hostel__eyebrow {
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.hp-hostel__eyebrow a {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.hp-hostel__eyebrow a:hover { color: var(--color-text-primary); }

.hp-hostel__serp-summary {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hp-hostel__title-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-start;
  justify-content: space-between;
}

.hp-hostel__name {
  font-size: var(--fs-page);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  position: relative;
  isolation: isolate;
}
.hp-hostel__hero .hp-hostel__name::before {
  content: "";
  position: absolute;
  inset: -0.7em -1.3em;
  z-index: -1;
  background: radial-gradient(
    ellipse at var(--hp-title-halo-x) 55%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 0.94)) 0%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 0.62)) 28%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 0.25)) 58%,
    transparent 100%
  );
  filter: blur(var(--hp-halo-blur));
  pointer-events: none;
}

.hp-hostel__hero-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hp-hostel__rank-labels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.hp-hostel__hero:has(> .c-detected-warnings--count-1) {
  --hp-hostel-warning-height: 96px;
}

.hp-hostel__hero:has(> .c-detected-warnings--count-2) {
  --hp-hostel-warning-height: 96px;
}

.hp-hostel__hero:has(> .c-detected-warnings--count-3) {
  --hp-hostel-warning-height: 96px;
}

.hp-hostel__hero:has(> .c-detected-warnings) .hp-hostel__hero-info {
  bottom: 0;
  max-height: 100%;
  padding-bottom: calc(var(--space-4) + var(--hp-hostel-warning-height));
}

@media (min-width: 768px) {
  .hp-hostel__hero:has(> .c-detected-warnings) {
    aspect-ratio: 16 / 10;
    min-height: 540px;
  }

  .hp-hostel__hero:has(> .c-detected-warnings) .hp-hostel__hero-info {
    justify-content: safe center;
    padding-top: var(--space-8);
    padding-bottom: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .hp-hostel__hero:has(> .c-detected-warnings) {
    aspect-ratio: 16 / 8.5;
    min-height: 540px;
  }
}

.hp-hostel__hero > .c-detected-warnings {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  border-top: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hp-hostel__hero > .c-detected-warnings .c-bedbug-pill,
.hp-hostel__hero > .c-detected-warnings .c-sus-pill,
.hp-hostel__hero > .c-detected-warnings .c-safety-pill {
  min-height: 80px;
}

/* Detail pages keep both warnings in one bottom bar on phones. The list card
   can stack them, but the hostel hero needs the warning tray visible without
   pushing the second warning below the first viewport. */
.hp-hostel__hero > .c-detected-warnings--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-hostel__hero > .c-detected-warnings--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767.98px) {
  .hp-hostel__hero:has(> .c-detected-warnings) {
    aspect-ratio: 1 / 1;
  }

  .hp-hostel__hero:has(> .c-detected-warnings--count-2) {
    --hp-hostel-warning-height: 180px;
  }

  .hp-hostel__hero:has(> .c-detected-warnings--count-3) {
    --hp-hostel-warning-height: 270px;
    aspect-ratio: 3 / 4;
  }

  .hp-hostel__hero > .c-detected-warnings--count-2,
  .hp-hostel__hero > .c-detected-warnings--count-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
  }

  .hp-hostel__hero > .c-detected-warnings--count-2 .c-bedbug-pill,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-sus-pill,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-safety-pill,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-bedbug-pill,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-sus-pill,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-safety-pill {
    padding-right: var(--space-2);
  }

  .hp-hostel__hero > .c-detected-warnings--count-2 .c-bedbug-pill__line1,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-sus-pill__line1,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-safety-pill__line1,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-bedbug-pill__line1,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-sus-pill__line1,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-safety-pill__line1 {
    gap: var(--space-1);
  }

  .hp-hostel__hero > .c-detected-warnings--count-2 .c-bedbug-pill__label,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-sus-pill__label,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-safety-pill__label,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-bedbug-pill__label,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-sus-pill__label,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-safety-pill__label {
    font-size: var(--fs-body);
  }

  .hp-hostel__hero > .c-detected-warnings--count-2 .c-bedbug-pill__count,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-sus-pill__count,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-safety-pill__count,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-bedbug-pill__count,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-sus-pill__count,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-safety-pill__count {
    min-width: 0;
    font-size: var(--fs-meta);
    line-height: var(--lh-snug);
    overflow-wrap: anywhere;
  }

  .hp-hostel__hero > .c-detected-warnings--count-2 .c-bedbug-pill__chevron,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-sus-pill__chevron,
  .hp-hostel__hero > .c-detected-warnings--count-2 .c-safety-pill__chevron,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-bedbug-pill__chevron,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-sus-pill__chevron,
  .hp-hostel__hero > .c-detected-warnings--count-3 .c-safety-pill__chevron {
    display: inline-flex;
  }
}

/* SECTIONS */
.hp-hostel__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.hp-hostel__section-title {
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.hp-hostel__editorial-note {
  --hp-editorial-accent: var(--color-signal-positive);
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid color-mix(in oklab, var(--hp-editorial-accent) 42%, var(--color-border-subtle));
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--hp-editorial-accent) 12%, transparent), transparent 44%),
    var(--color-surface);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--hp-editorial-accent) 28%, transparent);
}

.hp-hostel__editorial-note--positive { --hp-editorial-accent: var(--color-signal-positive); }
.hp-hostel__editorial-note--info { --hp-editorial-accent: var(--color-signal-info); }
.hp-hostel__editorial-note--goated { --hp-editorial-accent: var(--color-tier-goated); }
.hp-hostel__editorial-note--amazing { --hp-editorial-accent: var(--color-tier-amazing); }
.hp-hostel__editorial-note--good { --hp-editorial-accent: var(--color-tier-good); }
.hp-hostel__editorial-note--sus { --hp-editorial-accent: var(--color-signal-sus); }
.hp-hostel__editorial-note--meh { --hp-editorial-accent: var(--color-tier-meh); }
.hp-hostel__editorial-note--graphite { --hp-editorial-accent: var(--color-text-secondary); }

.hp-hostel__editorial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hp-hostel__editorial-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hp-hostel__editorial-title::before {
  content: "";
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: var(--hp-editorial-accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--hp-editorial-accent) 18%, transparent);
}

.hp-hostel__editorial-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.32em 0.72em;
  border: 1px solid color-mix(in oklab, var(--hp-editorial-accent) 72%, var(--color-border-subtle));
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--hp-editorial-accent) 18%, var(--color-surface));
  color: color-mix(in oklab, var(--hp-editorial-accent) 72%, var(--color-text-primary));
  font-family: var(--font-display);
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.hp-hostel__editorial-body {
  margin: 0;
  max-width: 72ch;
  color: var(--color-text-primary);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  line-height: 1.5;
  white-space: pre-line;
}

.hp-hostel__vibe-analysis {
  --hp-vibe-accent: color-mix(in oklab, var(--color-signal-positive) 58%, var(--color-signal-info));
  --hp-vibe-rule: color-mix(in oklab, var(--hp-vibe-accent) 34%, var(--color-border-subtle));
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-block: 1px solid var(--hp-vibe-rule);
}

.hp-hostel__booking-classification {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid color-mix(in oklab, var(--color-signal-info) 58%, var(--color-border-subtle));
  border-radius: var(--radius-control);
  background: color-mix(in oklab, var(--color-surface) 84%, var(--color-signal-info) 16%);
}

.hp-hostel__booking-classification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  background: color-mix(in oklab, var(--color-signal-info) 34%, var(--color-surface));
}

.hp-hostel__booking-classification-title {
  margin: 0 0 var(--space-1);
  color: var(--color-text-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

.hp-hostel__booking-classification-body {
  margin: 0;
  max-width: 76ch;
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
  line-height: var(--lh-normal);
}

.hp-hostel__vibe-analysis-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.hp-hostel__vibe-analysis-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hp-hostel__vibe-analysis-title::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--hp-vibe-accent) 0 36%, transparent 39%),
    conic-gradient(from 90deg, transparent 0 24%, var(--hp-vibe-accent) 24% 36%, transparent 36% 64%, var(--hp-vibe-accent) 64% 76%, transparent 76%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--hp-vibe-accent) 44%, transparent);
}

.hp-hostel__vibe-summary {
  margin: 0;
  max-width: 72ch;
  color: var(--color-text-primary);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  line-height: 1.45;
}

.hp-hostel__vibe-caveats {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hp-hostel__vibe-caveats-title {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hp-hostel__vibe-caveat-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid color-mix(in oklab, var(--hp-vibe-rule) 68%, transparent);
}

.hp-hostel__vibe-caveat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3) 0 var(--space-3) var(--space-3);
  border-bottom: 1px solid color-mix(in oklab, var(--hp-vibe-rule) 68%, transparent);
  box-shadow: inset 2px 0 0 color-mix(in oklab, var(--hp-vibe-accent) 68%, var(--color-border-subtle));
}

.hp-hostel__vibe-caveat-text {
  color: var(--color-text-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
}

.hp-hostel__vibe-caveat-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-1);
  min-width: 13rem;
}

.hp-hostel__vibe-caveat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px var(--space-2);
  border: 1px solid color-mix(in oklab, var(--hp-vibe-rule) 78%, transparent);
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  background: color-mix(in oklab, var(--color-surface) 82%, var(--hp-vibe-accent) 18%);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .hp-hostel__vibe-analysis {
    animation: hp-vibe-analysis-enter var(--dur-panel) var(--ease-standard) both;
  }

  .hp-hostel__vibe-caveat {
    transition:
      background-color var(--dur-micro) var(--ease-standard),
      box-shadow var(--dur-micro) var(--ease-standard),
      transform var(--dur-micro) var(--ease-standard);
  }

  .hp-hostel__vibe-caveat:hover {
    background: color-mix(in oklab, var(--color-surface) 88%, var(--hp-vibe-accent) 12%);
    box-shadow: inset 3px 0 0 var(--hp-vibe-accent);
    transform: translateX(2px);
  }
}

@keyframes hp-vibe-analysis-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hp-hostel__vibe-analysis {
    gap: var(--space-4);
  }

  .hp-hostel__vibe-caveat {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .hp-hostel__vibe-caveat-meta {
    justify-content: flex-start;
    min-width: 0;
  }
}

/* Inline bed bug evidence on /bedbugs. The normal hostel hero stays primary;
   this section behaves like an expanded evidence drawer in the page flow. */
.hp-hostel__bedbug-evidence {
  margin-top: calc(-1 * var(--space-2));
}

.hp-hostel__bedbug-details {
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--color-signal-danger) 36%, var(--color-border-subtle));
  border-radius: var(--radius-card);
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--color-signal-danger) 10%, transparent), transparent 32%),
    var(--color-surface);
  box-shadow: var(--shadow-card);
}

.hp-hostel__bedbug-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  cursor: pointer;
  color: var(--color-text-primary);
  list-style: none;
}

.hp-hostel__bedbug-summary::-webkit-details-marker {
  display: none;
}

.hp-hostel__bedbug-summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-micro) var(--ease-standard);
}

.hp-hostel__bedbug-details[open] .hp-hostel__bedbug-summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.hp-hostel__bedbug-summary-main {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  font-weight: var(--fw-bold);
}

.hp-hostel__bedbug-summary-icon {
  display: inline-flex;
  color: var(--color-signal-danger);
}

.hp-hostel__bedbug-summary-title {
  overflow-wrap: anywhere;
}

.hp-hostel__bedbug-summary-meta {
  margin-left: auto;
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  text-align: right;
}

.hp-hostel__bedbug-evidence-body {
  padding: 0 var(--space-4) var(--space-4);
}

.hp-hostel__bedbug-evidence-body .c-incident-log__list {
  margin-top: 0;
}

/* Dense safety dossier lives inside the same bedbug-evidence drawer — tighten padding */
.hp-hostel__bedbug-evidence-body .c-safety-dossier {
  margin-top: var(--space-2);
}

.hp-hostel__safety-evidence .hp-hostel__bedbug-evidence-body {
  padding-top: var(--space-2);
}

@media (max-width: 639.98px) {
  .hp-hostel__bedbug-summary {
    align-items: flex-start;
    flex-direction: column;
    position: relative;
    padding-right: var(--space-8);
  }

  .hp-hostel__bedbug-summary::after {
    position: absolute;
    top: var(--space-5);
    right: var(--space-4);
  }

  .hp-hostel__bedbug-summary-meta {
    margin-left: 0;
    text-align: left;
  }
}

/* Booking bar — "Book here:" CTA row */
.hp-hostel__booking-primary {
  margin-top: calc(-1 * var(--space-2));
}
.hp-hostel__book-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.hp-hostel__book-lead {
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  margin-right: var(--space-1);
}
.ext-link-pill__price {
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  padding-left: var(--space-2);
  margin-left: var(--space-1);
  border-left: 1px solid var(--color-border-subtle);
}

.hp-hostel__howo-booking {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  transition: border-color var(--dur-micro) var(--ease-standard);
}
.hp-hostel__howo-booking:is(:hover, :focus-within) {
  border-color: var(--color-border-strong);
}
.hp-hostel__howo-booking .ext-link-pill {
  flex-wrap: wrap;
  min-width: 0;
  min-height: var(--tap);
  height: auto;
  border: 0;
  background: transparent;
  border-radius: inherit;
}
.hp-hostel__commission {
  flex: 0 0 auto;
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
  font-variant-numeric: tabular-nums;
}
.hp-hostel__commission summary {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: var(--tap);
  height: 100%;
  padding: 0 var(--space-3) 0 var(--space-2);
  cursor: pointer;
  list-style: none;
}
.hp-hostel__commission summary::before {
  content: "";
  position: absolute;
  inset-block: var(--space-2);
  left: 0;
  border-left: 1px solid var(--color-border-subtle);
}
.hp-hostel__commission-rate {
  color: var(--color-text-primary);
  font-size: 17px;
  font-weight: var(--fw-semibold);
  line-height: 1.1;
}
.hp-hostel__commission-label {
  font-size: 11px;
  line-height: 1.3;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.hp-hostel__commission summary::-webkit-details-marker { display: none; }
.hp-hostel__commission summary:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
  border-radius: var(--radius-control);
}
.hp-hostel__commission-detail {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  width: 22rem;
  max-width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
}
.hp-hostel__commission-detail p { margin: 0; }

@media (max-width: 359.98px) {
  .hp-hostel__howo-booking .ext-link-pill {
    gap: var(--space-1);
    padding-inline: var(--space-2);
  }
  .hp-hostel__commission summary {
    padding-inline: var(--space-1) var(--space-2);
  }
}

/* External link bar */
.hp-hostel__ext-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.ext-link-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--tap);
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-standard),
              background var(--dur-micro) var(--ease-standard),
              filter var(--dur-micro) var(--ease-standard),
              transform var(--dur-micro) var(--ease-standard);
}
.ext-link-pill:is(button) {
  appearance: none;
}
.ext-link-pill:hover { border-color: var(--color-border-strong); }
.ext-link-pill .c-icon { color: var(--color-text-secondary); }

/* Direct booking — the single prominent CTA */
.ext-link-pill--book {
  min-height: 60px;
  height: auto;
  padding: var(--space-3) var(--space-6);
  background: var(--color-cta-primary);
  color: var(--color-cta-primary-text);
  border-color: transparent;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  box-shadow: var(--shadow-card);
}
.ext-link-pill--book .c-icon { color: inherit; }
.ext-link-pill--book .ext-link-pill__price {
  color: var(--color-cta-primary-text);
  border-left-color: currentColor;
  opacity: 0.78;
}
.ext-link-pill--book:hover,
.ext-link-pill--book:focus-visible {
  border-color: transparent;
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.ext-link-pill--book:active {
  filter: brightness(1.04);
  transform: translateY(0);
}
.ext-link-pill--book-deal {
  min-height: 60px;
  flex-wrap: wrap;
}
.ext-link-pill__savings {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--space-2);
  border: 1px solid color-mix(in oklab, currentColor 32%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, currentColor 12%, transparent);
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  line-height: 1;
}

@media (max-width: 767.98px) {
  .hp-hostel__booking-primary .hp-hostel__book-lead {
    flex: 1 0 100%;
  }
  .ext-link-pill--book,
  .ext-link-pill--book-deal {
    flex: 1 0 100%;
    justify-content: center;
  }
}

/* Gallery */
.hp-hostel__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.hp-hostel__section-meta {
  flex: 0 0 auto;
  color: var(--color-text-tertiary);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
}

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

.hp-gallery-grid--placeholder {
  pointer-events: none;
}

.hp-gallery-grid__placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-control);
  background: var(--color-surface-muted);
}

.hp-hostel__gallery--loading.htmx-request .hp-gallery-grid__placeholder {
  opacity: 0.86;
}

@media (min-width: 720px) {
  .hp-gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .hp-gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.hp-gallery-grid[data-gallery-collapsed="true"] .hp-gallery-grid__item:nth-child(n+4) {
  display: none;
}

.hp-gallery-grid__item[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .hp-gallery-grid[data-gallery-collapsed="true"] .hp-gallery-grid__item:nth-child(n+6) {
    display: none;
  }
  .hp-gallery-grid[data-gallery-collapsed="true"] .hp-gallery-grid__item:nth-child(-n+5) {
    display: block;
  }
}

@media (min-width: 1100px) {
  .hp-gallery-grid[data-gallery-collapsed="true"] .hp-gallery-grid__item:nth-child(n+7) {
    display: none;
  }
  .hp-gallery-grid[data-gallery-collapsed="true"] .hp-gallery-grid__item:nth-child(-n+6) {
    display: block;
  }
}

.hp-gallery-grid__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-surface-muted);
  color: var(--color-text-primary);
  cursor: pointer;
}

.hp-gallery-grid__item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-border-strong) 45%, transparent);
  outline-offset: 3px;
}

.hp-gallery-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-panel) var(--ease-standard),
              filter var(--dur-panel) var(--ease-standard);
}

.hp-gallery-grid__item:hover img,
.hp-gallery-grid__item:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.03);
}

.hp-gallery-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-2);
}

.hp-gallery-dialog__provenance {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  color: var(--color-text-secondary);
  font-size: var(--fs-meta);
}

.hp-gallery-dialog__provenance[hidden] {
  display: none;
}

.hp-gallery-dialog__provenance a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.hp-gallery-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font: inherit;
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-standard),
              background var(--dur-micro) var(--ease-standard);
}

.hp-gallery-toggle:hover,
.hp-gallery-toggle:focus-visible {
  border-color: var(--color-border-strong);
  background: var(--color-surface-muted);
}

.hp-gallery-dialog:not([open]) {
  display: none;
}

.hp-gallery-dialog[open] {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 42%,
      rgba(7, 10, 16, 0.84) 0%,
      rgba(7, 10, 16, 0.94) 48%,
      rgba(7, 10, 16, 0.99) 100%);
  color: var(--color-text-primary);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.hp-gallery-dialog::backdrop {
  background: transparent;
}

.hp-gallery-dialog__bar {
  position: absolute;
  top: clamp(var(--space-3), 3vh, var(--space-5));
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: min(680px, calc(100vw - 32px));
  min-height: 44px;
  padding: 0 var(--space-2) 0 var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(4, 7, 12, 0.58);
  color: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.hp-gallery-dialog__count {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.hp-gallery-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.hp-gallery-dialog__close:hover,
.hp-gallery-dialog__close:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hp-gallery-dialog__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(72px, 10vh, 104px) clamp(var(--space-3), 4vw, var(--space-7));
  background: transparent;
  touch-action: pan-y;
}

.hp-gallery-dialog__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - clamp(144px, 20vh, 208px));
  margin: 0;
  border-radius: var(--radius-control);
  object-fit: contain;
  background: #04070c;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.hp-gallery-dialog__stage.is-loading .hp-gallery-dialog__image {
  opacity: 0.4;
}

.hp-gallery-dialog__image {
  transition: opacity var(--dur-micro) var(--ease-standard);
}

.hp-gallery-dialog__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}

.hp-gallery-dialog__loader[hidden] {
  display: none;
}

.hp-gallery-dialog__spinner {
  width: 36px;
  height: 36px;
  border-width: 3px;
  color: var(--color-signal-positive);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.hp-gallery-dialog__error {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(var(--space-5), 12vh, 88px);
  z-index: 1;
  margin: 0 auto;
  width: max-content;
  max-width: min(90%, 30rem);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(253, 56, 53, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(4, 7, 12, 0.78);
  color: var(--color-text-inverse);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  text-align: center;
}

.hp-gallery-dialog__error[hidden] {
  display: none;
}

.hp-gallery-dialog__nav {
  position: fixed;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(4, 7, 12, 0.58);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity var(--dur-micro) var(--ease-standard),
              background var(--dur-micro) var(--ease-standard);
}

.hp-gallery-dialog__nav:hover,
.hp-gallery-dialog__nav:focus-visible {
  background: rgba(4, 7, 12, 0.78);
}

.hp-gallery-dialog__nav:disabled {
  cursor: default;
  opacity: 0.28;
}

.hp-gallery-dialog__nav--prev {
  left: var(--space-3);
}

.hp-gallery-dialog__nav--prev .c-icon {
  transform: rotate(180deg);
}

.hp-gallery-dialog__nav--next {
  right: var(--space-3);
}

/* User tags */
.user-tags-section {
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-surface) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 70%, transparent);
  border-radius: var(--radius-card);
}

#tag-pills-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.user-tag-status {
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--color-signal-danger) 40%, transparent);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--color-signal-danger) 10%, var(--color-surface));
  color: var(--color-text-primary);
  font-size: var(--fs-meta);
}

.tp-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tp {
  --tp-bg: var(--color-surface);
  --tp-border: var(--color-border-subtle);
  --tp-text: var(--color-text-primary);
  --tp-muted: var(--color-text-secondary);
  --tp-action-bg: var(--color-cta-primary);
  --tp-action-text: var(--color-cta-primary-text);

  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--tp-border);
  border-radius: var(--radius-pill);
  background: var(--tp-bg);
  color: var(--tp-text);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color var(--dur-micro) var(--ease-standard),
    background var(--dur-micro) var(--ease-standard),
    box-shadow var(--dur-micro) var(--ease-standard);
}

.tp:hover,
.tp:focus-within {
  border-color: var(--tp-action-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tp-action-bg) 18%, transparent);
}

.tp-voted {
  border-color: var(--tp-action-bg);
  background: color-mix(in srgb, var(--tp-action-bg) 13%, var(--tp-bg));
}

.tp-icon {
  flex: 0 0 auto;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.tp-text {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  white-space: pre-line;
  word-break: break-word;
}

.tp-full {
  display: none;
  white-space: pre-line;
  word-break: break-word;
}

.tp-expanded {
  border-radius: var(--radius-control);
}
.tp-expanded .tp-text { display: none; }
.tp-expanded .tp-full { display: inline; }

.tp-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
  flex: 0 0 auto;
}

.tp-count {
  min-width: 1.35em;
  color: var(--tp-muted);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tp-btn {
  min-width: 28px;
  min-height: 28px;
  padding: 0 var(--space-2);
  border: 1px solid var(--tp-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--tp-muted);
  font: inherit;
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  line-height: 1;
  cursor: pointer;
}

.tp-vote {
  border-color: var(--tp-action-bg);
  background: var(--tp-action-bg);
  color: var(--tp-action-text);
}

.tp-untag:hover {
  border-color: var(--color-signal-danger);
  color: var(--color-signal-danger);
}

.tp-default { --tp-action-bg: var(--color-border-strong); }
.tp-warning,
.tp-stop,
.tp-biohazard {
  --tp-bg: color-mix(in srgb, var(--color-signal-danger) 12%, var(--color-surface));
  --tp-border: color-mix(in srgb, var(--color-signal-danger) 55%, var(--color-border-subtle));
  --tp-action-bg: var(--color-signal-danger);
}
.tp-fire,
.tp-fireworks {
  --tp-bg: #fff4d1;
  --tp-border: #d79616;
  --tp-action-bg: #a46000;
}
.tp-rainbow,
.tp-party {
  --tp-bg: linear-gradient(90deg, #fff0f5, #eef7ff 52%, #effaf2);
  --tp-border: #7992b1;
  --tp-action-bg: #436a88;
}
.tp-surf,
.tp-beach {
  --tp-bg: color-mix(in srgb, var(--color-signal-info) 18%, var(--color-surface));
  --tp-border: color-mix(in srgb, var(--color-signal-info) 68%, var(--color-border-subtle));
  --tp-action-bg: var(--color-border-strong);
}
.tp-hike,
.tp-mountain,
.tp-climbing {
  --tp-bg: #edf6eb;
  --tp-border: #7b9a72;
  --tp-action-bg: #4d7451;
}
.tp-dj,
.tp-metal,
.tp-sunglasses,
.tp-motorcycle,
.tp-skateboard {
  --tp-bg: #1d262f;
  --tp-border: #5f7486;
  --tp-text: #fefefe;
  --tp-muted: #c2cbd5;
  --tp-action-bg: #fefefe;
  --tp-action-text: #1d262f;
}
.tp-bar,
.tp-beer,
.tp-cocktail {
  --tp-bg: #fbf0df;
  --tp-border: #aa7a3a;
  --tp-action-bg: #765323;
}
.tp-heart {
  --tp-bg: #fff0f2;
  --tp-border: #c77887;
  --tp-action-bg: #9d4054;
}
.tp-facepalm {
  --tp-bg: #f0f2f4;
  --tp-border: #98a4ad;
  --tp-action-bg: #5b6872;
}
.tp-bicycle {
  --tp-bg: color-mix(in srgb, var(--color-signal-positive) 18%, var(--color-surface));
  --tp-border: color-mix(in srgb, var(--color-signal-positive) 70%, var(--color-border-subtle));
  --tp-action-bg: #3a6d70;
}

@media (max-width: 520px) {
  .user-tags-section {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
}

/* Perk pills */
.hp-hostel__perks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.hp-hostel__perk {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
  color: var(--color-text-primary);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
}
.hp-hostel__perk--drip {
  background: color-mix(in srgb, var(--color-signal-positive) 14%, transparent);
  color: var(--color-signal-positive);
}
.hp-hostel__perk--special {
  background: color-mix(in srgb, var(--color-signal-info) 14%, transparent);
  color: var(--color-signal-info);
}

.hp-hostel__other-facilities {
  margin-top: var(--space-2);
}
.hp-hostel__other-facilities summary {
  cursor: pointer;
  font-size: var(--fs-meta);
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
}
.hp-hostel__other-fac-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding-top: var(--space-2);
}
.hp-hostel__other-fac {
  font-size: var(--fs-tiny);
  padding: 2px var(--space-2);
  border-radius: 6px;
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
}

/* Stat / capacity grid */
.hp-hostel__stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}
.hp-hostel__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
}
.hp-hostel__stat-value {
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
}
.hp-hostel__stat-label {
  font-size: var(--fs-meta);
  color: var(--color-text-secondary);
}

.hp-hostel__price-fresh {
  font-size: var(--fs-tiny);
  color: var(--color-text-tertiary);
}

.hp-hostel__price-meta {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.hp-hostel__description {
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  line-height: var(--lh-body);
}

/* static/css/40-pages/place-feedback.css */
.hp-place-feedback {
  display: grid;
  gap: var(--space-3);
}

.hp-place-feedback__form {
  display: grid;
  gap: var(--space-3);
}

.hp-place-feedback textarea {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  padding: var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface-muted);
  color: var(--color-text-primary);
  font: inherit;
  line-height: 1.45;
}

.hp-place-feedback textarea:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
}

.hp-place-feedback__status {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-inline-start: 3px solid currentColor;
  color: var(--color-text-secondary);
  background: var(--color-surface-muted);
}

.hp-place-feedback__status.is-success {
  color: var(--color-signal-positive);
}

.hp-place-feedback__status.is-error {
  color: var(--color-signal-danger);
}

.hp-place-feedback__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.hp-place-feedback__form .c-button {
  justify-self: start;
}

@media (max-width: 560px) {
  .hp-place-feedback__form .c-button {
    width: 100%;
  }
}

/* static/css/40-pages/zz-contrast-rescue.css */
.hp-contrast-rescue .c-property-card__eyebrow,
.hp-contrast-rescue .c-property-card__name,
.hp-contrast-rescue .hp-hostel__eyebrow,
.hp-contrast-rescue .hp-hostel__name,
.hp-contrast-rescue .hp-score__title,
.hp-contrast-rescue .hp-score__value,
.hp-contrast-rescue .hp-score__level,
.hp-contrast-rescue .hp-score__meta,
.hp-contrast-rescue .c-rank-label,
.hp-contrast-rescue .c-lang-stack,
.hp-contrast-rescue .c-lang-divergence,
.hp-contrast-rescue .c-property-card__foot {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 0 10px rgba(0, 0, 0, 0.58),
    0 0 22px rgba(0, 0, 0, 0.36);
}

.c-property-card.hp-contrast-rescue .c-property-card__name::before,
.hp-hostel__hero.hp-contrast-rescue .hp-hostel__name::before {
  inset: -0.78em -1.38em;
  background: radial-gradient(
    ellipse at var(--hp-title-halo-x) 55%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 1.22)) 0%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 0.72)) 30%,
    rgba(var(--hp-halo-rgb), calc(var(--hp-halo-alpha) * 0.28)) 62%,
    transparent 100%
  );
}

@container hp-list (min-width: 720px) {
  .c-property-card.hp-contrast-rescue .c-property-card__body::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 6px),
      linear-gradient(
        to right,
        transparent 0%,
        color-mix(in oklab, #06090f 20%, transparent) 39%,
        color-mix(in oklab, #06090f 40%, transparent) 64%,
        color-mix(in oklab, #06090f 58%, transparent) 100%
      );
    backdrop-filter: blur(2.5px) saturate(122%);
    -webkit-backdrop-filter: blur(2.5px) saturate(122%);
  }

  .c-property-card.hp-contrast-rescue .c-property-card__body::after {
    content: "";
    position: absolute;
    inset: 14% 3% 12% 39%;
    z-index: -1;
    border-radius: var(--radius-card);
    background: radial-gradient(
      ellipse at 66% 45%,
      rgba(0, 0, 0, 0.36) 0%,
      rgba(0, 0, 0, 0.22) 42%,
      transparent 75%
    );
    filter: blur(10px);
    pointer-events: none;
  }
}

@container hp-list (max-width: 719.98px) {
  .c-property-card.hp-contrast-rescue .c-property-card__body {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px),
      color-mix(in oklab, #0b0e14 29%, transparent);
    backdrop-filter: blur(3.5px) saturate(118%);
    -webkit-backdrop-filter: blur(3.5px) saturate(118%);
  }
}

@media (min-width: 768px) {
  .hp-hostel__hero.hp-contrast-rescue .hp-hostel__hero-info::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 6px),
      linear-gradient(
        to right,
        transparent 0%,
        color-mix(in oklab, var(--hp-hero-dark) 24%, transparent) 42%,
        color-mix(in oklab, var(--hp-hero-dark) 44%, transparent) 65%,
        color-mix(in oklab, var(--hp-hero-dark) 60%, transparent) 100%
      );
    backdrop-filter: blur(2.5px) saturate(122%);
    -webkit-backdrop-filter: blur(2.5px) saturate(122%);
  }
}

@media (max-width: 767.98px) {
  .hp-hostel__hero.hp-contrast-rescue .hp-hostel__hero-info {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px),
      color-mix(in oklab, var(--hp-hero-dark) 30%, transparent);
    backdrop-filter: blur(3.5px) saturate(118%);
    -webkit-backdrop-filter: blur(3.5px) saturate(118%);
  }
}

