/*
Theme Name: Guervil 2D Immobilier
Theme URI: https://example.com/guervil2d
Author: REDPRINT SOLUTION
Author URI: https://example.com
Description: Thème WordPress simple pour annonces immobilières (CPT Property, filtres, galerie, WhatsApp). 
Version: 1.3.0
License: GPL-2.0-or-later
Text Domain: guervil2d
Tags: real-estate, listings, minimal, responsive
*/
:root{--g2d-primary:#002D62;--g2d-accent:#F9A826;--g2d-bg:#F8FAFC;--g2d-text:#0b1220}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Noto Sans',sans-serif;color:var(--g2d-text);background:var(--g2d-bg)}
a{color:var(--g2d-primary);text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:20px}
.header{background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:5}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px}
.logo{display:flex;align-items:center;gap:10px}
.custom-logo{max-height:50px;width:auto;display:block}
.logo-fallback{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:var(--g2d-primary)}
.logo-badge{width:34px;height:34px;border-radius:10px;background:var(--g2d-primary);display:grid;place-items:center;color:#fff;font-weight:800}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--g2d-primary);color:#fff;border-radius:10px;padding:10px 14px;font-weight:600;border:0;cursor:pointer}
.btn.secondary{background:var(--g2d-accent);color:#111827}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.card .card-thumb{position:relative}
.card img{width:100%;height:190px;object-fit:cover;background:#e5e7eb;display:block}
.card-body{padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.price{font-size:1.1rem;font-weight:800;color:var(--g2d-primary)}
.meta{display:flex;flex-wrap:wrap;gap:8px;color:#475569;font-size:.9rem}
.badge{background:#eef2ff;color:#3730a3;border-radius:999px;padding:4px 8px;font-weight:600;font-size:.8rem}
.filters{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;margin:16px 0}
input,select,textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}
footer{margin-top:30px;padding:24px 0;border-top:1px solid #e5e7eb;color:#64748b}
.hero{padding:26px 0 6px}
.hero h1{margin:0 0 8px;font-size:clamp(22px,2.6vw,36px);}
.notice{padding:10px 12px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:12px;color:#334155}
form.g2d-form{display:grid;gap:12px;max-width:720px}
form.g2d-form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.single-gallery img{width:100%;max-height:480px;object-fit:cover;border-radius:12px}
.single-meta{display:flex;gap:12px;flex-wrap:wrap;color:#475569}
.single-price{font-size:1.4rem;font-weight:800;color:var(--g2d-primary)}
.alert{padding:12px;border-radius:12px}
.alert.ok{background:#ecfdf5;border:1px solid #10b981;color:#065f46}
.alert.err{background:#fef2f2;border:1px solid #ef4444;color:#7f1d1d}
/* Floating WhatsApp */
.g2d-whatsapp-fab{position:fixed;right:18px;bottom:18px;z-index:50;display:inline-flex;align-items:center;gap:10px;background:var(--g2d-accent);color:#111827;border-radius:999px;padding:12px 14px;font-weight:700;box-shadow:0 10px 20px rgba(0,0,0,.12)}
.g2d-whatsapp-fab .icon{width:22px;height:22px;display:inline-block;background:#111827;border-radius:50%;position:relative}
.g2d-whatsapp-fab .icon:before{content:'';position:absolute;left:5px;top:5px;width:12px;height:12px;border:2px solid #fff;border-radius:50%}
/* Card WA badge */
.card .wa-badge{position:absolute;right:10px;top:10px;background:var(--g2d-accent);color:#111827;border-radius:999px;padding:8px 12px;font-weight:800;font-size:.9rem;box-shadow:0 10px 20px rgba(0,0,0,.12)}
.card .wa-badge .dot{display:inline-block;width:16px;height:16px;background:#111827;border-radius:50%;margin-right:6px;position:relative;top:2px}
.card .wa-badge .dot:after{content:'';position:absolute;left:4px;top:4px;width:8px;height:8px;border:2px solid #fff;border-radius:50%}
/* Single CTAs */
.single-ctas{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 18px}
.btn.whatsapp{background:var(--g2d-accent);color:#111827;border:1px solid rgba(0,0,0,.06)}
/* Gallery grid */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-top:10px}
.gallery-grid img,.gallery-grid video,.gallery-grid iframe{width:100%;height:180px;object-fit:cover;border-radius:10px;border:1px solid #e5e7eb;background:#e5e7eb}
@media(max-width:700px){.filters{grid-template-columns:1fr 1fr;grid-auto-rows:auto} form.g2d-form .row{grid-template-columns:1fr}}
