/* Shared finishing details, loaded after the existing theme styles. */
html { scroll-padding-top:100px; }
header.glass-header { position:fixed; top:max(12px,env(safe-area-inset-top)); bottom:auto; z-index:30; }
main#top > section { scroll-margin-top:100px; }
body:has(dialog[open]) { overflow:hidden; }

/* Rounded notice and action matching the site's cards and buttons. */
body .cookie-banner { left:50%; right:auto; bottom:max(16px,env(safe-area-inset-bottom)); transform:translateX(-50%); width:min(700px,calc(100% - 32px)); border:1px solid #bba18a; border-radius:22px; padding:18px 20px; gap:20px; align-items:center; box-shadow:0 12px 40px #24161133; }
body .cookie-banner p { font:16px/1.4 'EB Garamond',Georgia,serif; }
body .cookie-banner button { border-radius:12px; padding:10px 20px; min-height:44px; font:600 italic 19px 'EB Garamond',Georgia,serif; }

/* Crosses are drawn with centered strokes, independent of font metrics. */
body :is(.contact-dialog,.review-dialog,.catalog-dialog,.region-dialog) :is(.contact-close,.catalog-close,.region-close) { display:grid; place-items:center; position:absolute; top:14px; right:14px; padding:0; width:42px; height:42px; min-width:42px; min-height:42px; border:1px solid currentColor; border-radius:12px; background:transparent; cursor:pointer; line-height:1; }
body :is(.contact-dialog,.review-dialog,.catalog-dialog,.region-dialog) :is(.contact-close,.catalog-close,.region-close)::before,
body :is(.contact-dialog,.review-dialog,.catalog-dialog,.region-dialog) :is(.contact-close,.catalog-close,.region-close)::after { content:''; position:absolute; left:50%; top:50%; width:18px; height:1.5px; background:currentColor; transform:translate(-50%,-50%) rotate(45deg); }
body :is(.contact-dialog,.review-dialog,.catalog-dialog,.region-dialog) :is(.contact-close,.catalog-close,.region-close)::after { transform:translate(-50%,-50%) rotate(-45deg); }
body .contact-dialog { padding:66px 34px 36px; }
body .contact-dialog h2,body .contact-dialog h2 em { font-family:'Kudry Weird Headline','EB Garamond',Georgia,serif; font-style:normal; font-weight:400; color:inherit; }
body .contact-dialog h2 { margin:8px 0 30px; line-height:1.16; }
body .contact-dialog .contact-main { margin:0 0 26px; border-radius:12px; }
body .contact-social { display:flex; gap:14px; }
body .contact-social a,body .social-icon-link { display:inline-grid; place-items:center; width:46px; height:46px; min-width:46px; padding:0; border:1px solid currentColor; border-radius:50%; color:inherit; text-decoration:none; }
body .contact-social a svg,body .social-icon-link svg { width:22px; height:22px; }
body .social-icon-link { display:grid; color:var(--red); margin:16px 0 0; }
body .calendar-event h4 { font:600 27px/1.15 'EB Garamond',Georgia,serif; }
body .catalog-dialog h2 { padding-right:32px; }
body .catalog-group:first-child .catalog-drawer { margin-top:22px; }

/* The footer mark is colored directly through its transparent outline. */
footer .logo-word { position:relative; }
footer .logo-word::before { content:''; position:absolute; left:0; top:0; width:158px; aspect-ratio:1460/410; background:#fcf9e9; -webkit-mask:url('brand-wordmark.png') center/contain no-repeat; mask:url('brand-wordmark.png') center/contain no-repeat; }
footer .logo-word .brand-wordmark { visibility:hidden; }
body footer .logo small { color:#fcf9e9; }

/* Ornamental gilt frame makes visitor quotations stand out. */
body #reviews .review-card { position:relative; padding:42px 36px; background:#fffaf0; box-shadow:0 16px 35px #1e100c3b; border-radius:28px; }
body #reviews .review-card::before { content:''; position:absolute; inset:0; border:24px solid transparent; border-image:url('review-frame.svg') 90 / 28px / 0 stretch; pointer-events:none; }
body #reviews .review-card blockquote { position:relative; margin:20px 0 26px; }
body #reviews .review-card .review-number { color:#a17c44; }
body #reviews .review-card .review-read { font-size:18px; padding:12px 16px; }
body .review-dialog { padding:68px 46px 40px; border:4px double #b38d52; background-image:none; }

.region-dialog { width:min(680px,calc(100% - 40px)); padding:60px 46px 42px; max-height:calc(100dvh - 48px); overflow:auto; border:1px solid #b79b7b; border-radius:26px; background:var(--cream); color:var(--brown); box-shadow:0 24px 100px #0005; }
.region-dialog::backdrop { background:#21151188; backdrop-filter:blur(4px); }
.region-dialog h2 { font:600 italic 38px/1.1 'EB Garamond',Georgia,serif; margin:0 40px 22px 0; color:var(--red); }
.region-dialog p { font:23px/1.55 'EB Garamond',Georgia,serif; margin:0; }
.region-close { color:var(--red); }
.map-info button { flex-shrink:0; display:grid; place-items:center; line-height:1; padding:0; align-self:flex-start; }
@media(max-width:820px) {
 header.glass-header { inset:max(12px,env(safe-area-inset-top)) 22px auto; }
 body .cookie-banner { padding:16px; gap:12px; }
 body .cookie-banner p { font-size:15px; }
 body .cookie-banner button { padding:10px 15px; flex-shrink:0; }
 body .contact-dialog { padding:64px 24px 30px; }
 body #reviews .review-card { padding:36px 30px; }
 body .review-dialog { padding:64px 28px 32px; }
 body .review-dialog h2 { padding-right:16px; }
}
@media(max-width:640px) { footer .logo-word::before { width:137px; } }
/* Keep the existing dark palette while sharing layout corrections. */
html[data-site-theme="dark"] body #reviews .review-card { background:var(--night-panel,#30272b); }
html[data-site-theme="dark"] .region-dialog { background:var(--night-panel,#30272b); color:var(--ink); }

/* Smooth map travel and description changes. */
.map-layer { transform-origin:50% 50%; transition:transform 480ms cubic-bezier(.22,.61,.36,1); }
.map-viewport.is-zoomed .map-layer { transform:translate(var(--map-shift-x,0%),var(--map-shift-y,0%)) scale(1.65); }
.map-marker { transition:transform 480ms cubic-bezier(.22,.61,.36,1); }
.region-switcher { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.region-switcher button { font:inherit; font-size:18px; min-height:44px; padding:8px 14px; border:1px solid currentColor; border-radius:10px; background:transparent; color:inherit; cursor:pointer; }
.region-switcher button:hover { background:var(--red); color:var(--cream); }
.region-switcher button:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .map-layer,.map-marker { transition:none; } }
