/* The Portugal guide: one map, followed by a readable directory. */
body.guide-page .guide-experience {
  color: var(--ink, #2f5972);
  background: var(--ivory, #fffdf7);
  font-family: var(--sans, 'DM Sans', Arial, sans-serif);
}
body.guide-page .guide-experience .wrap,
body.guide-page .guide-footer {
  width: min(1160px, 90%);
  margin-inline: auto;
}
body.guide-page .guide-experience section[id] {
  scroll-margin-top: calc(var(--header-height, 74px) + 24px);
}
body.guide-page .guide-experience :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--focus, #185246);
  outline-offset: 4px;
}
body.guide-page .guide-experience :is(h1, h2, h3) {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-weight: 400;
  color: var(--ink, #2f5972);
}

/* A personal opening, with the three destinations kept together beneath it. */
body.guide-page .guide-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 64px;
  padding-block: 52px 36px;
}
body.guide-page .guide-hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(52px, 5.3vw, 76px);
  line-height: 1.02;
  letter-spacing: -1.2px;
}
body.guide-page .guide-hero-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted, #486578);
  font-size: 15px;
  line-height: 1.8;
}
body.guide-page .guide-hero-copy p + p { margin-top: 16px; }
body.guide-page .guide-destinations { padding-block: 8px 40px; }
body.guide-page .destination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 8px;
  font-size: 14px;
}
body.guide-page .destination-controls button {
  min-height: 44px;
  padding: 8px 0 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.guide-page .destination-controls button[aria-pressed="true"] { font-weight: 600; text-decoration-thickness: 2px; }
body.guide-page .destination-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
body.guide-page .guide-destinations .destination-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 12px 12px 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  text-align: center;
  transition: border-color .15s ease;
}
body.guide-page .guide-destinations .destination-card:hover,
body.guide-page .guide-destinations .destination-card[aria-pressed="true"] {
  border-bottom-color: var(--ink, #2f5972);
}
body.guide-page .guide-destinations .destination-card img {
  width: 100%;
  height: clamp(170px, 17vw, 210px);
  max-width: 320px;
  margin: 0;
  object-fit: contain;
}
body.guide-page .guide-destinations .destination-card > span {
  display: block !important;
  margin: 0;
  padding: 0;
}
body.guide-page .guide-destinations .destination-card strong {
  display: block;
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.15;
  white-space: normal;
}
body.guide-page .guide-destinations .destination-card small {
  display: block;
  max-width: 30ch;
  margin: 8px auto 0;
  color: var(--muted, #486578);
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}

/* The Google frame is the map surface; it needs no second card around it. */
body.guide-page .guide-map-section { padding-block: 0 52px; }
body.guide-page .guide-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
body.guide-page .guide-map-heading h2,
body.guide-page .directory-heading h2 {
  margin: 0;
  font-size: clamp(36px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -.4px;
}
body.guide-page .guide-map-heading p {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--muted, #486578);
  font-size: 13px;
  line-height: 1.6;
}
body.guide-page .guide-map-heading > .button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink, #2f5972);
  border-radius: 5px;
  background: var(--ink, #2f5972);
  color: var(--ivory, #fffdf7);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0;
}
body.guide-page .guide-map-heading > .button:hover {
  border-color: var(--dark, #23465a);
  background: var(--dark, #23465a);
}
body.guide-page .guide-map-frame#places-map {
  display: block;
  width: 100%;
  min-height: 420px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.guide-page .guide-map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  max-width: 100%;
  margin: 0;
  border: 0;
}
body.guide-page .guide-map-frame .map-feedback {
  margin: 8px 0 0;
  color: var(--muted, #486578);
  font-size: 13px;
  line-height: 1.6;
}
body.guide-page .guide-map-frame .map-feedback:empty { display: none; }
body.guide-page .map-save-row {
  display: flex;
  align-items: flex-start;
  gap: 8px 28px;
  flex-wrap: wrap;
  padding-block: 8px 0;
  font-size: 13px;
  line-height: 1.6;
}
body.guide-page .map-save-row > a,
body.guide-page .map-save-help > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  text-underline-offset: 4px;
}
body.guide-page .map-save-help {
  max-width: 560px;
  margin: 0;
  padding: 0;
  border: 0;
}
body.guide-page .map-save-help > summary {
  width: fit-content;
  cursor: pointer;
  text-decoration: underline;
}
body.guide-page .map-save-help p {
  margin: 4px 0 12px;
  color: var(--muted, #486578);
  font-size: 13px;
  line-height: 1.7;
}
body.guide-page .map-save-row #fit-map { min-height: 44px; margin-left: auto; padding: 8px 0; border: 0; border-radius: 0; background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

/* Filters belong to the list. Place photos and names do the visual work. */
body.guide-page .guide-directory {
  padding-block: 36px 52px;
  border-top: 1px solid var(--line, #c8d7de);
}
body.guide-page .directory-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
body.guide-page .directory-heading p {
  margin: 0;
  color: var(--muted, #486578);
  font-size: 14px;
  line-height: 1.5;
}
body.guide-page .browse-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .45fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
}
body.guide-page .guide-search,
body.guide-page .guide-category { min-width: 0; margin: 0; }
body.guide-page .browse-controls label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink, #2f5972);
  font-size: 14px;
  line-height: 1.5;
}
body.guide-page .browse-controls :is(input, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--control-line, #81949d);
  border-radius: 4px;
  background: var(--ivory, #fffdf7);
  color: var(--ink, #2f5972);
  font: 400 16px/1.5 var(--sans, 'DM Sans', Arial, sans-serif);
}
body.guide-page .browse-controls input::placeholder { color: var(--muted, #486578); opacity: 1; }
body.guide-page .browse-controls select { padding-right: 32px; }
body.guide-page .browse-controls #reset-filters {
  min-height: 48px;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.guide-page .guide-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
}
body.guide-page .guide-result-grid .place-card {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.guide-page .place-card .place-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 4px;
}
body.guide-page .place-card .place-photo img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
body.guide-page .place-card .place-photo.is-illustration img { object-fit: contain; }
body.guide-page .mobile-menu p { font-size: 12px; }
body.guide-page .place-card .place-meta {
  margin: 16px 0 8px;
  color: var(--muted, #486578);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
body.guide-page .place-card h3 {
  margin: 0 0 10px;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: -.2px;
  overflow-wrap: anywhere;
}
body.guide-page .place-card h3 a {
  text-decoration: underline;
  text-decoration-color: var(--line, #c8d7de);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
body.guide-page .place-card h3 a:hover { text-decoration-color: currentColor; }
body.guide-page .place-card .card-description {
  display: block;
  max-width: none;
  margin: 0;
  overflow: visible;
  color: var(--muted, #486578);
  font-size: 15px;
  line-height: 1.65;
  -webkit-line-clamp: unset;
}
body.guide-page .place-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 4px;
}
body.guide-page .place-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.5;
  text-underline-offset: 4px;
}
body.guide-page .guide-more {
  display: block;
  min-height: 48px;
  margin: 36px auto 0;
  padding: 12px 24px;
  border: 1px solid var(--ink, #2f5972);
  border-radius: 5px;
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
}
body.guide-page .guide-more:hover { background: var(--blue-wash, #edf4fa); }
body.guide-page .guide-empty {
  padding: 32px 0;
  text-align: left;
}
body.guide-page .guide-empty h3 { margin: 0 0 12px; font-size: 31px; }
body.guide-page .guide-empty p { margin: 0 0 16px; font-size: 15px; }
body.guide-page .guide-empty button {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.guide-page .guide-practical {
  padding-block: 0 36px;
  font-size: 14px;
}
body.guide-page .guide-practical details { padding-block: 12px; border-top: 1px solid var(--line, #c8d7de); }
body.guide-page .guide-practical summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
body.guide-page .guide-practical p { max-width: 70ch; margin: 8px 0 12px; color: var(--muted, #486578); line-height: 1.75; }
body.guide-page .guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line, #c8d7de);
  font-size: 13px;
  line-height: 1.6;
}
body.guide-page .guide-footer p { margin: 0; }
body.guide-page .guide-footer a { min-height: 44px; }
body.guide-page .guide-footer > a:first-child { font-family: var(--sans, 'DM Sans', Arial, sans-serif); font-size: 13px; }

@media (max-width: 1000px) {
  body.guide-page .guide-hero { gap: 36px; padding-top: 40px; }
  body.guide-page .guide-hero h1 { font-size: 60px; }
  body.guide-page .destination-options { gap: 20px; }
  body.guide-page .guide-destinations .destination-card img { height: 170px; }
  body.guide-page .guide-destinations .destination-card strong { font-size: 28px; }
  body.guide-page .guide-map-frame#places-map { min-height: 380px; }
  body.guide-page .guide-map-frame iframe { height: 380px; }
  body.guide-page .guide-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body.guide-page .guide-experience .wrap,
  body.guide-page .guide-footer { width: calc(100% - 32px); }
  body.guide-page .guide-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 32px 24px; }
  body.guide-page .guide-hero h1 { max-width: none; font-size: clamp(44px, 10vw, 58px); line-height: 1.05; letter-spacing: -.8px; }
  body.guide-page .guide-hero-copy p { font-size: 15px; line-height: 1.75; }
  body.guide-page .guide-hero-copy p + p { margin-top: 12px; }
  body.guide-page .guide-destinations { padding-block: 0 28px; }
  body.guide-page .destination-controls { margin-bottom: 0; font-size: 13px; }
  body.guide-page .destination-controls button { font-size: 13px; }
  body.guide-page .destination-options { gap: 8px; }
  body.guide-page .guide-destinations .destination-card { gap: 8px; padding: 8px 4px 12px; }
  body.guide-page .guide-destinations .destination-card img { width: 100%; height: 85px; }
  body.guide-page .guide-destinations .destination-card strong { font-size: 24px; line-height: 1.1; text-wrap: balance; }
  body.guide-page .guide-destinations .destination-card small { margin-top: 6px; font-size: 12px; line-height: 1.4; }
  body.guide-page .guide-map-section { padding-bottom: 32px; }
  body.guide-page .guide-map-heading { flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
  body.guide-page .guide-map-heading h2,
  body.guide-page .directory-heading h2 { font-size: 36px; }
  body.guide-page .guide-map-heading > .button { min-height: 44px; padding: 10px 16px; }
  body.guide-page .guide-map-frame#places-map { min-height: 340px; }
  body.guide-page .guide-map-frame iframe { height: 340px; }
  body.guide-page .map-save-row { gap: 0 20px; }
  body.guide-page .map-save-help { max-width: 100%; }
  body.guide-page .guide-directory { padding-block: 28px 36px; }
  body.guide-page .directory-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  body.guide-page .directory-heading p { font-size: 13px; }
  body.guide-page .browse-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 12px; margin-bottom: 28px; }
  body.guide-page .guide-search { grid-column: 1 / -1; }
  body.guide-page .browse-controls label { font-size: 13px; }
  body.guide-page .browse-controls #reset-filters { justify-self: end; }
  body.guide-page .guide-result-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.guide-page .place-card .place-meta { margin-top: 12px; }
  body.guide-page .place-card h3 { font-size: 30px; }
  body.guide-page .guide-more { margin-top: 28px; }
  body.guide-page .guide-practical { padding-bottom: 24px; }
  body.guide-page .guide-footer { flex-wrap: wrap; gap: 4px 16px; padding-block: 20px 24px; }
  body.guide-page .guide-footer p { width: 100%; }
}
@media (max-width: 380px) {
  body.guide-page .destination-options { gap: 4px; }
  body.guide-page .guide-destinations .destination-card strong { font-size: 22px; }
  body.guide-page .guide-destinations .destination-card small { font-size: 12px; }
  body.guide-page .guide-destinations .destination-card img { height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  body.guide-page .guide-destinations .destination-card { transition: none; }
}
@media (forced-colors: active) {
  body.guide-page .guide-destinations .destination-card[aria-pressed="true"] { border-bottom-color: Highlight; }
  body.guide-page .guide-map-heading > .button { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
}
@media print {
  body.guide-page .guide-experience .wrap { width: 100%; }
  body.guide-page .guide-hero { padding-top: 0; }
  body.guide-page .guide-map-section,
  body.guide-page .browse-controls,
  body.guide-page .destination-controls,
  body.guide-page .guide-more { display: none; }
  body.guide-page .guide-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.guide-page .place-card { break-inside: avoid; }
}
