:root {
  color-scheme: light;
  --ink: #1d2a2a;
  --muted: #657270;
  --paper: #f6f8f6;
  --surface: #ffffff;
  --soft: #e8f0eb;
  --line: #d8e1dc;
  --green: #2f6f58;
  --green-dark: #1f4f3e;
  --blue: #3f6f87;
  --coral: #bd674b;
  --gold: #d6a643;
  --shadow: 0 16px 44px rgba(29, 42, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px 40px;
  border-bottom: 1px solid rgba(29, 42, 42, 0.1);
  background: rgba(246, 248, 246, 0.94);
  backdrop-filter: blur(14px);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 980px);
}

.top-nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 9px 12px;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--soft);
  color: var(--ink);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 31, 28, 0.64), rgba(17, 31, 28, 0.38)),
    linear-gradient(0deg, rgba(17, 31, 28, 0.42), rgba(17, 31, 28, 0.12)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/6/65/Stockholm_%28Unsplash%29.jpg/1280px-Stockholm_%28Unsplash%29.jpg")
      center / cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 120px;
  background: linear-gradient(0deg, var(--paper), rgba(246, 248, 246, 0));
  content: "";
}

.hero-content {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  align-self: center;
  color: white;
  padding: clamp(18px, 4vw, 38px);
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c981;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 4.3rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-link,
.secondary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  background: var(--green-dark);
  color: white;
  padding: 0 16px;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--green);
  outline: none;
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  padding: 0 16px;
}

.secondary-link:hover,
.secondary-link:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.page-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 86px;
}

.standalone-section {
  width: min(1010px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 86px;
}

.standalone-section.has-side-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 37px;
  align-items: start;
  width: min(1298px, calc(100% - 40px));
}

.tips-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  margin-top: 18px;
}

.tips-sidebar .side-kicker {
  margin: 0 0 12px 2px;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.12;
  text-transform: none;
}

.compact-side-menu {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(29, 42, 42, 0.08);
  padding: 18px;
}

.compact-side-menu h3 {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 1.1rem;
}

.compact-side-menu h3 + ul {
  margin-bottom: 14px;
}

.compact-side-menu ul:last-child {
  margin-bottom: 0;
}

.compact-side-menu ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-side-menu a {
  position: relative;
  display: block;
  border-radius: 8px;
  color: var(--muted);
  padding: 12px 35px 12px 12px;
  text-decoration: none;
  font-size: 1.12rem;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.compact-side-menu a::after {
  position: absolute;
  right: 10px;
  top: 50%;
  color: var(--green-dark);
  content: "→";
  opacity: 0.55;
  font-weight: 900;
  transform: translateY(-50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.compact-side-menu a:hover,
.compact-side-menu a:focus-visible {
  background: var(--soft);
  color: var(--green-dark);
  outline: none;
}

.compact-side-menu a:hover::after,
.compact-side-menu a:focus-visible::after {
  opacity: 1;
  transform: translate(3px, -50%);
}

.side-menu {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(29, 42, 42, 0.05);
  padding: 16px;
}

.side-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.side-menu nav {
  display: grid;
  gap: 8px;
}

.side-menu a {
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
}

.side-menu a:hover,
.side-menu a:focus-visible,
.side-menu a.active {
  border-color: rgba(47, 111, 88, 0.22);
  background: var(--soft);
  outline: none;
}

.side-menu span {
  font-weight: 850;
}

.side-menu small {
  color: var(--muted);
  line-height: 1.35;
}

.content-flow {
  display: grid;
  gap: 72px;
}

.section {
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading.compact {
  margin-bottom: 18px;
}

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

.hostel-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 29px;
  box-shadow: 0 12px 34px rgba(29, 42, 42, 0.05);
}

.clickable-card {
  position: relative;
  cursor: pointer;
  padding-right: 56px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.clickable-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-dark);
  color: white;
  content: "→";
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  padding-bottom: 1px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  border-color: rgba(47, 111, 88, 0.38);
  background: #fbfdfb;
  box-shadow: 0 18px 44px rgba(29, 42, 42, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.clickable-card:hover::after,
.clickable-card:focus-visible::after {
  background: var(--coral);
  transform: translateX(3px);
}

.clickable-card:active {
  box-shadow: 0 8px 22px rgba(29, 42, 42, 0.1);
  transform: translateY(0);
}

.hostel-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-label {
  width: fit-content;
  border-radius: 8px;
  background: #edf3f6;
  color: var(--blue) !important;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.soft-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.soft-list li {
  border-radius: 8px;
  background: var(--soft);
  color: var(--green-dark);
  padding: 6px 9px;
  font-size: 0.85rem;
  font-weight: 750;
}

.text-link {
  justify-self: start;
  min-height: auto;
  color: var(--green-dark);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--coral);
  outline: none;
}

.real-map {
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfe8e5;
  box-shadow: var(--shadow);
}

.leaflet-hostel-icon {
  background: transparent;
  border: 0;
}

.leaflet-hostel-pin {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--green-dark);
  color: white;
  box-shadow: 0 10px 22px rgba(29, 42, 42, 0.22);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.leaflet-popup-content {
  display: grid;
  gap: 3px;
  margin: 12px 14px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.leaflet-popup-content strong,
.leaflet-popup-content span {
  display: block;
}

.leaflet-popup-content span {
  color: var(--muted);
}

.soft-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

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

.tip-grid article {
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 0 4px 14px;
}

.tip-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.subpage .page-shell {
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 72px;
  justify-content: center;
  align-items: start;
  padding-top: 72px;
}

.hostel-page {
  order: 1;
  max-width: 760px;
  padding-bottom: 80px;
}

.subpage .tips-sidebar {
  order: 2;
  margin-top: 92px;
}

.hostel-page .eyebrow {
  display: none;
}

.hostel-page .lead {
  max-width: 680px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.9;
  margin: 36px 0 0;
}

.hostel-page h1 {
  color: var(--ink);
  max-width: none;
  margin: 0 auto 26px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.hostel-page h1::after {
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--ink);
  content: "";
}

.hostel-page h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: start;
  margin: 56px 0;
}

.fact-box {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.fact-box ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.fact-box li {
  border-top: 0;
  padding-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.7;
}

.fact-box li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hostel-page section p {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hostel-page > section {
  max-width: 680px;
  margin-top: 48px;
}

.hostel-page .page-actions {
  margin-top: 48px;
  gap: 14px;
}

.hostel-page .secondary-link {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hostel-page .primary-link,
.hostel-page .secondary-link {
  min-height: 42px;
  border-radius: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.hostel-page .secondary-link:hover,
.hostel-page .secondary-link:focus-visible {
  background: var(--soft);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  background: #1d2a2a;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
}

.site-footer a {
  color: white;
}

@media (max-width: 920px) {
  .topbar {
    padding-inline: 20px;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .subpage .page-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    justify-content: stretch;
    padding-top: 46px;
  }

  .standalone-section.has-side-menu {
    grid-template-columns: 1fr;
  }

  .tips-sidebar {
    position: static;
  }

  .compact-side-menu {
    margin-top: 0;
  }

  .compact-side-menu ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-menu {
    position: static;
  }

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

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

@media (max-width: 720px) {
  .topbar {
    position: relative;
    padding-inline: 14px;
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a {
    flex: 1 1 120px;
    text-align: center;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 30px 22px;
  }

  h1,
  h2 {
    font-size: 1.8rem;
  }

  .page-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 42px;
  }

  .subpage .page-shell {
    padding-top: 34px;
  }

  .hostel-page h1 {
    font-size: 1.55rem;
    letter-spacing: 0.12em;
  }

  .hostel-page .lead {
    font-size: 1.12rem;
  }

  .hostel-page > section,
  .detail-grid {
    margin-top: 36px;
  }

  .side-menu nav,
  .compact-side-menu ul,
  .recommendation-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .real-map {
    min-height: 380px;
  }

  .hero-actions,
  .page-actions {
    display: grid;
  }
}

.top-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 800;
}

.catalog-section,
.map-section,
.detail-page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.catalog-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.catalog-intro .section-heading {
  margin-bottom: 0;
}

.catalog-intro h1,
.map-section h1,
.detail-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.map-promo {
  display: grid;
  flex: 0 0 280px;
  gap: 3px;
  border-radius: 12px;
  background: var(--green-dark);
  color: white;
  padding: 18px 20px;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.map-promo:hover,
.map-promo:focus-visible {
  background: var(--green);
  outline: none;
  transform: translateY(-2px);
}

.map-promo span {
  font-weight: 850;
}

.map-promo small {
  color: rgba(255, 255, 255, 0.72);
}

.catalog-toolbar {
  display: grid;
  gap: 18px;
  margin: 42px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.search-field {
  display: grid;
  gap: 8px;
  max-width: 560px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 15px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}

.search-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 111, 88, 0.12);
  outline: none;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  padding: 0 14px;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 750;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
  outline: none;
}

.catalog-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

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

.catalog-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(29, 42, 42, 0.06);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.catalog-card:hover {
  box-shadow: 0 20px 48px rgba(29, 42, 42, 0.13);
  transform: translateY(-3px);
}

.catalog-card-media {
  display: block;
  overflow: hidden;
  background: var(--soft);
  text-decoration: none;
}

.catalog-card-image {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  object-fit: cover;
  transition: transform 260ms ease;
}

.catalog-card:hover .catalog-card-image {
  transform: scale(1.025);
}

.hostel-image-placeholder {
  align-content: center;
  gap: 4px;
  background:
    linear-gradient(135deg, rgba(47, 111, 88, 0.92), rgba(63, 111, 135, 0.86)),
    var(--green-dark);
  color: white;
  padding: 24px;
  text-align: center;
}

.hostel-image-placeholder span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hostel-image-placeholder strong {
  max-width: 280px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.catalog-card-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.catalog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.catalog-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.catalog-card h2 a {
  text-decoration: none;
}

.catalog-card h2 a:hover,
.catalog-card h2 a:focus-visible {
  color: var(--green);
  outline: none;
}

.catalog-card p {
  margin: 0;
  color: var(--muted);
}

.catalog-card .soft-list {
  align-self: end;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.agoda-link,
.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.agoda-link {
  background: #ba3151;
  color: white;
}

.agoda-link:hover,
.agoda-link:focus-visible {
  background: #91233e;
  outline: none;
}

.agoda-link.wide {
  width: 100%;
  margin-top: 24px;
}

.outline-link {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.outline-link:hover,
.outline-link:focus-visible {
  border-color: var(--green);
  background: var(--soft);
  outline: none;
}

.notice-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 28px;
}

.source-note,
.image-credit,
.booking-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.source-note {
  max-width: 760px;
  margin: 32px 0 0;
}

.map-section {
  width: min(1380px, calc(100% - 40px));
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  align-items: stretch;
}

.large-map {
  min-height: 680px;
}

.map-hostel-list {
  display: grid;
  max-height: 680px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 8px;
}

.map-list-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 1px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 13px 10px;
  text-align: left;
}

.map-list-item:last-child {
  border-bottom: 0;
}

.map-list-item:hover,
.map-list-item:focus-visible {
  background: var(--soft);
  outline: none;
}

.map-list-item > span {
  grid-row: 1 / 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-dark);
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
}

.map-list-item strong {
  line-height: 1.25;
}

.map-list-item small {
  color: var(--muted);
}

.leaflet-hostel-pin.category-budget {
  background: var(--blue);
}

.leaflet-hostel-pin.category-gamla-stan {
  background: var(--coral);
}

.leaflet-hostel-pin.category-lugnt {
  background: var(--green);
}

.leaflet-hostel-pin.category-unikt {
  background: #7b5d91;
}

.popup-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.popup-actions a {
  color: var(--green-dark);
  font-weight: 800;
}

.detail-page {
  width: min(1200px, calc(100% - 40px));
}

.hostel-detail {
  display: grid;
  gap: 72px;
}

.detail-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-hero-media {
  position: relative;
  min-height: 510px;
  background: var(--soft);
}

.detail-hero-image {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 510px;
  place-items: center;
  object-fit: cover;
}

.detail-hero-media .image-credit {
  position: absolute;
  bottom: 10px;
  left: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  border-radius: 6px;
  background: rgba(29, 42, 42, 0.78);
  color: white;
  padding: 5px 8px;
}

.detail-hero-media .image-credit a {
  color: white;
}

.detail-hero-copy {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(34px, 6vw, 70px);
}

.detail-hero-copy .eyebrow {
  margin: 0;
}

.detail-hero-copy h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
}

.detail-lead {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.75;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 72px;
  width: min(1040px, 100%);
  margin: 0 auto;
  align-items: start;
}

.detail-story {
  display: grid;
  gap: 54px;
}

.detail-story section {
  max-width: 660px;
}

.detail-story h2 {
  margin-bottom: 16px;
}

.detail-story p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.9;
}

.consider-panel {
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.58);
  padding: 24px 26px;
}

.detail-facts {
  position: sticky;
  top: 98px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(29, 42, 42, 0.07);
  padding: 24px;
}

.detail-facts dl {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
}

.detail-facts dl div {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  font-weight: 750;
}

.detail-feature-list {
  display: grid;
}

.booking-note {
  margin: 13px 0 0;
  line-height: 1.5;
}

.detail-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 1080px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-layout,
  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .map-hostel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .detail-hero-media,
  .detail-hero-image {
    min-height: 440px;
  }

  .detail-facts {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: block;
    overflow: hidden;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .top-nav a {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
  }

  .top-nav a:last-child {
    grid-column: 1 / -1;
  }

  .top-nav a[href$="alla-vandrarhem.html"],
  .top-nav a[href$="rekommenderade-vandrarhem.html"],
  .top-nav a[href$="boka-vandrarhem.html"] {
    font-size: 0;
  }

  .top-nav a[href$="alla-vandrarhem.html"]::after {
    content: "Alla";
    font-size: 0.86rem;
  }

  .top-nav a[href$="rekommenderade-vandrarhem.html"]::after {
    content: "Våra tips";
    font-size: 0.86rem;
  }

  .top-nav a[href$="boka-vandrarhem.html"]::after {
    content: "Boka";
    font-size: 0.86rem;
  }

  .catalog-section,
  .map-section,
  .detail-page {
    width: min(100% - 28px, 1280px);
    padding-top: 42px;
  }

  .catalog-intro {
    display: grid;
  }

  .catalog-intro h1,
  .map-section h1 {
    font-size: 2.2rem;
  }

  .map-promo {
    width: 100%;
  }

  .catalog-grid,
  .map-hostel-list {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-wrap: nowrap;
    margin-inline: -14px;
    overflow-x: auto;
    padding: 0 14px 5px;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .catalog-card-body {
    padding: 18px;
  }

  .large-map {
    min-height: 470px;
  }

  .detail-hero-media,
  .detail-hero-image {
    min-height: 330px;
  }

  .detail-hero-copy {
    padding: 28px 22px 34px;
  }

  .hostel-detail {
    gap: 46px;
  }

  .detail-content {
    gap: 42px;
  }
}
