@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* Compact language menu, with the current language visible in the header. */
.site-header { position: relative; z-index: 10; }
.site-header .main-nav { margin-inline-start: auto; flex-wrap: wrap; }
.language-picker { position: relative; order: 2; color: #f5ebd8; z-index: 5; }
.language-picker summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #e9c89266;
  border-radius: 8px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-block-start: -3px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.language-picker[open] summary,
.language-picker summary:hover { background: #ffffff14; }
.language-current { display: inline-flex; align-items: center; gap: 6px; }
.language-flag {
  display: block;
  width: 19px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #112e3626;
}
.language-options {
  position: absolute;
  inset: calc(100% + 7px) 0 auto auto;
  display: grid;
  min-width: 174px;
  max-height: min(27rem, 65vh);
  max-height: min(27rem, 65dvh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 5px;
  border: 1px solid #d8c7a9;
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 8px 22px #152b3440;
}
.language-picker:not([open]) .language-options { display: none; }
.language-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #163d47;
  font: 600 14px/1.2 system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
.language-options button:is(:hover, [aria-pressed="true"]) { background: #efe8d8; }
.language-picker summary:focus-visible,
.language-options button:focus-visible { outline: 2px solid #c48f42; outline-offset: 2px; }

#tourCards .tour {
  --card-accent: #a86a36;
  --card-tint: #f8ebd8;
  border: 1px solid #dac6a7;
  border-radius: 16px;
  background: linear-gradient(155deg, #fffdfa 45%, var(--card-tint) 160%);
  box-shadow: 0 8px 20px #2b321616;
}
#tourCards .tour[data-category="car"] {
  --card-accent: #3b7776;
  --card-tint: #e4f0eb;
  border-color: #bfd2c9;
}
#tourCards .tour-photo-frame { border-bottom: 3px solid var(--card-accent); }
#tourCards h3 { overflow-wrap: anywhere; }
#tourCards .tour-meta .tour-duration {
  color: #253e40;
  background: var(--card-tint);
}
#tourCards .tour-description { color: #394d50; }
#tourCards .tour-price { border-color: #a38a634d; }
#tourCards .tour-actions > :is(a, button) { max-width: 100%; white-space: normal; }
#tourCards .tour:focus-within { border-color: var(--card-accent); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #tourCards .tour:hover {
    transform: translateY(-3px);
    border-color: var(--card-accent);
    box-shadow: 0 13px 28px #2b321624;
  }
}
@media (prefers-reduced-motion: reduce) {
  #tourCards .tour { transition: none; }
  #tourCards .tour:hover { transform: none; }
}
@media (max-width: 740px) {
  .site-header { justify-content: center; }
  .site-header .main-nav { order: 3; width: 100%; justify-content: center; margin-inline-start: 0; }
  .site-header .language-picker { order: 2; }
  .language-picker summary { padding-inline: 7px; }
  .language-picker .language-options { inset-inline-end: 0; }
}

.tour-detail-info .itinerary-language-note { margin-bottom: 6px; color: #465f65; font-size: 13px; font-weight: 650; }

@media (max-width: 365px) {
  .site-header.site-header { gap: 7px 9px; padding: 10px 9px; }
  .site-header .brand-logo { gap: 6px; }
  .site-header .brand-title { font-size: 17px; }
  .site-header .brand-crown { width: 34px; height: auto; }
  .site-header .brand-subtitle { font-size: 8px; }
  .site-header .main-nav { gap: 5px 7px; }
  .site-header .main-nav a { font-size: 11px; }
  .site-header .main-nav .nav-book { padding-inline: 8px; }
}

/* Editorial travel direction. Existing catalogue and reservation rules stay intact. */
:root {
  --travel-ink: #193c35;
  --travel-paper: #f8f6ef;
  --travel-gold: #eed39f;
  --travel-muted: #536259;
  --travel-line: #dcded2;
  --travel-serif: "Instrument Serif", Georgia, serif;
}
html { overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: "DM Sans", Arial, sans-serif;
  background: var(--travel-paper);
  color: var(--travel-ink);
  -webkit-font-smoothing: antialiased;
}
body :is(button, input, select, textarea) { font-family: inherit; }
body :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid #9a642c;
  outline-offset: 5px;
}
body .site-header {
  position: relative;
  z-index: 20;
  min-height: 100px;
  padding: 20px 5%;
  gap: 24px;
  background: var(--travel-paper);
  border-bottom: 1px solid var(--travel-line);
}
body .site-header .brand-logo { gap: 10px; color: var(--travel-ink); }
body .site-header .brand-title,
body .site-header .brand-title span { color: var(--travel-ink); font-size: 21px; letter-spacing: .04em; }
body .site-header .brand-subtitle { color: #59644f; font-size: 12px; letter-spacing: .2em; }
body .brand-crown { width: 43px; }
body .site-header .main-nav { gap: 30px; }
body .site-header .main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--travel-ink);
  font-size: 14px;
  font-weight: 500;
}
body .site-header .main-nav .nav-book {
  gap: 22px;
  padding: 13px 25px;
  border: 1px solid var(--travel-ink);
  border-radius: 2px;
  background: var(--travel-ink);
  color: white;
  box-shadow: none;
}
body .site-header .nav-book::before { content: "↗"; order: 1; font-size: 19px; }
body .site-header .language-picker { color: var(--travel-ink); }
body .language-picker summary { border: 0; font-size: 14px; }
body .language-options { border-radius: 2px; }
body .site-header .main-nav a[aria-current="page"]:not(.nav-book) { color: #6d4827; }

body .home-hero {
  min-height: min(760px, 78svh);
  padding: 82px 7% 125px;
  align-items: center;
  background: #193c35;
}
body .home-hero::after {
  background: linear-gradient(90deg, #102d29ed 0%, #102d29b8 34%, #102d2926 76%),
    linear-gradient(0deg, #102d29ba, transparent 35%);
}
body .home-hero-photo { object-position: center 55%; }
body .home-hero .hero-content { width: min(100%, 730px); max-width: 730px; }
body .lower-kicker {
  font: 600 12px/1.5 "DM Sans", sans-serif;
  letter-spacing: .2em;
  margin-bottom: 20px;
  color: #72542b;
}
body .home-hero .lower-kicker { color: #f4dcb0; }
body .home-hero .lower-kicker::before {
  content: "";
  display: inline-block;
  width: 35px;
  height: 1px;
  margin: 0 14px 4px 0;
  background: currentColor;
}
body .home-hero h1 {
  max-width: 680px;
  margin: 0 0 25px;
  font: 400 clamp(52px, 6.7vw, 94px)/.99 var(--travel-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
body .home-hero h1 em { color: #f3d7a5; font-weight: 400; }
body .home-hero p { max-width: 39ch; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; margin: 30px 0 25px; }
body .booking-cta:is(a, button) {
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid #e4c58f;
  border-radius: 2px;
  background: var(--travel-gold);
  color: #193c35;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}
body .booking-cta:is(a, button):hover { background: #f8dfb5; }
.hero-actions .booking-cta { gap: 30px; margin: 0; }
.hero-actions .booking-cta span { font-size: 21px; }
.hero-story-link { display: inline-flex; align-items: center; gap: 17px; min-height: 44px; color: #fff; text-decoration: none; font-size: 14px; border-bottom: 1px solid #ffffff75; }
body .hero-highlights { margin-top: 0; font-size: 12px; font-weight: 400; letter-spacing: .02em; }
body .home-hero-dock { right: 5%; bottom: 37px; gap: 10px; grid-template-columns: auto auto; max-width: 300px; align-items: center; }
.hero-dock-label { grid-column: 1 / -1; font: italic 20px var(--travel-serif); color: #fff6e7; }
body .home-hero-location { background: none; border: 0; padding: 0; font-size: 14px; }
body .home-hero-count { border: 0; border-radius: 0; background: none; padding: 0; color: #f3d7a5; font-size: 12px; }
.hero-slide-controls { grid-column: 1 / -1; display: flex; gap: 12px; }
.hero-slide-controls button { min-height: 44px; padding: 6px 13px; border: 1px solid #fff6df8c; border-radius: 0; background: #193c35; color: white; font-size: 12px; cursor: pointer; }
.hero-slide-controls button:hover { background: #36594c; }
.hero-scroll-link { position: absolute; bottom: 40px; left: 7%; display: inline-flex; gap: 36px; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-size: 12px; letter-spacing: .05em; }
.hero-scroll-link span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ffffff80; border-radius: 50%; font-size: 19px; }
.travel-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 7%; border-bottom: 1px solid var(--travel-line); background: #f0ede3; }
.travel-note > span:first-child { flex-shrink: 0; font: 30px var(--travel-serif); }
.travel-note em { color: #79532d; }
.travel-note p { max-width: 48ch; margin: 0; color: var(--travel-muted); font-size: 14px; line-height: 1.7; }
.travel-note-mark { color: #805e35; font-size: 42px; }

body #tours { position: relative; display: flex; flex-direction: column; padding: 85px 7% 95px; background: var(--travel-paper); }
body #tours > h2 { order: -3; margin-bottom: 16px; text-align: left; font: 400 clamp(42px, 4.8vw, 64px)/1.05 var(--travel-serif); letter-spacing: -.025em; }
body #tours > h2::before { content: var(--exploring-label, "THE ART OF EXPLORING"); display: block; margin-bottom: 20px; color: #72542b; font: 600 12px "DM Sans", sans-serif; letter-spacing: .2em; }
body #tours > .subtitle { order: -2; max-width: 53ch; margin: 0 0 32px; color: var(--travel-muted); font-size: 14px; line-height: 1.8; text-align: left; }
body #tours .tour-tabs { align-self: flex-start; width: auto; max-width: 100%; margin: 0 0 12px; padding: 0; gap: 20px; border: 0; border-radius: 0; background: none; }
body #tours .tab-btn { padding: 12px 0; border: 0; border-bottom: 1px solid #cdd0c4; border-radius: 0; background: none; color: #536259; font: 500 14px "DM Sans", sans-serif; }
body #tours .tab-btn.active { border-color: #193c35; color: #193c35; }
body #tourCards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 25px; margin-top: 20px; }
body #tourCards .tour { border: 0; border-radius: 0; background: none; box-shadow: none; }
body #tourCards .tour:hover { border: 0; box-shadow: none; }
body #tourCards .tour-photo-frame { aspect-ratio: 1.18; max-height: none; border: 0; border-radius: 3px; background: #d4d8c9; }
body #tourCards .tour-content { padding: 23px 0 0; }
body #tourCards .tour-meta { margin-bottom: 14px; gap: 13px; }
body #tourCards .tour-meta .tour-duration { padding: 0; background: none; color: #73502d; font-size: 12px; font-weight: 500; }
body #tourCards .tour-meta .tour-vehicle { color: #536259; font-size: 12px; font-weight: 400; border-left: 1px solid #bbc1b3; padding-left: 13px; }
body #tourCards h3 { font: 400 33px/1.05 var(--travel-serif); color: var(--travel-ink); overflow-wrap: normal; }
body #tourCards .tour-description { color: var(--travel-muted); font-size: 14px; line-height: 1.8; }
body #tourCards .tour-price { padding-top: 17px; border-color: var(--travel-line); color: var(--travel-ink); font-size: 14px; line-height: 1.6; font-weight: 500; }
body #tourCards .tour-actions { gap: 10px; }
body #tourCards .tour-actions .booking-cta { flex: 1 1 100%; justify-content: space-between; background: #193c35; border-color: #193c35; color: white; }
body #tourCards .tour-details-button { border: 0; border-bottom: 1px solid var(--travel-line); border-radius: 0; justify-content: flex-start; padding-left: 0; color: #304f42; font-weight: 500; }
body .tour-photo-arrow { background: #193c35; color: #fff9e9; border: 1px solid #ffffff94; font-size: 16px; }

body .about-section { padding: 95px 7%; background: #e9ede4; }
body .about-layout { max-width: 1280px; gap: clamp(35px, 7vw, 110px); }
body .about-photo { border-radius: 2px; aspect-ratio: 4 / 4.2; }
body .about-copy :is(h1, h2),
body .package-intro :is(h1, h2),
body .booking-intro :is(h1, h2),
body .guest-gallery-heading h2,
body .why-us h2 { font: 400 clamp(42px, 4.8vw, 66px)/1.05 var(--travel-serif); letter-spacing: -.02em; }
body .about-copy p { color: #46594d; font-size: 15px; line-height: 1.9; }
body .about-link { margin-top: 12px; gap: 35px; color: var(--travel-ink); font-size: 14px; text-decoration-thickness: 1px; text-underline-offset: 7px; }
body .packages { --section-ink: #193c35; padding: 90px 7%; background: var(--travel-paper); }
body .packages .container,
body .gallery-container,
body .why-us .container,
body .booking-layout,
body .footer-main,
body .footer-legal { max-width: 1280px; width: 100%; }
body .package-intro { border-radius: 2px; background: #193c35; }
body .package-intro-copy { padding: clamp(30px, 5vw, 68px); }
body .package-intro-photo { min-height: 370px; }
body .package-savings { border-radius: 2px; background: #efeadc; }
body .package-savings dl { grid-template-columns: 1fr; justify-self: end; width: min(100%, 170px); }
body .package-savings dl div { border-radius: 0; background: transparent; }
body #packageBuilder,
body .booking #bookingForm { border-radius: 3px; box-shadow: none; border: 1px solid #d8dbcf; background: #fffdf7; }
body #packageBuilder .package-tour { border-radius: 2px; border-top-color: #ac8d5f; background: #f5f5ed; }
body :is(#packageBuilder, #bookingForm) :is(label, p, .booking-note, .payment-policy-note) { font-size: 14px; opacity: 1; }
body :is(#packageBuilder, #bookingForm) :is(input, select, textarea, .date-control) { border-radius: 2px; }
body .experience-gallery { padding: 85px 7%; background: #eeeee5; }
body .guest-gallery-heading { margin-bottom: 30px; }
body .gallery-slider { gap: 22px; }
body .gallery-slider img { width: min(74vw, 330px); border-radius: 2px; box-shadow: none; }
body .experience-gallery .gallery-arrow { border: 1px solid #728371; background: transparent; color: #193c35; }
body .why-us { padding: 90px 7%; background: var(--travel-paper); }
body .why-us-grid { gap: 30px; margin-top: 35px; }
body .why-us .why-us-item { border: 0; border-top: 1px solid #bec7b7; border-radius: 0; padding: 28px 0; background: none; }
body .why-us-index { display: block; background: none; font: italic 30px var(--travel-serif); color: #795b34; }
body .why-us-item h3 { color: #193c35; font: 400 30px var(--travel-serif); }
body .why-us-item p { font-size: 14px; line-height: 1.8; color: #536259; }
body .booking { --section-ink: #193c35; padding: 95px 7%; background: #193c35; }
body .booking-photo { border-radius: 2px; aspect-ratio: 4 / 3; margin-top: 35px; }
body :is(.about-photo, .booking-photo, .package-intro-photo) figcaption { border-radius: 0; font-size: 12px; background: #193c35; color: #fff; }
body .site-footer { padding: 60px 7% 25px; background: #122c26; color: #e3e8dc; }
body .footer-brand { font: 400 40px var(--travel-serif); color: #f1d9b0; }
body .footer-main nav,
body .footer-legal { font-size: 14px; }
body .footer-legal { align-items: center; margin-top: 35px; }
body .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
body .site-subpage .page-breadcrumb { padding-block: 16px; background: #f0ede3; font-size: 14px; }
body .site-subpage .subpage-banner { padding-block: 85px; background-image: linear-gradient(90deg, #102d29eb, #102d2955), url("images/destinations/alfama-2.jpg"); }
body .site-subpage .subpage-banner h1 { font: 400 clamp(52px, 7vw, 88px)/1.05 var(--travel-serif); }
body .subpage-booking { background: #e9ede4; }
body .subpage-booking h2 { font-family: var(--travel-serif); font-weight: 400; }
body .policy-page { font-size: 16px; line-height: 1.7; }
body .policy-page h1 { font-family: var(--travel-serif); font-weight: 400; }
body .policy-card { border-radius: 2px; box-shadow: none; }

@media (min-width: 1280px) {
  body .home-hero { padding-left: max(7%, calc((100vw - 1280px) / 2)); }
}
@media (max-width: 1023px) {
  body .site-header { gap: 16px; padding-inline: 4%; }
  body .site-header .main-nav { gap: 18px; }
  body .site-header .brand-title { font-size: 18px; }
  body #tourCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .home-hero h1 { max-width: 560px; font-size: clamp(56px, 8vw, 80px); }
  .travel-note-mark { display: none; }
}
@media (max-width: 799px) {
  body .site-header { justify-content: space-between; gap: 15px; padding: 18px 5% 10px; }
  body .site-header .main-nav { order: 3; width: 100%; justify-content: space-between; margin: 0; gap: 8px; }
  body .site-header .main-nav a { font-size: 14px; white-space: normal; }
  body .site-header .main-nav .nav-book { padding: 10px 13px; gap: 7px; }
  body .site-header .brand-subtitle { font-size: 12px; }
  body .home-hero { min-height: 680px; padding: 60px 6% 190px; align-items: center; }
  body .home-hero h1 { max-width: 550px; font-size: clamp(51px, 9vw, 72px); }
  body .home-hero::after { background: linear-gradient(90deg, #102d29de, #102d2970), linear-gradient(0deg, #102d29d9, transparent); }
  body .home-hero .home-hero-dock { left: 6%; right: 6%; bottom: 30px; max-width: none; justify-items: start; gap: 8px 20px; }
  .hero-dock-label { display: none; }
  .hero-slide-controls { grid-column: 2; grid-row: 1 / 3; justify-self: end; }
  .hero-scroll-link { display: none; }
  .hero-actions { gap: 12px 23px; }
  .travel-note { align-items: flex-start; flex-direction: column; padding: 25px 6%; gap: 10px; }
  body #tours, body .about-section, body .packages, body .experience-gallery, body .why-us, body .booking { padding: 60px 6%; }
  body .about-layout, body .booking-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  body .about-photo { aspect-ratio: 4 / 3; }
  body .about-copy { grid-row: auto; }
  body .package-intro { grid-template-columns: minmax(0, 1fr); }
  body .package-intro-photo { min-height: 280px; }
  body .guest-gallery-heading { flex-wrap: wrap; }
  body .footer-main { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  body #tourCards { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  body .home-hero { min-height: 690px; padding-top: 45px; padding-bottom: 150px; }
  body .home-hero h1 { font-size: clamp(50px, 12vw, 63px); }
  body .hero-highlights { gap: 7px 12px; font-size: 12px; }
  body #tours .tour-tabs { gap: 15px; }
  body #tours .tab-btn { font-size: 14px; text-align: left; }
  body .package-savings { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  body .package-savings p { font-size: 14px; }
  body .site-header .brand-title { font-size: 18px; }
  body .site-header .main-nav a { font-size: 14px; }
  body .site-header .main-nav .nav-book::before { display: none; }
  body #packageTours { grid-template-columns: minmax(0, 1fr); }
  body .why-us-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
