/* BoxHub public design system. Admin and the independent template editor keep
   their own interfaces. Colors and dimensions come from validated settings. */
body.boxhub-site {
    background: var(--page-bg-color, #f9fafb);
    color: var(--text-color, #1f2937);
    font-family: var(--font-body, 'Segoe UI', sans-serif);
    -webkit-text-size-adjust: 100%;
    overflow-wrap: break-word;
    --text-muted: var(--muted-text-color, #6b7280);
    --bg-light: var(--section-bg-color, #f9fafb);
    --bg-white: var(--surface-color, #fff);
}

body.boxhub-site[data-design-color-scheme="dark"] { color-scheme: dark; }
body.boxhub-site[data-design-color-scheme="light"] { color-scheme: light; }

.boxhub-site :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-heading, var(--font-body));
    color: var(--heading-color, #1f2937);
    text-wrap: balance;
}

.boxhub-site:not([data-design-preset="classic"]) :is(h1, h2) {
    letter-spacing: -.035em;
    line-height: 1.18;
}

.boxhub-site .text-gradient {
    background: none;
    color: var(--heading-color, #1f2937);
    -webkit-text-fill-color: currentColor;
}

.boxhub-site :is(.text-gray-500, .text-gray-600, .text-muted) {
    color: var(--muted-text-color, #6b7280);
}

.boxhub-site :is(.text-gray-700, .text-gray-800) { color: var(--text-color); }
.boxhub-site a { color: var(--link-color, var(--primary-color)); }
.boxhub-site .text-corporate, .boxhub-site .text-primary { color: var(--primary-color); }
.boxhub-site :is(.border-gray-100, .border-gray-200, fieldset, hr) { border-color: var(--border-color); }
.boxhub-site :is(.bg-gray-50, .bg-gray-100, .bg-light) { background-color: var(--section-bg-color); }

.boxhub-site :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--link-color, var(--primary-color));
    outline-offset: 4px;
}

.boxhub-site button, .boxhub-site input, .boxhub-site select, .boxhub-site textarea {
    font: inherit;
}

.boxhub-site .container { max-width: var(--content-width, 80rem); }
.boxhub-site .site-section {
    width: 100%;
    max-width: none;
    padding-block: var(--section-space, 4rem);
    padding-inline: max(1.5rem, calc((100% - var(--content-width, 80rem)) / 2));
}
.boxhub-site .site-section--alternate { background-color: var(--section-bg-color); }
.boxhub-site .site-reading-section { padding-inline: max(1.5rem, calc((100% - min(64rem, var(--content-width, 80rem))) / 2)); }
.boxhub-site .site-section--narrow { padding-inline: max(1.5rem, calc((100% - min(28rem, var(--content-width, 80rem))) / 2)); }
.boxhub-site .site-section > :is(h2, .site-section-intro) { max-width: 54rem; margin-inline: auto; }
.boxhub-site .site-section :is(h2.text-4xl, h2.text-3xl) { font-size: clamp(1.8rem, 3.3vw, 2.65rem); }

/* Opaque card surfaces avoid full-page backdrop repainting while scrolling. */
.boxhub-site :is(.site-card, .glass-effect, .bg-white.rounded-2xl, .bg-white.rounded-xl, .bg-white.rounded-lg) {
    background: var(--surface-color, #fff);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius, 1rem);
    box-shadow: var(--card-shadow, 0 12px 30px rgba(15, 23, 42, .08));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.boxhub-site :is(.site-card, .glass-effect, .bg-white.rounded-2xl) :is(h3, h4, h5, h6) { color: var(--heading-color); }
.boxhub-site .site-card { min-width: 0; }
.boxhub-site .site-section :is(.rounded-xl, .rounded-2xl, .rounded-lg):not(.btn):not(a.bg-corporate) { border-radius: var(--card-radius); }
.boxhub-site .card-hover { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.boxhub-site .card-hover:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.boxhub-site .card-hover .text-gradient { color: var(--heading-color); }
.boxhub-site .glass-effect:hover { box-shadow: var(--card-shadow); }

.boxhub-site :is(.btn-primary, a.bg-corporate, .tab-active) {
    background: var(--button-bg-color, var(--primary-color));
    color: var(--button-text-color, #fff);
    border-color: var(--button-bg-color, var(--primary-color));
}
.boxhub-site :is(.btn-primary, a.bg-corporate):hover {
    background: var(--button-hover-color, var(--secondary-color));
    color: var(--button-text-color, #fff);
    transform: translateY(-2px);
}
.boxhub-site :is(.btn, a.bg-corporate, .site-feature-button, .site-header .menu-btn-nowrap) {
    border-radius: var(--button-radius, 999px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    line-height: 1.4;
    min-height: 2.75rem;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.boxhub-site :is(.btn, .site-feature-button, a.bg-corporate):disabled { opacity: .6; cursor: not-allowed; }
.boxhub-site .btn-outline-primary {
    background: transparent;
    border: 1px solid var(--link-color);
    color: var(--link-color);
}
.boxhub-site .btn-outline-primary:hover { background: var(--button-bg-color); color: var(--button-text-color); }
.boxhub-site .btn-secondary { background: var(--section-bg-color); border: 1px solid var(--border-color); color: var(--text-color); }
.boxhub-site .bg-corporate.text-white:not(a) { color: var(--button-text-color); background-color: var(--button-bg-color); }

.boxhub-site :is(.hero-section, .cta-section) { color: var(--hero-text-color, #fff); }
.boxhub-site .hero-section :is(h1, h2, h3, h4, h5, h6) { color: var(--hero-text-color, #fff); }
.boxhub-site .cta-section, .boxhub-site .cta-section :is(h1, h2, h3, h4, h5, h6) { color: var(--cta-text-color, #fff); }
.boxhub-site .hero-section h1 { font-size: clamp(2.15rem, 4.8vw, 4rem); line-height: 1.18; max-width: 58rem; margin-inline: auto; }
.boxhub-site .cta-section h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.2; max-width: 52rem; margin-inline: auto; }
.boxhub-site .hero-section > .relative > :is(.text-xl, .text-lg),
.boxhub-site .cta-content > :is(.text-xl, .text-lg) { max-width: 47rem; margin-inline: auto; }
.boxhub-site .hero-section :is(.site-feature-button, a.bg-white) {
    background: var(--hero-button-bg-color, #fff);
    color: var(--hero-button-text-color, var(--primary-color));
}
.boxhub-site .cta-section :is(.site-feature-button, a.bg-white) {
    background: var(--cta-button-bg-color, #fff);
    color: var(--cta-button-text-color, var(--primary-color));
}
.boxhub-site :is(.hero-section, .cta-section) .site-feature-button { max-width: 100%; text-align: center; }
.boxhub-site :is(.hero-section, .cta-section) .site-feature-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}
.boxhub-site :is(.hero-section, .cta-section) > .absolute .bg-white { background-color: #fff; }
.boxhub-site :is(.hero-section, .cta-section) a:not(.site-feature-button):not(.bg-white):not(.bg-corporate) { color: inherit; text-decoration: underline; }

/* Image readability is independent from the brand palette. Legacy retains the
   original tinted slideshow; an explicit overlay replaces it consistently. */
.boxhub-site:not([data-design-hero-overlay="legacy"]) .hero-section .hero-overlay {
    background: rgba(var(--hero-overlay-rgb, 0, 0, 0), var(--hero-overlay-opacity, .64)) !important;
}
.boxhub-site:not([data-design-hero-overlay="legacy"]) .hero-slide::before,
.boxhub-site:not([data-design-hero-overlay="legacy"]) .hero-slide::after { display: none; }
.boxhub-site .hero-section[data-background-type="image"]:not(:has(.hero-slideshow))::before,
.boxhub-site .cta-section[data-background-type="image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.boxhub-site .hero-section[data-background-type="image"]:not(:has(.hero-slideshow))::before {
    background: rgba(var(--hero-overlay-rgb, 0, 0, 0), var(--hero-overlay-opacity, 0));
}
.boxhub-site .cta-section[data-background-type="image"]::before {
    background: rgba(var(--cta-overlay-rgb, 0, 0, 0), var(--cta-overlay-opacity, 0));
}

/* The navigation has its own palette; it never depends on a white page. */
.boxhub-site .site-header { background: var(--header-bg-color, #fff); color: var(--header-text-color); border-color: var(--border-color); }
.boxhub-site .site-header > .container { min-height: 88px; gap: 1.5rem; }
.boxhub-site .site-header .navbar-brand { max-width: 17rem; color: var(--header-text-color); }
.boxhub-site .site-header .navbar-brand > span { color: var(--header-text-color); font-family: var(--font-heading); line-height: 1.2; }
.boxhub-site .site-header .navbar-brand img { height: 3.5rem; width: auto; max-width: min(220px, 48vw); object-fit: contain; }
.boxhub-site .site-header #main-menu { background: transparent; }
.boxhub-site .site-header .menu-btn-nowrap {
    background: transparent;
    color: var(--header-text-color);
    font-size: .88rem;
    font-weight: 600;
    padding-inline: .8rem;
}
.boxhub-site .site-header .menu-btn-nowrap:hover { background: var(--section-bg-color); color: var(--header-text-color); transform: none; }
.boxhub-site .site-header .site-nav-primary { background: var(--button-bg-color); color: var(--button-text-color); }
.boxhub-site .site-header .site-nav-primary:hover { background: var(--button-hover-color); color: var(--button-text-color); }
.boxhub-site .site-header #menu-toggle { color: var(--header-text-color); border-color: var(--border-color) !important; border-radius: var(--button-radius); min-width: 3rem; min-height: 3rem; }
.boxhub-site .site-header #menu-toggle:hover { background: var(--section-bg-color); color: var(--header-text-color); }

/* Public forms, booking totals, the account area, and privacy dialogs. */
.boxhub-site :is(.form-control, .form-select) {
    background-color: var(--input-bg-color, #fff);
    color: var(--input-text-color, var(--text-color));
    border-color: var(--border-color);
    border-radius: min(var(--card-radius, .5rem), .75rem);
    min-width: 0;
}
.boxhub-site .form-control::placeholder { color: var(--muted-text-color); opacity: 1; }
.boxhub-site .form-select { appearance: auto; }
.boxhub-site :is(.form-control, .form-select):focus { border-color: var(--link-color); box-shadow: none; }
.boxhub-site .form-label { color: var(--text-color); font-weight: 600; }
.boxhub-site #rental-form { max-width: 56rem; margin-inline: auto; }
.boxhub-site .site-auth-accent { background: var(--section-bg-color); color: var(--heading-color); }
.boxhub-site .site-auth-button { background: var(--button-bg-color); color: var(--button-text-color); }
.boxhub-site .site-auth-button:hover { background: var(--button-hover-color); color: var(--button-text-color); }
.boxhub-site .tab-btn:not(.tab-active) { background: var(--surface-color); color: var(--text-color); }
.boxhub-site .tab-btn:not(.tab-active):hover { background: var(--section-bg-color); }
.boxhub-site .daterangepicker {
    background: var(--surface-color);
    color: var(--text-color);
    border-color: var(--border-color);
    border-radius: var(--card-radius);
    font-family: var(--font-body);
}
.boxhub-site .daterangepicker .calendar-table { background: var(--surface-color); border-color: var(--surface-color); }
.boxhub-site .daterangepicker :is(.drp-buttons, .ranges) { border-color: var(--border-color); }
.boxhub-site .daterangepicker :is(select.monthselect, select.yearselect, select.hourselect, select.minuteselect, select.ampmselect) {
    background: var(--input-bg-color); color: var(--input-text-color); border-color: var(--border-color);
}
.boxhub-site .daterangepicker td.available:hover:not(.fully-booked-date):not(.partially-booked-date),
.boxhub-site .daterangepicker th.available:hover { background: var(--section-bg-color); color: var(--heading-color); }
.boxhub-site .daterangepicker td.in-range { background: var(--section-bg-color); color: var(--text-color); }
.boxhub-site .daterangepicker :is(td.active, td.active:hover, .ranges li.active) { background: var(--button-bg-color); color: var(--button-text-color); }
.boxhub-site .daterangepicker :is(td.off, td.off.in-range, td.off.start-date, td.off.end-date) { background: var(--surface-color); color: var(--muted-text-color); }
.boxhub-site .daterangepicker .calendar-table :is(.prev, .next) span { border-color: var(--text-color); }
.boxhub-site .daterangepicker::before { border-bottom-color: var(--border-color); }
.boxhub-site .daterangepicker::after { border-bottom-color: var(--surface-color); }
.boxhub-site input[type="checkbox"], .boxhub-site input[type="radio"] { accent-color: var(--button-bg-color); }
.boxhub-site fieldset { border-color: var(--border-color); border-radius: var(--card-radius); }
.boxhub-site details.glass-effect { transition: border-color .2s ease; }
.boxhub-site details.glass-effect:hover { transform: none; border-color: var(--link-color); }
.boxhub-site details.glass-effect[open] { border-color: var(--link-color); }
.boxhub-site details.glass-effect summary { color: var(--heading-color); gap: .3rem; min-height: 2.2rem; }
.boxhub-site details.glass-effect[open] summary > :is(i, svg) { transform: rotate(45deg); }
.boxhub-site .prose { color: var(--text-color); }
.boxhub-site .prose :is(h1, h2, h3, h4, h5, h6) { color: var(--heading-color); }
.boxhub-site .prose a { color: var(--link-color); text-decoration: underline; text-underline-offset: .2em; }
.boxhub-site .prose :is(table, th, td) { border-color: var(--border-color); }
.boxhub-site .prose blockquote { padding: .75rem 1.25rem; border-left: 3px solid var(--primary-color); background: var(--section-bg-color); }
.boxhub-site .prose :is(img, video) { border-radius: var(--card-radius); }

/* Review assets are loaded lazily after this sheet, hence scoped specificity. */
.boxhub-site :is(.boxhub-review-date, .boxhub-review-translation, .boxhub-review-count, .boxhub-review-selection, .boxhub-review-provider-attribution) { color: var(--muted-text-color); }
.boxhub-site .boxhub-google-attribution { color: var(--muted-text-color); }
.boxhub-site :is(.boxhub-review-summary-placeholder, .boxhub-review-placeholder-author, .boxhub-review-placeholder-line) { background: var(--border-color); }
.boxhub-site .boxhub-review-text { line-height: 1.7; }
.boxhub-site .boxhub-review-card { min-width: 0; }

.boxhub-site .site-footer { background: var(--footer-bg-color, #111827); color: var(--footer-text-color, #fff); padding-block: 3.5rem; }
.boxhub-site .site-footer > div { max-width: var(--content-width, 80rem); }
.boxhub-site .site-footer :is(h1, h2, h3, h4, h5, h6) { color: var(--footer-heading-color, #fff); }
.boxhub-site .site-footer :is(a, .footer-cookie-btn) { color: var(--footer-link-color, #fff); }
.boxhub-site .site-footer :is(a, .footer-cookie-btn):hover { color: var(--footer-link-color); text-decoration: underline; text-underline-offset: .25em; }
.boxhub-site .site-footer .border-t { border-color: var(--footer-text-color); border-color: color-mix(in srgb, var(--footer-text-color) 25%, transparent); }
.boxhub-site .site-footer .social-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }

.boxhub-site .cookie-consent-banner { background: var(--surface-color); color: var(--text-color); border-top: 1px solid var(--border-color); box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); }
.boxhub-site .cookie-consent-text .cookie-consent-title { color: var(--heading-color); font-family: var(--font-heading); }
.boxhub-site .cookie-consent-banner :is(.btn-accept-all, .btn-accept-necessary, .btn-settings) { border-radius: var(--button-radius); }
.boxhub-site .cookie-consent-banner .btn-accept-all { background: var(--button-bg-color); color: var(--button-text-color); border-color: var(--button-bg-color); }
.boxhub-site .cookie-consent-banner .btn-accept-all:hover { background: var(--button-hover-color); }
.boxhub-site .cookie-consent-banner :is(.btn-accept-necessary, .btn-settings) { background: var(--surface-color); color: var(--text-color); border-color: var(--border-color); }
.boxhub-site .cookie-consent-banner :is(.btn-accept-necessary, .btn-settings):hover { background: var(--section-bg-color); }
.boxhub-site .cookie-modal-content { background: var(--surface-color); color: var(--text-color); border-radius: var(--card-radius); }
.boxhub-site .cookie-modal-header { background: var(--button-bg-color); color: var(--button-text-color); }
.boxhub-site .cookie-modal-header h5, .boxhub-site .cookie-modal-close { color: var(--button-text-color); }
.boxhub-site :is(.cookie-category, .cookie-modal-footer) { background: var(--section-bg-color); border-color: var(--border-color); }
.boxhub-site .cookie-category h6 { color: var(--heading-color); }
.boxhub-site .cookie-label-text { color: var(--muted-text-color); }
.boxhub-site .cookie-modal-footer .btn-primary { background: var(--button-bg-color); color: var(--button-text-color); border-radius: var(--button-radius); }
.boxhub-site .cookie-modal-footer .btn-primary:hover { background: var(--button-hover-color); }
.boxhub-site .cookie-modal-footer .btn-secondary { background: var(--surface-color); color: var(--text-color); border: 1px solid var(--border-color); border-radius: var(--button-radius); }

/* Calm keeps entrance animations and slideshow changes, while removing the
   perpetual float / gradient / particle effects that trigger extra painting. */
.boxhub-site[data-design-motion="calm"] :is(.float-animation, .pulse-glow, .hero-section, .cta-section, .gradient-bg) { animation: none !important; }
.boxhub-site[data-design-motion="calm"] :is(.hero-particle, .hero-reference-particle, .hero-slideshow-particle, .hero-shimmer) { animation: none !important; }
.boxhub-site:is([data-design-motion="calm"], [data-design-motion="none"]) :is(.hero-particles, .hero-shimmer) { display: none; }
.boxhub-site:is([data-design-motion="calm"], [data-design-motion="none"]) .hero-slide img { animation: none !important; transform: none !important; height: 100% !important; object-fit: cover; }
.boxhub-site[data-design-motion="calm"] .card-hover:hover { transform: translateY(-2px); }
.boxhub-site[data-design-motion="none"] *, .boxhub-site[data-design-motion="none"] *::before, .boxhub-site[data-design-motion="none"] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}
.boxhub-site[data-design-motion="none"] [data-aos] { opacity: 1 !important; transform: none !important; }
html:has(.boxhub-site[data-design-motion="none"]) { scroll-behavior: auto; }
.boxhub-site[data-design-motion="none"] :is(.card-hover, .hover\:scale-105, .hover\:scale-110, .group-hover\:scale-105, .group-hover\:scale-110, .btn-primary):hover { transform: none !important; }

.design-preview-notice {
    position: fixed;
    left: max(.75rem, env(safe-area-inset-left));
    bottom: max(.75rem, env(safe-area-inset-bottom));
    z-index: 1100;
    max-width: min(29rem, calc(100vw - 1.5rem));
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 1rem;
    padding: .65rem .9rem;
    background: #172235;
    color: #fff;
    font: 500 .75rem/1.45 system-ui, sans-serif;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    pointer-events: none;
}

@media (max-width: 1079px) {
    .boxhub-site .site-header #menu-toggle { display: inline-flex; }
    .boxhub-site .site-header #main-menu:not(.mobile-menu-visible) { display: none !important; }
    .boxhub-site .site-header #main-menu.mobile-menu-visible { flex-direction: column !important; overflow-y: auto; max-height: calc(100dvh - 88px); }
    .boxhub-site .site-header #main-menu.mobile-menu-visible .menu-btn-nowrap { width: 100%; white-space: normal; }
    .boxhub-site .site-header #main-menu.mobile-menu-visible > li { max-width: 32rem; }
}
@media (min-width: 1080px) {
    .boxhub-site .site-header #menu-toggle { display: none; }
}
@media (max-width: 639px) {
    .boxhub-site .site-header > .container { padding-inline: 1rem; gap: .75rem; }
    .boxhub-site .site-section { padding-block: clamp(2.5rem, 10vw, var(--section-space, 4rem)); padding-inline: 1rem; }
    .boxhub-site :is(.hero-section, .cta-section) { padding-inline: 1rem; }
    .boxhub-site .hero-section { padding-block: 4rem; }
    .boxhub-site :is(.site-card, .glass-effect, #rental-form).p-8 { padding: 1.25rem; }
    .boxhub-site .site-footer { padding-block: 2.5rem; }
    .boxhub-site .site-footer > div { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .boxhub-site *, .boxhub-site *::before, .boxhub-site *::after { animation: none !important; transition: none !important; }
    .boxhub-site :is(.card-hover, .site-feature-button, .btn-primary):hover { transform: none; }
    .boxhub-site :is(.hero-particles, .hero-shimmer) { display: none; }
    .boxhub-site .hero-slide img { transform: none !important; height: 100% !important; }
}
@media print {
    body.boxhub-site { background: #fff; color: #111; }
    .boxhub-site :is(.site-card, .glass-effect, .bg-white.rounded-2xl) { background: #fff; color: #111; box-shadow: none; }
    .boxhub-site :is(h1, h2, h3, h4, h5, h6, a, .text-gradient, .text-gray-500, .text-gray-600, .text-muted) { color: #111; }
}
