/* Nesteelo Stays: styles that only this site needs.
   The shared design (tokens, header, top bar, footer, buttons, forms, cards, dialogs, WhatsApp button)
   lives in base.css, which is copied from the Nesteelo Properties site by scripts/build_stays_shared.py. */

/* ===== Header details ===== */
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 10px; background: var(--white); color: var(--slate); font-weight: 600; font-size: .875rem; text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--slate); color: var(--white); }
.lang-switch a:not([aria-current="true"]):hover { background: var(--sand-050); }
.nav-link[aria-current="page"] { color: var(--slate); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.topbar-placeholder { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Page furniture ===== */
.hero-simple > *, .narrow > * { max-width: 760px; }
.hero-compact { padding: 48px 0 40px; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 46em; }
.band { background: var(--sand-050); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.after-grid { margin: 32px 0 0; }
.breadcrumb { font-size: .9375rem; color: var(--muted); margin-bottom: 16px; }
.pull { font-family: var(--serif); font-size: 1.5rem; color: var(--slate); border-left: 3px solid var(--terra); padding-left: 16px; margin: 32px 0 0; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }

/* ===== Cards and grids ===== */
.stay-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.stay-card, .post-card { display: flex; flex-direction: column; }
.card-media { display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-place { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9375rem; color: var(--muted); }
.card-place .icon { width: 16px; height: 16px; }
.card-place .ref { margin-left: 8px; font-variant-numeric: tabular-nums; }
.card-title a { color: var(--slate); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-summary { margin: 0; color: var(--ink); font-size: .9375rem; }
.card-facts li { display: inline-flex; align-items: center; gap: 6px; }
.card-facts .icon { width: 18px; height: 18px; color: var(--muted); }
.card-price .per { font-size: .9375rem; font-weight: 400; color: var(--muted); }
.card-actions { display: grid; gap: 10px; }
.book-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.card-actions .btn-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.split { display: grid; gap: 24px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.path-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.path-card .ticks { margin-bottom: 8px; }
.path-owner { background: var(--slate-050); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--slate); width: 20px; height: 20px; margin-top: 3px; }
.feature-grid { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.feature h3 { display: flex; gap: 10px; align-items: center; font-size: 1.125rem; }
.feature h3 .icon { color: var(--terra-ink); width: 22px; height: 22px; }
.feature p { margin: 0; color: var(--ink); }
.feature-grid.cards { gap: 20px; }
.feature-grid.cards .feature { padding: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--slate); color: var(--white); font-weight: 600; }
.steps h3 { font-size: 1.125rem; }
.steps p { margin: 0; }
.cta-band { background: var(--slate); color: #E8ECF0; text-align: left; }
.cta-band h2 { color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--slate); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--slate-700); }
.btn-outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: var(--white); color: var(--white); }

/* ===== Forms ===== */
.search-form { margin-top: 24px; padding: 20px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); align-items: start; overflow: visible; }
.search-form .optional { display: none; }  /* every search filter is optional */
.search-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; align-self: end; min-height: 46px; }
.results-title { font-size: 1.25rem; margin-bottom: 24px; }
.lead-form { padding: 24px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; overflow: visible; }
.lead-form > * { grid-column: 1 / -1; }
.lead-form .f-check_in, .lead-form .f-check_out { grid-column: span 1; }
@media (max-width: 420px) { .lead-form .f-check_in, .lead-form .f-check_out { grid-column: 1 / -1; } }
.lead-form .f-consent input, .check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; }
.field-error[hidden] { display: none; }
.estimate { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sand-050); border: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.form-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.form-anchor { scroll-margin-top: calc(var(--header-h) + 16px); }
.success-panel h3 { display: flex; gap: 10px; align-items: center; }
.office-card h2 { color: var(--white); font-size: 1.25rem; }
.office-card dl { margin: 0 0 16px; display: grid; gap: 12px; }
.office-card dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.office-card dd { margin: 2px 0 0; }
.office-card a, .office-card .btn-link { color: var(--white); }

/* ===== Stay page ===== */
.stay-head h1 { font-size: clamp(1.75rem, 3vw + .6rem, 2.6rem); }
.stay-facts { margin-top: 12px; }
.gallery { margin: 24px 0 32px; }
.gallery-main { aspect-ratio: 16 / 9; max-height: 540px; width: 100%; background: var(--sand); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { list-style: none; display: flex; gap: 8px; margin: 10px 0 0; padding: 4px 2px; overflow-x: auto; }
.gallery-thumbs button { width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--sand); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--slate); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stay-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .stay-layout { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); } }
.stay-main section { margin-top: 36px; }
.stay-main h2, .form-title { font-size: 1.375rem; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.amenities li { display: flex; gap: 10px; align-items: center; }
.amenities .icon { color: var(--slate); width: 18px; height: 18px; }
.rules { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; }
.price-card { padding: 24px; margin-bottom: 28px; }
.price-lines { margin: 12px 0; display: grid; gap: 8px; }
.price-lines div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.price-lines dd { margin: 0; font-weight: 600; }
.book-buttons { display: grid; gap: 10px; margin-top: 16px; }
.calendars { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.calendar { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calendar caption { font-weight: 600; color: var(--slate); text-align: left; padding-bottom: 8px; }
.calendar th { font-size: .8125rem; font-weight: 600; color: var(--muted); padding: 4px 0; }
.calendar abbr { text-decoration: none; }
.calendar td { text-align: center; padding: 7px 0; font-size: .9375rem; border: 2px solid var(--cloud); border-radius: 6px; }
.calendar td.free { background: #E4EBE4; color: var(--ink); }
.calendar td.taken { background: var(--white); color: var(--muted); text-decoration: line-through; border-color: var(--line); }
.calendar td.past { color: var(--stone); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 12px; font-size: .9375rem; }
.legend .key { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line); }
.legend .key.free { background: #E4EBE4; margin-left: 0; }
.legend .key.taken { background: var(--white); margin-left: 12px; }

/* ===== Blog and FAQ ===== */
.post-cover { width: 100%; border-radius: var(--radius-lg); margin: 16px 0 24px; }
.faq-group { margin-bottom: 36px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; color: var(--slate); position: relative; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; }
.faq[open] summary::after { content: "\2212"; }
.faq .prose { padding: 0 0 16px; }

/* ===== Newsletter sign-up in the footer ===== */
.footer-newsletter label { display: block; font-size: .9375rem; margin-bottom: 6px; }
.newsletter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.newsletter-row input { flex: 1 1 180px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--stone); background: var(--white); color: var(--ink); }
.footer-newsletter .check { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; }
.footer-alert { font-weight: 600; }

@media print { .wa-fab, .search-form, .lead-form, .site-nav, .topbar { display: none !important; } }
