/* AtlasAmble: warm travel-journal typography and photo-led publishing. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--wp--preset--color--background); color: var(--wp--preset--color--text); font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--body); line-height: 1.7; }
.wp-site-blocks { padding-inline: 0; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
button, summary, .wp-element-button { cursor: pointer; }
a { color: var(--wp--preset--color--primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:is(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 4px; }
:is(h1, h2, h3, h4, h5, h6) { font-family: var(--wp--preset--font-family--heading); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ph-shell { width: min(1240px, calc(100% - 2 * clamp(20px, 4vw, 64px))); margin-inline: auto; min-width: 0; }
.wp-site-blocks main.ph-main { padding-block: 0 var(--wp--preset--spacing--section); }
.ph-main > .ph-shell { margin-block-start: 0; }
.ph-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* The masthead and native menu stay editable and use the site's real labels. */
.ph-header { position: relative; z-index: 30; padding-inline: clamp(20px, 4vw, 64px); background: var(--wp--preset--color--background); border-top: 4px solid var(--wp--preset--color--primary); border-bottom: 1px solid var(--wp--preset--color--line); }
.ph-header-inner { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 0 24px; max-width: 1240px; margin-inline: auto; padding-top: 24px; }
.ph-brand { gap: 16px; min-width: 0; padding-bottom: 22px; }
.ph-brand .wp-block-site-logo { flex-shrink: 0; line-height: 1; }
.ph-brand .wp-block-site-logo a { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.ph-brand .custom-logo { display: block; width: 52px; height: 52px; object-fit: contain; }
.aa-brand-copy { min-width: 0; }
.aa-brand-copy > * { margin: 0; }
.ph-brand .wp-block-site-title { font-family: var(--wp--preset--font-family--heading); font-size: 42px; line-height: 1.05; letter-spacing: -.045em; font-weight: 400; }
.wp-block-site-title a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.aa-brand-caption { font-size: 13px; color: var(--wp--preset--color--muted); margin-top: 5px; }
.ph-header .aen-primary-navigation { grid-column: 1 / -1; width: 100%; border-top: 1px solid var(--wp--preset--color--line); margin: 0; min-width: 0; font-size: 15px; font-weight: 600; }
.ph-header .wp-block-navigation__container { gap: 8px 32px; flex-wrap: wrap; }
.ph-header .wp-block-navigation-item { min-width: 0; }
.ph-header .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 50px; padding-block: 9px; color: var(--wp--preset--color--text); text-decoration: none; overflow-wrap: anywhere; }
.ph-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }
.ph-header .aen-menu-brand, .ph-header .aen-menu-meta { display: none; }
.ph-controls { display: flex; align-items: center; gap: 10px; margin: 0 0 22px !important; }
.ph-controls button, .ph-controls summary { display: grid; place-items: center; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--wp--preset--color--line); background: transparent; color: var(--wp--preset--color--text); border-radius: 2px; list-style: none; }
.ph-header-search summary { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--primary); }
.ph-header-search summary::-webkit-details-marker { display: none; }
.ph-header-search[open] summary { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 3px; }
.ph-search-panel { position: absolute; top: calc(100% + 8px); right: clamp(20px, 4vw, 64px); width: min(420px, calc(100vw - 40px)); padding: 24px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-top: 3px solid var(--wp--preset--color--sunset); }
.wp-block-search { max-width: 100%; }
.wp-block-search__label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; min-width: 0; }
.wp-block-search__input { min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--wp--preset--color--muted); border-radius: 2px; color: var(--wp--preset--color--text); background: var(--wp--preset--color--surface); }
.wp-block-search__button, .ph-search-panel .wp-block-search__button { width: auto; height: auto; min-width: 46px; min-height: 46px; margin: 0; padding: 10px 16px; border: 0; border-radius: 2px; color: var(--wp--preset--color--surface); background: var(--wp--preset--color--primary); font-size: 16px; }

/* One inherited query: no duplicated lead query and no hidden post rows. */
.aa-intro { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 24px 48px; padding-block: 36px 30px; border-bottom: 3px solid var(--wp--preset--color--sunset); margin-bottom: 32px; }
.aa-intro h1 { font-size: clamp(30px, 3.3vw, 46px); margin: 0; max-width: 22ch; }
.aa-intro p { max-width: 38ch; margin: 0; justify-self: end; color: var(--wp--preset--color--muted); font-size: 17px; line-height: 1.6; }
.ph-query { margin-block-start: 0; }
.ph-query .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; padding: 0; list-style: none; margin: 0; }
.ph-query .wp-block-post-template > li { min-width: 0; margin: 0; }
.aa-card { display: flex; flex-direction: column; min-width: 0; height: 100%; background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--line); }
.aa-card-media { position: relative; flex-shrink: 0; width: 100%; min-width: 0; aspect-ratio: 8 / 5; overflow: hidden; background: var(--wp--preset--color--soft) url('stay-placeholder.svg') center / cover no-repeat; }
.aa-card-media .wp-block-post-featured-image { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: var(--wp--preset--color--surface); }
.aa-card-media .wp-block-post-featured-image a { display: block; width: 100%; height: 100%; }
.aa-card-media .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aa-card-media a:focus-visible { outline-offset: -5px; }
.aa-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; margin: 0; padding: 18px 24px 24px; }
.aa-card-copy > * { margin-block: 0; }
.ph-category-row { margin: 0 0 8px; max-width: 100%; }
.ph-category, .aa-card .wp-block-post-terms a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding-block: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--wp--preset--color--primary); text-decoration: none; overflow-wrap: anywhere; }
.ph-category::before { content: ''; width: 16px; height: 2px; margin-right: 8px; flex-shrink: 0; background: var(--wp--preset--color--sunset); }
.ph-category:hover { text-decoration: underline; }
.ph-category-row .ph-category ~ .ph-category, .aa-card .wp-block-post-terms a ~ a, .aa-card .wp-block-post-terms__separator, .ph-category-row .wp-block-post-terms__separator { display: none; }
.aa-card .wp-block-post-title { font-size: var(--wp--preset--font-size--large); line-height: 1.2; margin: 0 0 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.aa-card .wp-block-post-title a { display: block; min-height: 44px; color: var(--wp--preset--color--text); text-decoration: none; }
.aa-card .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }
.aa-card .wp-block-post-excerpt { margin: 0 0 24px; width: 100%; color: var(--wp--preset--color--muted); font-size: 16px; line-height: 1.65; }
.aa-card .wp-block-post-excerpt__excerpt { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.aa-card .ph-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--wp--preset--color--line); width: 100%; }
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--wp--preset--color--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ph-author { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.ph-author img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.aa-home .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
.aa-home .wp-block-post-template > li:first-child .aa-card { display: grid; grid-template-columns: 1.35fr 1fr; border-bottom: 0; }
.aa-home .wp-block-post-template > li:first-child .aa-card-media { aspect-ratio: auto; min-height: 440px; height: 100%; }
.aa-home .wp-block-post-template > li:first-child .aa-card-copy { justify-content: center; padding: 28px 40px 36px; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.aa-home .wp-block-post-template > li:first-child .wp-block-post-title { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.14; }
.aa-home .wp-block-post-template > li:first-child .wp-block-post-excerpt { font-size: 17px; }
.aa-home .wp-block-post-template > li:first-child .ph-meta { margin-top: 8px; }
.ph-query .wp-block-query-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 48px 0; font-size: 15px; }
.wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-query .page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; padding: 8px 14px; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--text); text-decoration: none; }
.ph-query .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }
.aa-empty { padding-block: 48px; font-size: 18px; }
.ph-archive-title { padding-block: 40px 28px; margin-bottom: 32px; border-bottom: 3px solid var(--wp--preset--color--sunset); }
.ph-archive-title h1 { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.ph-archive-title .wp-block-term-description { max-width: 62ch; color: var(--wp--preset--color--muted); }
.ph-breadcrumb { display: flex; gap: 10px; align-items: center; width: min(1240px, calc(100% - 2 * clamp(20px, 4vw, 64px))); margin: 0 auto; padding-block: 14px; font-size: 13px; color: var(--wp--preset--color--muted); }
.ph-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.ph-breadcrumb > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Quiet reading surfaces protect long articles and embedded content on phones. */
.ph-single, .ph-page { max-width: 900px; margin: 12px auto 0; padding: clamp(24px, 5vw, 64px); background: var(--wp--preset--color--surface); border-top: 3px solid var(--wp--preset--color--sunset); overflow-wrap: anywhere; }
.ph-single > *, .ph-page > * { max-width: 100%; min-width: 0; }
.ph-single > .wp-block-post-title, .ph-page > .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); line-height: 1.13; margin-block: 8px 24px; }
.ph-single > .ph-meta { margin-block: 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-post-content { max-width: 70ch; margin-inline: auto; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.wp-block-post-content > * { max-width: 100%; min-width: 0; }
.wp-block-post-content :is(h2, h3, h4) { margin-block: 1.5em .6em; line-height: 1.25; }
.wp-block-post-content h2 { font-size: clamp(26px, 3vw, 34px); }
.wp-block-post-content h3 { font-size: 25px; }
.wp-block-post-content :is(figure, blockquote) { margin-inline: 0; }
.wp-block-post-content :is(img, iframe, video) { max-width: 100%; }
.wp-block-post-content .wp-block-columns > * { min-width: 0; }
.wp-block-post-content :is(pre, .wp-block-preformatted) { overflow-x: auto; max-width: 100%; padding: 16px; background: var(--wp--preset--color--soft); font-size: 15px; }
.wp-block-post-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.wp-block-post-content .wp-block-table { overflow-x: auto; max-width: 100%; }
.wp-block-post-content :is(th, td) { border: 1px solid var(--wp--preset--color--line); padding: 10px 12px; min-width: 8ch; }
.wp-block-post-content blockquote { border-left: 3px solid var(--wp--preset--color--sunset); padding-left: 24px; font-family: var(--wp--preset--font-family--heading); font-size: 25px; }
.wp-block-post-content figcaption { color: var(--wp--preset--color--muted); font-size: 14px; }
.ph-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-block: 1px solid var(--wp--preset--color--line); margin-top: 40px; padding-block: 24px; font-size: 16px; }
.ph-adjacent > * { min-width: 0; }
.ph-adjacent a { display: inline-block; min-height: 44px; }
.comment-respond { margin-top: 40px; }
.comment-respond input:not([type=checkbox]), .comment-respond textarea { width: 100%; max-width: 100%; padding: 12px; border: 1px solid var(--wp--preset--color--muted); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--text); }
.comment-respond label { display: block; font-size: 15px; }
.comment-respond .comment-form-cookies-consent label { display: inline; }
.comment-respond .submit { min-height: 44px; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); cursor: pointer; }

.ph-footer { padding: 44px clamp(20px, 4vw, 64px) 24px; border-top: 4px solid var(--wp--preset--color--primary); background: var(--wp--preset--color--soft); }
.ph-footer .ph-shell { width: 100%; }
.aa-footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 80px; margin-bottom: 32px; }
.aa-footer-top > * { min-width: 0; margin: 0; }
.ph-footer .wp-block-site-title { font-family: var(--wp--preset--font-family--heading); font-size: 36px; font-weight: 400; line-height: 1.15; margin: 0 0 14px; }
.aa-footer-top p { font-size: 16px; line-height: 1.65; max-width: 40ch; margin-block: 12px 0; }
.aa-booking-note { border-left: 2px solid var(--wp--preset--color--sunset); padding-left: 24px; }
.aa-booking-note h2 { font-size: 25px; margin: 0; }
.ph-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1240px; margin-inline: auto; border-top: 1px solid var(--wp--preset--color--line); padding-top: 16px; font-size: 13px; }
.ph-footer-inner p { margin: 0; }
.ph-footer-inner a { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.aen-back-to-top { position: fixed; bottom: 20px; right: 20px; z-index: 25; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--wp--preset--color--primary); border-radius: 2px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary); }
.aen-back-to-top[hidden] { display: none; }
.ph-error { min-height: 65vh; padding: 64px 20px !important; text-align: center; }
.ph-error > * { margin-inline: auto; max-width: 580px; }
.ph-error .ph-error-code { color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--heading); font-size: clamp(80px, 12vw, 140px); line-height: 1; margin-block: 0 24px; }
.ph-error h1 { font-size: var(--wp--preset--font-size--x-large); margin-block: 0 20px; }
.ph-error .wp-block-search { max-width: 420px; margin-block: 28px; text-align: left; }
.ph-error .wp-block-button__link { min-height: 44px; }

/* Preserve the existing color-scheme control with the same travel palette. */
.ph-dark { --wp--preset--color--background: var(--wp--custom--dark--background); --wp--preset--color--surface: var(--wp--custom--dark--surface); --wp--preset--color--text: var(--wp--custom--dark--text); --wp--preset--color--muted: var(--wp--custom--dark--muted); --wp--preset--color--line: var(--wp--custom--dark--line); --wp--preset--color--soft: var(--wp--custom--dark--soft); --wp--preset--color--primary: var(--wp--custom--dark--primary); }
.ph-dark .ph-header-search summary, .ph-dark .wp-element-button, .ph-dark .wp-block-search__button, .ph-dark .page-numbers.current, .ph-dark .comment-respond .submit { color: var(--wp--preset--color--background); }

@media (max-width: 1000px) {
  .ph-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .aa-home .wp-block-post-template > li:first-child .aa-card-copy { padding: 24px; }
  .aa-home .wp-block-post-template > li:first-child .aa-card { grid-template-columns: 1fr 1fr; }
  .aa-home .wp-block-post-template > li:first-child .aa-card-media { min-height: 380px; }
}
@media (max-width: 781px) {
  .ph-header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding-block: 18px; }
  .ph-brand { gap: 10px; padding: 0; }
  .ph-brand .custom-logo { width: 36px; height: 36px; }
  .ph-brand .wp-block-site-title { font-size: 30px; }
  .aa-brand-caption { font-size: 12px; }
  .ph-controls { margin: 0 !important; }
  .ph-controls > .ph-theme-toggle { display: none; }
  .ph-header .aen-primary-navigation { grid-column: auto; border: 0; width: auto; }
  .ph-header .wp-block-navigation__responsive-container-open { display: flex !important; justify-content: center; align-items: center; width: 44px; height: 44px; color: var(--wp--preset--color--text); }
  .ph-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .ph-header .wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; max-width: none; width: 100%; height: 100dvh; overflow-y: auto; padding: 24px; background: var(--wp--preset--color--background) !important; color: var(--wp--preset--color--text) !important; }
  .ph-header .wp-block-navigation__responsive-dialog { width: 100%; }
  .ph-header .wp-block-navigation__responsive-container-close { top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; }
  .ph-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; padding-top: 60px; }
  .ph-header .is-menu-open .aen-menu-brand { display: block; margin-bottom: 20px; }
  .aen-menu-home { font-family: var(--wp--preset--font-family--heading); font-size: 30px; color: var(--wp--preset--color--text); text-decoration: none; }
  .aen-menu-logo, .aen-menu-heading { display: none; }
  .ph-header .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0; align-items: stretch !important; }
  .ph-header .is-menu-open .wp-block-navigation-item { width: 100%; border-top: 1px solid var(--wp--preset--color--line); }
  .ph-header .is-menu-open .wp-block-navigation-item__content { width: 100%; padding-block: 14px; font-size: 18px; white-space: normal; }
  .aa-intro { grid-template-columns: 1fr; gap: 12px; padding-block: 28px 24px; margin-bottom: 24px; }
  .aa-intro p { justify-self: start; max-width: 44ch; }
  .aa-home .wp-block-post-template > li:first-child .aa-card { display: flex; }
  .aa-home .wp-block-post-template > li:first-child .aa-card-media { aspect-ratio: 8 / 5; min-height: 0; height: auto; }
  .aa-home .wp-block-post-template > li:first-child .aa-card-copy { border-top: 0; border-bottom: 0; }
  .aa-home .wp-block-post-template > li:first-child .wp-block-post-title { font-size: 32px; }
  .aa-home .wp-block-post-template > li:first-child .ph-meta { margin-top: auto; }
  .aa-footer-top { gap: 32px; grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ph-query .wp-block-post-template { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ph-brand .custom-logo { width: 32px; height: 32px; }
  .ph-brand .wp-block-site-title { font-size: 27px; }
  .aa-card-copy, .aa-home .wp-block-post-template > li:first-child .aa-card-copy { padding: 12px 20px 24px; }
  .aa-card .wp-block-post-title { font-size: 27px; }
  .ph-single, .ph-page { padding: 24px 20px; margin-top: 4px; }
  .ph-single > .wp-block-post-title, .ph-page > .wp-block-post-title { font-size: 34px; }
  .ph-adjacent { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ph-footer { padding-top: 32px; }
  .ph-footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ph-query .wp-block-query-pagination { gap: 8px; }
}
@media (max-width: 359px) {
  .ph-brand .wp-block-site-logo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
