/* Layout and components (loaded after app.css; colours from the theme and the site profile). */

/* ---------- typography ---------- */
body { font-size: 16.5px; }
h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--ink); }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: .35rem; }
.section { margin: 2.2rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.section-head h2 { margin: 0; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; flex: none; }

/* ---------- header (light) ---------- */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 25; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.header-row { min-height: 70px; }
.brand { gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; color: var(--brand); }
.brand-slogan { font-size: .74rem; color: var(--muted); letter-spacing: .01em; }
.header-search input { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.header-search input::placeholder { color: var(--muted); }
.site-header .btn-ghost { color: var(--ink); border-color: var(--line); }
.icon-link { color: var(--ink-2); }
.menu-toggle { border-color: var(--line); color: var(--ink); }
.main-nav { background: var(--nav); border-top: 1px solid var(--line); }
.main-nav a { color: var(--nav-ink); opacity: .82; font-size: .95rem; padding: 11px 13px; }
.main-nav a[aria-current] { border-bottom-color: var(--brand); color: var(--brand); opacity: 1; }
.main-nav .nav-sep { flex: 1; }
.main-nav .nav-member { color: var(--brand); font-weight: 600; }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.main-wide { padding: 0 0 48px; }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; padding: 9px 18px; }
.btn-large { padding: 13px 22px; font-size: 1.04rem; }
.btn-ghost { background: var(--surface); }
.btn .ico { width: 1.1em; height: 1.1em; }

/* ---------- hero ---------- */
.hero { display: block; border-radius: 0; background: linear-gradient(180deg, var(--sage-soft) 0%, var(--bg) 100%); padding: 3.2rem 0 2.4rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin-bottom: .6rem; }
.hero .lead { font-size: 1.15rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0 .6rem; }
.hero-illustration { width: 100%; height: auto; }
.crumbs { margin: .3rem 0 .4rem; color: var(--muted); }

/* ---------- services and tiles ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.service-card, .tile { position: relative; display: flex; flex-direction: column; gap: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.service-card:hover, .tile:hover { border-color: var(--sage); transform: translateY(-1px); text-decoration: none; }
.service-card strong, .tile strong { font-size: 1.02rem; line-height: 1.3; }
.service-card span.small, .tile span:last-child { color: var(--ink-2); font-size: .9rem; }
.service-ico, .tile-ico { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; background: var(--sage-soft); color: var(--brand); align-items: center; justify-content: center; }
.service-ico .ico, .tile-ico .ico { width: 22px; height: 22px; }
.service-go { position: absolute; right: 16px; top: 20px; color: var(--sage); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 1rem 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card-title { font-family: var(--font); font-size: 1.05rem; font-weight: 700; margin-bottom: .7rem; }
.table td.num, .table th.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.article-body { font-size: 1.06rem; line-height: 1.7; }
.article-body h2 { margin-top: 1.6em; }
.article-body blockquote { border-left: 4px solid var(--sage); margin: 1em 0; padding: .2em 1em; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: .6rem 0; }
.chips a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .9rem; }
.chips a[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips a:hover { border-color: var(--sage); text-decoration: none; }
.page-article { max-width: 780px; margin: 0 auto; }

/* ---------- tabs and member areas ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: .6rem 0 1.2rem; }
.tabs a { white-space: nowrap; padding: 8px 12px; color: var(--ink-2); border-bottom: 3px solid transparent; font-size: .92rem; }
.tabs a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--brand); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.thumb { max-width: 220px; border-radius: 8px; display: block; margin-bottom: 6px; }
.danger-zone { border-color: var(--err-line); }

.badge-ok { background: var(--ok-bg); color: #2f6a3c; }
.badge-warn { background: var(--warn-bg); color: #7a5a14; }

/* ---------- forms ---------- */
.form-row.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-row.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form.compact input { width: auto; display: inline-block; margin-right: 6px; }
textarea.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.form input, .form select, .form textarea { border-radius: 10px; }
.compact-form label { margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer, #1d2433); color: #eef1f6; margin-top: 3rem; }
.site-footer a { color: #dde4ef; }
.site-footer .muted { color: #b9c2d0; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-grid nav { display: flex; flex-direction: column; gap: 4px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 .4rem; font-family: var(--font-serif); font-size: 1.15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 12px 16px 18px; color: #b9c7bb !important; }
.footer-prefs select { background: #1b2b21; color: #e9efe9; border: 1px solid #3d5444; border-radius: 8px; padding: 4px 6px; }
.footer-prefs label { color: #cbd8cd; display: block; margin-top: 6px; }

/* ---------- admin ---------- */
.api-table td { vertical-align: top; }
pre.code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .layout-2 { grid-template-columns: 1fr; }
  .form-row.cols-3, .form-row.cols-2 { grid-template-columns: 1fr; }
  .brand-slogan { display: none; }
  .header-search { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig-value { font-size: 1.3rem; }
  .region-picker select { min-width: 0; width: 100%; }
  .hero { padding: 1.6rem 0 1.4rem; }
}

.main-nav .wrap { flex-wrap: nowrap; }
.main-nav a { padding: 11px 11px; }
.hero-actions .btn { white-space: nowrap; }
.hero-visual { display: flex; justify-content: center; }
.cookie-banner { gap: 14px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }


/* ---------------------------------------------------------------- Listings (guide places, properties, companies, payments)
   Used by the optional Guide, Properties, Companies and Payments modules; harmless on sites without them. */
.notice-info { background: var(--info-bg); border-color: var(--info-line); }
.narrow-wide { max-width: 880px; margin: 0 auto; }
.stack { display: grid; gap: 12px; }
.pre-line { white-space: pre-line; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 24px; }
.listing-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); margin: 0; transition: border-color .15s, transform .15s; }
a.listing-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.listing-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--accent); opacity: .55; }
.listing-placeholder .ico { width: 44px; height: 44px; stroke-width: 1.2; }
.listing-media .badge { position: absolute; top: 10px; }
.badge-listing-type { left: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.badge-featured-listing { right: 10px; background: var(--sun); color: #1d2a33; }
.badge-closed { left: 10px; top: 40px !important; background: var(--ink); color: #fff; }
.listing-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.listing-kicker { font-size: .78rem; font-weight: 600; color: var(--accent); }
.listing-title { font-size: 1.05rem; line-height: 1.3; }
.listing-price { font-weight: 700; }
.listing-text { font-size: .9rem; color: var(--muted); }
.listing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.listing-head h1 { margin-bottom: .2em; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.listing-actions form { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .gallery-main { grid-column: span 4; aspect-ratio: 16 / 9; }
@media (min-width: 800px) { .gallery { grid-template-columns: 2fr 1fr 1fr; } .gallery .gallery-main { grid-column: auto; grid-row: span 2; aspect-ratio: auto; } }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 20px; margin: 0; }
.facts-grid div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.facts-grid dt { font-size: .78rem; color: var(--muted); }
.facts-grid dd { margin: 2px 0 0; font-weight: 600; }
.listing-filters.card { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.listing-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; min-width: 150px; flex: 1 1 150px; margin: 0; }
.listing-filters label.check { flex-direction: row; align-items: center; flex: 0 0 auto; min-width: 0; }
.listing-filters .btn { flex: 0 0 auto; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.icon-grid.three { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 20px; }
.icon-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; text-align: center; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
a.icon-tile:hover { background: var(--accent-soft); text-decoration: none; }
.icon-tile .ico { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.4; }
.icon-tile.static { align-items: flex-start; text-align: left; }
.icon-preview .ico { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--accent-soft); }
.search-inline { display: flex; gap: 8px; max-width: 560px; margin-top: 12px; }
.search-inline input { flex: 1; min-width: 0; }
.thumb-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.thumb-pick { display: flex; flex-direction: column; gap: 4px; width: 120px; }
.thumb-pick img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; }
.rating { color: var(--sun); font-weight: 700; letter-spacing: .05em; }
.stars { display: flex; flex-wrap: wrap; gap: 4px 14px; border: 0; padding: 0; }
.stars legend { width: 100%; margin-bottom: 4px; }
.review { padding: 12px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; }
.big { font-size: 1.4rem; font-weight: 700; }
.profile-head { display: flex; gap: 18px; align-items: flex-start; }
.company-logo { width: 96px; height: 96px; border-radius: 12px; object-fit: contain; background: var(--surface-2); flex-shrink: 0; }
.company-logo.placeholder { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.company-logo.placeholder .ico { width: 40px; height: 40px; }
.review-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.review-row:first-of-type { border-top: 0; }
.decide-form input { min-width: 180px; }
.price-option { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.pay-method { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; justify-items: start; }
.credit figcaption { gap: 2px; }