/*
Theme Name: AdsInHub Owners
Theme URI: https://www.adsinhub.com
Author: AdsInHub
Author URI: https://www.adsinhub.com
Description: Thème WordPress pour propriétaires d'espaces publicitaires — Sites vitrines professionnels avec catalogue d'espaces, carte interactive, calendrier de disponibilité et système de réservation intégré.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: adsinhub-owners
License: GPLv2 or later
*/

@import url('../_shared/design-system.css');

/* ============================================================
   THEME VARIABLES
   ============================================================ */

:root {
    /* Brand palette — mapped from variation vars for override support */
    --aih-primary: var(--variation-primary, #84CC16);
    --aih-primary-hover: var(--variation-primary-hover, #65a30d);
    --aih-primary-10: var(--variation-primary-10, rgba(132, 204, 22, 0.1));
    --aih-primary-20: var(--variation-primary-20, rgba(132, 204, 22, 0.2));
    --aih-secondary: var(--variation-secondary, #1e293b);
    --aih-accent: var(--variation-accent, #06b6d4);

    /* Surfaces */
    --aih-bg: var(--variation-bg, #ffffff);
    --aih-bg-alt: var(--variation-bg-alt, #f8fafc);
    --aih-bg-elevated: var(--variation-bg-elevated, #ffffff);

    /* Text */
    --aih-text: var(--variation-text, #0f172a);
    --aih-text-muted: var(--variation-text-muted, #64748b);
    --aih-text-inverted: #ffffff;

    /* Borders */
    --aih-border: var(--variation-border, #e2e8f0);
    --aih-border-hover: var(--variation-border-hover, #cbd5e1);

    /* Typography */
    --aih-font-heading: var(--variation-font-heading, 'Space Grotesk', sans-serif);
    --aih-font-body: var(--variation-font-body, 'Plus Jakarta Sans', sans-serif);

    /* Radii */
    --aih-radius-sm: 6px;
    --aih-radius: 12px;
    --aih-radius-lg: 16px;
    --aih-radius-xl: 24px;
    --aih-radius-full: 9999px;

    /* Shadows */
    --aih-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --aih-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --aih-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --aih-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --aih-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --aih-shadow-glow: 0 0 30px rgba(132, 204, 22, 0.3);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Transitions */
    --aih-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --aih-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --aih-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index layers */
    --z-dropdown: 50;
    --z-sticky: 100;
    --z-overlay: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* ============================================================
   DARK MODE
   ============================================================ */

html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] {
    --aih-bg: #0a0a0c;
    --aih-bg-alt: #111114;
    --aih-bg-elevated: #18181b;
    --aih-text: #f1f5f9;
    --aih-text-muted: #94a3b8;
    --aih-text-inverted: #0f172a;
    --aih-border: rgba(255, 255, 255, 0.08);
    --aih-border-hover: rgba(255, 255, 255, 0.15);
    --aih-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --aih-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --aih-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --aih-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --aih-shadow-glow: 0 0 40px rgba(132, 204, 22, 0.2);
    --aih-primary-10: rgba(132, 204, 22, 0.08);
    --aih-primary-20: rgba(132, 204, 22, 0.15);
}

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--aih-font-body);
    color: var(--aih-text);
    background: var(--aih-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--aih-primary);
    text-decoration: none;
    transition: var(--aih-transition-fast);
}

a:hover {
    color: var(--aih-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--aih-font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--aih-text);
    letter-spacing: -0.02em;
}

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

::selection {
    background: var(--aih-primary);
    color: #fff;
}

/* ============================================================
   11. CONTAINER & LAYOUT
   ============================================================ */

.aih-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: var(--space-6);
}

.aih-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.aih-grid--2 {
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
}

.aih-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.aih-grid--4 {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ============================================================
   5. SECTION STYLING
   ============================================================ */

.aih-section {
    padding: var(--space-16) 0;
    position: relative;
}

.aih-section--alt {
    background: var(--aih-bg-alt);
}

.aih-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-2);
    position: relative;
    display: inline-block;
}

.aih-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--aih-primary);
    border-radius: var(--aih-radius-full);
    margin-top: var(--space-3);
}

.aih-section-subtitle {
    font-size: 1.125rem;
    color: var(--aih-text-muted);
    max-width: 600px;
    margin-bottom: var(--space-10);
}

/* ============================================================
   1. HEADER — Glassmorphism sticky navbar
   ============================================================ */

.aih-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    padding: var(--space-4) 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.aih-header.scrolled {
    padding: var(--space-2) 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-bottom: 1px solid var(--aih-border);
    box-shadow: var(--aih-shadow);
}

[data-theme="dark"] .aih-header {
    background: rgba(10, 10, 12, 0.85);
}

[data-theme="dark"] .aih-header.scrolled {
    background: rgba(10, 10, 12, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.aih-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aih-logo {
    font-family: var(--aih-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--aih-text);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.aih-logo span {
    color: var(--aih-primary);
}

.aih-nav {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.aih-nav ul {
    display: flex;
    gap: var(--space-6);
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aih-nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aih-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.aih-nav a {
    color: var(--aih-text);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    padding: var(--space-1) 0;
    text-decoration: none;
    white-space: nowrap;
}

.aih-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--aih-primary);
    border-radius: var(--aih-radius-full);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aih-nav a:hover::after,
.aih-nav a.active::after {
    width: 100%;
}

.aih-nav a:hover {
    color: var(--aih-primary);
}

/* Dark mode toggle */
.aih-dark-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--aih-radius-full, 50%);
    background: var(--aih-bg-alt, #f8fafc);
    border: 1px solid var(--aih-border, #e2e8f0);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}
.aih-dark-toggle:hover {
    background: var(--aih-primary-10);
    border-color: var(--aih-primary-20);
    transform: scale(1.05);
}
.aih-dark-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--aih-text);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Show sun in dark mode, moon in light mode */
.aih-dark-toggle__sun { display: none; }
.aih-dark-toggle__moon { display: block; }
[data-theme="dark"] .aih-dark-toggle__sun { display: block; }
[data-theme="dark"] .aih-dark-toggle__moon { display: none; }
[data-theme="dark"] .aih-dark-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .aih-dark-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(132, 204, 22, 0.3);
}
[data-theme="dark"] .aih-dark-toggle svg {
    color: #f1f5f9;
}

/* Hamburger menu */
.aih-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: calc(var(--z-overlay) + 1);
}

.aih-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--aih-text);
    border-radius: var(--aih-radius-full);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-open .aih-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .aih-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-open .aih-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.aih-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--aih-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

[data-theme="dark"] .aih-mobile-nav {
    background: var(--aih-bg);
}

.menu-open .aih-mobile-nav {
    opacity: 1;
    visibility: visible;
}

.aih-mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.aih-mobile-nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aih-mobile-nav a {
    font-family: var(--aih-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--aih-text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

.menu-open .aih-mobile-nav a {
    opacity: 1;
    transform: translateY(0);
}

.menu-open .aih-mobile-nav a:nth-child(1) { transition-delay: 0.1s; }
.menu-open .aih-mobile-nav a:nth-child(2) { transition-delay: 0.15s; }
.menu-open .aih-mobile-nav a:nth-child(3) { transition-delay: 0.2s; }
.menu-open .aih-mobile-nav a:nth-child(4) { transition-delay: 0.25s; }
.menu-open .aih-mobile-nav a:nth-child(5) { transition-delay: 0.3s; }
.menu-open .aih-mobile-nav a:nth-child(6) { transition-delay: 0.35s; }

.aih-mobile-nav a:hover {
    color: var(--aih-primary);
}

/* ============================================================
   2. HERO — Cinematic
   ============================================================ */

.aih-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.aih-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--aih-secondary) 0%,
        #0f1729 25%,
        #162033 50%,
        var(--aih-secondary) 75%,
        #1a2940 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    z-index: 0;
}

.aih-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 30% 50%,
        rgba(132, 204, 22, 0.12) 0%,
        transparent 60%
    );
    z-index: 1;
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 50%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.aih-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--space-6);
}

.hero-title {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    color: var(--aih-primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

/* Floating geometric shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.hero-shape--1 {
    width: 400px;
    height: 400px;
    background: var(--aih-primary);
    top: -100px;
    right: -80px;
    animation: float 6s ease-in-out infinite;
}

.hero-shape--2 {
    width: 250px;
    height: 250px;
    background: var(--aih-accent);
    bottom: -60px;
    left: -40px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-shape--3 {
    width: 150px;
    height: 150px;
    background: #fff;
    top: 40%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%      { transform: translateY(-20px) rotate(3deg); }
    66%      { transform: translateY(10px) rotate(-2deg); }
}

/* Hero stats strip */
.hero-stats {
    display: flex;
    gap: var(--space-10);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.hero-stat {
    text-align: center;
}

.hero-stat__number {
    font-family: var(--aih-font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--aih-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.hero-stat__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   3. CARDS
   ============================================================ */

.aih-card {
    background: var(--aih-bg);
    border: 1px solid var(--aih-border);
    border-radius: var(--aih-radius-lg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease;
    box-shadow: var(--aih-shadow);
    position: relative;
}

.aih-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--aih-shadow-xl);
    border-color: var(--aih-primary-20);
}

.aih-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--aih-primary-20));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.aih-card:hover::before {
    opacity: 1;
}

.aih-card__image {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}

.aih-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.aih-card:hover .aih-card__image img {
    transform: scale(1.05);
}

.aih-card__badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: 4px 12px;
    border-radius: var(--aih-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.aih-card__badge--available {
    background: rgba(132, 204, 22, 0.9);
    color: #fff;
}

.aih-card__badge--booked {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.aih-card__badge--featured {
    background: rgba(6, 182, 212, 0.9);
    color: #fff;
}

.aih-card__badge--new {
    background: rgba(168, 85, 247, 0.9);
    color: #fff;
}

.aih-card__content {
    padding: var(--space-6);
}

.aih-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.aih-card__meta {
    font-size: 0.8125rem;
    color: var(--aih-text-muted);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.aih-card__meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.aih-card__price {
    font-family: var(--aih-font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--aih-primary);
}

.aih-card__price small {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--aih-text-muted);
    margin-left: 2px;
}

.aih-card__footer {
    padding: var(--space-3) var(--space-6);
    border-top: 1px solid var(--aih-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--aih-text-muted);
}

/* Card skeleton / loading shimmer */
.aih-card--skeleton {
    pointer-events: none;
}

.aih-card--skeleton .aih-card__image,
.aih-card--skeleton .aih-card__title,
.aih-card--skeleton .aih-card__meta,
.aih-card--skeleton .aih-card__price {
    background: linear-gradient(
        90deg,
        var(--aih-border) 25%,
        var(--aih-bg-alt) 37%,
        var(--aih-border) 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--aih-radius-sm);
    color: transparent !important;
}

.aih-card--skeleton .aih-card__title {
    height: 20px;
    width: 75%;
}

.aih-card--skeleton .aih-card__meta {
    height: 14px;
    width: 50%;
}

.aih-card--skeleton .aih-card__price {
    height: 24px;
    width: 40%;
}

@keyframes shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll animation system */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   4. BUTTONS — 5 Variants
   ============================================================ */

.aih-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 28px;
    border-radius: var(--aih-radius);
    font-family: var(--aih-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: var(--aih-transition);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

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

/* Primary — gradient fill with glow */
.aih-btn--primary {
    background: linear-gradient(135deg, var(--aih-primary), var(--aih-primary-hover));
    color: #fff;
    box-shadow: 0 4px 14px rgba(132, 204, 22, 0.3);
}

.aih-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(132, 204, 22, 0.4);
}

.aih-btn--primary:active {
    transform: translateY(0) scale(0.99);
}

/* Secondary — glass outline, fill on hover */
.aih-btn--secondary {
    background: transparent;
    border: 2px solid var(--aih-primary);
    color: var(--aih-primary);
    backdrop-filter: blur(8px);
}

.aih-btn--secondary:hover {
    background: var(--aih-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(132, 204, 22, 0.25);
}

/* Ghost — transparent, underline animation */
.aih-btn--ghost {
    background: transparent;
    color: var(--aih-text);
    padding: 12px 16px;
    position: relative;
}

.aih-btn--ghost::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 16px;
    width: 0;
    height: 2px;
    background: var(--aih-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aih-btn--ghost:hover {
    color: var(--aih-primary);
}

.aih-btn--ghost:hover::after {
    width: calc(100% - 32px);
}

/* Icon — circle with hover ripple */
.aih-btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--aih-bg-alt);
    color: var(--aih-text-muted);
    border: 1px solid var(--aih-border);
}

.aih-btn--icon:hover {
    color: var(--aih-primary);
    border-color: var(--aih-primary);
    background: var(--aih-primary-10);
    box-shadow: 0 0 0 6px var(--aih-primary-10);
}

/* CTA — animated gradient border */
.aih-btn--cta {
    background: var(--aih-bg);
    color: var(--aih-text);
    padding: 14px 32px;
    border: none;
    position: relative;
    z-index: 0;
}

.aih-btn--cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--cta-angle, 0deg),
        var(--aih-primary),
        var(--aih-accent),
        var(--aih-primary),
        var(--aih-accent),
        var(--aih-primary)
    );
    z-index: -2;
    animation: rotate-gradient 3s linear infinite;
}

.aih-btn--cta::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: calc(var(--aih-radius) - 2px);
    background: var(--aih-bg);
    z-index: -1;
    transition: background 0.3s ease;
}

.aih-btn--cta:hover::after {
    background: var(--aih-bg-alt);
}

@keyframes rotate-gradient {
    to { --cta-angle: 360deg; }
}

@property --cta-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Button sizes */
.aih-btn--sm {
    padding: 8px 18px;
    font-size: 0.8125rem;
    border-radius: var(--aih-radius-sm);
}

.aih-btn--lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
    border-radius: var(--aih-radius-lg);
}

/* ============================================================
   6. MAP SECTION
   ============================================================ */

.aih-map-container {
    border-radius: var(--aih-radius-lg);
    overflow: hidden;
    box-shadow: var(--aih-shadow-lg);
    border: 1px solid var(--aih-border);
    position: relative;
}

.aih-map-container iframe,
.aih-map-container .leaflet-container {
    width: 100%;
    height: 500px;
    display: block;
}

.aih-map-popup {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--aih-radius);
    padding: var(--space-4);
    box-shadow: var(--aih-shadow-lg);
    border: 1px solid var(--aih-border);
    max-width: 280px;
}

[data-theme="dark"] .aih-map-popup {
    background: rgba(24, 24, 27, 0.95);
}

.aih-map-popup__title {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: var(--space-1);
}

.aih-map-popup__meta {
    font-size: 0.8125rem;
    color: var(--aih-text-muted);
}

[data-theme="dark"] .aih-map-container .leaflet-tile {
    filter: brightness(0.7) invert(1) contrast(0.9) hue-rotate(200deg) saturate(0.3);
}

/* ============================================================
   7. CALENDAR (FullCalendar overrides)
   ============================================================ */

.aih-calendar-wrap {
    margin: var(--space-6) 0;
    border-radius: var(--aih-radius-lg);
    overflow: hidden;
    border: 1px solid var(--aih-border);
    background: var(--aih-bg);
}

.fc {
    font-family: var(--aih-font-body) !important;
}

.fc .fc-toolbar-title {
    font-family: var(--aih-font-heading) !important;
    font-weight: 700;
    font-size: 1.125rem !important;
}

.fc .fc-button-primary {
    background: var(--aih-primary) !important;
    border-color: var(--aih-primary) !important;
    border-radius: var(--aih-radius-sm) !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    transition: var(--aih-transition-fast) !important;
}

.fc .fc-button-primary:hover {
    background: var(--aih-primary-hover) !important;
    border-color: var(--aih-primary-hover) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--aih-primary-hover) !important;
    border-color: var(--aih-primary-hover) !important;
}

.fc .fc-daygrid-day {
    transition: background 0.2s ease;
    border-radius: var(--aih-radius-sm);
}

.fc .fc-daygrid-day:hover {
    background: var(--aih-primary-10);
}

.fc .fc-daygrid-event {
    border-radius: var(--aih-radius-sm) !important;
    padding: 2px 6px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.fc .fc-event {
    border: none !important;
    background: var(--aih-primary) !important;
}

.fc .fc-col-header-cell {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--aih-text-muted);
}

[data-theme="dark"] .fc {
    --fc-border-color: rgba(255, 255, 255, 0.06);
    --fc-page-bg-color: var(--aih-bg);
    --fc-neutral-bg-color: var(--aih-bg-alt);
}

[data-theme="dark"] .fc .fc-col-header-cell,
[data-theme="dark"] .fc .fc-daygrid-day-number {
    color: var(--aih-text-muted);
}

/* ============================================================
   8. FILTERS
   ============================================================ */

.aih-filters {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding: var(--space-6) 0;
    align-items: center;
}

.aih-filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--aih-border);
    border-radius: var(--aih-radius-full);
    background: var(--aih-bg);
    font-family: var(--aih-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--aih-text);
    cursor: pointer;
    transition: var(--aih-transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
}

.aih-filter-btn:hover {
    border-color: var(--aih-primary);
    color: var(--aih-primary);
    background: var(--aih-primary-10);
}

.aih-filter-btn.active {
    background: var(--aih-primary);
    color: #fff;
    border-color: var(--aih-primary);
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.25);
}

.aih-filter-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--aih-radius-full);
    background: var(--aih-bg-alt);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--aih-text-muted);
}

.aih-filter-btn.active .aih-filter-btn__count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ============================================================
   9. FOOTER
   ============================================================ */

.aih-footer {
    background: linear-gradient(180deg, var(--aih-secondary) 0%, #0c1222 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-16) 0 var(--space-6);
}

.aih-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.aih-footer__brand {
    max-width: 320px;
}

.aih-footer__brand .aih-logo {
    color: #fff;
    margin-bottom: var(--space-4);
}

.aih-footer__brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.aih-footer__heading {
    font-family: var(--aih-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: var(--space-4);
}

.aih-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.aih-footer__links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.aih-footer__links a:hover {
    color: var(--aih-primary);
    padding-left: 4px;
}

/* Newsletter input */
.aih-footer__newsletter {
    display: flex;
    gap: 0;
    margin-top: var(--space-4);
}

.aih-footer__newsletter input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none;
    border-radius: var(--aih-radius) 0 0 var(--aih-radius);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: var(--aih-font-body);
    font-size: 0.875rem;
    outline: none;
    transition: var(--aih-transition);
}

.aih-footer__newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.aih-footer__newsletter input:focus {
    border-color: var(--aih-primary);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.aih-footer__newsletter button {
    padding: 12px 20px;
    border: none;
    border-radius: 0 var(--aih-radius) var(--aih-radius) 0;
    background: var(--aih-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.aih-footer__newsletter button:hover {
    background: var(--aih-primary-hover);
}

/* Social icons */
.aih-footer__socials {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.aih-footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--aih-transition);
}

.aih-footer__socials a:hover {
    color: var(--aih-primary);
    border-color: var(--aih-primary);
    background: rgba(132, 204, 22, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.2);
}

.aih-footer__socials a svg {
    width: 18px;
    height: 18px;
}

/* Bottom bar */
.aih-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.aih-footer__bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.aih-footer__bottom a:hover {
    color: var(--aih-primary);
}

/* ============================================================
   10. FORMS
   ============================================================ */

.aih-form-group {
    position: relative;
    margin-bottom: var(--space-4);
}

.aih-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--aih-border);
    border-radius: var(--aih-radius);
    background: var(--aih-bg);
    font-family: var(--aih-font-body);
    font-size: 0.9375rem;
    color: var(--aih-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.aih-input::placeholder {
    color: var(--aih-text-muted);
    opacity: 0.7;
}

.aih-input:focus {
    border-color: var(--aih-primary);
    box-shadow: 0 0 0 3px var(--aih-primary-20);
}

.aih-input--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.aih-input--success {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.aih-input--error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.aih-input--success:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.aih-form-error {
    font-size: 0.8125rem;
    color: #ef4444;
    margin-top: var(--space-1);
}

/* Floating label */
.aih-form-group--floating .aih-input {
    padding-top: 20px;
    padding-bottom: 8px;
}

.aih-form-group--floating .aih-label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    color: var(--aih-text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
}

.aih-form-group--floating .aih-input:focus ~ .aih-label,
.aih-form-group--floating .aih-input:not(:placeholder-shown) ~ .aih-label {
    top: 10px;
    transform: translateY(0);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--aih-primary);
    letter-spacing: 0.03em;
}

/* Textarea */
textarea.aih-input {
    resize: vertical;
    min-height: 120px;
}

/* Select — custom arrow */
select.aih-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

[data-theme="dark"] .aih-input {
    background: var(--aih-bg-elevated);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .aih-input:focus {
    border-color: var(--aih-primary);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */

.aih-feature-card {
    background: var(--aih-bg);
    border: 1px solid var(--aih-border);
    border-radius: var(--aih-radius-lg);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transition: var(--aih-transition);
    position: relative;
}

.aih-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aih-shadow-md);
    border-color: var(--aih-primary-20);
}

.aih-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--aih-radius);
    background: var(--aih-primary-10);
    color: var(--aih-primary);
    margin-bottom: var(--space-4);
}

.aih-feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.aih-feature-card p {
    font-size: 0.875rem;
    color: var(--aih-text-muted);
    line-height: 1.6;
}

/* Card placeholder for missing images */
.aih-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--aih-primary-10), var(--aih-bg-alt));
}

/* ============================================================
   STATS (standalone section)
   ============================================================ */

.aih-stats {
    display: flex;
    gap: var(--space-10);
    justify-content: center;
    flex-wrap: wrap;
    padding: var(--space-6) 0;
}

.aih-stat {
    text-align: center;
}

.aih-stat__number {
    font-family: var(--aih-font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--aih-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.aih-stat__label {
    font-size: 0.875rem;
    color: var(--aih-text-muted);
}

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse glow for CTA */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.4); }
    50%      { box-shadow: 0 0 0 12px rgba(132, 204, 22, 0); }
}

.aih-pulse-glow {
    animation: pulse-glow 2s ease infinite;
}

/* Fade-in-up */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.aih-fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Focus-visible for keyboard users */
:focus-visible {
    outline: 2px solid var(--aih-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================================
   RTL SUPPORT
   ============================================================ */

[dir="rtl"] .aih-nav {
    direction: rtl;
}

[dir="rtl"] .aih-card__content {
    text-align: right;
}

[dir="rtl"] .aih-card__badge {
    left: auto;
    right: var(--space-3);
}

[dir="rtl"] .aih-footer__links a:hover {
    padding-left: 0;
    padding-right: 4px;
}

[dir="rtl"] .aih-btn--ghost::after {
    left: auto;
    right: 16px;
}

[dir="rtl"] .aih-section-title::after {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .aih-footer__newsletter input {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-left: none;
    border-radius: 0 var(--aih-radius) var(--aih-radius) 0;
}

[dir="rtl"] .aih-footer__newsletter button {
    border-radius: var(--aih-radius) 0 0 var(--aih-radius);
}

/* ============================================================
   RESPONSIVE — 4 Breakpoints
   ============================================================ */

/* Large desktops (1280px+) */
@media (min-width: 1280px) {
    .aih-container {
        padding-inline: var(--space-8);
    }

    .aih-hero__content {
        max-width: 900px;
    }
}

/* Tablet landscape (max 1024px) */
@media (max-width: 1024px) {
    .aih-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aih-grid--2 {
        grid-template-columns: 1fr;
    }

    .aih-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .hero-stats {
        gap: var(--space-6);
    }

    .aih-map-container iframe,
    .aih-map-container .leaflet-container {
        height: 400px;
    }
}

/* Tablet portrait (max 768px) */
@media (max-width: 768px) {
    .aih-nav {
        display: none;
    }

    .aih-hamburger {
        display: flex;
    }

    .aih-hero {
        min-height: 75vh;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.75rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .aih-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-shape--1 { width: 250px; height: 250px; }
    .hero-shape--2 { width: 160px; height: 160px; }
    .hero-shape--3 { display: none; }

    .aih-section {
        padding: var(--space-12) 0;
    }

    .aih-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .aih-footer__bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    .aih-stats {
        gap: var(--space-6);
    }

    .aih-map-container iframe,
    .aih-map-container .leaflet-container {
        height: 320px;
    }

    .aih-card:hover {
        transform: translateY(-4px);
    }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {
    :root {
        --space-16: 48px;
        --space-20: 56px;
        --space-24: 64px;
    }

    .aih-container {
        padding-inline: var(--space-4);
    }

    .aih-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .aih-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .aih-section-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .hero-stats {
        gap: var(--space-4);
    }

    .hero-stat__number {
        font-size: 1.5rem;
    }

    .aih-card__content {
        padding: var(--space-4);
    }

    .aih-card__footer {
        padding: var(--space-2) var(--space-4);
    }

    .aih-filters {
        padding: var(--space-4) 0;
        gap: var(--space-2);
    }

    .aih-filter-btn {
        padding: 6px 14px;
        font-size: 0.8125rem;
    }

    .aih-btn {
        padding: 10px 22px;
        font-size: 0.875rem;
    }

    .aih-btn--lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .aih-input {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .aih-map-container iframe,
    .aih-map-container .leaflet-container {
        height: 260px;
    }

    .aih-footer {
        padding: var(--space-12) 0 var(--space-4);
    }

    .aih-footer__socials {
        justify-content: center;
    }
}

/* ============================================================
   PRINT
   ============================================================ */

/* ============================================================
   PAGE HERO (internal pages)
   ============================================================ */
.aih-page-hero {
    position: relative;
    padding: 80px 0 48px;
    background: var(--aih-secondary, #1e293b);
    color: #fff;
    overflow: hidden;
    text-align: center;
}
.aih-page-hero--compact { padding: 56px 0 36px; }
.aih-page-hero__title {
    font-family: var(--aih-font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}
.aih-page-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}
.aih-page-hero__meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.aih-page-hero__meta a { color: var(--aih-primary); }
.aih-page-hero__sep { opacity: 0.4; }
.aih-page-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.aih-page-hero__badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.aih-page-hero__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.aih-page-hero__shape {
    position: absolute;
    border-radius: 50%;
    background: var(--aih-primary, #84CC16);
    opacity: 0.06;
}
.aih-page-hero__shape--1 {
    width: 300px; height: 300px;
    top: -80px; right: -60px;
    animation: float 8s ease-in-out infinite;
}
.aih-page-hero__shape--2 {
    width: 200px; height: 200px;
    bottom: -60px; left: -40px;
    animation: float 6s ease-in-out infinite reverse;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.aih-page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--aih-text, #0f172a);
}
.aih-page-content h2,
.aih-page-content h3,
.aih-page-content h4 {
    font-family: var(--aih-font-heading, 'Space Grotesk', sans-serif);
    margin-top: 2em;
    margin-bottom: 0.75em;
}
.aih-page-content h2 { font-size: 1.5rem; }
.aih-page-content h3 { font-size: 1.25rem; }
.aih-page-content p { margin-bottom: 1em; }
.aih-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--aih-radius-md, 12px);
    margin: 1.5em 0;
}
.aih-page-content ul,
.aih-page-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}
.aih-page-content li { margin-bottom: 0.5em; }
.aih-page-content a {
    color: var(--aih-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.aih-page-content--article { max-width: 720px; }
.aih-page-content__featured-image {
    margin: 0 0 2em;
    border-radius: var(--aih-radius-lg, 16px);
    overflow: hidden;
}
.aih-page-content__featured-image img { width: 100%; display: block; }
.aih-page-content__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid var(--aih-border);
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.aih-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(132, 204, 22, 0.15);
    color: var(--aih-primary);
    border-radius: 999px;
}
.aih-tag {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 0.8125rem;
    background: var(--aih-bg-alt, #f8fafc);
    color: var(--aih-text-muted);
    border-radius: 6px;
    border: 1px solid var(--aih-border);
}

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.aih-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--aih-border);
}
.aih-post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: var(--aih-radius-md, 12px);
    border: 1px solid var(--aih-border);
    text-decoration: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.aih-post-nav__link:hover {
    border-color: var(--aih-primary);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.1);
}
.aih-post-nav__link--next { text-align: right; }
.aih-post-nav__label { font-size: 0.8125rem; color: var(--aih-text-muted); }
.aih-post-nav__title { font-weight: 600; color: var(--aih-text); }

/* ============================================================
   FORMS
   ============================================================ */
.aih-form {
    display: grid;
    gap: 20px;
}
.aih-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.aih-form-group { display: flex; flex-direction: column; gap: 6px; }
.aih-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--aih-text);
}
.aih-select,
.aih-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--aih-text, #0f172a);
    background: var(--aih-bg, #fff);
    border: 1px solid var(--aih-border, #e2e8f0);
    border-radius: var(--aih-radius-md, 12px);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.aih-select:focus,
.aih-textarea:focus {
    border-color: var(--aih-primary, #84CC16);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}
.aih-textarea::placeholder {
    color: var(--aih-text-muted, #64748b);
    opacity: 0.7;
}
.aih-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.aih-textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   ALERTS
   ============================================================ */
.aih-alert {
    padding: 16px 20px;
    border-radius: var(--aih-radius-md, 12px);
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.aih-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.aih-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.aih-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.aih-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 48px;
    padding-top: 32px;
}
.aih-pagination .nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.aih-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--aih-text, #0f172a);
    background: var(--aih-bg, #fff);
    border: 1px solid var(--aih-border, #e2e8f0);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.aih-pagination .page-numbers:hover {
    border-color: var(--aih-primary);
    color: var(--aih-primary);
}
.aih-pagination .page-numbers.current {
    background: var(--aih-primary, #84CC16);
    border-color: var(--aih-primary, #84CC16);
    color: #fff;
    font-weight: 700;
}
.aih-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.aih-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--aih-radius-md, 12px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.aih-search-form__input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}
.aih-search-form__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.aih-search-form .aih-btn { border-radius: 0; }
.aih-search-count {
    font-size: 0.9375rem;
    color: var(--aih-text-muted);
    margin-bottom: 24px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.aih-empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--aih-text-muted);
}
.aih-empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.aih-empty-state h3 {
    font-size: 1.25rem;
    color: var(--aih-text);
    margin-bottom: 8px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.aih-404 {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aih-secondary, #1e293b);
    color: #fff;
    overflow: hidden;
}
.aih-404__content {
    text-align: center;
    max-width: 480px;
}
.aih-404__illustration {
    width: 240px;
    margin: 0 auto 32px;
}
.aih-404__illustration svg { width: 100%; height: auto; }
.aih-404__dot { animation: float 4s ease-in-out infinite; }
.aih-404__dot--2 { animation-delay: 1s; }
.aih-404__dot--3 { animation-delay: 2s; }
.aih-404__title {
    font-family: var(--aih-font-heading, 'Space Grotesk', sans-serif);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.aih-404__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
}
.aih-404__actions { display: flex; justify-content: center; }

/* ============================================================
   TABLE
   ============================================================ */
.aih-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}
.aih-table th,
.aih-table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid var(--aih-border, #e2e8f0);
}
.aih-table th {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--aih-text-muted);
}
.aih-table td { font-size: 0.9375rem; }
.aih-table td:last-child,
.aih-table th:last-child { text-align: right; }

/* ============================================================
   SPACE DETAIL
   ============================================================ */
.aih-space-detail {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.aih-space-detail__image {
    border-radius: var(--aih-radius-lg, 16px);
    overflow: hidden;
    margin-bottom: 32px;
}
.aih-space-detail__image img { width: 100%; display: block; }
.aih-space-detail__sidebar { position: sticky; top: 100px; }
.aih-space-detail__card {
    padding: 28px;
    background: var(--aih-bg, #fff);
    border: 1px solid var(--aih-border, #e2e8f0);
    border-radius: var(--aih-radius-lg, 16px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.aih-space-detail__price {
    font-family: var(--aih-font-heading, 'Space Grotesk', sans-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--aih-primary, #84CC16);
}
.aih-space-detail__price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--aih-text-muted);
}
.aih-space-detail__info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--aih-text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--aih-border);
}
.aih-space-detail__info svg { color: var(--aih-primary); flex-shrink: 0; }
.aih-space-detail__info div { display: flex; flex-direction: column; gap: 2px; }
.aih-space-detail__info div small {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--aih-text-muted);
}
.aih-space-detail__info div span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--aih-text);
}
.aih-space-detail__info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Gallery */
.aih-space-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.aih-space-gallery__item {
    border-radius: var(--aih-radius-md, 12px);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin: 0;
}
.aih-space-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.aih-space-gallery__item:hover img {
    transform: scale(1.05);
}

/* Main image */
.aih-space-detail__image--main {
    border-radius: var(--aih-radius-lg, 16px);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Map section */
.aih-space-detail__map-section {
    margin-top: 40px;
}
.aih-space-detail__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--aih-text);
}
.aih-space-detail__section-title svg { color: var(--aih-primary); }
.aih-space-detail__map {
    height: 300px;
    border-radius: var(--aih-radius-md, 12px);
    border: 1px solid var(--aih-border);
    overflow: hidden;
}

/* Block button */
.aih-btn--block { width: 100%; text-align: center; display: block; }

/* Secondary button */
.aih-btn--secondary {
    background: transparent;
    color: var(--aih-text);
    border: 1px solid var(--aih-border);
    padding: 12px 24px;
    border-radius: var(--aih-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--aih-transition);
    text-decoration: none;
}
.aih-btn--secondary:hover {
    border-color: var(--aih-primary);
    color: var(--aih-primary);
    background: var(--aih-primary-10);
}

/* Badge variants */
.aih-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--aih-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--aih-primary-10);
    color: var(--aih-primary);
}
.aih-badge--available {
    background: rgba(132, 204, 22, 0.15);
    color: #65a30d;
}
.aih-badge--booked {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}
[data-theme="dark"] .aih-badge--available { color: #a3e635; }
[data-theme="dark"] .aih-badge--booked { color: #f87171; }

/* ============================================================
   CARD EXTENSIONS
   ============================================================ */
.aih-card__image {
    display: block;
    overflow: hidden;
    border-radius: var(--aih-radius-md, 12px) var(--aih-radius-md, 12px) 0 0;
}
.aih-card__image img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s; }
.aih-card__image:hover img { transform: scale(1.05); }
.aih-card__meta {
    font-size: 0.8125rem;
    color: var(--aih-text-muted);
    margin-bottom: 8px;
}
.aih-card__body { padding: 20px; }
.aih-card__body h3 { margin: 0 0 8px; }
.aih-card__body h3 a {
    color: var(--aih-text, #0f172a);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
}
.aih-card__body h3 a:hover { color: var(--aih-primary); }
.aih-card__body p {
    font-size: 0.9375rem;
    color: var(--aih-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}
.aih-card__type {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--aih-primary);
    margin-bottom: 4px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.aih-cta-section {
    background: var(--aih-secondary, #1e293b);
    color: #fff;
    text-align: center;
    padding: 64px 24px;
    border-radius: var(--aih-radius-lg, 16px);
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}
.aih-cta-section h2 {
    font-family: var(--aih-font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 12px;
}
.aih-cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
    font-size: 1.0625rem;
}

/* ============================================================
   TIMELINE (about page)
   ============================================================ */
.aih-timeline {
    position: relative;
    padding-left: 32px;
    margin: 0;
    list-style: none;
}
.aih-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--aih-border, #e2e8f0);
}
.aih-timeline__item {
    position: relative;
    padding-bottom: 32px;
}
.aih-timeline__item:last-child { padding-bottom: 0; }
.aih-timeline__item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--aih-primary, #84CC16);
    border: 3px solid var(--aih-bg, #fff);
    box-shadow: 0 0 0 2px var(--aih-primary, #84CC16);
}
.aih-timeline__year {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--aih-primary, #84CC16);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.aih-timeline__title {
    font-weight: 600;
    font-size: 1.0625rem;
    margin-bottom: 4px;
}
.aih-timeline__text {
    font-size: 0.9375rem;
    color: var(--aih-text-muted, #64748b);
    line-height: 1.5;
}

/* ============================================================
   LEGAL/CGU LAYOUT
   ============================================================ */
.aih-legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}
.aih-legal-sidebar {
    position: sticky;
    top: 100px;
}
.aih-legal-sidebar__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aih-text-muted);
    margin-bottom: 12px;
}
.aih-legal-sidebar__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aih-legal-sidebar__nav li { margin-bottom: 4px; }
.aih-legal-sidebar__nav a {
    display: block;
    padding: 6px 12px;
    font-size: 0.875rem;
    color: var(--aih-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}
.aih-legal-sidebar__nav a:hover {
    color: var(--aih-primary);
    background: rgba(132, 204, 22, 0.05);
}

/* ============================================================
   CONTACT LAYOUT
   ============================================================ */
.aih-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.aih-contact-info { display: flex; flex-direction: column; gap: 24px; }
.aih-contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.aih-contact-item__icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(132, 204, 22, 0.1);
    border-radius: var(--aih-radius-md, 12px);
    color: var(--aih-primary, #84CC16);
    flex-shrink: 0;
}
.aih-contact-item__label {
    font-size: 0.8125rem;
    color: var(--aih-text-muted);
    margin-bottom: 2px;
}
.aih-contact-item__value {
    font-weight: 600;
    color: var(--aih-text);
}

/* ============================================================
   MAP PAGE LAYOUT
   ============================================================ */
.aih-map-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    min-height: calc(100vh - 80px);
}
.aih-map-sidebar {
    padding: 24px;
    background: var(--aih-bg, #fff);
    border-right: 1px solid var(--aih-border);
    overflow-y: auto;
}
.aih-map-sidebar__count {
    font-size: 0.875rem;
    color: var(--aih-text-muted);
    margin-bottom: 16px;
}
.aih-map-sidebar__filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================================
   PORTAL STATS
   ============================================================ */
.aih-portal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.aih-portal-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--aih-bg, #fff);
    border: 1px solid var(--aih-border);
    border-radius: var(--aih-radius-md, 12px);
}
.aih-portal-stat__icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(132, 204, 22, 0.1);
    border-radius: var(--aih-radius-sm, 6px);
    color: var(--aih-primary);
    flex-shrink: 0;
}
.aih-portal-stat__number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--aih-text);
    line-height: 1;
}
.aih-portal-stat__label {
    font-size: 0.8125rem;
    color: var(--aih-text-muted);
}

/* ============================================================
   DARK MODE ADDITIONS
   ============================================================ */
[data-theme="dark"] .aih-page-hero { background: #0a0a0c; }
[data-theme="dark"] .aih-404 { background: #0a0a0c; }
[data-theme="dark"] .aih-page-content { color: #f1f5f9; }
[data-theme="dark"] .aih-select,
[data-theme="dark"] .aih-textarea {
    background: var(--aih-bg-elevated, #18181b);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}
[data-theme="dark"] .aih-card__body h3 a { color: #f1f5f9; }
[data-theme="dark"] .aih-tag {
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
[data-theme="dark"] .aih-alert--success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #86efac;
}
[data-theme="dark"] .aih-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
[data-theme="dark"] .aih-table th,
[data-theme="dark"] .aih-table td { border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .aih-space-detail__card {
    background: var(--aih-bg-elevated, #18181b);
    border-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .aih-pagination .page-numbers {
    background: var(--aih-bg-elevated, #18181b);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}
[data-theme="dark"] .aih-post-nav__link {
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .aih-post-nav__title { color: #f1f5f9; }
[data-theme="dark"] .aih-cta-section { background: #0a0a0c; }
[data-theme="dark"] .aih-legal-sidebar__nav a:hover { background: rgba(132, 204, 22, 0.08); }
[data-theme="dark"] .aih-search-form { border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .aih-portal-stat {
    background: var(--aih-bg-elevated, #18181b);
    border-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .aih-map-sidebar {
    background: var(--aih-bg, #0a0a0c);
    border-color: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   LOGO IMAGE
   ============================================================ */
.aih-logo img,
.aih-logo .custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
}
.aih-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

/* ============================================================
   CONTAINER VARIANTS
   ============================================================ */
.aih-container--narrow {
    max-width: 800px;
}

/* ============================================================
   SECTION HEADER (used in about, etc.)
   ============================================================ */
.aih-section__header {
    text-align: center;
    margin-bottom: var(--space-12, 48px);
}
.aih-section__title {
    font-family: var(--aih-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--aih-text);
    margin-bottom: var(--space-3, 12px);
}
.aih-section__subtitle {
    font-size: 1.0625rem;
    color: var(--aih-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   CONTENT BLOCK (mission section)
   ============================================================ */
.aih-content-block {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.aih-content-block__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--aih-radius-lg, 16px);
    background: var(--aih-primary-10);
    color: var(--aih-primary);
    margin-bottom: var(--space-6, 24px);
}
.aih-content-block__title {
    font-family: var(--aih-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--aih-text);
    margin-bottom: var(--space-4, 16px);
}
.aih-content-block__text {
    font-size: 1.0625rem;
    color: var(--aih-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-4, 16px);
}
.aih-content-block__text:last-child {
    margin-bottom: 0;
}

/* ============================================================
   STATS ROW (horizontal layout variant)
   ============================================================ */
.aih-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6, 24px);
    text-align: center;
}
@media (max-width: 768px) {
    .aih-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   TIMELINE v2 (step-based with markers)
   ============================================================ */
.aih-timeline__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
}
.aih-timeline__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--aih-radius-full, 50%);
    background: var(--aih-primary);
    color: #fff;
    font-family: var(--aih-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
}
.aih-timeline__line {
    width: 2px;
    flex: 1;
    background: var(--aih-border);
    margin-top: var(--space-2, 8px);
    min-height: 40px;
}
.aih-timeline__item:last-child .aih-timeline__line {
    display: none;
}
.aih-timeline__content {
    flex: 1;
    padding-top: var(--space-1, 4px);
}
.aih-timeline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--aih-radius, 12px);
    background: var(--aih-primary-10);
    color: var(--aih-primary);
    margin-bottom: var(--space-3, 12px);
}
.aih-timeline__desc {
    font-size: 0.9375rem;
    color: var(--aih-text-muted);
    line-height: 1.6;
}

/* Timeline v2 layout - each item is a flex row */
.aih-timeline .aih-timeline__item {
    display: flex;
    gap: var(--space-5, 20px);
    padding-bottom: var(--space-8, 32px);
}
.aih-timeline .aih-timeline__item:last-child {
    padding-bottom: 0;
}
/* Override old timeline pseudo-elements for v2 items with markers */
.aih-timeline .aih-timeline__item:has(.aih-timeline__marker)::before {
    display: none;
}

/* If timeline has v2 items, hide the left line */
.aih-timeline:has(.aih-timeline__marker) {
    padding-left: 0;
}
.aih-timeline:has(.aih-timeline__marker)::before {
    display: none;
}

/* ============================================================
   FEATURE CARD EXTENSIONS
   ============================================================ */
.aih-feature-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-2, 8px);
    color: var(--aih-text);
}
.aih-feature-card__desc {
    font-size: 0.875rem;
    color: var(--aih-text-muted);
    line-height: 1.6;
}

/* ============================================================
   CTA BOX (about page CTA)
   ============================================================ */
.aih-cta-box {
    background: var(--aih-secondary, #1e293b);
    border-radius: var(--aih-radius-xl, 24px);
    padding: var(--space-12, 48px) var(--space-10, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8, 32px);
}
.aih-cta-box__content {
    flex: 1;
}
.aih-cta-box__title {
    font-family: var(--aih-font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-2, 8px);
}
.aih-cta-box__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}
.aih-cta-box__actions {
    display: flex;
    gap: var(--space-3, 12px);
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .aih-cta-box {
        flex-direction: column;
        text-align: center;
        padding: var(--space-8, 32px) var(--space-6, 24px);
    }
    .aih-cta-box__actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Outline button variant */
.aih-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: var(--aih-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--aih-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.aih-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 1024px) {
    .aih-space-detail { grid-template-columns: 1fr; }
    .aih-space-detail__sidebar { position: static; }
    .aih-legal-layout { grid-template-columns: 1fr; }
    .aih-legal-sidebar { position: static; }
    .aih-contact-grid { grid-template-columns: 1fr; }
    .aih-map-layout { grid-template-columns: 1fr; }
    .aih-map-sidebar { border-right: none; border-bottom: 1px solid var(--aih-border); }
    .aih-portal-stats { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .aih-page-hero { padding: 56px 0 36px; }
    .aih-page-hero__title { font-size: 1.5rem; }
    .aih-form-row { grid-template-columns: 1fr; }
    .aih-post-nav { grid-template-columns: 1fr; }
    .aih-page-hero__shape--1 { width: 200px; height: 200px; }
    .aih-page-hero__shape--2 { width: 140px; height: 140px; }
    .aih-timeline .aih-timeline__item {
        flex-direction: column;
        gap: var(--space-3, 12px);
    }
    .aih-timeline__marker {
        flex-direction: row;
        width: auto;
        gap: var(--space-3, 12px);
    }
    .aih-timeline__line {
        width: auto;
        height: 2px;
        flex: 1;
        min-height: 0;
        margin-top: 0;
    }
    .aih-space-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media print {
    .aih-header,
    .aih-footer,
    .aih-hamburger,
    .aih-mobile-nav,
    .aih-filters,
    .aih-map-container {
        display: none !important;
    }

    .aih-hero {
        min-height: auto;
        padding: 20px 0;
        background: none !important;
        color: #000 !important;
    }

    .aih-hero::before,
    .aih-hero::after,
    .hero-shape {
        display: none !important;
    }

    .aih-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ============================================================
   AD SLOT STYLES
   ============================================================ */

/* Generic ad slot wrapper */
.aih-ad-slot {
    text-align: center;
    overflow: hidden;
    position: relative;
}

.aih-ad-slot img {
    max-width: 100%;
    height: auto;
}

/* Header leaderboard */
.aih-ad-slot--header {
    padding: var(--space-2) 0;
    background: var(--aih-bg-alt, #f8fafc);
    border-bottom: 1px solid var(--aih-border);
}

[data-theme="dark"] .aih-ad-slot--header {
    background: rgba(255,255,255,0.02);
    border-bottom-color: rgba(255,255,255,0.06);
}

/* Billboard — full-width between sections */
.aih-ad-slot--billboard {
    padding: var(--space-6) 0;
    background: var(--aih-bg-alt, #f8fafc);
    border-top: 1px solid var(--aih-border);
    border-bottom: 1px solid var(--aih-border);
}

[data-theme="dark"] .aih-ad-slot--billboard {
    background: rgba(132,204,22,0.02);
    border-color: rgba(255,255,255,0.06);
}

.aih-ad-slot--billboard .aih-ad-slot__label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aih-text-muted);
    margin-bottom: var(--space-1);
}

/* In-grid native ad — card-style in the listing grid */
.aih-ad-card {
    background: var(--aih-bg-alt, #f8fafc);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--aih-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4);
    min-height: 320px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.aih-ad-card:hover {
    border-color: var(--aih-primary);
}

[data-theme="dark"] .aih-ad-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

.aih-ad-card__label {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aih-text-muted);
    background: var(--aih-bg);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--aih-border);
}

.aih-ad-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Sidebar ad slots */
.aih-ad-slot--sidebar {
    margin-top: var(--space-6);
}

.aih-ad-slot--sidebar .aih-ad-slot__label {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aih-text-muted);
    margin-bottom: var(--space-1);
    text-align: center;
}

/* Mobile-only banner */
.aih-ad-slot--mobile {
    display: none;
    padding: var(--space-4) 0;
    text-align: center;
}

@media (max-width: 768px) {
    .aih-ad-slot--mobile {
        display: block;
    }

    /* Hide desktop billboard on mobile */
    .aih-ad-slot--billboard {
        display: none;
    }
}

/* Skyscraper + half-page on small screens */
@media (max-width: 1024px) {
    .aih-ad-slot--sidebar-tall {
        display: none;
    }
}
