/* Amazing Latvia Core — component styles (header, footer, map, cards, info, forms, cookies). */
:root {
	--al-ink: #15212B; --al-ink-soft: #56616B; --al-line: #E5DFD5; --al-surface: #F7F4EF; --al-accent: #8C2F39; --al-forest: #2F5D50;
	--al-card: #fff; --al-header-bg: rgba(255,255,255,.88);
	--al-r: 14px; --al-r-lg: 22px; --al-ease: cubic-bezier(.2,.7,.2,1);
	--al-wrap: 1240px; --al-gutter: clamp(1rem, 4vw, 2rem);
}
.al-noscroll { overflow: hidden; }
.al-cookie [hidden], .al-cookie[hidden], .al-drawer[hidden], .al-searchpanel[hidden] { display: none !important; }
.al-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.al-dot { opacity: .5; }

/* ---------- Buttons ---------- */
.al-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--al-ease); }
.al-btn:hover { transform: translateY(-1px); }
.al-btn:disabled { opacity: .6; cursor: progress; }
.al-btn--dark { background: var(--al-ink); color: #fff; }
.al-btn--dark:hover { background: var(--al-accent); color: #fff; }
.al-btn--accent { background: var(--al-accent); color: #fff; }
.al-btn--accent:hover { background: #6C2029; color: #fff; }
.al-btn--ghost { background: transparent; color: var(--al-ink); border-color: var(--al-line); }
.al-btn--ghost:hover { border-color: var(--al-ink); color: var(--al-ink); }
.al-btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.al-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.al-linkbtn:hover { color: var(--al-accent); }

/* ---------- Header ---------- */
.al-header-part { position: sticky; top: 0; z-index: 60; }
body.admin-bar .al-header-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar .al-header-part { top: 46px; } }
.al-header { background: var(--al-header-bg); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.al-header.is-scrolled { border-bottom-color: var(--al-line); box-shadow: 0 8px 30px rgba(21,33,43,.06); }
.al-header__inner { max-width: var(--al-wrap); margin: 0 auto; padding: 0 var(--al-gutter); min-height: 74px; display: flex; align-items: center; gap: 2rem; }
.al-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none !important; color: var(--al-ink) !important; flex: none; }
/* PNG has 6px transparent padding baked in; negative margin keeps the visible logo where the old SVG+text sat. */
.al-logo__img { display: block; width: 213px; max-width: calc(100% + 12px); height: auto; margin: -6px; }
.al-nav { flex: 1; min-width: 0; }
.al-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; justify-content: center; flex-wrap: nowrap; }
.al-nav a { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 0; font-size: .93rem; font-weight: 550; color: var(--al-ink); text-decoration: none; white-space: nowrap; }
.al-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1.5px; background: var(--al-accent); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--al-ease); }
.al-nav a:hover::after, .al-nav a[aria-current]::after { transform: scaleX(1); }
.al-nav__map { color: var(--al-accent) !important; }
.al-header__actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.al-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; color: var(--al-ink); cursor: pointer; transition: background .2s; }
.al-iconbtn:hover, .al-iconbtn[aria-expanded="true"] { background: var(--al-surface); }
.al-iconbtn .al-icon { width: 22px; height: 22px; }
.al-burger { display: none; }
.al-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--al-surface); }
.al-lang a { padding: .3rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 650; letter-spacing: .06em; color: var(--al-ink-soft); text-decoration: none; }
.al-lang a.is-current { background: var(--al-card); color: var(--al-ink); box-shadow: 0 1px 3px rgba(21,33,43,.12); }
.al-searchpanel { border-top: 1px solid var(--al-line); background: var(--al-card); }
.al-searchpanel__inner { max-width: 720px; margin: 0 auto; padding: 1rem var(--al-gutter) 1.25rem; }
.al-search { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--al-line); background: var(--al-surface); border-radius: 999px; padding: .3rem .3rem .3rem 1rem; }
.al-search .al-icon { color: var(--al-ink-soft); }
.al-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: .55rem 0; color: var(--al-ink); }
.al-search input:focus { outline: none; }
.al-search:focus-within { border-color: var(--al-ink); background: var(--al-card); }
.al-search button { border: 0; border-radius: 999px; background: var(--al-ink); color: #fff; font: inherit; font-weight: 600; font-size: .9rem; padding: .65rem 1.2rem; cursor: pointer; }
.al-search button:hover { background: var(--al-accent); }
@media (max-width: 1080px) {
	.al-nav { display: none; }
	.al-burger { display: inline-grid; }
	.al-lang--header { display: none; }
}

/* Drawer */
.al-drawer { position: fixed; inset: 0; z-index: 100; }
.al-drawer__backdrop { position: absolute; inset: 0; background: rgba(21,33,43,.4); opacity: 0; transition: opacity .25s; }
.al-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--al-card); padding: 1.1rem 1.4rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--al-ease); display: flex; flex-direction: column; gap: 1rem; }
.al-drawer.is-open .al-drawer__backdrop { opacity: 1; }
.al-drawer.is-open .al-drawer__panel { transform: none; }
.al-drawer__top { display: flex; justify-content: space-between; align-items: center; }
.al-drawer__label { margin: .6rem 0 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--al-ink-soft); }
.al-drawer ul { list-style: none; margin: 0; padding: 0; }
.al-drawer__cats { display: grid; gap: .25rem; }
.al-drawer__cats a { display: flex; align-items: center; gap: .8rem; padding: .55rem .4rem; border-radius: 10px; color: var(--al-ink); text-decoration: none; font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.2rem; font-weight: 520; }
.al-drawer__cats a:hover { background: var(--al-surface); }
.al-drawer__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 10%, var(--al-card)); color: var(--c); }
.al-drawer__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.al-drawer__chips a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--al-line); font-size: .88rem; color: var(--al-ink); text-decoration: none; }
.al-drawer__pages { display: grid; gap: .5rem; border-top: 1px solid var(--al-line); padding-top: 1rem !important; margin-top: .5rem !important; }
.al-drawer__pages a { color: var(--al-ink); text-decoration: none; font-weight: 550; }

/* ---------- Footer ---------- */
.al-footer { background: var(--al-surface); border-top: 1px solid var(--al-line); margin-top: 0; }
.al-footer__grid { max-width: var(--al-wrap); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--al-gutter) 2.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .al-footer__grid { grid-template-columns: 1fr 1fr; } .al-footer__brand { grid-column: 1 / -1; } }
.al-footer__brand p { color: var(--al-ink-soft); font-size: .95rem; max-width: 22rem; margin: 1rem 0 1.25rem; }
.al-footer h4 { margin: 0 0 1rem; font-family: inherit; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--al-ink-soft); font-weight: 650; }
.al-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .93rem; }
.al-footer a, .al-footer .al-linkbtn { color: var(--al-ink); text-decoration: none; font-size: .93rem; }
.al-footer a:hover, .al-footer .al-linkbtn:hover { color: var(--al-accent); }
.al-footer .al-lang { background: var(--al-card); }
.al-footer__bottom { max-width: var(--al-wrap); margin: 0 auto; padding: 1.25rem var(--al-gutter) 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--al-line); font-size: .8rem; color: var(--al-ink-soft); }
.al-footer__flag { width: 36px; height: 18px; border-radius: 3px; background: linear-gradient(#9E3039 0 40%, #fff 40% 60%, #9E3039 60%); box-shadow: 0 0 0 1px var(--al-line); }

/* ---------- Breadcrumbs, reading time ---------- */
.al-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .82rem; color: var(--al-ink-soft); }
.al-crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.al-crumbs a { color: var(--al-ink-soft); text-decoration: none; }
.al-crumbs a:hover { color: var(--al-accent); }
.al-crumbs [aria-current] { color: var(--al-ink); display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.al-readtime { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Cards (shared with theme) ---------- */
.al-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.25rem 1.5rem; }
.al-post-grid.has-feature { grid-template-columns: repeat(3, minmax(0,1fr)); }
.al-post-grid.has-feature > .al-card--feature { grid-column: span 2; grid-row: span 2; }
@media (max-width: 960px) { .al-post-grid, .al-post-grid.has-feature { grid-template-columns: repeat(2, minmax(0,1fr)); } .al-post-grid.has-feature > .al-card--feature { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .al-post-grid, .al-post-grid.has-feature { grid-template-columns: 1fr; } }
.al-card h3.wp-block-post-title { font-family: "Source Serif 4 Variable", Georgia, serif; font-weight: 560; }
.al-card .al-icon { width: 14px; height: 14px; }
.al-card__meta { display: flex; align-items: center; gap: .45rem; }
.al-card__meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.al-badge { --c: var(--al-accent); display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, var(--al-card)); color: var(--c); font-size: .74rem; font-weight: 650; }
.al-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Category & region filters ---------- */
.al-filters { display: grid; gap: .9rem; }
.al-filters__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.al-fchip { --c: var(--al-ink); display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; background: var(--al-card); border: 1px solid var(--al-line); color: var(--al-ink); text-decoration: none; font-size: .9rem; font-weight: 550; transition: all .2s; }
.al-fchip .al-icon { color: var(--c); width: 18px; height: 18px; }
.al-fchip:hover { border-color: var(--c); }
.al-fchip[aria-current] { background: var(--c); border-color: var(--c); color: #fff; }
.al-fchip[aria-current] .al-icon { color: #fff; }
.al-filters__label { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 650; color: var(--al-ink-soft); margin-right: .25rem; }
.al-rchip { padding: .35rem .8rem; border-radius: 999px; font-size: .84rem; color: var(--al-ink-soft); text-decoration: none; border: 1px solid transparent; }
.al-rchip:hover { color: var(--al-ink); border-color: var(--al-line); }
.al-rchip[aria-current] { background: var(--al-ink); color: #fff; }
.al-filters__count { margin: 0; font-size: .82rem; color: var(--al-ink-soft); }

/* ---------- Map ---------- */
.al-map { --al-map-h: 640px; border-radius: var(--al-r-lg); background: var(--al-card); border: 1px solid var(--al-line); overflow: hidden; box-shadow: 0 1px 2px rgba(21,33,43,.04), 0 18px 48px rgba(21,33,43,.07); }
.al-map__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1rem; padding: .9rem; border-bottom: 1px solid var(--al-line); }
.al-map__chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding-bottom: 2px; }
.al-map__chips::-webkit-scrollbar { display: none; }
.al-mchip { --c: var(--al-ink); flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--al-line); background: var(--al-card); font: inherit; font-size: .86rem; font-weight: 550; color: var(--al-ink); cursor: pointer; transition: all .2s; }
.al-mchip .al-icon { width: 17px; height: 17px; color: var(--c); }
.al-mchip span { font-size: .72rem; color: var(--al-ink-soft); font-weight: 600; }
.al-mchip:hover { border-color: var(--c); }
.al-mchip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.al-mchip[aria-pressed="true"] .al-icon, .al-mchip[aria-pressed="true"] span { color: #fff; }
.al-map__tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.al-map__search { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--al-line); border-radius: 999px; padding: 0 .8rem; background: var(--al-surface); }
.al-map__search .al-icon { color: var(--al-ink-soft); width: 16px; }
.al-map__search input { border: 0; background: transparent; font: inherit; font-size: .88rem; padding: .5rem 0; width: 11rem; color: var(--al-ink); }
.al-map__search input:focus { outline: none; }
.al-map__select select { appearance: none; border: 1px solid var(--al-line); border-radius: 999px; padding: .52rem 2rem .52rem .9rem; font: inherit; font-size: .88rem; background: var(--al-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315212B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .7rem center/14px no-repeat; color: var(--al-ink); cursor: pointer; }
.al-map__btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--al-line); border-radius: 999px; background: var(--al-card); font: inherit; font-size: .86rem; font-weight: 550; padding: .5rem .9rem; color: var(--al-ink); cursor: pointer; }
.al-map__btn:hover { border-color: var(--al-ink); }
.al-map__btn .al-icon { width: 17px; height: 17px; }
.al-map__viewtoggle { display: none; }
.al-map__body { display: grid; grid-template-columns: 360px 1fr; height: var(--al-map-h); }
.al-map.is-compact .al-map__body { grid-template-columns: 1fr; }
.al-map__list { overflow-y: auto; border-right: 1px solid var(--al-line); background: var(--al-card); }
.al-map__count { margin: 0; padding: .8rem 1rem .4rem; font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--al-ink-soft); }
.al-map__list ol { list-style: none; margin: 0; padding: 0 .5rem .75rem; }
.al-map__list li { display: grid; grid-template-columns: 72px 1fr; gap: .8rem; align-items: center; padding: .55rem; border-radius: 12px; cursor: pointer; transition: background .15s; }
.al-map__list li:hover, .al-map__list li.is-active { background: var(--al-surface); }
.al-map__list li img, .al-li__ph { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; display: grid; place-items: center; }
.al-li__ph { background: color-mix(in srgb, var(--c) 12%, var(--al-card)); color: var(--c); }
.al-li__ph svg { width: 24px; height: 24px; }
.al-li__title { display: block; margin-top: .25rem; font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.02rem; font-weight: 560; line-height: 1.25; color: var(--al-ink); text-decoration: none; }
.al-li__title:hover { color: var(--al-accent); }
.al-li__meta { display: flex; gap: .5rem; font-size: .78rem; color: var(--al-ink-soft); }
.al-li__dist { font-weight: 650; color: var(--al-ink); }
.al-li__empty { display: block !important; padding: 1rem !important; color: var(--al-ink-soft); font-size: .9rem; cursor: default !important; }
.al-map__canvas { height: 100%; min-height: 320px; background: #EEF0EC; z-index: 0; }
.al-map .leaflet-tile-pane, .al-info__map .leaflet-tile-pane { filter: saturate(.55) contrast(.96) brightness(1.03); }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(255,255,255,.8) !important; }
.leaflet-bar { border: 0 !important; box-shadow: 0 2px 10px rgba(21,33,43,.15) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-bar a { color: var(--al-ink) !important; }
@media (max-width: 860px) {
	.al-map__body { grid-template-columns: 1fr; }
	.al-map__list { display: none; border-right: 0; }
	.al-map.show-list .al-map__list { display: block; }
	.al-map.show-list .al-map__canvas { display: none; }
	.al-map__viewtoggle { display: inline-flex; }
	.al-map__tools { width: 100%; }
	.al-map__search { flex: 1; }
	.al-map__search input { width: 100%; }
}

/* Markers */
.al-marker { background: none; border: 0; }
.al-marker__pin { --c: var(--al-accent); position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: var(--c); border: 2.5px solid #fff; box-shadow: 0 6px 16px rgba(21,33,43,.28); transition: transform .2s var(--al-ease); }
.al-marker__pin svg { transform: rotate(45deg); width: 19px; height: 19px; color: #fff; }
.al-marker:hover .al-marker__pin, .al-marker.is-active .al-marker__pin { transform: rotate(-45deg) scale(1.15); }

/* Popup */
.al-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 48px rgba(21,33,43,.22); }
.al-popup .leaflet-popup-content { margin: 0; width: 260px !important; }
.al-pop img, .al-pop__ph { display: grid; place-items: center; width: 100%; height: 130px; object-fit: cover; background: color-mix(in srgb, var(--c) 14%, var(--al-card)); color: var(--c); }
.al-pop__ph svg { width: 40px; height: 40px; }
.al-pop__body { padding: .85rem 1rem 1rem; display: grid; gap: .35rem; justify-items: start; }
.al-pop__title { font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.12rem; font-weight: 560; line-height: 1.2; color: var(--al-ink) !important; text-decoration: none; }
.al-pop__meta { font-size: .78rem; color: var(--al-ink-soft); }
.al-pop__actions { display: flex; gap: 1rem; margin-top: .3rem; font-size: .84rem; font-weight: 600; }
.al-pop__actions a { color: var(--al-accent) !important; text-decoration: none; }
.al-popup a.leaflet-popup-close-button { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); font-size: 20px; padding: 6px 8px 0 0; }

/* ---------- Place info card ---------- */
.al-info { --c: var(--al-accent); display: grid; grid-template-columns: 1fr; border-radius: var(--al-r-lg); background: var(--al-surface); overflow: hidden; border: 1px solid var(--al-line); margin-block: 2rem !important; }
.al-info.has-map { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .al-info.has-map { grid-template-columns: 1fr; } }
.al-info__body { padding: 1.6rem 1.75rem; }
.al-info dl { margin: .9rem 0 0; display: grid; gap: .85rem; }
.al-info__row { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; }
.al-info__row > .al-icon { color: var(--c); width: 20px; height: 20px; margin-top: .15rem; }
.al-info dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--al-ink-soft); }
.al-info dd { margin: .1rem 0 0; font-size: .97rem; line-height: 1.45; color: var(--al-ink); }
.al-info dd a { color: var(--al-accent); }
.al-info__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.al-info__actions .al-icon { width: 18px; height: 18px; }
.al-info__map { min-height: 300px; height: 100%; }

/* ---------- Nearby / related ---------- */
.al-nearby, .al-related { display: grid; gap: 1.5rem; }
.al-nearby h2, .al-related h2 { margin: .3rem 0 0; }
.al-nearby__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 1000px) { .al-nearby__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.al-nearby .al-card .wp-block-post-title { font-size: 1.1rem; }

/* ---------- Forms ---------- */
.al-form { display: grid; gap: 1.25rem; }
.al-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .al-form__grid { grid-template-columns: 1fr; } }
.al-field { display: grid; gap: .4rem; }
.al-field.is-wide { grid-column: 1 / -1; }
.al-field span { font-size: .82rem; font-weight: 650; color: var(--al-ink); }
.al-field input, .al-field select, .al-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--al-line); border-radius: 12px; background: var(--al-card); padding: .8rem .95rem; font: inherit; font-size: 1rem; color: var(--al-ink); transition: border-color .2s, box-shadow .2s; }
.al-field textarea { resize: vertical; min-height: 140px; }
.al-field input:focus, .al-field select:focus, .al-field textarea:focus { outline: none; border-color: var(--al-ink); box-shadow: 0 0 0 4px rgba(21,33,43,.06); }
.al-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--al-ink-soft); }
.al-check input { margin-top: .25rem; accent-color: var(--al-accent); width: 18px; height: 18px; }
.al-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.al-form__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.al-form__status { margin: 0; font-size: .92rem; }
.al-form__status.is-ok { color: var(--al-forest); font-weight: 600; }
.al-form__status.is-err { color: var(--al-accent); font-weight: 600; }

/* ---------- Cookie banner ---------- */
.al-cookie { position: fixed; left: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); z-index: 90; width: min(440px, calc(100vw - 1.5rem)); background: var(--al-card); border: 1px solid var(--al-line); border-radius: 18px; padding: 1.25rem 1.35rem; box-shadow: 0 24px 64px rgba(21,33,43,.18); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s var(--al-ease); font-size: .9rem; }
.al-cookie.is-open { opacity: 1; transform: none; }
.al-cookie__head { display: flex; align-items: center; gap: .55rem; font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.1rem; }
.al-cookie__head .al-icon { color: var(--al-accent); width: 22px; height: 22px; }
.al-cookie p { margin: .55rem 0 1rem; color: var(--al-ink-soft); line-height: 1.55; }
.al-cookie p a { color: var(--al-ink); }
.al-cookie__actions { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; }
.al-cookie__prefs { display: grid; gap: .8rem; margin: 0 0 1rem; padding: .9rem 0; border-block: 1px solid var(--al-line); }
.al-toggle { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: start; cursor: pointer; }
.al-toggle input { position: absolute; opacity: 0; }
.al-toggle__ui { width: 38px; height: 22px; border-radius: 999px; background: var(--al-line); position: relative; transition: background .2s; margin-top: .1rem; }
.al-toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--al-card); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--al-ease); }
.al-toggle input:checked + .al-toggle__ui { background: var(--al-forest); }
.al-toggle input:checked + .al-toggle__ui::after { transform: translateX(16px); }
.al-toggle input:disabled + .al-toggle__ui { opacity: .6; }
.al-toggle input:focus-visible + .al-toggle__ui { outline: 2px solid var(--al-accent); outline-offset: 2px; }
.al-toggle strong { display: block; color: var(--al-ink); font-size: .9rem; }
.al-toggle small { display: block; color: var(--al-ink-soft); font-size: .8rem; line-height: 1.45; }

.al-empty { color: var(--al-ink-soft); }

/* Placeholder icon size (beats .al-card .al-icon) */
.al-placeholder .al-icon, .al-card .al-placeholder .al-icon { width: clamp(34px, 16%, 64px); height: auto; opacity: .9; position: relative; z-index: 1; }
/* Feature card fills its two rows: media grows, body stays compact */
.al-post-grid.has-feature > .al-card--feature { display: flex; flex-direction: column; }
.al-post-grid.has-feature > .al-card--feature > .wp-block-post-featured-image,
.al-post-grid.has-feature > .al-card--feature > .al-placeholder { aspect-ratio: auto; flex: 1 1 auto; min-height: 340px; }
.al-post-grid.has-feature > .al-card--feature > .wp-block-post-featured-image img { height: 100%; }
.al-post-grid.has-feature > .al-card--feature .al-card__body { flex: none; }
.al-post-grid.has-feature > .al-card--feature .wp-block-post-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
@media (max-width: 960px) { .al-post-grid.has-feature > .al-card--feature > .wp-block-post-featured-image, .al-post-grid.has-feature > .al-card--feature > .al-placeholder { aspect-ratio: 16/10; min-height: 0; } }

/* ---------- Header "More" dropdown ---------- */
.al-nav__more { position: relative; }
.al-nav__more > button { display: inline-flex; align-items: center; gap: .25rem; padding: .5rem 0; border: 0; background: none; font: inherit; font-size: .93rem; font-weight: 550; color: var(--al-ink); cursor: pointer; }
.al-nav__more > button .al-icon { width: 16px; height: 16px; transition: transform .2s; }
.al-nav__more > button[aria-expanded="true"] .al-icon { transform: rotate(180deg); }
.al-nav__sub { display: none !important; position: absolute; top: calc(100% + .6rem); left: 50%; transform: translateX(-50%); min-width: 230px; background: var(--al-card); border: 1px solid var(--al-line); border-radius: 14px; box-shadow: 0 18px 48px rgba(21,33,43,.14); padding: .4rem !important; flex-direction: column; gap: 0 !important; z-index: 5; }
.al-nav__more > button[aria-expanded="true"] + .al-nav__sub { display: flex !important; }
.al-nav__sub a { display: flex !important; gap: .6rem; padding: .6rem .7rem !important; border-radius: 10px; }
.al-nav__sub a::after { display: none; }
.al-nav__sub a:hover { background: var(--al-surface); }
.al-nav__sub .al-icon { color: var(--c); width: 18px; height: 18px; }

/* ---------- Sponsored / partner ---------- */
.al-badge--sponsored { --c: #6B5E4B; }
.al-badge--partner { --c: #A0782E; background: #FBF3E2; }
.al-badge--partner::before { display: none; }
.al-badge--partner .al-icon { width: 12px; height: 12px; fill: currentColor; }
.al-badges .al-badge { font-size: .74rem; }
.al-disclosure { display: flex; gap: .75rem; align-items: flex-start; background: var(--al-surface); border: 1px solid var(--al-line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 2rem; font-size: .9rem; color: var(--al-ink-soft); }
.al-disclosure .al-icon { color: #6B5E4B; margin-top: .15rem; }
.al-disclosure p { margin: 0; font-size: .9rem !important; line-height: 1.5 !important; color: var(--al-ink-soft) !important; }
.al-card.is-partner .wp-block-post-featured-image, .al-card.is-partner .al-placeholder { box-shadow: 0 0 0 2px #D9B56A; }
.al-marker.is-partner .al-marker__pin { width: 44px; height: 44px; border-color: #F2D48A; box-shadow: 0 0 0 4px rgba(217,181,106,.35), 0 8px 20px rgba(21,33,43,.3); }
.al-map__list li.is-partner { background: #FDF8EE; }

/* ---------- Listing form + CTA ---------- */
.al-form__section { margin: .5rem 0 -.25rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--al-ink-soft); }
.al-pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 640px) { .al-pkgs { grid-template-columns: 1fr; } }
.al-pkg { position: relative; display: block; cursor: pointer; }
.al-pkg input { position: absolute; opacity: 0; }
.al-pkg span { display: block; height: 100%; box-sizing: border-box; border: 1.5px solid var(--al-line); border-radius: 12px; padding: .9rem 1rem .9rem 2.6rem; font-size: .92rem; line-height: 1.45; background: var(--al-card); transition: border-color .2s, background .2s; }
.al-pkg span::before { content: ""; box-sizing: border-box; position: absolute; left: 1rem; top: 1.05rem; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--al-line); background: var(--al-card); }
.al-pkg input:checked + span { border-color: var(--al-ink); background: var(--al-surface); }
.al-pkg input:checked + span::before { border: 5px solid var(--al-accent); }
.al-pkg input:focus-visible + span { outline: 2px solid var(--al-accent); outline-offset: 2px; }
.al-listing-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem !important; padding: 1rem 1.25rem; border-radius: 16px; background: var(--al-card); border: 1px solid var(--al-line); }
.al-listing-cta__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #EEF4EF; color: #4F7A5A; flex: none; }
.al-listing-cta__ico .al-icon { width: 24px; height: 24px; }
.al-listing-cta > div { flex: 1; min-width: 220px; }
.al-listing-cta strong { font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.2rem; font-weight: 560; }
.al-listing-cta p { margin: .15rem 0 0; font-size: .9rem; color: var(--al-ink-soft); }

/* ---------- Authors ---------- */
.al-avatar { border-radius: 50%; object-fit: cover; flex: none; }
.al-avatar--initials { display: inline-grid; place-items: center; background: #F1E7E2; color: #8C2F39; font-weight: 650; font-size: .8em; letter-spacing: .02em; }
.al-byline { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.al-byline a { color: var(--al-ink); text-decoration: none; }
.al-byline a:hover { color: var(--al-accent); }
.al-byline .al-avatar--initials { font-size: .65rem; }
.al-author { display: flex; gap: 1.1rem; align-items: flex-start; max-width: 760px; margin: 3rem auto 0 !important; padding: 1.5rem 0 0; border-top: 1px solid var(--al-line); }
.al-author .al-eyebrow { margin: 0; }
.al-author__name { margin: .2rem 0 0 !important; font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.35rem !important; font-weight: 560; line-height: 1.2; }
.al-author.is-page .al-author__name { font-size: var(--wp--preset--font-size--xxl, 2.6rem) !important; }
.al-author__job { margin: .1rem 0 0; font-size: .9rem; color: var(--al-ink-soft); }
.al-author__bio { margin: .7rem 0 .5rem; font-size: .97rem; line-height: 1.6; }
.al-author.is-page { border-top: 0; padding: 0; margin: 1rem 0 0 !important; max-width: 820px; }
.al-author .al-link-arrow { font-size: .88rem; font-weight: 600; color: var(--al-ink); text-decoration: none; }
.al-author .al-link-arrow::after { content: " →"; }

/* Footer quiet links (client article categories) */
.al-footer__quiet { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-left: auto; margin-right: 1.5rem; }
.al-footer__quiet a { color: var(--al-ink-soft) !important; font-size: .8rem; text-decoration: none; }
.al-footer__quiet a:hover { color: var(--al-ink) !important; }

/* ---------- Directions chooser (Google Maps / Waze) ---------- */
.al-route { position: relative; display: inline-block; }
.al-route > summary { list-style: none; cursor: pointer; user-select: none; }
.al-route > summary::-webkit-details-marker { display: none; }
.al-route > summary .al-icon:last-child { width: 14px !important; height: 14px !important; margin-left: .1rem; transition: transform .2s var(--al-ease); }
.al-route[open] > summary .al-icon:last-child { transform: rotate(180deg); }
.al-route__menu { position: absolute; left: 0; bottom: calc(100% + .45rem); z-index: 20; min-width: 190px; padding: .4rem; background: var(--al-card); border: 1px solid var(--al-line); border-radius: 12px; box-shadow: 0 14px 36px rgba(21,33,43,.16); display: grid; gap: .1rem; animation: al-route-in .16s var(--al-ease); }
@keyframes al-route-in { from { opacity: 0; transform: translateY(4px); } }
.al-route__label { padding: .3rem .6rem .2rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--al-ink-soft); }
.al-route__menu a { display: block; padding: .5rem .6rem; border-radius: 8px; color: var(--al-ink) !important; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.al-route__menu a:hover, .al-route__menu a:focus-visible { background: var(--al-surface); color: var(--al-accent) !important; }
.al-route__menu a::after { content: " 97"; color: var(--al-ink-soft); font-weight: 400; }
.al-pop__actions .al-route > summary { color: var(--al-accent); }
.al-pop__actions .al-route__menu { min-width: 160px; }

/* ---------- Category tiles with photos ---------- */
.al-cat-tile { overflow: hidden; }
.al-cat-tile__photo { position: relative; display: block; margin: -1.25rem -1.25rem .1rem; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--c) 9%, var(--al-card)); overflow: hidden; }
.al-cat-tile__photo .al-cat-tile__icon { position: absolute; left: 1.25rem; bottom: -0px; transform: translateY(0); }
.al-cat-tile:not(.has-photo) .al-cat-tile__photo .al-cat-tile__icon { left: 50%; top: 50%; bottom: auto; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 18px; background: var(--al-card); }
.al-cat-tile:not(.has-photo) .al-cat-tile__photo .al-cat-tile__icon svg { width: 30px; height: 30px; }
.al-cat-tile.has-photo .al-cat-tile__photo .al-cat-tile__icon { left: .9rem; bottom: .9rem; width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--al-card) 94%, transparent); box-shadow: 0 4px 14px rgba(21,33,43,.18); }
.al-cat-tile.has-photo .al-cat-tile__photo .al-cat-tile__icon svg { width: 21px; height: 21px; }
.al-cat-tile__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--al-ease); }
.al-cat-tile:hover .al-cat-tile__img { transform: scale(1.05); }

/* Photo credit under the single-post hero image */
.al-photo-credit { display: block; width: 100%; flex: 0 0 100%; grid-column: 1 / -1; margin: .55rem 0 0 !important; font-size: .74rem; line-height: 1.4; color: var(--al-ink-soft); text-align: right; }
.al-photo-credit a { color: inherit !important; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
.al-photo-credit a:hover { color: var(--al-ink) !important; }
.al-photo-credit a { display: inline !important; width: auto !important; height: auto !important; }

/* ---------- Hero photo grid (post with a gallery) ---------- */
.al-hero-gal__grid { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .5rem; aspect-ratio: 16 / 7.4; border-radius: var(--al-r-lg, 22px); overflow: hidden; }
.al-hero-gal__side { display: grid; grid-template-rows: 1fr 1fr; gap: .5rem; min-height: 0; }
.al-hero-gal.n-2 .al-hero-gal__side { grid-template-rows: 1fr; }
.al-hero-gal__tile { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; margin: 0; background: var(--al-surface); cursor: zoom-in; overflow: hidden; min-height: 0; }
.al-hero-gal__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--al-ease), filter .3s; }
.al-hero-gal__tile:hover .al-hero-gal__img { transform: scale(1.03); filter: brightness(.94); }
.al-hero-gal__tile:focus-visible { outline: 3px solid var(--al-accent); outline-offset: -3px; }
.al-hero-gal__all { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--al-card) 94%, transparent); color: var(--al-ink); font-family: inherit; font-size: .88rem; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(21,33,43,.2); transition: transform .2s var(--al-ease); }
.al-hero-gal__all:hover { transform: translateY(-1px); }
.al-hero-gal__all svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .al-hero-gal__grid { grid-template-columns: 1fr; aspect-ratio: 4 / 3; }
  .al-hero-gal__side { display: none; }
  .al-hero-gal__all { right: .7rem; bottom: .7rem; padding: .5rem .8rem; font-size: .8rem; }
}

/* ---------- Lightbox ---------- */
.al-zoomable { cursor: zoom-in; }
.al-lb { position: fixed; inset: 0; z-index: 100000; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem; grid-template-rows: auto minmax(0, 1fr); background: rgba(12,17,22,.95); color: #fff; animation: al-lb-in .2s ease; }
.al-lb[hidden] { display: none !important; }
@keyframes al-lb-in { from { opacity: 0; } }
.al-lb__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem .25rem 1.4rem; }
.al-lb__count { font-size: .9rem; letter-spacing: .04em; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.al-lb__btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .2s; padding: 0; }
.al-lb__btn:hover { background: rgba(255,255,255,.2); }
.al-lb__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.al-lb__nav { align-self: center; justify-self: center; }
.al-lb__nav[hidden] { display: grid !important; visibility: hidden; }
.al-lb__stage { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: .5rem 0 1.4rem; }
.al-lb__img { max-width: 100%; max-height: calc(100% - 4.5rem); min-height: 0; object-fit: contain; border-radius: 6px; opacity: 0; transition: opacity .25s ease; }
.al-lb__img.is-in { opacity: 1; }
.al-lb__cap { text-align: center; max-width: 70ch; font-size: .95rem; line-height: 1.45; color: rgba(255,255,255,.92); }
.al-lb__cap span { display: block; }
.al-lb__cap small { display: block; margin-top: .25rem; font-size: .76rem; color: rgba(255,255,255,.6); }
.al-lb__cap a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .al-lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .al-lb__nav { position: fixed; bottom: 1rem; z-index: 2; }
  .al-lb__nav.is-prev { left: 1rem; }
  .al-lb__nav.is-next { right: 1rem; }
  .al-lb__stage { padding: 0 .75rem 5rem; }
}

/* ---------- Cookie banner: never wider than the screen; phone layout ---------- */
.al-cookie, .al-cookie * { box-sizing: border-box; }
.al-cookie { max-width: calc(100vw - 1.5rem); }
.al-cookie p { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .al-cookie { left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); width: auto; max-height: calc(100dvh - 1.5rem); overflow-y: auto; padding: 1.1rem 1.1rem 1rem; border-radius: 16px; }
  .al-cookie__head { font-size: 1.05rem; }
  .al-cookie p { font-size: .9rem; margin: .45rem 0 .9rem; }
  /* Main choice full width on top, the two secondary choices side by side below */
  .al-cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .al-cookie__actions .al-btn { width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.2; min-height: 44px; padding-inline: .6rem; }
  .al-cookie__actions [data-al-cookie="accept"], .al-cookie__actions [data-al-cookie="save"] { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 560px) {
  .al-cookie__actions:has([data-al-cookie="save"]:not([hidden])) [data-al-cookie="reject"] { grid-column: 1 / -1; }
}

/* Mobile menu language switch: two equal halves */
.al-lang--drawer { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch; padding: 4px; margin-top: .25rem; }
.al-lang--drawer a { display: block; text-align: center; padding: .65rem .5rem; font-size: .9rem; letter-spacing: 0; font-weight: 600; }

/* Narrow phones: header must not exceed the screen; long breadcrumb titles truncate instead of overflowing */
@media (max-width: 1023px) {
  .al-header__inner { gap: .75rem; }
  .al-header__inner > .al-nav:empty, .al-header__inner > .al-nav { flex: 0 0 0; }
}
@media (max-width: 400px) {
  .al-header__inner { gap: .5rem; }
  .al-header__actions { gap: .15rem; }
  .al-logo { min-width: 0; }
}
.al-crumbs ol { min-width: 0; max-width: 100%; }
.al-crumbs li { min-width: 0; max-width: 100%; }
.al-crumbs [aria-current] { max-width: min(40ch, calc(100vw - 2.5rem)); }

/* ---------- Category labels: editorial, no dot ---------- */
body .al-badges a, body .al-badge {
  gap: .3rem; padding: .3rem .55rem .28rem; border-radius: 6px;
  background: color-mix(in srgb, var(--c) 8%, var(--al-card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent);
  color: color-mix(in srgb, var(--c) 88%, #15212B);
  font-size: .68rem; font-weight: 650; line-height: 1.1; letter-spacing: .09em; text-transform: uppercase;
  transition: background .2s, box-shadow .2s, color .2s;
}
body .al-badges a::before, body .al-badge::before { display: none; }
body .al-badges a:hover {
  background: color-mix(in srgb, var(--c) 14%, var(--al-card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
  color: var(--c);
}
body .al-badges .al-badge { font-size: .66rem; }
/* map popups keep it compact */
.al-pop .al-badge { font-size: .62rem; padding: .25rem .45rem; }

/* Leaflet panes use z-index 400+; keep every map in its own stacking context so it never covers the sticky header or menus */
.leaflet-container, .al-info__map, .al-map__canvas, [data-al-canvas], [data-al-minimap] { isolation: isolate; z-index: 0; }

/* ---------- Category landing (guide page) ---------- */
.al-landing { margin-top: var(--wp--preset--spacing--60, 4rem) !important; }
.al-landing > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.al-landing > .al-table-wrap { max-width: 1040px; }
.al-landing__h { font-family: "Source Serif 4 Variable", Georgia, serif; font-weight: 560; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.15; margin: 0 auto .5rem; }
.al-landing__note { color: var(--al-ink-soft); font-size: .92rem; margin: 0 auto 1.2rem; }
.al-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--al-line); border-radius: 14px; background: var(--al-card); }
.al-landing__table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px; }
.al-landing__table th, .al-landing__table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--al-line); vertical-align: top; line-height: 1.45; }
.al-landing__table thead th { background: var(--al-surface); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 650; color: var(--al-ink-soft); }
.al-landing__table tbody tr:last-child > * { border-bottom: 0; }
.al-landing__table tbody tr:hover { background: color-mix(in srgb, var(--al-surface) 60%, var(--al-card)); }
.al-landing__table tbody th { font-weight: 600; }
.al-landing__table tbody th a { color: var(--al-ink); text-decoration: none; }
.al-landing__table tbody th a:hover { color: var(--al-accent); text-decoration: underline; }
.al-landing__table .al-muted { color: var(--al-ink-soft); font-style: italic; font-size: .88em; }
.al-landing__body { margin-top: var(--wp--preset--spacing--50, 3rem); }
.al-landing__body > h2:first-child { margin-top: 0; }

/* Landing table → stacked cards on phones */
@media (max-width: 640px) {
  .al-table-wrap { border: 0; background: none; overflow: visible; border-radius: 0; }
  .al-landing__table { min-width: 0; display: block; }
  .al-landing__table thead { display: none; }
  .al-landing__table tbody { display: grid; gap: .7rem; }
  .al-landing__table tr { display: block; background: var(--al-card); border: 1px solid var(--al-line); border-radius: 14px; padding: .85rem 1rem .6rem; }
  .al-landing__table tbody tr:hover { background: var(--al-card); }
  .al-landing__table th, .al-landing__table td { display: block; padding: 0; border: 0; }
  .al-landing__table tbody th { font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.12rem; margin-bottom: .45rem; }
  .al-landing__table td { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--al-line); font-size: .9rem; }
  .al-landing__table td::before { content: attr(data-label); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; color: var(--al-ink-soft); padding-top: .15rem; }
}

/* ---------- Route planner ---------- */
.al-route-add.is-added { background: color-mix(in srgb, var(--al-accent) 9%, var(--al-card)); border-color: color-mix(in srgb, var(--al-accent) 35%, transparent); color: var(--al-accent); }
.al-pop__add { display: block; width: calc(100% - 1.6rem); margin: .1rem .8rem .8rem; padding: .5rem .7rem; border: 1px dashed color-mix(in srgb, var(--al-accent) 45%, transparent); border-radius: 9px; background: var(--al-card); color: var(--al-accent); font: 600 .8rem/1.2 inherit; font-family: inherit; cursor: pointer; text-align: center; transition: background .2s; }
.al-pop__add:hover { background: color-mix(in srgb, var(--al-accent) 7%, var(--al-card)); }
.al-pop__add.is-added { border-style: solid; background: color-mix(in srgb, var(--al-accent) 9%, var(--al-card)); }

.al-route-fab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 80; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem .9rem .7rem 1rem; border-radius: 999px; background: var(--al-ink); color: #fff !important; text-decoration: none !important; font-size: .9rem; font-weight: 600; box-shadow: 0 12px 30px rgba(21,33,43,.28); transition: transform .2s var(--al-ease); }
.al-route-fab[hidden] { display: none; }
.al-route-fab:hover { transform: translateY(-2px); }
.al-route-fab b { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--al-card); color: var(--al-ink); font-size: .78rem; }
.al-route-fab.is-bump { animation: al-bump .45s var(--al-ease); }
@keyframes al-bump { 40% { transform: scale(1.1); } }
/* keep clear of the cookie banner while it is shown */
.al-cookie:not([hidden]) ~ .al-route-fab { bottom: 12rem; }

.al-planner { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.al-planner__side { display: grid; gap: 1rem; }
.al-planner__map { position: sticky; top: 90px; height: min(72vh, 640px); border-radius: var(--al-r-lg, 22px); overflow: hidden; border: 1px solid var(--al-line); background: var(--al-surface); }
.al-planner__start { display: grid; gap: .35rem; }
.al-planner__start label { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 650; color: var(--al-ink-soft); }
.al-planner__start select { padding: .65rem .8rem; border: 1px solid var(--al-line); border-radius: 10px; background: var(--al-card); font: inherit; }
.al-planner__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: none; }
.al-stop { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .65rem; padding: .55rem .6rem; background: var(--al-card); border: 1px solid var(--al-line); border-radius: 14px; }
.al-stop__n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--c); color: #fff; font-size: .8rem; font-weight: 700; }
.al-stop__img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: color-mix(in srgb, var(--c) 12%, var(--al-card)); display: block; }
.al-stop__body { display: grid; min-width: 0; }
.al-stop__body a { color: var(--al-ink); font-weight: 600; text-decoration: none; line-height: 1.25; }
.al-stop__body a:hover { color: var(--al-accent); }
.al-stop__body small { color: var(--al-ink-soft); font-size: .78rem; }
.al-stop__tools { display: flex; gap: .15rem; }
.al-stop__tools button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--al-surface); color: var(--al-ink); cursor: pointer; font-size: .95rem; }
.al-stop__tools button:hover:not(:disabled) { background: color-mix(in srgb, var(--al-accent) 12%, var(--al-card)); color: var(--al-accent); }
.al-stop__tools button:disabled { opacity: .3; cursor: default; }
.al-planner__empty { padding: 1.5rem; border: 1px dashed var(--al-line); border-radius: 16px; text-align: center; background: var(--al-surface); }
.al-planner__empty[hidden], .al-planner__summary[hidden], .al-planner__actions[hidden], .al-planner__note[hidden], .al-planner__gmaps-limit[hidden] { display: none; }
.al-planner__empty-title { font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.25rem; font-weight: 560; margin: 0 0 .3rem; }
.al-planner__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .9rem 1rem; border-radius: 14px; background: var(--al-surface); }
.al-planner__summary .al-eyebrow { display: block; margin: 0 0 .15rem; font-size: .66rem; }
.al-planner__summary strong { font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.3rem; font-weight: 560; }
.al-planner__note, .al-planner__gmaps-limit { margin: 0; font-size: .8rem; color: var(--al-ink-soft); }
.al-planner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.al-planner__actions .al-icon { width: 18px; height: 18px; }
.al-planner__clear { border: 0; background: none; color: var(--al-ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: .5rem; }
.al-num-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c, #8C2F39); color: #fff; font: 700 .85rem/1 Inter, sans-serif; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(21,33,43,.3); box-sizing: border-box; }
.al-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 100001; padding: .7rem 1.1rem; border-radius: 10px; background: var(--al-ink); color: #fff; font-size: .9rem; box-shadow: 0 10px 30px rgba(21,33,43,.3); transition: opacity .4s, transform .4s; }
.al-toast.is-out { opacity: 0; transform: translate(-50%, 8px); }
@media (max-width: 900px) {
  .al-planner { grid-template-columns: 1fr; }
  .al-planner__map { position: relative; top: 0; height: 360px; order: -1; }
}

/* ================= Dark theme =================
 * Light by default; dark only when the visitor picks it with the header toggle
 * (stored in localStorage "al_theme", applied as html[data-theme] before paint). */
html[data-theme="dark"] {
	--al-card: #18212A; --al-header-bg: rgba(17,24,31,.86);
	--al-ink: #ECE6DD; --al-ink-soft: #A3ACB5; --al-line: #2B3743; --al-surface: #151D25; --al-accent: #E0818B; --al-forest: #7DB09C;
	--wp--preset--color--base: #11181F; --wp--preset--color--surface: #151D25; --wp--preset--color--surface-2: #1C2630;
	--wp--preset--color--line: #2B3743; --wp--preset--color--ink: #ECE6DD; --wp--preset--color--ink-soft: #A3ACB5;
	--wp--preset--color--accent: #E0818B; --wp--preset--color--accent-dark: #C9646F; --wp--preset--color--forest: #7DB09C; --wp--preset--color--gold: #D2AE72;
	color-scheme: dark;
}

html[data-theme="dark"] body { background: #11181F; }
html[data-theme="dark"] .al-logo__img--light { display: none; }
html[data-theme="dark"] .al-logo__img--dark { display: block; }
html[data-theme="dark"] img { filter: brightness(.94); }
html[data-theme="dark"] .al-logo img, html[data-theme="dark"] .al-cat-tile__icon img { filter: none; }
html[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.55) !important; }
html[data-theme="dark"] .leaflet-container { background: #1A232C; }
html[data-theme="dark"] .leaflet-bar a, html[data-theme="dark"] .leaflet-control-attribution { background: #1C2630 !important; color: #C9D0D6 !important; border-color: #2B3743 !important; }
html[data-theme="dark"] .leaflet-control-attribution a { color: #E0818B !important; }
html[data-theme="dark"] .leaflet-popup-content-wrapper, html[data-theme="dark"] .leaflet-popup-tip { background: #18212A; color: #ECE6DD; }
html[data-theme="dark"] .al-header.is-scrolled, html[data-theme="dark"] .al-header { border-bottom-color: #222D38; }
html[data-theme="dark"] .al-btn--dark { background: #ECE6DD !important; color: #11181F !important; }
html[data-theme="dark"] .al-btn--dark:hover { background: #fff !important; }
html[data-theme="dark"] .al-btn--dark .al-icon, html[data-theme="dark"] .al-btn--dark svg { color: #11181F; }
html[data-theme="dark"] .al-route-fab { background: #ECE6DD; color: #11181F !important; }
html[data-theme="dark"] .al-route-fab b { background: #11181F; color: #ECE6DD; }
html[data-theme="dark"] .al-toast { background: #ECE6DD; color: #11181F; }
html[data-theme="dark"] .al-badge--partner { background: #2A2416; }
html[data-theme="dark"] .al-avatar--initials { background: #2B2024; color: #E0818B; }
html[data-theme="dark"] .al-badges a, html[data-theme="dark"] .al-badge { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 22%, #18212A); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
html[data-theme="dark"] .al-badges a:hover { color: #fff; background: color-mix(in srgb, var(--c) 40%, #18212A); }
html[data-theme="dark"] .al-hero-gal__all { background: rgba(24,33,42,.92); color: #ECE6DD; }
html[data-theme="dark"] .is-style-al-tip { background: #1F1B14 !important; border-color: #3A3122 !important; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: #18212A; color: #ECE6DD; border-color: #2B3743; }
html[data-theme="dark"] ::placeholder { color: #7D8791; }
html[data-theme="dark"] .wp-block-search__input { background: #18212A !important; color: #ECE6DD !important; }
html[data-theme="dark"] .al-hero .wp-block-search__input, html[data-theme="dark"] .wp-block-cover .wp-block-search__input { background: #fff !important; color: #15212B !important; }
html[data-theme="dark"] hr, html[data-theme="dark"] .wp-block-separator { border-color: #2B3743; }
html[data-theme="dark"] .al-prose table, html[data-theme="dark"] .wp-block-table td, html[data-theme="dark"] .wp-block-table th { border-color: #2B3743; }

/* Logo: light / dark versions */
.al-logo__img--dark { display: none; }

/* Theme toggle button */
.al-theme-toggle { position: relative; }
.al-theme-toggle .al-ico-sun { display: none; }
html[data-theme="dark"] .al-theme-toggle .al-ico-sun { display: block; }
html[data-theme="dark"] .al-theme-toggle .al-ico-moon { display: none; }
html.al-theme-anim, html.al-theme-anim * { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }

/* Dark: elements that are dark-with-white-text in both themes (hero cover, dark CTA) */

html[data-theme="dark"] .has-ink-background-color { background-color: #0B1015 !important; }
html[data-theme="dark"] .al-cta.has-ink-background-color { background-color: #1A242E !important; box-shadow: inset 0 0 0 1px #2B3743; }
html[data-theme="dark"] .wp-block-cover .has-base-color, html[data-theme="dark"] .has-ink-background-color.has-base-color, html[data-theme="dark"] .has-ink-background-color .has-base-color { color: #F6F2EC !important; }
html[data-theme="dark"] .has-ink-background-color .wp-block-button__link.has-base-background-color, html[data-theme="dark"] .wp-block-cover .has-base-background-color { background-color: #F6F2EC !important; color: #11181F !important; }

/* Cards: bordered panel with inner padding (both themes); dark: readable active chips. */
.al-card { box-shadow: inset 0 0 0 1px var(--al-line); }
.al-card:hover { box-shadow: inset 0 0 0 1px var(--al-line), 0 12px 32px rgba(21,33,43,.08); }
.al-card.al-card .wp-block-post-featured-image, .al-card.al-card .al-placeholder { border-radius: var(--al-radius) var(--al-radius) 0 0; }
.al-card.al-card .al-card__body { padding: 1rem 1.15rem 1.25rem; }
html[data-theme="dark"] .al-card { box-shadow: inset 0 0 0 1px #222D38; }
html[data-theme="dark"] .al-card:hover { box-shadow: inset 0 0 0 1px #2B3743, 0 12px 32px rgba(0,0,0,.3); }
html[data-theme="dark"] .al-rchip[aria-current], html[data-theme="dark"] .al-fchip:not([style*="--c"])[aria-current] { background: #ECE6DD; border-color: #ECE6DD; color: #11181F; }
html[data-theme="dark"] .al-card__meta, html[data-theme="dark"] .al-filters__count { color: #B4BCC4; }
