/* ==========================================================================
   WordPress layer: what the Next app did not need (admin bar, page prose, 404, search,
   core classes). Same tokens as site.css.
   ========================================================================== */

/* Admin bar (logged-in users): the fixed nav and menu sit below it; --bar moves everything that docks under the header */
.admin-bar { --bar: 32px; }
.admin-bar .nav, .admin-bar .menu { top: 32px; }
.admin-bar .menu { inset: 32px 0 0 0; }
@media (max-width: 782px) {
  .admin-bar { --bar: 46px; }
  .admin-bar .nav, .admin-bar .menu { top: 46px; }
  .admin-bar .menu { inset: 46px 0 0 0; }
}
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* Core helper classes */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }

/* Apartment description (HTML from the plugin) */
.detail__body { margin-top: 18px; max-width: 40rem; display: grid; gap: 1em; }

/* Contact: honeypot off-screen, status replaces the form */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact__form { display: grid; gap: 22px; align-content: start; }
.form__status-text { margin-top: 4px; }

/* ---------- Pages: one readable column ---------- */
.legal h1 em, .not-found h1 em { font-family: var(--font-italic); font-style: italic; font-weight: 500; }
.prose { font-size: var(--fs-body); line-height: 1.7; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: var(--fs-h3); line-height: 1.2; margin-top: 1.4em; }
.prose h3 { font-size: 1.25rem; line-height: 1.3; margin-top: 1.2em; }
.prose h4, .prose h5, .prose h6 { font-family: var(--font-ui); font-weight: 500; font-size: var(--fs-label); letter-spacing: .092em; text-transform: uppercase; color: var(--text); margin-top: 1.2em; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: .4em 0; padding-left: 1.2em; font-family: var(--font-italic); font-style: italic; font-size: var(--fs-italic); line-height: 1.3; color: var(--text); }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--font-ui); font-style: normal; font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.prose img, .prose figure img { border-radius: var(--r-card); }
.prose figure { margin-block: .6em; }
.prose figcaption, .prose .wp-element-caption { margin-top: 10px; font-size: .875rem; color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-ui); font-weight: 500; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: var(--r-control); background: var(--green-800); color: var(--cream-50); text-decoration: none; font-family: var(--font-ui); font-weight: 500; font-size: var(--fs-label); letter-spacing: .092em; text-transform: uppercase; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose__pages { display: flex; gap: 12px; }

/* ---------- Entries (index / search) ---------- */
.entries { display: grid; border-top: 1px solid var(--border); }
.entry { display: grid; gap: 8px; padding-block: 26px; border-bottom: 1px solid var(--border); }
.entry__meta { color: var(--text-2); }
.entry a:hover { color: var(--brand); }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--border); font-size: .9375rem; }
.nav-links .page-numbers.current { background: var(--green-800); color: var(--cream-50); box-shadow: none; }
.site-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.site-search .field { flex: 1 1 240px; }

/* ---------- 404: fits the screen below the fixed header ---------- */
.not-found {
  min-height: calc(100svh - var(--nav-h) - clamp(40px, 6vw, 72px));
  display: grid; align-content: center; justify-items: start; gap: 22px; padding-bottom: clamp(48px, 8vw, 96px);
}
.not-found__code { color: var(--sea-600); }
.not-found .display { max-width: 14ch; }
.not-found .lead { color: var(--text-2); max-width: 32rem; }
.not-found__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 8px; }

/* The dates pop of the booking card opens towards the page, never past its right edge */
@media (min-width: 901px) { .book2 .search--stack .pop--dates { left: auto; right: 0; } }
