/* Hearth & Key — WordPress layer. Component styles live in hearthkey.css; values come from tokens.css. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: clip; }
.hk-main { min-height: 60vh; display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.hk-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 200; padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); background: var(--forest); color: var(--on-forest); font-weight: 700; text-decoration: none; }
.hk-skip:focus { top: var(--space-3); }
[hidden] { display: none !important; }

/* Without JavaScript, never hide content behind reveal animations. */
html:not(.js) .hk-reveal { opacity: 1 !important; transform: none !important; }
html:not(.js) .hk-reveal--wipe > * { clip-path: none !important; }

/* ---------- header ---------- */
.admin-bar .hk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hk-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hk-header { top: 0; } }
.hk-header { transition: box-shadow var(--duration-base) var(--ease-settle); }
.hk-header.is-scrolled { box-shadow: var(--shadow-sm); }
.hk-header__links .current-menu-item > a, .hk-header__links .current_page_item > a { position: relative; }
.hk-header__sheetcta { padding: var(--space-4) var(--space-3) 0; }
.hk-header__sheetlinks .hk-navlink { display: flex; }

/* ---------- footer ---------- */
.hk-footer__cols h2 { margin: 0 0 var(--space-4); color: var(--ink); }
.hk-footer__cols .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.hk-form-error { margin: 0; color: var(--alert); font-weight: 600; font-size: 14px; }

/* ---------- layout helpers ---------- */
.hk-pagehead { padding-top: var(--space-16); padding-bottom: var(--space-12); }
.hk-section--flush { padding-top: 0; }
.hk-section--flush-bottom { padding-bottom: 0; }
.hk-section-gap { height: var(--space-24); }
.hk-tabs-wrap { margin-bottom: var(--space-12); }
.hk-stories-grid { margin-top: 72px; }
.hk-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-16); align-items: start; }
.hk-split--faq .hk-pagehead { position: sticky; top: 100px; }
.hk-narrow { max-width: 820px; }
.hk-muted { color: var(--ink-muted); }
.hk-center { text-align: center; }
.hk-row--flush { padding: 0; }
.hk-anchor { scroll-margin-top: 96px; }
.hk-honey, .hk-score-title .is-on { color: var(--honey); }
.hk-score-title { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.hk-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hk-crumbs { margin: 0 0 var(--space-4); color: var(--ink-muted); }
.hk-crumbs a { color: var(--ink-muted); }
.hk-crumbs b { color: var(--ink); }
.hk-notice { padding: var(--space-16) var(--space-8); }
.hk-notice p { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--clay-soft); color: var(--ink); }
@media (max-width: 960px) { .hk-split { grid-template-columns: 1fr; gap: var(--space-8); } .hk-split--faq .hk-pagehead { position: static; } }

/* ---------- hero extras ---------- */
.hk-hero__search .hk-search--static { justify-content: center; padding: var(--space-3); }
.hk-hero__stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hk-hero__stats .hk-stat__num { font-size: 52px; }
.hk-archive-search { margin-bottom: var(--space-8); }
.hk-results { margin: 0 0 var(--space-8); font-size: 17px; font-weight: 600; }
.hk-results a { margin-left: var(--space-3); font-weight: 400; }

/* ---------- property ---------- */
.hk-prop { padding-top: var(--space-8); }
.hk-prop__summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.hk-prop__summary h2, .hk-prop__summary p { margin: 0; }
.hk-prop__main > section.hk-prop__last { border-bottom: 0; }
.hk-prop__main .hk-prose > *:first-child { margin-top: 0; }
.hk-book-island .hk-book { max-width: none; }
.hk-mbar { display: none; }
@media (max-width: 1100px) {
  .hk-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); background: var(--surface-raised); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: transform var(--duration-base) var(--ease-settle); }
  .hk-mbar.is-hidden { transform: translateY(110%); }
  .hk-mbar > div { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
  .hk-mbar strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
  .hk-mbar span { color: var(--ink-muted); }
  .has-mbar .hk-wa { bottom: 88px; }
  .has-mbar .hk-footer { padding-bottom: 72px; }
}

/* ---------- scores ---------- */
.hk-scores--page { margin-bottom: var(--space-12); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-sm); }
@media (max-width: 760px) { .hk-scores { grid-template-columns: 1fr 1fr; } }
.hk-review__photos { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.hk-review__photos img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.hk-masonry { align-items: start; }

/* ---------- experiences ---------- */
.hk-xp { padding-top: var(--space-8); }
.hk-xp__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-16); align-items: start; }
.hk-xp__media { position: relative; position: sticky; top: 100px; }
.hk-xp__heart { position: absolute; top: var(--space-4); right: var(--space-4); z-index: 2; }
.hk-xp__copy { display: grid; gap: var(--space-6); }
.hk-xp__copy h1, .hk-xp__copy p { margin: 0; }
.hk-xp__facts, .hk-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.hk-xp__facts li, .hk-ticks li { display: flex; gap: var(--space-3); align-items: center; }
.hk-xp__facts .hk-icon, .hk-ticks .hk-icon { color: var(--forest); }
.hk-xp__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-sm); }
.hk-xp__price { width: 100%; margin: 0; color: var(--ink-muted); }
.hk-xp__price strong { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--ink); }
@media (max-width: 960px) { .hk-xp__grid { grid-template-columns: 1fr; gap: var(--space-8); } .hk-xp__media { position: relative; top: 0; } }

/* ---------- reading (stories, pages) ---------- */
.hk-read__head { max-width: 880px; margin: 0 auto; padding-top: var(--space-16); padding-bottom: var(--space-8); display: grid; gap: var(--space-4); justify-items: start; }
.hk-read__head h1 { margin: 0; text-wrap: balance; }
.hk-read__hero { margin-bottom: var(--space-12); }
.hk-read__body { max-width: 720px; margin: 0 auto; padding: 0 var(--space-8); }
.hk-read__photos { max-width: 1100px; margin: var(--space-12) auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.hk-read__foot { max-width: 720px; margin: var(--space-12) auto 0; padding: 0 var(--space-8) var(--space-16); display: grid; gap: var(--space-6); }
.hk-react-box { display: grid; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-sm); }
.hk-react-box .label { margin: 0; }
@media (max-width: 760px) { .hk-read__body, .hk-read__foot { padding-left: var(--space-4); padding-right: var(--space-4); } }

.hk-prose { font-size: 18px; line-height: 30px; color: var(--ink); }
.hk-prose--page { max-width: 760px; margin: var(--space-12) auto 0; }
.hk-prose > * { margin-top: 0; margin-bottom: var(--space-6); }
.hk-prose h2 { font-family: var(--font-display); font-size: 32px; line-height: 1.15; font-weight: 400; letter-spacing: -.015em; margin-top: var(--space-12); font-variation-settings: 'opsz' 48; }
.hk-prose h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.25; font-weight: 500; margin-top: var(--space-8); }
.hk-prose h4 { font-size: 18px; font-weight: 700; margin-top: var(--space-6); }
.hk-prose a { color: var(--link); text-decoration-thickness: 1.5px; }
.hk-prose a:hover { text-decoration-thickness: 2.5px; }
.hk-prose ul, .hk-prose ol { padding-left: 1.3em; }
.hk-prose li + li { margin-top: var(--space-2); }
.hk-prose li::marker { color: var(--clay); }
.hk-prose blockquote, .hk-prose .wp-block-quote, .hk-prose .wp-block-pullquote { margin: var(--space-8) 0; padding: var(--space-6) 0; border: 0; border-block: 1px solid var(--line); font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 28px; line-height: 1.3; text-align: center; text-wrap: balance; }
.hk-prose blockquote p { margin: 0; }
.hk-prose blockquote cite { display: block; margin-top: var(--space-3); font-family: var(--font-sans); font-style: normal; font-size: 14px; color: var(--ink-muted); }
.hk-prose img, .hk-prose .wp-block-image img { border-radius: var(--radius-lg); height: auto; }
.hk-prose figure { margin-left: 0; margin-right: 0; }
.hk-prose figcaption, .hk-prose .wp-element-caption { margin-top: var(--space-2); font-size: 14px; color: var(--ink-muted); text-align: center; }
.hk-prose .alignwide { margin-left: calc(-1 * min(12vw, 160px)); margin-right: calc(-1 * min(12vw, 160px)); max-width: none; }
.hk-prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.hk-prose .alignfull img { border-radius: 0; }
.hk-prose .aligncenter { margin-left: auto; margin-right: auto; }
.hk-prose .alignleft { float: left; margin: 0 var(--space-6) var(--space-4) 0; }
.hk-prose .alignright { float: right; margin: 0 0 var(--space-4) var(--space-6); }
.hk-prose hr { border: 0; height: 1px; background: var(--line); margin: var(--space-12) 0; }
.hk-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.hk-prose th, .hk-prose td { padding: var(--space-3); border-bottom: 1px solid var(--line); text-align: left; }
.hk-prose .wp-block-button__link { display: inline-flex; align-items: center; height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-full); background: var(--forest); color: var(--on-forest); font-family: var(--font-sans); font-size: 15px; font-weight: 600; text-decoration: none; }
.hk-prose .wp-block-gallery img { border-radius: var(--radius-md); }
.hk-prose .wp-block-embed iframe { border-radius: var(--radius-lg); }
@media (max-width: 1100px) { .hk-prose .alignwide { margin-left: 0; margin-right: 0; } }

/* ---------- forms ---------- */
.hk-form { max-width: none; }
.hk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
select.hk-input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.hk-split--contact { padding-bottom: 0; }
.hk-contact__side { display: grid; gap: var(--space-8); }
.hk-contact__ways { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.hk-contact__ways li { display: flex; gap: var(--space-4); align-items: center; }
.hk-contact__ways div { display: grid; }
.hk-contact__ways a { color: var(--ink); font-size: 17px; }
.hk-stay-card { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); padding: var(--space-3); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-sm); }
.hk-stay-card .hk-frame { width: 72px; flex: none; border-radius: var(--radius-md); }
.hk-stay-card > div { display: grid; }
.hk-searchform { display: flex; gap: var(--space-3); max-width: 640px; margin-bottom: var(--space-12); }
.hk-results-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); max-width: 760px; }
.hk-results-list li { display: grid; gap: var(--space-1); }
.hk-results-list a { color: var(--ink); text-decoration: none; }
.hk-results-list a:hover { text-decoration: underline; }
.hk-results-list p { margin: 0; }
@media (max-width: 760px) { .hk-form__row { grid-template-columns: 1fr; } .hk-rform { padding: var(--space-6); } }

/* ---------- empty states, 404 ---------- */
.hk-empty { display: grid; justify-items: center; text-align: center; gap: var(--space-4); padding: var(--space-8) 0; }
.hk-empty .hk-frame { width: 100%; margin-bottom: var(--space-4); }
.hk-empty h2, .hk-empty p { margin: 0; }
.hk-empty .lead { max-width: 52ch; color: var(--ink-muted); }
.hk-404 { padding-top: var(--space-12); display: grid; gap: var(--space-8); }
.hk-404__copy { display: grid; gap: var(--space-4); justify-items: start; }
.hk-404__copy h1, .hk-404__copy p { margin: 0; }
.hk-404 em { font-style: italic; font-weight: 300; color: var(--forest); }

/* ---------- pagination ---------- */
.hk-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-16); }
.hk-pager .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color var(--duration-quick), transform var(--duration-base) var(--ease-spring); }
.hk-pager a.page-numbers:hover { border-color: var(--ink); transform: translateY(-2px); }
.hk-pager .current { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }

/* ---------- link tabs ---------- */
a.hk-tab { text-decoration: none; }

/* ---------- floating WhatsApp + toast ---------- */
.hk-wa { position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 44; display: inline-flex; align-items: center; gap: var(--space-2); height: 56px; padding: 0 var(--space-4); border-radius: var(--radius-full); background: var(--forest); color: var(--on-forest); box-shadow: var(--shadow-lg); text-decoration: none; font-weight: 700; transition: transform var(--duration-base) var(--ease-spring); }
.hk-wa:hover { transform: translateY(-3px) scale(1.03); }
.hk-wa span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--duration-base) var(--ease-settle); }
.hk-wa:hover span, .hk-wa:focus-visible span { max-width: 160px; }
.hk-toast { position: fixed; left: 50%; bottom: var(--space-8); z-index: 300; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: var(--space-3) var(--space-6); border-radius: var(--radius-full); background: var(--ink); color: var(--surface); font-size: 15px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity var(--duration-base), transform var(--duration-base) var(--ease-spring); }
.hk-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- islands ---------- */
.hk-island { min-width: 0; }
.hk-island[data-hk-island="AvailabilityCalendar"]:not([data-mounted]) { min-height: 380px; }
.hk-island[data-hk-island="SearchBar"]:not([data-mounted]) { min-height: 74px; }

/* Grid children may shrink below their content width (prevents phone overflow). */
.hk-split > *, .hk-xp__grid > *, .hk-form__row > * { min-width: 0; }
