:root {
    --bg: #FAF7F7;
    --surface: #FFFFFF;
    --surface-alt: #F3EAEA;
    --text: #221111;
    --text-muted: #785E5E;
    --border: #E4D8D8;
    --primary: #D93030;
    --primary-hover: #BD2323;
    --dark-band: #3A0E0E;
    --accent: #CF348B;
    --on-primary: #FFFFFF;
    --primary-text: #CE2626;
    --on-accent: #FFFFFF;
    --accent-text: #C93086;
    --on-dark: #FFFFFF;
    --on-dark-muted: #C3B6B6;
    --brand-btn-bg: #FFFFFF;
    --brand-btn-text: #3A0E0E;
    --section-alt-bg: #F3EAEA;
    --dark-band-bg: #3A0E0E;
    --brand-band-bg: #D93030;
    --hero-bg: #3A0E0E;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Gothic A1', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Gothic A1', sans-serif;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    font-style: normal;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.25;
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.35;
    font-weight: 600;
}

h4 {
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 600;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover,
a:focus {
    text-decoration: none;
}

button {
    font-family: 'Gothic A1', sans-serif;
    cursor: pointer;
    border: none;
    background: none;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
    transform: scale(0.98);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

i[class*="fa-"],
.fa,
.fas,
.far,
.fab {
    font-style: normal !important;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

#cookieConsentBanner,
.cookie-consent-banner {
    display: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 1.25;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.2rem;
        line-height: 1.35;
    }

    h4 {
        font-size: 1.05rem;
    }

    a[href^="mailto:"],
    a[href^="http"],
    .break-words-mobile {
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

/* ===== header ===== */
.mobile-menu-overlay.open {
    display: flex !important;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero h1,
#hero p,
#hero span {
    hyphens: auto;
}

/* ===== about_complex ===== */
.about-section {
    position: relative;
    width: 100%;
}

.js-marker:hover {
    background-color: var(--primary-hover) !important;
    cursor: pointer;
}

.js-marker.active-marker {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ===== garage_spaces ===== */
#spaces {
    overflow: hidden;
}

#spaces article {
    box-shadow: 0 4px 6px -1px rgba(58, 14, 14, 0.05), 0 2px 4px -2px rgba(58, 14, 14, 0.05);
}

#spaces article:hover {
    box-shadow: 0 10px 15px -3px rgba(58, 14, 14, 0.08), 0 4px 6px -4px rgba(58, 14, 14, 0.04);
}

/* ===== garage_calculator ===== */
#calculator {
    overflow: hidden;
}

#calculator input[type="number"]::-webkit-outer-spin-button,
#calculator input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#calculator input[type="number"] {
    -moz-appearance: textfield;
}

/* ===== amenities_specs ===== */
#amenities {
    font-family: inherit;
}

#amenities * {
    box-sizing: border-box;
}

/* ===== space_organization ===== */
#organization {
    hyphens: auto;
}

#organization .shadow-sm {
    box-shadow: 0 2px 6px -1px rgba(34, 17, 17, 0.06), 0 1px 4px -1px rgba(34, 17, 17, 0.04);
}

/* ===== facility_gallery ===== */
#gallery {
    overflow: hidden;
}

.facility-gallery-section {
    font-family: inherit;
}

.gallery-card {
    box-shadow: 0 4px 12px rgba(58, 14, 14, 0.05);
}

.gallery-card:hover {
    box-shadow: 0 8px 20px rgba(58, 14, 14, 0.12);
}

/* ===== location_section ===== */
#location {
    position: relative;
    background-color: var(--bg, #FAF7F7);
    color: var(--text, #221111);
}

#location iframe {
    display: block;
    filter: grayscale(10%) contrast(102%);
}

#location .js-map-route:focus {
    outline: 2px solid var(--primary, #D93030);
    outline-offset: 2px;
}

/* ===== faq_accordion ===== */
#faq {
    hyphens: auto;
}

#faq .js-faq-item {
    border-color: #E4D8D8;
}

#faq .js-faq-item:hover {
    border-color: #D93030;
}

#faq .js-faq-trigger:hover .js-faq-icon {
    background-color: #F3EAEA;
    color: #D93030;
}

/* ===== contact_inquiry ===== */
.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: #E4D8D8;
    opacity: 0.8;
}

.contact-section select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* ===== footer ===== */
#footer {
    hyphens: auto;
}

#footer input::placeholder {
    color: #B89F9F;
    opacity: 1;
}

#footer .hidden {
    display: none;
}

/* Keep marker coordinates relative to the complete, uncropped photograph. */
.complex-map {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
}
.complex-map-image {
    display: block;
    width: 100%;
    height: auto;
}
.complex-map .js-marker {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 4.5vw, 38px);
    height: clamp(28px, 4.5vw, 38px);
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px #22111166;
    transform: translate(-50%, -50%);
    transition: background-color .2s, box-shadow .2s;
}
.complex-map .js-marker:hover,
.complex-map .js-marker:active {
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 12px #22111199;
}
section[id] { scroll-margin-top: 96px; }

/* A compact, consistent gap after the sticky header on every policy page. */
.policy-page { padding: 28px 0 56px; }
.policy-page .legal-page-section { padding-top: 0; padding-bottom: 0; min-height: 0; }

.space-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
    margin: 16px 0 4px;
}
.space-price > span { color: var(--text-muted); font-size: 12px; }
.space-price strong { color: var(--primary); font-size: 26px; font-weight: 700; }
.space-price small { margin-left: 6px; font-size: 13px; font-weight: 500; }
.pricing-note {
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    background: var(--surface);
    font-size: 12px;
    line-height: 1.7;
}

/* Body-level floating popup; independent of footer layout and Tailwind. */
.cookie-popup[hidden], .cookie-preferences[hidden] { display: none !important; }
.cookie-popup {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 1000;
    width: min(500px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #5e2222;
    border-radius: 16px;
    background: #2a0808;
    color: #f3eaea;
    box-shadow: 0 12px 48px #22111155;
    font-size: 13px;
    line-height: 1.7;
}
.cookie-popup-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cookie-popup-heading > span { font-size: 26px; }
.cookie-popup #cookie-title { margin: 0; color: #fff; font-size: 19px; font-weight: 700; }
.cookie-popup p { margin: 0 0 16px; }
.cookie-popup a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-button { padding: 10px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.cookie-primary { background: #d93030; color: #fff; }
.cookie-primary:hover { background: #bd2323; }
.cookie-secondary { background: #3a0e0e; color: #fff; border: 1px solid #785e5e; }
.cookie-secondary:hover { background: #501818; }
.cookie-settings { color: #e4d8d8; text-decoration: underline; text-underline-offset: 3px; }
.cookie-preferences { padding: 16px; margin-bottom: 16px; border: 1px solid #5e2222; border-radius: 8px; }
.cookie-preferences label { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cookie-preferences input { width: 18px; height: 18px; accent-color: #d93030; }
.cookie-preferences p { font-size: 12px; }
.cookie-reopen { color: #e4d8d8; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-popup :focus-visible, .cookie-reopen:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) {
    .policy-page { padding-top: 20px; padding-bottom: 40px; }
    .cookie-popup { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 18px; }
    .cookie-actions .cookie-primary, .cookie-actions .cookie-secondary { flex: 1 1 120px; }
    .cookie-actions .cookie-settings { flex-basis: 100%; }
}
