@font-face {
  font-family: 'RedHatDisplay';
  src: url('./fonts/RedHatDisplay.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #efefef;
  --panel: #ffffff;
  --ink: #1f1f1f;
  --muted: #767676;
  --brand: #b56e3f;
  --brand-dark: #9a5a31;
  --line: #ddd;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  --nav-height: 92px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'RedHatDisplay', sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'RedHatDisplay', sans-serif;
}

.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.page-contact .site-main {
  margin-top: -140px;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg, rgba(23, 23, 23, 0.78));
  border-bottom: 1px solid var(--nav-border, rgba(255, 255, 255, 0.08));
  --nav-height-current: var(--nav-height, 92px);
}

.top-nav.is-solid {
  backdrop-filter: none;
}

.top-nav.is-glass {
  backdrop-filter: blur(12px) saturate(125%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height-current);
}

.brand {
  color: var(--nav-text, #fff);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(64vw, 720px);
}

.brand-logo {
  display: block;
  width: var(--brand-logo-width, auto);
  height: var(--brand-logo-height, auto);
  max-height: var(--brand-logo-max-height, 64px);
  max-width: var(--brand-logo-max-width, min(58vw, 420px));
  object-fit: contain;
}

.brand-fallback {
  display: inline-block;
  line-height: 1.2;
}

.top-nav nav {
  display: flex;
  gap: 18px;
}

.top-nav nav a {
  color: var(--nav-text, #fff);
  text-decoration: none;
  opacity: 0.85;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.top-nav nav a:hover {
  opacity: 1;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: var(--nav-text, #fff);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.top-nav.nav-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.top-nav.nav-open .nav-toggle-bar:nth-child(3) {
  opacity: 0;
}

.top-nav.nav-open .nav-toggle-bar:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.flash {
  margin: 14px 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.flash.success {
  border-color: #a8d7a8;
  background: #edf8ed;
}

.flash.error {
  border-color: #e8b1b1;
  background: #fceded;
}

.hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hero.inner-hero {
  margin-top: -140px;
}

.hero.inner-hero:not(.detail-hero) {
  height: clamp(620px, 96vh, 980px);
}

.hero.inner-hero.detail-hero {
  height: clamp(520px, 74vh, 860px);
}

.hero > img,
.hero > video,
.hero > .hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center calc(var(--hero-focus-y, 42%) - 8%);
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.38));
  padding: 40px 14px;
}

.hero-overlay p {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.detail-hero > img,
.detail-hero > video {
  object-position: center center;
}

.detail-hero .hero-overlay {
  padding: 130px 20px 74px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24) 18%, rgba(0, 0, 0, 0.66) 100%);
}

.detail-hero .hero-overlay h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  line-height: 1.05;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-kicker {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
}

.hero-overlay h1 {
  margin: 0;
  font-family: 'RedHatDisplay', sans-serif;
  font-size: clamp(2rem, 6.3vw, 4.2rem);
  line-height: 1;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.hero.inner-hero:not(.detail-hero) .hero-overlay h1 {
  font-size: clamp(1.7rem, 5.4vw, 3.35rem);
}

.hero-overlay small {
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-subtitle {
  max-width: min(900px, 92%);
  font-size: clamp(1rem, 2vw, 2.35rem);
  line-height: 1.25;
  opacity: 0.95;
}

.tours-layout {
  margin-top: 16px;
  padding-bottom: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: 260px 1fr;
  align-items: start;
}

.tours-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.tours-layout.is-loading {
  opacity: 0.62;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.filters-panel,
.tour-results,
.detail-main-panel,
.book-panel,
.empty-box,
.directory-list {
  background: var(--panel);
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.filters-panel {
  padding: 12px;
  position: sticky;
  top: 78px;
}

.filters-toggle {
  display: none;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c9c9c9;
  background: #fff;
  text-align: left;
  color: #2c2c2c;
  font-size: 0.98rem;
  font-weight: 700;
}

.filters-body h3 {
  margin: 8px 0;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4d4d4d;
}

.filters-body ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.filters-body li + li {
  margin-top: 6px;
}

.filters-body a {
  display: block;
  text-decoration: none;
  color: #4c4c4c;
  border-radius: 8px;
  padding: 8px 10px;
}

.filters-body a:hover {
  background: #f3f3f3;
}

.filters-body a.active {
  background: var(--brand);
  color: #fff;
}

.tour-results {
  padding: 14px;
  width: 100%;
  min-width: 0;
}

.list-head {
  border-bottom: 1px solid #ededed;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.list-head p {
  margin: 0;
  font-weight: 700;
}

.section-head {
  margin-top: 16px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #313131;
}

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

.tour-card {
  text-decoration: none;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.tour-card img {
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.tour-content {
  padding: 10px 12px 12px;
}

.tour-content h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.25;
}

.tour-content p {
  margin: 0;
  color: #5f5f5f;
  font-size: 0.9rem;
  line-height: 1.4;
  min-height: 37px;
}

.tour-meta {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  font-size: 0.78rem;
  color: #5a5a5a;
  align-items: center;
}

.tour-meta strong {
  color: #252525;
  text-align: right;
}

.detail-layout {
  margin: 16px auto 30px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 350px;
}

.detail-layout {
  position: relative;
  z-index: 4;
  margin-top: -38px;
  margin-bottom: 56px;
  align-items: start;
}

.detail-main-panel,
.book-panel {
  padding: 16px;
}

.detail-main-panel,
.book-panel {
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(10, 14, 18, 0.14);
}

.book-panel {
  padding: 0 16px 16px;
  overflow: hidden;
}

.book-panel h3 {
  margin: 0 -16px 14px;
  padding: 14px 12px;
  background: var(--brand);
  color: #fff;
}

.intro {
  margin: 10px 0 12px;
  font-size: 1rem;
  color: #555;
}

.tour-seq-nav {
  margin: 10px 0 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tour-seq-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  color: #333;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}

.tour-seq-link:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.tour-seq-link.ghosted {
  opacity: 0.45;
  cursor: not-allowed;
}

.tour-gallery {
  margin: 8px 0 12px;
}

.tour-gallery h3 {
  margin: 0 0 8px;
}

.tour-gallery-main-btn {
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
}

.tour-gallery-main {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #f5f5f5;
}

.tour-gallery-thumbs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.tour-gallery-thumb-btn {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.tour-gallery-thumb-btn.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(181, 110, 63, 0.2);
}

.tour-gallery-thumb-btn img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}

.tour-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(12, 12, 12, 0.9);
  display: grid;
  place-items: center;
  padding: 20px;
}

.tour-gallery-modal[hidden] {
  display: none !important;
}

.tour-gallery-modal-inner {
  position: relative;
  width: fit-content;
  max-width: 94vw;
  max-height: 94vh;
  display: grid;
  place-items: center;
}

.tour-gallery-modal-image {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 22, 22, 0.88);
}

.tour-gallery-modal-close,
.tour-gallery-modal-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.tour-gallery-modal-close {
  top: 12px;
  right: 12px;
}

.tour-gallery-modal-nav {
  top: 50%;
  transform: translateY(-50%);
}

.tour-gallery-modal-nav.prev {
  left: 10px;
}

.tour-gallery-modal-nav.next {
  right: 10px;
}

body.modal-open {
  overflow: hidden;
}

.accordion {
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.accordion summary {
  cursor: pointer;
  font-weight: 700;
}

.accordion p {
  margin: 9px 0 3px;
  color: #555;
}

.detail-html {
  color: #3f3f3f;
  line-height: 1.65;
}

.detail-html p,
.detail-html ul,
.detail-html ol,
.detail-html blockquote,
.detail-html h2,
.detail-html h3,
.detail-html h4 {
  margin: 10px 0;
}

.detail-html ul,
.detail-html ol {
  padding-left: 22px;
}

.detail-html li + li {
  margin-top: 4px;
}

.detail-html a {
  color: var(--brand-dark);
}

.detail-html blockquote {
  border-left: 3px solid #ddd;
  padding-left: 12px;
  color: #666;
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tour-facts {
  margin: 12px 0;
}

.tour-facts h3 {
  margin: 0 0 8px;
}

.tour-facts-collapses {
  display: grid;
  gap: 10px;
}

.fact-collapse {
  border: 1px solid #e6dfd8;
  border-radius: 12px;
  background: #f8f6f3;
  overflow: hidden;
}

.fact-collapse summary {
  cursor: pointer;
  font-weight: 800;
  padding: 13px 14px;
  font-size: 1.05rem;
}

.fact-collapse-body {
  border-top: 1px solid #ece5de;
  padding: 12px 14px;
  background: #fff;
}

.fact-collapse-body p {
  margin: 0;
  color: #555;
}

.fact-collapse-body ul {
  margin: 0;
  padding-left: 22px;
  color: #555;
  line-height: 1.52;
}

.fact-collapse-body li + li {
  margin-top: 4px;
}

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

.tour-facts-grid article {
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.tour-facts-grid strong {
  display: block;
  font-size: 0.88rem;
  color: #2f2f2f;
  margin-bottom: 4px;
}

.tour-facts-grid p {
  margin: 0;
  color: #555;
  line-height: 1.45;
  white-space: normal;
}

.tour-facts-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #555;
  line-height: 1.45;
}

.tour-facts-grid li + li {
  margin-top: 3px;
}

.related-tours {
  margin-top: 16px;
}

.related-tours-wrap {
  margin-bottom: 38px;
}

.related-tours h3 {
  margin: 0 0 10px;
}

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

.badge-row > div {
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 9px 10px;
}

.badge-row strong,
.badge-row span {
  display: block;
}

.badge-row strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.07em;
}

.badge-row span {
  margin-top: 4px;
  font-weight: 700;
}

.booking-form {
  display: grid;
  gap: 8px;
}

.booking-flash {
  margin-top: 6px;
  margin-bottom: 10px;
}

.booking-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.booking-form input:not([type="radio"]):not([type="checkbox"]),
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

.booking-form input[type="radio"],
.booking-form input[type="checkbox"] {
  width: auto;
  border: 0;
  padding: 0;
}

.booking-form label {
  font-size: 0.85rem;
  color: #555;
}

.trip-mode-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.trip-mode-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  cursor: pointer;
}

.trip-mode-picker label:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(181, 110, 63, 0.16);
}

.booking-passenger-title {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #26364a;
}

.booking-party-builder {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.booking-extras-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #e8ddd0;
  border-radius: 18px;
  background: #fffaf5;
}

.booking-extras-head {
  display: grid;
  gap: 4px;
}

.booking-extra-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: #fff;
}

.booking-extra-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.booking-extra-top p {
  margin: 4px 0 0;
  color: #6e6255;
  font-size: 0.92rem;
}

.booking-extra-line-total {
  white-space: nowrap;
}

.booking-extra-rows {
  display: grid;
  gap: 10px;
}

.booking-extra-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(88px, 120px) 1fr;
  gap: 10px;
  align-items: center;
}

.booking-extra-row > small {
  color: #6e6255;
}

.booking-extras-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  border-top: 1px solid #eadfce;
  font-weight: 700;
}

.booking-return-panel {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed #d8dee8;
}

.booking-form [hidden],
.booking-return-panel[hidden],
.return-date-block[hidden],
[data-return-leg-custom][hidden],
[data-transfer-mode-wrap][hidden] {
  display: none !important;
}

.trip-return-same-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.party-group {
  display: grid;
  gap: 8px;
}

.party-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.party-row label {
  display: grid;
  gap: 6px;
}

.party-row label > span {
  font-size: 0.8rem;
  color: #555;
  font-weight: 700;
}

.party-child-row {
  grid-template-columns: 140px minmax(0, 1fr);
}

@media (max-width: 640px) {
  .booking-extra-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.checkout-price-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}

.checkout-price-card {
  border: 2px solid #b8cbe3;
  border-radius: 12px;
  background: #f1f6fd;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}

.checkout-price-card span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #3e5f8b;
}

.checkout-price-card strong {
  font-size: 1rem;
  line-height: 1.24;
  color: #174987;
  font-weight: 700;
  word-break: break-word;
}

.checkout-price-card.is-inquiry-only strong {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.checkout-total {
  margin-top: 2px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fafafa;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkout-total span {
  font-size: 0.9rem;
  color: #555;
  font-weight: 700;
}

.checkout-total strong {
  font-size: 1rem;
  line-height: 1.2;
  color: #1f1f1f;
  font-weight: 800;
}

.checkout-total.is-unavailable strong {
  color: #666;
  font-size: 0.95rem;
  font-weight: 700;
}

.travel-date-picker {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.travel-date-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.travel-date-toolbar strong {
  margin-right: auto;
}

.travel-date-toolbar button {
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  padding: 5px 8px;
  cursor: pointer;
}

.travel-weekdays,
.travel-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.travel-weekdays span {
  text-align: center;
  color: #757575;
  font-size: 0.75rem;
  font-weight: 700;
}

.travel-slot {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.travel-slot.empty {
  background: transparent;
}

.travel-grid .day-btn {
  border: 1px solid #d3d3d3;
  background: #fff;
  color: #333;
  font-weight: 700;
}

.travel-grid .day-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.travel-grid .day-btn.disabled,
.travel-grid .day-btn:disabled {
  border-style: dashed;
  color: #b7b7b7;
  background: #fafafa;
  cursor: not-allowed;
}

.btn {
  display: inline-block;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.booking-form.is-submitting fieldset {
  opacity: 0.72;
}

.booking-form .btn[disabled] {
  cursor: wait;
  filter: saturate(0.88);
}

.btn.secondary {
  background: #fff;
  color: #333;
  border-color: #cfcfcf;
}

.directory {
  padding: 26px 0 40px;
}

.directory h1 {
  margin: 0 0 8px;
  font-family: 'RedHatDisplay', sans-serif;
}

.directory-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px;
}

.directory-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.directory-list li:last-child {
  border-bottom: 0;
}

.directory-list a {
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 700;
}

.directory-list span {
  color: #777;
  font-size: 0.85rem;
}

.empty-box {
  padding: 18px;
  margin: 12px 0;
}

.contact-section {
  margin-top: 20px;
  margin-bottom: 26px;
}

.contact-stage {
  position: relative;
  margin: 0;
  padding: clamp(24px, 5vh, 60px) 0;
  min-height: max(620px, calc(100vh - var(--nav-height) - 74px));
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.contact-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 84% at 12% 4%, rgba(245, 198, 120, 0.48), transparent 56%),
    radial-gradient(94% 82% at 90% 92%, rgba(124, 214, 255, 0.35), transparent 55%),
    linear-gradient(135deg, rgba(4, 10, 18, 0.78), rgba(10, 18, 30, 0.5)),
    var(--contact-bg-image) center center / cover no-repeat;
  transform: scale(1.02);
  animation: contactBackgroundDrift 16s ease-in-out infinite alternate;
  z-index: -2;
}

.contact-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 22%, rgba(255, 255, 255, 0.46) 45%, rgba(255, 255, 255, 0.13) 55%, transparent 74%),
    radial-gradient(circle at 20% 18%, rgba(255, 220, 170, 0.3), transparent 38%),
    radial-gradient(circle at 82% 80%, rgba(141, 219, 255, 0.24), transparent 42%),
    radial-gradient(95% 78% at 50% 90%, rgba(3, 9, 18, 0.78), rgba(3, 9, 18, 0.1) 64%, transparent 90%);
  background-size: 230% 230%, 160% 160%, 160% 160%, 100% 100%;
  animation: contactLuxurySweep 5.4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.contact-page {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.89);
  backdrop-filter: blur(6px) saturate(115%);
  box-shadow:
    0 30px 66px rgba(5, 11, 20, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.26) inset;
  padding: 18px;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(197, 141, 80, 0.75), rgba(255, 236, 208, 0.92), rgba(135, 203, 246, 0.7));
  pointer-events: none;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: -34% -10%;
  background: linear-gradient(112deg, transparent 36%, rgba(255, 255, 255, 0.56) 50%, transparent 64%);
  transform: translateX(-46%);
  animation: contactCardSheen 4.9s ease-in-out infinite;
  pointer-events: none;
}

.contact-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 10px;
}

.contact-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-family: 'RedHatDisplay', sans-serif;
}

.contact-head p {
  margin: 0;
  color: #555;
  flex: 1 1 320px;
}

.contact-card h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-family: 'RedHatDisplay', sans-serif;
}

.contact-card > p {
  margin: 0 0 12px;
  color: #555;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-form.is-submitting fieldset {
  opacity: 0.72;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  color: #555;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  font-weight: 400;
  color: #1f1f1f;
}

.contact-form .btn[disabled] {
  cursor: wait;
  filter: saturate(0.88);
}

.contact-feedback {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d8d8d8;
  background: #f8f8f8;
  color: #2a2a2a;
  font-size: 0.92rem;
  line-height: 1.4;
}

.contact-feedback.success {
  border-color: #1f8f48;
  background: #ecfff3;
  color: #116634;
}

.contact-feedback.error {
  border-color: #a83a3a;
  background: #fff3f3;
  color: #7d2020;
}

.site-footer {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #171717;
  color: #fff;
  padding: 18px 0 20px;
  text-align: center;
  margin-top: auto;
}

.site-footer p {
  margin: 0 0 6px;
  line-height: 1.4;
}

.site-footer small {
  display: block;
  line-height: 1.45;
  opacity: 0.72;
}

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

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 66px;
  }

  .top-nav {
    --nav-height-current: var(--nav-height-mobile, 66px);
  }

  .nav-inner {
    position: relative;
    min-height: var(--nav-height);
    height: auto;
  }

  .brand {
    max-width: 68vw;
    font-size: 0.96rem;
  }

  .brand-logo {
    max-height: var(--brand-logo-max-height, 48px);
    max-width: var(--brand-logo-max-width-mobile, 62vw);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .top-nav nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    border: 1px solid var(--nav-border, rgba(255, 255, 255, 0.1));
    border-radius: 0 0 12px 12px;
    background: rgba(16, 23, 31, 0.94);
    backdrop-filter: blur(12px) saturate(125%);
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  }

  .top-nav nav[hidden] {
    display: none !important;
  }

  .top-nav nav a {
    display: block;
    color: #f2f7ff;
    opacity: 0.96;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.25;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .top-nav nav a:last-child {
    border-bottom: 0;
  }

  .top-nav.nav-open {
    border-bottom-color: transparent;
  }

  .hero.inner-hero:not(.detail-hero) {
    height: clamp(420px, 72vh, 620px);
  }

  .hero.inner-hero.detail-hero {
    height: clamp(340px, 62vh, 480px);
  }

  .detail-hero .hero-overlay {
    padding: 92px 14px 44px;
  }

  .detail-hero .hero-overlay h1 {
    max-width: 20ch;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .tours-layout {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .filters-panel {
    position: static;
  }

  .filters-toggle {
    display: block;
  }

  .filters-panel .filters-body[hidden] {
    display: none !important;
  }

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

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

  .tour-facts-grid {
    grid-template-columns: 1fr;
  }

  .checkout-price-strip {
    grid-template-columns: 1fr;
  }

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

  .contact-stage {
    margin-top: 0;
    margin-bottom: 0;
    padding: 16px 0 18px;
    min-height: calc(100vh - var(--nav-height) - 66px);
  }

  .site-footer {
    padding-top: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

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

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

  .detail-layout {
    margin-top: 6px;
    margin-bottom: 30px;
  }

  .tour-gallery-modal {
    padding: 12px;
  }

  .tour-gallery-modal-close,
  .tour-gallery-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  .tour-gallery-modal-close {
    top: 10px;
    right: 10px;
  }

  .tour-gallery-modal-nav.prev {
    left: 4px;
  }

  .tour-gallery-modal-nav.next {
    right: 4px;
  }

}

@keyframes contactBackgroundDrift {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.06) translate3d(-10px, -10px, 0);
  }
}

@keyframes contactLuxurySweep {
  0% {
    background-position: 0% 50%, 0% 0%, 100% 100%, center center;
    opacity: 0.88;
  }
  50% {
    background-position: 100% 50%, 100% 0%, 0% 100%, center center;
    opacity: 1;
  }
  100% {
    background-position: 0% 50%, 0% 0%, 100% 100%, center center;
    opacity: 0.9;
  }
}

@keyframes contactCardSheen {
  0% {
    transform: translateX(-55%);
    opacity: 0;
  }
  28% {
    opacity: 0.72;
  }
  46% {
    transform: translateX(55%);
    opacity: 0;
  }
  100% {
    transform: translateX(55%);
    opacity: 0;
  }
}

.ms-v2-hero {
  padding: 26px 0 8px;
}

.ms-v2-hero h1 {
  margin: 0;
  font-family: 'RedHatDisplay', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.08;
}

.ms-v2-hero p {
  margin: 8px 0 0;
  color: #5c5c5c;
  font-size: 1rem;
}

.ms-v2-shell {
  padding: 4px 0 36px;
}

.ms-v2-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 94px;
  z-index: 16;
}

.ms-v2-toolbar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ms-v2-toolbar-item label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6a6a;
}

.ms-v2-toolbar-item select {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.96rem;
  color: #222;
  background: #fff;
}

.ms-v2-results-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 14px;
}

.ms-v2-results-head strong {
  font-size: 1.15rem;
}

.ms-v2-results-head span {
  color: #666;
}

.ms-v2-group + .ms-v2-group {
  margin-top: 30px;
}

.ms-v2-group-head {
  margin-bottom: 14px;
}

.ms-v2-group-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
}

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

.ms-v2-card {
  color: inherit;
  text-decoration: none;
  display: block;
}

.ms-v2-card-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 1 / 0.78;
}

.ms-v2-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.ms-v2-card:hover .ms-v2-media-main {
  transform: none;
}

.ms-v2-media-main {
  position: relative;
  z-index: 1;
  transition: opacity 0.16s ease;
}

.ms-v2-media-mosaic {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  gap: 0;
  opacity: 0;
  transform: none;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.ms-v2-media-tile {
  overflow: hidden;
  position: relative;
}

.ms-v2-media-tile img {
  width: calc(100% + 1px);
  height: calc(100% + 1px);
  margin-left: -0.5px;
  margin-top: -0.5px;
  object-fit: cover;
  display: block;
}

.ms-v2-media-mosaic--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-v2-media-mosaic--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-v2-media-mosaic--3 .ms-v2-media-tile:nth-child(3) {
  grid-column: 1 / span 2;
}

.ms-v2-media-mosaic--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.ms-v2-card-media--multi:hover .ms-v2-media-mosaic,
.ms-v2-card:focus-visible .ms-v2-media-mosaic {
  opacity: 1;
}

.ms-v2-card-media--multi:hover .ms-v2-media-main,
.ms-v2-card:focus-visible .ms-v2-media-main {
  opacity: 0;
}

.ms-v2-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #242424;
  font-size: 0.68rem;
  font-weight: 700;
}

.ms-v2-save {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #2f2f2f;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ms-v2-card-body {
  padding: 10px 2px 2px;
}

.ms-v2-card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.ms-v2-card-body p {
  margin: 5px 0 0;
  color: #666;
  font-size: 0.84rem;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ms-v2-meta-line {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #676767;
}

.ms-v2-price-line {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.ms-v2-price-line strong {
  font-size: 0.87rem;
}

.ms-v2-price-line span {
  color: #666;
  font-size: 0.74rem;
}

@media (max-width: 1280px) {
  .ms-v2-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .ms-v2-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 24px;
    top: 84px;
  }

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

@media (max-width: 820px) {
  .ms-v2-toolbar {
    position: static;
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 16px;
  }

  .ms-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .ms-v2-grid {
    grid-template-columns: 1fr;
  }
}

/* Microsite V2 refinements (Airbnb-like controls and card rhythm) */
.ms-v2-hero .container,
.ms-v2-shell.container {
  width: min(1824px, calc(100% - 96px));
}

.ms-v2-hero {
  padding: 30px 0 12px;
}

.ms-v2-hero h1 {
  font-size: clamp(1.9rem, 3.9vw, 3.25rem);
  letter-spacing: -0.01em;
}

.ms-v2-hero p {
  margin-top: 10px;
  font-size: 1.02rem;
}

.ms-v2-shell {
  padding-top: 0;
  padding-bottom: 44px;
}

.ms-v2-surface {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #fff;
}

.ms-v2-shell.is-loading {
  opacity: 0.62;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.ms-v2-toolbar-rail {
  position: sticky;
  top: calc(var(--nav-height) - 8px);
  z-index: 29;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 11px 0 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(15px) saturate(145%) brightness(1.02);
  backdrop-filter: blur(15px) saturate(145%) brightness(1.02);
  box-shadow: none;
  margin-bottom: 12px;
}

.ms-v2-toolbar-rail::before {
  display: none;
}

.ms-v2-toolbar-inner {
  width: min(1824px, calc(100% - 96px));
  margin: 0 auto;
  min-height: 44px;
  display: block;
}

.ms-v2-toolbar {
  position: static;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 !important;
  padding-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
}

@media (min-width: 821px) {
  .ms-v2-toolbar-rail {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(15px) saturate(145%) brightness(1.02);
    backdrop-filter: blur(15px) saturate(145%) brightness(1.02);
    box-shadow: none;
  }

  .ms-v2-toolbar-rail::before {
    display: none;
  }

  .ms-v2-toolbar-inner {
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .ms-v2-pill {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(255, 255, 255, 0.52);
    box-shadow: none;
  }

  .ms-v2-pill--filter:hover {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.62);
  }
}

.ms-v2-pill {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #d2d2d2;
  background: #fff;
  color: #222;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.ms-v2-pill-icon {
  font-size: 0.96rem;
  line-height: 1;
}

.ms-v2-pill--static {
  background: #f7f7f7;
}

.ms-v2-pill--filter {
  cursor: pointer;
}

.ms-v2-pill--filter[aria-expanded="true"] {
  border-color: #101010;
  box-shadow: 0 0 0 1px #101010;
}

.ms-v2-caret {
  font-size: 0.92rem;
  color: #444;
}

.ms-v2-filter {
  position: relative;
}

.ms-v2-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 32;
  width: min(640px, 92vw);
  border: 1px solid #d7d7d7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.ms-v2-chip-grid {
  max-height: 390px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-v2-chip {
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  background: #fff;
  min-height: 42px;
  padding: 0 14px;
  color: #242424;
  font-size: 1.03rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ms-v2-chip-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.ms-v2-chip:hover {
  border-color: #9f9f9f;
}

.ms-v2-chip.is-active {
  border-color: #101010;
  box-shadow: 0 0 0 1px #101010;
}

.ms-v2-dropdown-foot {
  border-top: 1px solid #ececec;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ms-v2-link-muted {
  border: 0;
  background: transparent;
  color: #b6b6b6;
  font-size: 1rem;
  cursor: pointer;
}

.ms-v2-link-muted:hover {
  color: #707070;
}

.ms-v2-apply {
  border: 0;
  border-radius: 12px;
  background: #232323;
  color: #fff;
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
}

.ms-v2-results-head {
  margin: 22px 0 16px;
}

.ms-v2-results-head strong {
  font-size: 1.95rem;
  line-height: 1;
}

.ms-v2-results-head span {
  font-size: 1.03rem;
}

.ms-v2-group + .ms-v2-group {
  margin-top: 34px;
}

.ms-v2-group-head h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
}

.ms-v2-grid {
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 24px;
}

.ms-v2-card-media {
  border-radius: 18px;
  aspect-ratio: 1 / 0.88;
}

.ms-v2-card-body {
  padding: 10px 0 2px;
}

.ms-v2-card-body h3 {
  font-size: 1.02rem;
  line-height: 1.28;
}

.ms-v2-card-body p {
  margin-top: 4px;
  font-size: 0.84rem;
  -webkit-line-clamp: 1;
}

.ms-v2-meta-line {
  margin-top: 6px;
  font-size: 0.8rem;
}

.ms-v2-price-line {
  margin-top: 5px;
}

.ms-v2-price-line strong {
  font-size: 0.9rem;
}

.ms-v2-price-line span {
  font-size: 0.8rem;
}

@media (max-width: 1560px) {
  .ms-v2-hero .container,
  .ms-v2-shell.container,
  .ms-v2-toolbar-inner {
    width: min(100%, calc(100% - 72px));
  }

  .ms-v2-grid {
    grid-template-columns: repeat(auto-fill, minmax(254px, 1fr));
  }
}

@media (max-width: 1320px) {
  .ms-v2-grid {
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  }
}

@media (max-width: 1024px) {
  .ms-v2-hero .container,
  .ms-v2-shell.container,
  .ms-v2-toolbar-inner {
    width: min(100%, calc(100% - 34px));
  }

  .ms-v2-toolbar-rail {
    top: calc(var(--nav-height) - 6px);
  }

  .ms-v2-dropdown {
    width: min(620px, 94vw);
  }

  .ms-v2-grid {
    grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  }
}

@media (max-width: 820px) {
  .ms-v2-shell {
    padding-top: 0;
  }

  .ms-v2-toolbar-rail {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin: 14px 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    overflow: visible;
    z-index: auto;
  }

  .ms-v2-toolbar-inner {
    width: 100%;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .ms-v2-toolbar {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    overflow: visible;
    z-index: 3;
  }

  .ms-v2-pill {
    min-height: 38px;
    font-size: 0.93rem;
    padding: 0 12px;
  }

  .ms-v2-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    transform: none;
    width: 100%;
    max-width: none;
    max-height: min(64dvh, 440px);
    overflow: hidden;
    z-index: 40;
  }

  .ms-v2-filter {
    position: static;
  }

  .ms-v2-chip-grid {
    max-height: min(56dvh, 360px);
    overflow-y: auto;
  }

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

  .ms-v2-group-head {
    margin-bottom: 12px;
  }

  .ms-v2-group-head h2 {
    font-size: clamp(1.7rem, 5.7vw, 2.1rem);
    line-height: 1.05;
  }
}

@media (max-width: 560px) {
  .hero.inner-hero:not(.detail-hero) {
    height: clamp(340px, 58vh, 470px);
  }

  .hero.inner-hero:not(.detail-hero) .hero-overlay {
    padding: 84px 14px 34px;
  }

  .hero-kicker {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .ms-v2-hero h1 {
    font-size: clamp(1.52rem, 7.6vw, 2.06rem);
  }

  .hero.inner-hero:not(.detail-hero) .hero-overlay h1 {
    font-size: clamp(1.95rem, 9.1vw, 2.55rem);
  }

  .hero-subtitle {
    max-width: 94%;
    font-size: clamp(1rem, 4.4vw, 1.22rem);
  }

  .ms-v2-shell {
    padding-top: 0;
  }

  .ms-v2-toolbar-inner {
    width: min(100%, calc(100% - 16px));
  }

  .ms-v2-toolbar {
    flex-wrap: wrap;
    overflow-x: visible;
    overscroll-behavior-x: auto;
    -webkit-overflow-scrolling: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    gap: 6px;
  }

  .ms-v2-toolbar-rail {
    margin-top: 12px;
  }

  .ms-v2-pill {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .ms-v2-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse) {
  .ms-v2-media-mosaic {
    display: none !important;
  }

  .ms-v2-card-media--multi:hover .ms-v2-media-main,
  .ms-v2-card:focus-visible .ms-v2-media-main {
    opacity: 1;
  }
}
