/* A short home page, followed by one destination at a time. */
:root {
  --experience-header-height: 72px;
  --experience-tabs-height: 58px;
}

[hidden] { display: none !important; }
body { font-size: 16px; line-height: 1.6; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--experience-header-height) + var(--experience-tabs-height) + 16px); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  /* Keep the header's design height separate from its measured sticky offset. */
  height: 72px;
  border-bottom: 1px solid #e4e7de;
  box-shadow: 0 3px 15px #173d3210;
}
.desktop-nav a { min-height: 44px; }
.desktop-nav { font-size: 13px; }
.desktop-nav .active::after { bottom: 11px; }
.skip-link { z-index: 1200; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus { outline: none; }

/* Keep the opening focused on choosing a destination. */
.hero {
  height: auto;
  min-height: 430px;
  padding: 44px max(56px, calc((100% - 1360px) / 2)) 76px;
}
.hero-image { position: absolute; inset: 0; }
.hero-shade {
  background: linear-gradient(90deg, #0e2b24cf 0%, #0e2b24b0 38%, #0e2b242e 72%, #0e2b2405 100%), linear-gradient(0deg, #102a2233, transparent 55%);
}
.hero-content { position: relative; inset: auto; max-width: 840px; }
.hero h1 { margin-block: 18px; font-size: clamp(40px, 4.2vw, 58px); }
.hero-description {
  width: fit-content;
  max-width: min(620px, calc(100% + 24px));
  margin-inline: -12px;
  margin-bottom: 24px;
  padding: 6px 12px;
  border-radius: 7px;
  background: #0e2b2466;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}
.hero .travel-picker { max-width: 580px; }
.hero .travel-picker-help { color: #f1f1e5; }
.hero-caption { bottom: 22px; right: 28px; max-width: calc(100% - 56px); font-size: 12px; line-height: 1.5; }
.hero-bottom { display: none; }

/* Regions replace the full catalogue on the first visit. */
.world-section { padding-top: 32px; }
.world-intro { max-width: 680px; margin-bottom: 20px; color: #586c57; font-size: 16px; line-height: 1.6; }
#world-region-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}
#world-region-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d1ddca;
  border-radius: 7px;
  background: #f6f7ef;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
#world-region-nav button svg { width: 14px; height: 14px; }
#world-region-nav button:hover { background: #e9efdf; border-color: #94aa85; }
#world-region-nav button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.world-browse-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin: 0 0 14px; }
.world-browse-all button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; color: var(--green); background: transparent; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.world-featured-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.world-featured-heading h3, h3.world-featured-heading { margin: 0; font: 500 27px / 1.3 var(--serif); color: var(--ink); }
.world-featured-heading p { margin: 0; color: #586c57; font-size: 14px; }
.world-regions { gap: 30px; }
.world-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
.world-featured-section .world-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.world-card-link { display: flex; flex: 1; flex-direction: column; min-width: 0; border-radius: 10px; color: inherit; }
.world-card-link:focus-visible { outline: 3px solid #bd7346; outline-offset: 6px; }
.world-card-body { padding-top: 14px; }
.world-image-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 10px; background: #e7ebdf; }
[data-world-photo="peru"] .world-image { object-position: 68% center; }
.world-region { color: #607155; font-size: 12px; letter-spacing: .6px; }
.world-summary { color: #586c57; margin-block: 9px 14px; font-size: 16px; line-height: 1.6; }
.world-card h4.world-card-title { min-height: 0; font-size: 27px; line-height: 1.25; }
.world-card-title:hover { color: var(--ink); }
.world-card-footer { padding-top: 4px; }
.world-explore.world-guide-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 5px 0; border: 0; font-size: 14px; line-height: 1.5; text-decoration: none; color: var(--green); }
.world-explore.world-guide-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.world-card-link:hover .world-explore { text-decoration: underline; text-underline-offset: 4px; }
.world-region-heading > span { color: #586c57; font-size: 13px; }

/* Useful details remain readable without competing with destination photos. */
.site-footer { align-items: flex-start; }
.site-footer p { color: #607155; font-size: 13px; line-height: 1.6; }
.site-footer .footer-links { max-width: 720px; gap: 4px 20px; font-size: 13px; color: #586c57; }
.site-footer .footer-links a, .site-footer .footer-links button { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; line-height: 1.5; }
.site-footer .footer-links > span { font-size: 12px; }
.newsletter.page-width { gap: 20px; margin-top: 30px; margin-bottom: 20px; padding: 20px; border-radius: 12px; }
.newsletter.page-width h2 { font-size: 21px; margin-bottom: 6px; }
.newsletter.page-width p { margin-block: 5px; font-size: 16px; line-height: 1.6; }
.newsletter.page-width .newsletter-note { font-size: 13px; line-height: 1.6; }
.newsletter.page-width .newsletter-actions { flex-basis: 380px; }
.newsletter.page-width .newsletter-link { min-height: 44px; padding: 11px 16px; font-size: 14px; }
.newsletter.page-width .newsletter-privacy { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; font-size: 13px; }

/* A single selector and three clearly separated views for a destination. */
#collection-shell { padding-bottom: 18px; }
.collection-context { padding-top: 30px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.collection-toolbar > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.collection-toolbar > button svg { width: 16px; height: 16px; }
.collection-picker-label { display: flex; align-items: center; gap: 10px; color: #596d55; font-size: 12px; }
#collection-picker { min-height: 44px; width: min(280px, 100%); padding: 9px 36px 9px 12px; border: 1px solid #b9cab0; border-radius: 6px; background: #fffef9; color: var(--green); font-size: 14px; }
#collection-title { max-width: none; margin: 0 0 12px; color: var(--green-dark); font-size: clamp(34px, 4vw, 48px); line-height: 1.18; scroll-margin-top: calc(var(--experience-header-height) + 16px); }
.collection-summary { max-width: 760px; margin: 0 0 23px; color: #586c57; font-size: 13px; line-height: 1.8; }
.collection-tabs {
  position: sticky;
  top: var(--experience-header-height);
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  min-height: var(--experience-tabs-height);
  padding: 5px;
  border: 1px solid #d8e1d1;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 4px 12px #173d320b;
}
.collection-tabs [role="tab"] {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 5px;
  background: transparent;
  color: #4c6545;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.collection-tabs [role="tab"] svg { width: 17px; height: 17px; }
.collection-tabs [role="tab"]:hover { background: #edf1e5; }
.collection-tabs [role="tab"][aria-selected="true"] { background: var(--green); color: white; }
#places-panel, #flavors-panel, #tips-panel { min-width: 0; }
#collection-shell .nyc-highlights-section, #collection-shell .gastronomy-section, #collection-shell .tips-section { padding-top: 32px; }
#collection-shell .collection-switch, #collection-shell .highlights-jump { display: none; }
#collection-shell .section-heading { margin-bottom: 17px; }
.highlights-intro, .food-intro { color: #586c57; line-height: 1.75; }
.highlight-description, .food-description { color: #586c57; }
.highlight-group, .food-region { color: #4d6546; }
.highlight-card figcaption { color: #52644d; }
.highlight-card figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.food-photo figcaption { min-height: 0; padding-block: 9px; }
.food-feature .food-photo figcaption { color: #e5eadc; }
.food-section-note { color: #607155; }
.place-access-button { min-height: 46px; }
#show-all-highlights, #show-all-food { display: flex; min-height: 46px; width: fit-content; max-width: 100%; margin: 24px auto 0; }

/* Full maps and longer reading stay available without lengthening the first view. */
#guides-disclosure, #inspiration-disclosure, .directory-disclosure {
  margin-top: 28px;
  border: 1px solid #d6dfce;
  border-radius: 8px;
  background: #f4f5ec;
}
#guides-disclosure > summary, #inspiration-disclosure > summary, .directory-disclosure > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 17px 21px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
#guides-disclosure > summary::-webkit-details-marker, #inspiration-disclosure > summary::-webkit-details-marker, .directory-disclosure > summary::-webkit-details-marker { display: none; }
#guides-disclosure > summary::after, #inspiration-disclosure > summary::after, .directory-disclosure > summary::after { content: '+'; font-size: 23px; font-weight: 400; line-height: 1; }
#guides-disclosure[open] > summary::after, #inspiration-disclosure[open] > summary::after, .directory-disclosure[open] > summary::after { content: '−'; }
#guides-disclosure > summary:focus-visible, #inspiration-disclosure > summary:focus-visible, .directory-disclosure > summary:focus-visible { outline: 3px solid #d28b39; outline-offset: 4px; border-radius: 6px; }
#guides-disclosure[open] > summary, #inspiration-disclosure[open] > summary, .directory-disclosure[open] > summary { border-bottom: 1px solid #d6dfce; }
#guides-disclosure > .page-width, #inspiration-disclosure > .page-width, .directory-disclosure > .page-width { width: 100%; max-width: none; margin: 0; }
#guides-disclosure > #destinos { padding: 24px 21px; }
#inspiration-disclosure > #inspiracion { margin: 0; border-radius: 0 0 8px 8px; }
.directory-disclosure { margin-bottom: 6px; }
.directory-disclosure > .seo-directory { padding: 24px 21px; border-top: 0; }
.seo-directory:has(> .directory-disclosure) { padding-block: 28px 0; border-top: 0; }
.seo-directory:has(> .directory-disclosure) > .directory-disclosure { margin-top: 0; }
.directory-disclosure .seo-destinations-grid { margin-block: 20px; }
.directory-disclosure .seo-destinations-grid a { min-height: 44px; display: inline-flex; align-items: center; }
.directory-disclosure .seo-destinations-grid h3 { margin-top: 8px; }
.tip-card p { color: #586c57; }
.tips-section .section-aside { color: #607155; }
#mobile-navigation { display: none; }

@media (max-width: 1250px) {
  :root { --experience-header-height: 100px; }
}

@media (max-width: 1000px) {
  #world-region-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-featured-section .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-inline: 35px; }
  .site-header { padding-inline: 25px; gap: 17px; }
  .desktop-nav { gap: 17px; font-size: 12px; }
  .desktop-nav a:nth-child(2) { display: none; }
}

@media (max-width: 740px) {
  .desktop-nav { gap: 12px; }
  .desktop-nav a:nth-child(2) { display: none; }
  .world-section { padding-top: 28px; }
  .collection-toolbar { align-items: flex-start; }
  .collection-picker-label { flex-direction: column; align-items: flex-start; gap: 4px; }
  .collection-toolbar > button { margin-top: 18px; }
}

@media (max-width: 580px) {
  :root { --experience-header-height: 104px; --experience-tabs-height: 56px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .page-width { width: calc(100% - 40px); }
  .site-header { padding-inline: 20px; }
  .site-header .brand { font-size: 23px; }
  .site-header .saved-nav { display: none; }
  .hero { min-height: 0; padding: 24px 24px 52px; }
  .hero-shade { background: linear-gradient(90deg, #0e2b24c7 0%, #0e2b24ad 63%, #0e2b2461 100%), linear-gradient(0deg, #102a2233, transparent 65%); }
  .hero h1 { margin-block: 14px 15px; font-size: 36px; letter-spacing: -.9px; line-height: 1.15; }
  .hero-eyebrow { font-size: 12px; letter-spacing: .6px; margin-bottom: 0; }
  .hero-description { font-size: 16px; line-height: 1.6; margin-bottom: 19px; }
  .hero-caption { right: 24px; bottom: 15px; max-width: calc(100% - 48px); padding: 5px 9px; font-size: 12px; line-height: 1.5; }
  .hero-caption .location-dot { flex-shrink: 0; }
  .travel-picker > label { font-size: 14px; margin-bottom: 9px; }
  .travel-picker-field { gap: 8px; padding: 5px 6px 5px 11px; min-height: 60px; }
  .travel-picker-field > [data-icon] svg { width: 17px; height: 17px; }
  .travel-picker-field select { font-size: 16px; }
  .hero-content .travel-picker-field .button { min-height: 48px; padding: 11px 12px; gap: 8px; font-size: 14px; }
  .travel-picker-field .button svg { width: 16px; height: 16px; }
  .travel-picker-help { font-size: 12px; line-height: 1.6; margin-top: 9px; }
  .world-section .section-heading { margin-bottom: 16px; }
  .world-section .section-heading h2 { font-size: 28px; line-height: 1.2; }
  .world-intro { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
  #world-region-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 2px; }
  #world-region-nav button { min-height: 44px; padding: 9px 4px; font-size: 12px; font-weight: 500; white-space: normal; text-align: center; overflow-wrap: anywhere; }
  #world-region-nav button svg { display: none; }
  .world-browse-all { margin-bottom: 12px; }
  .world-browse-all button { font-size: 13px; }
  .world-featured-heading, .world-region-heading { margin-bottom: 14px; }
  .world-featured-heading h3, h3.world-featured-heading, .world-region-heading h3 { font-size: 25px; }
  .world-grid { gap: 23px 14px; }
  .world-card h4.world-card-title { font-size: 24px; line-height: 1.25; }
  .world-card-body { padding-top: 12px; }
  .world-region { font-size: 12px; line-height: 1.6; }
  .world-summary { font-size: 16px; margin-block: 8px 12px; line-height: 1.6; }
  .world-explore.world-guide-link { font-size: 14px; }
  .collection-context { padding-top: 18px; }
  .collection-toolbar { gap: 12px; margin-bottom: 20px; }
  .collection-toolbar > button { max-width: 40%; font-size: 11px; line-height: 1.5; }
  .collection-picker-label { max-width: 59%; min-width: 0; font-size: 11px; }
  #collection-picker { width: 100%; max-width: 100%; min-width: 0; font-size: 16px; padding: 9px 25px 9px 10px; }
  #collection-title { font-size: 34px; margin-bottom: 10px; letter-spacing: -.7px; }
  .collection-summary { font-size: 16px; margin-bottom: 20px; line-height: 1.6; }
  .collection-tabs { border-radius: 7px; gap: 2px; padding: 4px; }
  .collection-tabs [role="tab"] { min-height: 46px; gap: 5px; padding: 10px 6px; font-size: 12px; }
  .collection-tabs [role="tab"] svg { width: 15px; height: 15px; }
  #collection-shell .nyc-highlights-section, #collection-shell .gastronomy-section, #collection-shell .tips-section { padding-top: 26px; }
  #collection-shell .section-heading h2 { font-size: 27px; }
  .highlight-filters { gap: 7px; }
  .highlight-filters button { min-height: 44px; padding: 9px 12px; font-size: 11px; }
  .highlights-intro, .food-intro { font-size: 16px; line-height: 1.6; }
  .highlights-count { color: #607155; }
  .highlight-card figcaption, .food-photo figcaption { padding: 8px 16px; min-height: 0; line-height: 1.6; }
  .highlight-body, .food-card-body { padding: 21px; }
  .food-card h3, .highlight-body h3 { font-size: 25px; }
  .highlight-hook { font-size: 16px; line-height: 1.6; }
  .highlight-description, .food-description { font-size: 16px; line-height: 1.6; }
  .food-description { margin-bottom: 17px; }
  .food-guide, .food-source { min-height: 44px; font-size: 12px; }
  .food-links { gap: 3px 17px; }
  #guides-disclosure, #inspiration-disclosure, .directory-disclosure { margin-top: 22px; }
  #guides-disclosure > summary, #inspiration-disclosure > summary, .directory-disclosure > summary { min-height: 58px; padding: 16px; font-size: 13px; }
  #guides-disclosure > #destinos, .directory-disclosure > .seo-directory { padding: 21px 16px; }
  #guides-disclosure .section-heading { margin-bottom: 20px; }
  #guides-disclosure .discovery-section h2 { font-size: 25px; }
  .filter-chip, .view-button, .mood, .map-tab { min-height: 44px; }
  .search-box input, #map-destination-select, .map-poi-select-label select { font-size: 16px; }
  .view-button { padding: 9px 11px; }
  .card-open, .favorite-button, .icon-button { min-height: 44px; min-width: 44px; }
  .card-open { display: inline-flex; justify-content: center; align-items: center; }
  .favorite-button { top: 7px; right: 7px; }
  .tips-grid { grid-template-columns: 1fr; gap: 14px; }
  .tip-card { padding: 21px; }
  .tip-card h3 { font-size: 18px; }
  .tip-card p { font-size: 16px; line-height: 1.6; }
  .tip-icon { margin-bottom: 13px; }
  .section-aside { font-size: 11px; line-height: 1.7; }
  .seo-directory:has(> .directory-disclosure) { padding-top: 25px; }
  .directory-disclosure .seo-destinations-grid { gap: 16px; }
  .directory-disclosure .seo-destinations-grid a { font-size: 12px; }
  .site-footer { padding-block: 26px 22px; }
  .footer-links { gap: 4px 17px; margin-top: 18px; color: #607155; }
  .footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
  .newsletter.page-width { display: block; padding: 18px; }
  .newsletter.page-width .newsletter-actions { margin-top: 12px; }
  /* Reading copy keeps a common size; navigation and metadata stay compact. */
  .card-tagline,
  .food-section-note,
  .place-access-note,
  .guide-food-grid article > p:not(.food-region),
  .inspiration-copy > p:not(.eyebrow):not(.small-note),
  .inspiration-copy .small-note,
  .detail-description,
  .detail-list,
  .detail-body .editorial-note,
  .detail-booking p,
  .itinerary-day p,
  .photo-attribution,
  .drawer-intro,
  .trip-summary p,
  .trip-summary ol,
  .saved-empty p,
  .map-description,
  .poi-description,
  .map-highlights li,
  .map-advice li,
  .map-activities p,
  .map-editorial-note,
  .map-no-results,
  .map-no-results p,
  #map-help,
  .info-dialog p:not(.eyebrow):not(.world-detail-region),
  .info-dialog li,
  .info-dialog .credit-entry {
    font-size: 16px;
    line-height: 1.6;
  }
  .itinerary-day h4, .guide-food-grid h4 { font-size: 16px; line-height: 1.4; }
  .info-dialog .credit-entry { overflow-wrap: anywhere; }
  #mobile-navigation {
    position: fixed;
    inset: auto 0 0;
    z-index: 1105;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    min-height: 68px;
    padding: 5px 12px calc(5px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #cfdbca;
    background: #fffef9;
    box-shadow: 0 -3px 16px #153d3010;
  }
  #mobile-navigation button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 55px;
    padding: 5px 4px;
    border-radius: 7px;
    background: transparent;
    color: #58714f;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
  }
  #mobile-navigation button svg { width: 20px; height: 20px; }
  #mobile-navigation button:hover { background: #edf1e5; }
  #mobile-navigation button[aria-current="page"], #mobile-navigation button[aria-pressed="true"], body.travel-home #mobile-navigation [data-show-home], body.collection-active #mobile-navigation [data-open-collection] { background: #eaf0e2; color: var(--green-dark); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .destination-dialog, .info-dialog { max-height: calc(100dvh - 28px); }
}

@media (max-width: 430px) {
  .world-grid, .world-featured-section .world-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 350px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; }
  .hero { padding-inline: 20px; }
  .hero h1 { font-size: 34px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: .3px; }
  .hero-caption { right: 20px; max-width: calc(100% - 40px); }
  .travel-picker-field > [data-icon] { display: none; }
  .hero-content .travel-picker-field .button { padding-inline: 11px; }
  .travel-picker-field .button svg { display: none; }
  .world-grid { grid-template-columns: minmax(0, 1fr); }
  .world-featured-section .world-grid { grid-template-columns: minmax(0, 1fr); }
  .world-image-button { aspect-ratio: 1.7; }
  .world-card h4.world-card-title { font-size: 24px; }
  #world-region-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-region { font-size: 12px; }
  .collection-toolbar > button { gap: 5px; }
  .collection-toolbar > button svg { width: 14px; height: 14px; }
  #collection-title { font-size: 32px; }
  .collection-tabs [role="tab"] { font-size: 11px; gap: 4px; }
  .collection-tabs [role="tab"] svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .world-card-link:hover .world-image { transform: scale(1.025); }
}
