:root {
    --anabm-primary: #1f4b43;
    --anabm-secondary: #d9a441;
    --anabm-accent: #b5633f;
    --anabm-surface: #ffffff;
    --anabm-surface-alt: #f4f2ec;
    --anabm-text: #17201e;
    --anabm-muted: #67716e;
    --anabm-border: #dfe4e1;
    --anabm-heading-font: Georgia, serif;
    --anabm-body-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --anabm-button-radius: 999px;
    --anabm-card-radius: 20px;
    --anabm-field-radius: 12px;
    --anabm-spacing: 24px;
    --anabm-shadow: 0 18px 45px rgba(20, 35, 31, 0.12);
    --smwt-content: 1240px;
    --smwt-narrow: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--anabm-surface);
    color: var(--anabm-text);
    font-family: var(--anabm-body-font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--anabm-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--anabm-accent); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--anabm-secondary) 70%, white);
    outline-offset: 3px;
}
.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 {
    clip: auto !important; width: auto; height: auto; margin: 8px; padding: 10px 14px;
    background: #fff; color: #111; z-index: 99999;
}

.smwt-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--anabm-surface) 92%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--anabm-border) 80%, transparent);
    backdrop-filter: blur(14px);
}
body.admin-bar .smwt-site-header { top: 32px; }
.smwt-header-inner {
    width: min(calc(100% - 32px), var(--smwt-content));
    min-height: 78px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(180px, auto) 1fr auto;
    align-items: center;
    gap: 24px;
}
.smwt-branding { min-width: 0; }
.smwt-branding .custom-logo { display: block; max-width: 210px; max-height: 58px; width: auto; }
.smwt-site-title { display: block; color: var(--anabm-text); font-family: var(--anabm-heading-font); font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 700; text-decoration: none; }
.smwt-site-description { display: block; margin-top: -4px; color: var(--anabm-muted); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.smwt-primary-navigation { justify-self: center; }
.smwt-menu, .smwt-footer-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 20px; padding: 0; margin: 0; list-style: none; }
.smwt-menu a { display: block; padding: 10px 0; color: var(--anabm-text); font-size: 0.93rem; font-weight: 650; text-decoration: none; }
.smwt-menu a:hover, .smwt-menu .current-menu-item > a { color: var(--anabm-primary); }
.smwt-header-actions { display: flex; align-items: center; gap: 14px; }
.smwt-manager-link { color: var(--anabm-text); font-size: 0.82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.smwt-header-cta, .smwt-button, .elementor .elementor-button, .anabm-public-contracts .button, .anabm-public-contracts button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border: 1px solid var(--anabm-primary);
    border-radius: var(--anabm-button-radius);
    background: var(--anabm-primary);
    color: #fff;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.smwt-header-cta:hover, .smwt-button:hover, .elementor .elementor-button:hover {
    background: color-mix(in srgb, var(--anabm-primary) 84%, black);
    color: #fff;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--anabm-primary) 24%, transparent);
    transform: translateY(-1px);
}
.smwt-button-secondary { background: transparent; color: var(--anabm-primary); }
.smwt-menu-toggle { display: none; padding: 8px 12px; border: 1px solid var(--anabm-border); border-radius: 10px; background: var(--anabm-surface); color: var(--anabm-text); }
.smwt-menu-toggle-label { margin-right: 6px; }

.smwt-site-content { min-height: 60vh; }
.smwt-content-wrap { width: min(calc(100% - 32px), var(--smwt-content)); margin: 0 auto; padding: clamp(44px, 7vw, 90px) 0; }
.smwt-narrow-wrap { max-width: var(--smwt-narrow); }
.smwt-entry-header h1, .smwt-empty-state h1 { margin: 0 0 24px; font-family: var(--anabm-heading-font); font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; }
.smwt-entry-content > *:first-child { margin-top: 0; }
.smwt-entry-content > *:last-child { margin-bottom: 0; }
.smwt-entry-content h2, .smwt-entry-content h3 { font-family: var(--anabm-heading-font); line-height: 1.15; }
.smwt-entry-meta, .smwt-eyebrow { color: var(--anabm-accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.smwt-featured-image img { border-radius: var(--anabm-card-radius); box-shadow: var(--anabm-shadow); }
.smwt-empty-state { text-align: center; }
.smwt-button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.smwt-site-footer { background: #101816; color: #eef4f1; }
.smwt-footer-inner { width: min(calc(100% - 32px), var(--smwt-content)); margin: 0 auto; padding: 58px 0 38px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.smwt-footer-brand strong { font-family: var(--anabm-heading-font); font-size: 1.4rem; }
.smwt-footer-brand p { color: #afbab6; }
.smwt-footer-menu { align-items: flex-start; flex-direction: column; gap: 10px; }
.smwt-footer-menu a, .smwt-footer-portals a { color: #eef4f1; text-decoration: none; }
.smwt-footer-portals { display: flex; flex-direction: column; gap: 12px; }
.smwt-footer-portals span { color: #9eaaa6; font-size: .83rem; }
.smwt-footer-bottom { width: min(calc(100% - 32px), var(--smwt-content)); margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid #2a3632; display: flex; justify-content: space-between; gap: 20px; color: #9eaaa6; font-size: .78rem; }

/* Shared kit helpers inserted by the Elementor templates. */
.smwt-hero-section { overflow: hidden; }
.smwt-hero-copy h1 { font-family: var(--anabm-heading-font); font-size: clamp(3rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -.035em; }
.smwt-eyebrow-widget .elementor-heading-title { color: var(--anabm-accent); font-family: var(--anabm-body-font); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.smwt-section-title .elementor-heading-title { font-family: var(--anabm-heading-font); font-size: clamp(2.1rem, 4.5vw, 4rem); line-height: 1.02; }
.smwt-lead { color: var(--anabm-muted); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.smwt-image-card img, .smwt-hero-image img { width: 100%; border-radius: var(--anabm-card-radius); box-shadow: var(--anabm-shadow); }
.smwt-image-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.smwt-hero-image img { min-height: 480px; aspect-ratio: 4 / 5; object-fit: cover; }
.smwt-card { height: 100%; padding: 26px; background: var(--anabm-surface); border: 1px solid var(--anabm-border); border-radius: var(--anabm-card-radius); box-shadow: 0 12px 35px rgba(20, 35, 31, .07); }
.smwt-card .elementor-heading-title { font-family: var(--anabm-heading-font); }
.smwt-stat-card { text-align: center; }
.smwt-stat-card .elementor-heading-title { font-size: clamp(2rem, 4vw, 3.4rem); color: var(--anabm-primary); }
.smwt-dynamic-panel { padding: clamp(18px, 4vw, 36px); background: var(--anabm-surface); border: 1px solid var(--anabm-border); border-radius: var(--anabm-card-radius); box-shadow: var(--anabm-shadow); }
.smwt-placeholder-note { padding: 14px 18px; border-left: 4px solid var(--anabm-secondary); background: color-mix(in srgb, var(--anabm-secondary) 12%, white); color: var(--anabm-text); font-size: .9rem; }
.smwt-dark-section { background: #101816; color: #f5f7f6; }
.smwt-dark-section .elementor-heading-title, .smwt-dark-section a { color: #fff; }
.smwt-dark-section .smwt-lead { color: #c5ceca; }
.smwt-soft-section { background: var(--anabm-surface-alt); }
.smwt-quote { font-family: var(--anabm-heading-font); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.25; }
.smwt-icon-list .elementor-icon-list-icon { color: var(--anabm-secondary); }

/* Improve consistency for dynamic Staymanager output. */
.anabm-public-contracts,
.anabm-listings-wrap,
.anabm-availability-search,
.smaa-booking-engine,
.smeb-upcoming-events,
.staymanager-booking-engine {
    font-family: var(--anabm-body-font) !important;
}
.anabm-public-contracts input,
.anabm-public-contracts select,
.anabm-public-contracts textarea,
.anabm-availability-search input,
.anabm-availability-search select,
.smaa-booking-engine input,
.smaa-booking-engine select,
.smaa-booking-engine textarea {
    border-radius: var(--anabm-field-radius) !important;
    border-color: var(--anabm-border) !important;
}

/* Pilot-specific visual language. */
.smwt-kit-hotel { --smwt-content: 1280px; }
.smwt-kit-hotel .smwt-site-header { background: rgba(255,255,255,.94); }
.smwt-kit-hotel .smwt-hero-copy h1 { font-weight: 500; }

.smwt-kit-chalet .smwt-site-header { background: rgba(244,242,236,.95); }
.smwt-kit-chalet .smwt-hero-copy h1 { letter-spacing: -.02em; }
.smwt-kit-chalet .smwt-card { box-shadow: none; }

.home.smwt-kit-villa .smwt-site-header { position: absolute; width: 100%; background: transparent; border-bottom-color: rgba(255,255,255,.28); color: #fff; }
.home.smwt-kit-villa .smwt-site-header a, .home.smwt-kit-villa .smwt-site-title, .home.smwt-kit-villa .smwt-manager-link { color: #fff; }
.home.smwt-kit-villa .smwt-header-cta { background: #fff; color: var(--anabm-primary); border-color: #fff; }
.home.smwt-kit-villa .smwt-site-content { padding-top: 0; }
.home.smwt-kit-villa .smwt-hero-section { min-height: 92vh; }

.smwt-kit-portfolio .smwt-site-header { border-bottom: 3px solid var(--anabm-secondary); }
.smwt-kit-portfolio .smwt-hero-copy h1 { font-family: var(--anabm-body-font); font-weight: 850; letter-spacing: -.055em; }
.smwt-kit-portfolio .smwt-card { border-radius: 8px; box-shadow: none; }

@media (max-width: 1100px) {
    .smwt-header-inner { grid-template-columns: 1fr auto; }
    .smwt-menu-toggle { display: inline-flex; align-items: center; justify-self: end; }
    .smwt-primary-navigation { display: none; grid-column: 1 / -1; width: 100%; padding: 0 0 18px; }
    .smwt-primary-navigation.is-open { display: block; }
    .smwt-menu { align-items: stretch; flex-direction: column; gap: 0; }
    .smwt-menu li { border-top: 1px solid var(--anabm-border); }
    .smwt-header-actions { display: none; }
    .smwt-footer-inner { grid-template-columns: 1fr 1fr; }
    .smwt-footer-portals { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
    body.admin-bar .smwt-site-header { top: 46px; }
}
@media (max-width: 680px) {
    .smwt-header-inner { width: min(calc(100% - 24px), var(--smwt-content)); min-height: 68px; }
    .smwt-branding .custom-logo { max-width: 165px; max-height: 46px; }
    .smwt-footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .smwt-footer-portals { grid-column: auto; }
    .smwt-footer-bottom { align-items: flex-start; flex-direction: column; }
    .smwt-hero-image img { min-height: 330px; }
    .home.smwt-kit-villa .smwt-site-header { position: sticky; background: #0d2a34; }
}
