@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --accent: #c9a96e;
    --accent-soft: rgba(201, 169, 110, 0.12);
    --bg: #ffffff;
    --bg-alt: #f6f7f9;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.08), 0 6px 12px rgba(0,0,0,0.06);
    --radius: 8px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER STYLISH ── */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    padding: 6px 0;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 101;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.top-bar span, .top-bar a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar a:hover { color: var(--accent); }

header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229,231,235,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
}

header .logo::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: var(--border);
}

header .logo img { height: 40px; width: auto; }

header .logo h1,
header .logo .site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 24px;
}

header nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 18px;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: var(--radius);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header nav a:hover::after,
header nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

header nav a:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

header nav a.active {
    color: var(--primary);
    font-weight: 600;
}

header nav a.nav-cta {
    background: var(--accent);
    color: #fff;
    margin-left: 10px;
    padding: 8px 22px;
    font-weight: 600;
}

header nav a.nav-cta::after { display: none; }

header nav a.nav-cta:hover {
    background: #b8944f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201,169,110,0.35);
}

.mobile-nav-header { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    header { z-index: 100; }

    header .container { height: auto; padding: 12px 16px; }

    header .logo::after { display: none; }

    .hamburger {
        display: flex;
        z-index: 102;
    }

    header nav {
        display: flex !important;
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        right: auto;
        width: 300px;
        max-width: 85vw;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 30px 24px 40px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.08);
        z-index: 101;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        margin-left: 0;
        background: #ffffff !important;
    }

    header nav.open {
        left: 0;
        height: 560px;
        background: #fff !important;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    
    .mobile-nav-header img {
        height: 40px;
        border-radius: 4px;
    }
    
    .mobile-nav-header .site-title {
        font-family: 'Playfair Display', serif;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary);
    }

    .close-menu {
        margin-left: auto;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--text-muted);
        cursor: pointer;
        line-height: 1;
        padding: 0 8px;
        transition: color 0.2s;
    }
    
    .close-menu:hover {
        color: var(--primary);
    }

    header nav a {
        font-size: 1.15rem;
        padding: 16px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        color: var(--primary);
        font-weight: 500;
        transition: all 0.3s ease;
    }

    header nav a:last-child { border-bottom: none; }

    header nav a::after { display: none; }

    header nav a:hover, header nav a.active {
        color: var(--accent);
        background: transparent;
        padding-left: 10px;
        font-weight: 600;
    }

    header nav a.nav-cta {
        margin-top: 24px;
        margin-left: 0;
        text-align: center;
        border: none;
        padding: 14px 20px;
        background: var(--accent);
        color: #fff;
        border-radius: var(--radius);
        width: 100%;
    }

    header nav a.nav-cta:hover {
        padding-left: 20px;
        background: #b8944f;
        color: #fff;
    }
}

/* ── HERO ── */
.hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(165deg, #f8f9fb 0%, #eef0f4 50%, #f8f9fb 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(44,62,80,0.04) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    line-height: 1.15;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.search-container {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    gap: 0;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.search-box select,
.search-box input {
    border: none;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}

.search-box select {
    min-width: 150px;
    border-right: 1px solid var(--border);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.search-box input { flex: 1; min-width: 0; }

.search-box input:focus { outline: none; }

.search-box .btn-search {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.search-box .btn-search:hover { background: #b8944f; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44,62,80,0.2);
}

.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #b8944f; box-shadow: 0 4px 12px rgba(201,169,110,0.3); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--bg-alt); box-shadow: none; transform: none; }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-family: inherit;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* ── SECTION TITLES ── */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ── HOME LISTINGS ── */
.home-listings {
    padding: 64px 0;
}

.listings-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 8px 24px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tab-btn:hover { border-color: var(--accent); color: var(--accent); }

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── GRID / CARDS ── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-img {
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

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

.card-img .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    backdrop-filter: blur(4px);
}

.card-body { padding: 16px; }

.card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.card-body .location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-body .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.card-body .price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}

.card-body .card-arrow {
    font-size: 1.1rem;
    color: var(--text-light);
    transition: transform 0.2s ease, color 0.2s ease;
}
.card:hover .card-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 1rem; }

/* ── FEATURES ── */
.home-features {
    padding: 64px 0;
    background: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
}

.feature-card:hover { box-shadow: var(--shadow-hover); }

.feature-card .icon { font-size: 2rem; margin-bottom: 14px; }

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

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

/* ── DETAIL PAGE ── */
.detail-page { padding: 40px 0; }

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.detail-header { margin-bottom: 28px; }

.detail-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.detail-header .location {
    color: var(--text-muted);
    font-size: 1rem;
}

.detail-header .cat-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

@media (max-width: 992px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.detail-gallery .main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.detail-thumbs img {
    width: 90px;
    height: 62px;
    object-fit: cover;
    border-radius: var(--radius);
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s;
}

.detail-thumbs img:hover,
.detail-thumbs img.active { opacity: 1; }

.detail-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
}

.sidebar-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.sidebar-card .price-big {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.sidebar-card .price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.sidebar-card .btn-whatsapp { width: 100%; margin-bottom: 10px; }
.sidebar-card .btn-outline { width: 100%; }

.sidebar-meta {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.sidebar-meta .meta-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.88rem;
}

.sidebar-meta .meta-row span:first-child { color: var(--text-muted); }

.detail-description {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.video-container video {
    width: 100%;
    max-height: 480px;
    border-radius: var(--radius-lg);
    background: #000;
}

/* ── LISTING PAGE ── */
.page-header {
    background: var(--bg-alt);
    padding: 56px 0 48px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.page-header p { color: var(--text-muted); font-size: 1rem; }

.page-search {
    max-width: 480px;
    margin: 24px auto 0;
    display: flex;
    gap: 10px;
}

.page-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    transition: border 0.2s;
}

.page-search input:focus { outline: none; border-color: var(--accent); }

.listings-section { padding: 48 0; }

/* ── CONTACT ── */
.contact-page { padding: 48px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: flex; flex-direction: column; gap: 20px; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-item p, .contact-item a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover { color: var(--accent); }

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-form h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.88rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 576px) { .form-row { grid-template-columns: 1fr; } }

.contact-map {
    margin-top: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.contact-map iframe { width: 100%; height: 360px; display: block; }

/* ── ALERTS ── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.88rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── FOOTER STYLISH ── */
footer {
    background: linear-gradient(165deg, #1a252f 0%, #2c3e50 50%, #1a252f 100%);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 0;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .footer-logo img { height: 36px; width: auto; }

.footer-brand .footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.88rem;
    opacity: 0.55;
    line-height: 1.8;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: var(--accent);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 5px 0;
    transition: all 0.25s ease;
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-newsletter {
    margin-top: 4px;
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-newsletter .nl-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    font-size: 0.85rem;
    font-family: inherit;
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.3); }

.footer-newsletter button {
    padding: 10px 18px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.footer-newsletter button:hover { background: #b8944f; }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    opacity: 0.4;
}

@media (max-width: 576px) {
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 576px) {
    footer { padding: 36px 0 0; }
    .footer-grid { gap: 24px; }
    .footer-col a { font-size: 0.85rem; }
    .footer-newsletter .nl-form { flex-direction: column; }
    .footer-newsletter input { width: 100%; }
    .footer-newsletter button { width: 100%; }
}

/* ── ADMIN ── */
.admin-body { background: var(--bg-alt); }

.login-box {
    max-width: 400px;
    margin: 100px auto;
    background: var(--bg);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.login-box h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 28px;
    font-family: 'Playfair Display', serif;
}

/* ── LOGIN PAGE MODERNE ── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a252f 0%, #2c3e50 50%, #1a252f 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px 40px 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.15);
    animation: loginFadeIn 0.6s ease;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card .login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    text-decoration: none;
}

.login-card .login-logo img {
    height: 48px;
    width: auto;
}

.login-card .login-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.login-card .login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.login-card .login-subtitle span {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-card .form-group {
    margin-bottom: 22px;
}

.login-card .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.login-card .form-group label i {
    color: var(--accent);
    font-size: 0.9rem;
    width: 18px;
}

.login-card .form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-alt);
    transition: all 0.25s ease;
    color: var(--text);
}

.login-card .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: var(--bg);
}

.login-card .form-group input::placeholder {
    color: var(--text-light);
}

.login-card .btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.login-card .btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44,62,80,0.25);
}

.login-card .btn-login:active {
    transform: translateY(0);
}

.login-card .alert {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-card .alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.login-card .login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-card .login-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.login-card .login-footer a:hover {
    color: var(--accent);
}

@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px 28px;
        border-radius: 16px;
    }
    .login-card .login-logo span {
        font-size: 1.2rem;
    }
}

.admin-header {
    background: var(--primary);
    padding: 14px 0;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 { color: #fff; font-size: 1.1rem; font-weight: 600; }

.admin-header nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-left: 16px;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.admin-header nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.admin-content { padding: 32px 0; }

.admin-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
    background: var(--bg-alt);
    color: var(--text);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.admin-table tr:hover { background: var(--bg-alt); }

.admin-table img { width: 52px; height: 36px; object-fit: cover; border-radius: 4px; }

.stats { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; }

.stat {
    flex: 1;
    min-width: 140px;
    background: var(--primary);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.stat .num { font-size: 2rem; font-weight: 800; }
.stat .label { margin-top: 4px; opacity: 0.75; font-size: 0.88rem; }

.actions { display: flex; gap: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    header .container { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    header .logo h1 { font-size: 1.1rem; }
    header nav a { padding: 6px 10px; font-size: 0.8rem;   padding: 15px;}

    .hero { padding: 60px 0 48px; }
    .hero h2 { font-size: 2rem; }
    .search-box { flex-wrap: wrap; }
    .search-box select { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .search-box .btn-search { width: 100%; }

    .detail-gallery .main-img { height: 240px; }
    .grid { grid-template-columns: 1fr; }
    .page-header { padding: 40px 0 32px; }
}

@media (max-width: 576px) {
    .container { padding: 0 16px; }
    .hero h2 { font-size: 1.6rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    opacity: 0;
}

.animate.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate.fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate.fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate.fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.animate.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.animate.slide-up {
    animation: slideUp 0.7s ease forwards;
}

.animate.delay-1 { animation-delay: 0.1s; }
.animate.delay-2 { animation-delay: 0.2s; }
.animate.delay-3 { animation-delay: 0.3s; }
.animate.delay-4 { animation-delay: 0.4s; }
.animate.delay-5 { animation-delay: 0.5s; }
.animate.delay-6 { animation-delay: 0.6s; }
.animate.delay-7 { animation-delay: 0.7s; }
.animate.delay-8 { animation-delay: 0.8s; }

.hero h2 { animation: fadeInDown 0.8s ease forwards; }
.hero p { animation: fadeIn 0.8s ease 0.2s forwards; opacity: 0; }
.search-container { animation: fadeInUp 0.8s ease 0.3s forwards; opacity: 0; }

.card .card-img img {
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.08);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-accent:active {
    animation: pulse 0.2s ease;
}

/* Stagger grid items */
.grid .card:nth-child(1) { animation: slideUp 0.5s ease 0.05s forwards; opacity: 0; }
.grid .card:nth-child(2) { animation: slideUp 0.5s ease 0.1s forwards; opacity: 0; }
.grid .card:nth-child(3) { animation: slideUp 0.5s ease 0.15s forwards; opacity: 0; }
.grid .card:nth-child(4) { animation: slideUp 0.5s ease 0.2s forwards; opacity: 0; }
.grid .card:nth-child(5) { animation: slideUp 0.5s ease 0.25s forwards; opacity: 0; }
.grid .card:nth-child(6) { animation: slideUp 0.5s ease 0.3s forwards; opacity: 0; }
.grid .card:nth-child(7) { animation: slideUp 0.5s ease 0.35s forwards; opacity: 0; }
.grid .card:nth-child(8) { animation: slideUp 0.5s ease 0.4s forwards; opacity: 0; }

/* ── LIGHTBOX GALERIE ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
    cursor: pointer;
}
.lightbox-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    object-fit: contain;
    cursor: default;
}
.lightbox-overlay .lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-family: inherit;
}
.lightbox-overlay .lightbox-close:hover { opacity: 1; }

/* Gallery thumbs — curseur cliquable */
.detail-thumbs img {
    cursor: pointer;
}
.detail-gallery .main-img {
    cursor: pointer;
}

/* ── CHAT OVERLAY ── */
.chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.chat-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── CHATBOX ── */
.chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.chat-btn .pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid #25D366;
    animation: chatPulse 2s infinite;
    pointer-events: none;
}
@keyframes chatPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}
.chat-btn .fa-close { display: none; }
.chat-btn.open .fa-comment { display: none; }
.chat-btn.open .fa-close { display: inline; }

.chatbox {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 999;
    width: 360px;
    max-height: 500px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.chatbox.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}
.chatbox-header {
    background: var(--primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbox-header .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}
.chatbox-header .info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.chatbox-header .info span { font-size: 0.75rem; opacity: 0.8; }
.chatbox-header .info span.online { color: #25D366; }
.chatbox-header .close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: auto;
    line-height: 1;
    padding: 0 2px;
}
.chatbox-header .close-chat:hover { opacity: 1; }

.chatbox-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
}
.chatbox-body::-webkit-scrollbar { width: 4px; }
.chatbox-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.45;
    animation: msgIn 0.3s ease;
    white-space: pre-wrap;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.msg.bot {
    align-self: flex-start;
    background: #fff;
    color: var(--text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.msg.user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg.bot .typing {
    display: inline-flex;
    gap: 4px;
}
.msg.bot .typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: dotBounce 1.4s infinite;
}
.msg.bot .typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.bot .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chatbox-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: #fff;
}
.chatbox-footer input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: var(--bg-alt);
    padding: 10px 14px;
    border-radius: 24px;
    font-family: inherit;
}
.chatbox-footer button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.chatbox-footer button:hover { background: var(--accent); }

/* Links dans les messages du chatbot */
.msg.bot a.chat-link,
.msg.bot a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px dashed var(--accent);
    transition: all 0.2s;
}
.msg.bot a:hover {
    color: #fff;
    background: var(--accent);
    border-radius: 4px;
    padding: 1px 4px;
    border-bottom: none;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}
.quick-replies button {
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.quick-replies button:hover {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 480px) {
    .chatbox {
        right: 12px;
        bottom: 90px;
        width: calc(100% - 24px);
        max-height: 70vh;
    }
    .chat-btn {
        bottom: 16px;
        right: 16px;
    }
}

/* ═══════════════════════════════════════════════
   ADMIN: PAGINATION
   ═══════════════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 20px 0 8px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.pagination a:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text);
}
.pagination .active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   ADMIN: TABS (form sections)
   ═══════════════════════════════════════════════ */
.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}
.admin-tabs .tab-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.admin-tabs .tab-btn:hover {
    color: var(--text);
    background: var(--accent-soft);
    border-radius: 8px 8px 0 0;
}
.admin-tabs .tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══════════════════════════════════════════════
   ADMIN: IMAGE / VIDEO SOURCE TOGGLE (URL vs Upload)
   ═══════════════════════════════════════════════ */
.source-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 3px;
    width: fit-content;
}
.source-toggle label {
    padding: 6px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    user-select: none;
}
.source-toggle input[type="radio"] { display: none; }
.source-toggle input[type="radio"]:checked + label {
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.source-url,
.source-file { display: none; }
.source-url.active,
.source-file.active { display: block; }

/* ═══════════════════════════════════════════════
   ADMIN: FORM ENHANCEMENTS
   ═══════════════════════════════════════════════ */
.form-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Current media preview */
.media-preview {
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.media-preview img {
    max-width: 120px;
    max-height: 80px;
    border-radius: 6px;
    object-fit: cover;
}
.media-preview .preview-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.media-preview .preview-info strong {
    display: block;
    color: var(--text);
    font-size: 0.88rem;
    margin-bottom: 2px;
}

/* Badges for admin tables */
.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-residence { background: #e3f2fd; color: #1565c0; }
.badge-maison { background: #e8f5e9; color: #2e7d32; }

/* ── Admin responsive ── */
@media (max-width: 768px) {
    .admin-content .form-row {
        grid-template-columns: 1fr !important;
    }
    .admin-content [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .admin-header .container {
        flex-direction: column;
        gap: 10px;
    }
    .admin-header nav a {
        margin-left: 0;
        margin: 0 4px;
    }
    .media-preview { flex-direction: column; align-items: flex-start; }
}

/* ── Page search (résidences / maisons) ── */
.page-search {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.page-search input {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}
.page-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.page-search .btn { flex-shrink: 0; padding: 12px 24px; }
@media (max-width: 576px) {
    .page-search { flex-direction: column; }
    .page-search input { width: 100%; min-width: 0; }
    .page-search .btn { width: 100%; }
}

/* ── About page: valeurs ── */
.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 576px) {
    .about-values { grid-template-columns: 1fr; }
}

/* ── Admin: nav scrollable sur mobile ── */
@media (max-width: 576px) {
    .admin-header nav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        padding-bottom: 4px;
    }
    .admin-header nav::-webkit-scrollbar { display: none; }
    .admin-header nav a { display: inline-block; }
}

/* ── Extra small screens (≤ 400px) ── */
@media (max-width: 400px) {
    .container { padding: 0 12px; }
    .hero { padding: 40px 0 32px; }
    .hero h2 { font-size: 1.4rem; }
    .hero p { font-size: 0.95rem; }
    .admin-content { padding: 16px 0; }
    .admin-card { padding: 16px; }
    .admin-card h3 { font-size: 1.1rem; }
    .admin-table th,
    .admin-table td { padding: 8px 10px; font-size: 0.78rem; }
    .admin-table img { width: 36px; height: 26px; }
    .login-card { padding: 28px 20px 24px; }
    .login-card .login-logo span { font-size: 1rem; }
    .login-card .login-logo img { height: 36px; }
    .login-card .form-group input { padding: 11px 14px; font-size: 0.88rem; }
    .stats .stat { min-width: 100px; padding: 16px; }
    .stats .stat .num { font-size: 1.5rem; }
    .grid .card:nth-child(n) { animation: none; opacity: 1; }
    .detail-gallery .main-img { height: 180px; }
    .chatbox { right: 8px; bottom: 85px; width: calc(100% - 16px); }
    .chat-btn { width: 50px; height: 50px; font-size: 22px; bottom: 16px; right: 16px; }
    .footer-grid { gap: 16px; }
    footer { padding: 28px 0 0; }
    .footer-col h4 { font-size: 0.7rem; }
    .footer-brand p { font-size: 0.8rem; }
    .footer-bottom { font-size: 0.75rem; }
    .admin-tabs .tab-btn { padding: 8px 12px; font-size: 0.78rem; }
    .source-toggle label { padding: 5px 12px; font-size: 0.75rem; }
    .media-preview { padding: 10px; }
    .media-preview img { max-width: 80px; max-height: 60px; }
}
