/*
Theme Name: Pages Vertes DZ
Theme URI: https://example.com
Author: Nawat Studio
Author URI: https://example.com
Description: الدليل الشامل للجزائر — أرقام هاتف، عناوين، استمارات ومواقع رسمية
Version: 1.0.0
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pages-vertes
*/

/* ===== VARIABLES ===== */
:root {
    --p:        #0d4f3c;
    --p-mid:    #1a6b52;
    --p-light:  #e3f0eb;
    --p-pale:   #f2f8f5;
    --p-dark:   #072d22;
    --acc:      #b87333;
    --acc-light:#faf0e6;
    --border:   #cce0d8;
    --gray:     #6b7a72;
    --dark:     #0a1f18;
    --white:    #ffffff;
    --shadow:   0 4px 24px rgba(13,79,60,0.12);
    --red:      #c0392b;
    --red-light:#fdf0ee;
}

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

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: #f2f8f5;
    color: var(--dark);
    direction: rtl;
    font-size: 16px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== TOPBAR ===== */
.topbar {
    background: var(--p-dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.73rem;
    padding: 5px 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: var(--acc); margin-right: 12px; }

/* ===== NAVBAR ===== */
.site-nav {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(13,79,60,0.08);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--p-dark), var(--p-mid));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 3px 10px rgba(13,79,60,0.25);
    flex-shrink: 0;
}

.logo-ar { font-weight: 900; font-size: 1.05rem; color: var(--p-dark); line-height: 1.1; }
.logo-fr { font-size: 0.65rem; color: var(--gray); direction: ltr; letter-spacing: 0.5px; }

.nav-links {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.88rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover { color: var(--p); }

.btn-add {
    background: var(--p);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 9px;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(13,79,60,0.2);
    transition: background 0.2s, transform 0.2s !important;
}

.btn-add:hover {
    background: var(--p-mid) !important;
    transform: translateY(-1px);
}

.lang-switch {
    display: flex;
    background: var(--p-pale);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
}

.lang-switch span {
    padding: 5px 11px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.2s;
}

.lang-switch span.active {
    background: var(--p);
    color: white;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 9px 2rem;
    font-size: 0.77rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--p); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: 0.4; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(150deg, var(--p-dark) 0%, var(--p) 60%, var(--p-mid) 100%);
    padding: 4.5rem 2rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(184,115,51,0.12) 0%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.88);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 1.3rem;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.9rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.hero h1 span { color: var(--acc); }

.hero-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    margin-bottom: 2.2rem;
    direction: ltr;
}

/* Search */
.search-wrap { max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }

.search-box {
    display: flex;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none; outline: none;
    padding: 1rem 1.2rem;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    direction: rtl;
}

.search-box input::placeholder { color: #bbb; }

.search-divider { width: 1px; background: var(--border); margin: 10px 0; }

.search-select {
    border: none; outline: none;
    padding: 0 1rem;
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    color: var(--gray);
    background: #f8faf9;
    direction: rtl;
    min-width: 140px;
    cursor: pointer;
}

.search-btn {
    background: var(--p);
    border: none; color: var(--white);
    padding: 0 1.8rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 700; font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex; align-items: center; gap: 6px;
}

.search-btn:hover { background: var(--p-mid); }

.quick-tags {
    margin-top: 0.9rem;
    display: flex; gap: 7px;
    justify-content: center; flex-wrap: wrap;
}

.quick-tags a {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.82);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s;
}

.quick-tags a:hover { background: rgba(255,255,255,0.2); color: white; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.8rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative; z-index: 2;
}

.hstat { text-align: center; }
.hstat-num { font-size: 1.7rem; font-weight: 900; color: var(--acc); }
.hstat-label { font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ===== SECTIONS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.sec-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-title::before {
    content: '';
    display: block;
    width: 4px; height: 22px;
    background: var(--acc);
    border-radius: 3px;
}

.see-all {
    color: var(--p);
    font-size: 0.82rem;
    font-weight: 700;
    border: 1.5px solid var(--p);
    padding: 5px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.see-all:hover { background: var(--p); color: white; }

/* ===== CATEGORY GRID ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.9rem;
}

.cat-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 1.3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    color: var(--dark);
    display: flex; flex-direction: column;
    align-items: center; gap: 7px;
    box-shadow: 0 2px 8px rgba(13,79,60,0.05);
}

.cat-card:hover {
    background: var(--p);
    border-color: var(--p);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(13,79,60,0.2);
}

.cat-icon { font-size: 1.9rem; line-height: 1; }
.cat-name { font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.cat-count { font-size: 0.7rem; opacity: 0.55; }

/* ===== LISTING CARDS ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.1rem;
}

.lcard {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    position: relative; overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(13,79,60,0.05);
}

.lcard:hover {
    border-color: var(--p-mid);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.lcard-stripe {
    position: absolute;
    top: 0; right: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--p), var(--acc));
    border-radius: 0 14px 14px 0;
}

.lcard-top {
    display: flex; align-items: flex-start;
    gap: 11px; margin-bottom: 10px;
}

.lcard-avatar {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--p-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}

.lcard-name { font-weight: 700; font-size: 0.92rem; color: var(--dark); margin-bottom: 4px; line-height: 1.3; }

.lcard-cat {
    font-size: 0.72rem; color: var(--p);
    font-weight: 700; background: var(--p-light);
    display: inline-block;
    padding: 2px 8px; border-radius: 5px;
}

.contact-row {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 8px;
    margin-top: 7px; font-size: 0.85rem;
    font-weight: 600; direction: ltr;
    background: var(--p-pale); border: 1px solid var(--border);
    color: var(--dark); letter-spacing: 0.3px;
}

.contact-row.address {
    direction: rtl; font-size: 0.78rem;
    font-weight: 500; color: var(--gray);
    background: transparent; border: none;
    padding: 4px 0 0;
}

/* ===== DETAIL PAGE ===== */
.detail-wrap {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 1.5rem;
    align-items: start;
}

.main-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-header {
    background: linear-gradient(135deg, var(--p-dark), var(--p));
    padding: 2rem;
    display: flex; align-items: flex-start;
    gap: 1.2rem; position: relative;
}

.entry-avatar {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.1rem; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
}

.entry-cat {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    font-size: 0.73rem; font-weight: 700;
    padding: 3px 10px; border-radius: 6px;
    margin-bottom: 5px;
}

.entry-title { color: white; font-size: 1.35rem; font-weight: 900; margin-bottom: 5px; line-height: 1.2; }
.entry-wilaya { color: rgba(255,255,255,0.65); font-size: 0.82rem; display: flex; align-items: center; gap: 5px; }

.verified-badge {
    position: absolute; top: 1.2rem; left: 1.2rem;
    background: var(--acc); color: var(--p-dark);
    font-size: 0.7rem; font-weight: 800;
    padding: 4px 10px; border-radius: 20px;
}

.card-body { padding: 1.8rem; }

.contact-section { margin-bottom: 1.5rem; }

.contact-section h3 {
    font-size: 0.76rem; font-weight: 700;
    color: var(--gray); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 0.8rem;
    display: flex; align-items: center; gap: 6px;
}

.contact-section h3::after {
    content: ''; flex: 1; height: 1px;
    background: var(--border);
}

.contact-item {
    display: flex; align-items: center;
    justify-content: space-between;
    background: var(--p-pale); border: 1.5px solid var(--border);
    border-radius: 11px; padding: 11px 14px;
    margin-bottom: 8px; direction: ltr; gap: 10px;
}

.contact-item-left { display: flex; align-items: center; gap: 10px; }

.contact-icon {
    width: 36px; height: 36px;
    background: var(--p-light); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}

.contact-label { font-size: 0.67rem; color: var(--gray); direction: rtl; margin-bottom: 1px; }
.contact-value { font-size: 0.93rem; font-weight: 700; color: var(--dark); letter-spacing: 0.4px; }

.copy-btn {
    background: var(--p); color: white; border: none;
    padding: 7px 14px; border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap; flex-shrink: 0;
}

.copy-btn:hover { background: var(--p-mid); transform: scale(1.04); }
.copy-btn.copied { background: #27ae60; }

.map-box {
    border-radius: 11px; overflow: hidden;
    border: 1.5px solid var(--border);
    height: 175px;
    background: linear-gradient(135deg, var(--p-light), #c8e6da);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px; cursor: pointer;
    transition: border-color 0.2s; margin-top: 8px;
}

.map-box:hover { border-color: var(--p); }
.map-box .map-icon { font-size: 2.4rem; }
.map-box span { font-size: 0.82rem; color: var(--p); font-weight: 700; }

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.hour-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.79rem; padding: 6px 10px;
    border-radius: 7px;
    background: var(--p-pale); border: 1px solid var(--border);
}

.hour-day { color: var(--gray); font-weight: 600; }
.hour-time { color: var(--dark); font-weight: 700; font-size: 0.74rem; direction: ltr; }
.hour-closed { color: var(--red); font-weight: 700; font-size: 0.74rem; }

.meta-row {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 9px 0; border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
}

.meta-row:last-child { border-bottom: none; }
.meta-key { color: var(--gray); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.meta-val { color: var(--dark); font-weight: 700; }

.report-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: 1.5px solid #e0e0e0;
    border-radius: 8px; padding: 8px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.78rem; color: var(--gray);
    cursor: pointer; transition: all 0.2s; margin-top: 1rem;
}

.report-btn:hover { border-color: var(--red); color: var(--red); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 1.2rem; }

.side-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px; padding: 1.3rem;
    box-shadow: 0 2px 8px rgba(13,79,60,0.05);
}

.side-title {
    font-size: 0.85rem; font-weight: 800;
    color: var(--dark); margin-bottom: 1rem;
    display: flex; align-items: center; gap: 7px;
}

.rating-stars {
    display: flex; gap: 5px; margin-bottom: 8px;
    font-size: 1.4rem; justify-content: center;
}

.rating-stars span { cursor: pointer; transition: transform 0.15s; }
.rating-stars span:hover { transform: scale(1.25); }
.rating-question { text-align: center; font-size: 0.82rem; color: var(--gray); margin-bottom: 12px; }

.rating-btns { display: flex; gap: 8px; }

.rbtn {
    flex: 1; border: 1.5px solid var(--border);
    background: var(--p-pale); border-radius: 8px;
    padding: 8px; font-family: 'Cairo', sans-serif;
    font-size: 0.75rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    color: var(--dark); text-align: center;
}

.rbtn.yes:hover { background: #27ae60; color: white; border-color: #27ae60; }
.rbtn.no:hover { background: var(--red); color: white; border-color: var(--red); }

.similar-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid var(--border);
    transition: all 0.2s; color: var(--dark);
}

.similar-item:last-child { border-bottom: none; padding-bottom: 0; }
.similar-item:hover { color: var(--p); }

.sim-icon {
    width: 36px; height: 36px;
    background: var(--p-light); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}

.sim-name { font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.sim-phone { font-size: 0.72rem; color: var(--gray); direction: ltr; }

.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.share-btn {
    flex: 1; min-width: 70px; border: none;
    border-radius: 9px; padding: 9px 6px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
}

.share-btn:hover { transform: translateY(-2px); }
.share-btn.wa { background: #e8f8ef; color: #25d366; border: 1.5px solid #b8efd0; }
.share-btn.fb { background: #e8eef8; color: #1877f2; border: 1.5px solid #b8cef0; }
.share-btn.cp { background: var(--p-pale); color: var(--p); border: 1.5px solid var(--border); }
.share-btn .si { font-size: 1.2rem; }

/* ===== SUBMIT FORM ===== */
.submit-hero {
    background: linear-gradient(135deg, var(--p-dark), var(--p));
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.submit-hero h1 { font-size: 1.9rem; font-weight: 900; color: white; margin-bottom: 6px; }
.submit-hero p { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

.submit-wrap {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 2rem 3rem;
}

.form-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-section-title {
    font-size: 0.78rem; font-weight: 700;
    color: var(--gray); text-transform: uppercase;
    letter-spacing: 0.5px; margin: 1.5rem 0 0.8rem;
    display: flex; align-items: center; gap: 6px;
}

.form-section-title::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.form-section-title:first-child { margin-top: 0; }

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block; font-size: 0.82rem;
    font-weight: 700; color: var(--dark);
    margin-bottom: 5px;
}

.form-group label .req { color: var(--red); margin-right: 3px; }

.form-control {
    width: 100%; padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: 9px; outline: none;
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem; color: var(--dark);
    background: var(--p-pale);
    transition: border-color 0.2s;
    direction: rtl;
}

.form-control:focus { border-color: var(--p); background: white; }

.form-control::placeholder { color: #aaa; }

select.form-control { cursor: pointer; }

textarea.form-control { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.submit-btn {
    width: 100%;
    background: var(--p);
    color: white; border: none;
    padding: 13px; border-radius: 11px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem; font-weight: 800;
    cursor: pointer; margin-top: 1.5rem;
    transition: all 0.2s;
    display: flex; align-items: center;
    justify-content: center; gap: 8px;
}

.submit-btn:hover { background: var(--p-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,79,60,0.2); }

.form-notice {
    background: var(--acc-light);
    border: 1.5px solid #e8c88a;
    border-radius: 10px; padding: 12px 14px;
    font-size: 0.78rem; color: #7a5c1e;
    margin-bottom: 1.5rem;
    display: flex; align-items: flex-start; gap: 8px;
}

.success-msg {
    background: #e8f8ef; border: 1.5px solid #a8e6c0;
    border-radius: 12px; padding: 1.5rem;
    text-align: center; display: none;
}

.success-msg .sicon { font-size: 2.5rem; margin-bottom: 8px; }
.success-msg h3 { color: #1a7a3c; font-size: 1.1rem; font-weight: 800; }
.success-msg p { color: var(--gray); font-size: 0.82rem; margin-top: 4px; }

/* ===== EMERGENCY PAGE ===== */
.hero-urgence {
    background: linear-gradient(135deg, #7b0000, var(--red));
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative; overflow: hidden;
}

.hero-urgence::before {
    content: '🚨'; position: absolute;
    font-size: 12rem; opacity: 0.05;
    top: -20px; left: 50%;
    transform: translateX(-50%);
}

.hero-urgence h1 { font-size: clamp(1.6rem,4vw,2.5rem); font-weight: 900; color: white; margin-bottom: 5px; }
.hero-urgence p { color: rgba(255,255,255,0.65); font-size: 0.85rem; direction: ltr; }

.big-numbers {
    max-width: 900px;
    margin: -1.5rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    position: relative; z-index: 2;
}

.big-num-card {
    background: white; border-radius: 16px;
    padding: 1.5rem 1rem; text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 2px solid transparent; transition: all 0.2s; cursor: pointer;
}

.big-num-card:hover { transform: translateY(-4px); }
.big-num-card.red { border-color: var(--red); }
.big-num-card.blue { border-color: #2980b9; }
.big-num-card.orange { border-color: #e67e22; }
.big-num-card.green { border-color: var(--p); }

.big-num-icon { font-size: 2.4rem; margin-bottom: 7px; }
.big-num-label { font-size: 0.77rem; color: var(--gray); font-weight: 600; margin-bottom: 4px; }
.big-num-number { font-size: 2.1rem; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.big-num-card.red .big-num-number { color: var(--red); }
.big-num-card.blue .big-num-number { color: #2980b9; }
.big-num-card.orange .big-num-number { color: #e67e22; }
.big-num-card.green .big-num-number { color: var(--p); }

.big-copy-btn {
    background: none; border: 1.5px solid;
    border-radius: 7px; padding: 5px 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.72rem; font-weight: 700; cursor: pointer;
    transition: opacity 0.2s;
}

.big-copy-btn:hover { opacity: 0.7; }
.big-num-card.red .big-copy-btn { color: var(--red); border-color: var(--red); }
.big-num-card.blue .big-copy-btn { color: #2980b9; border-color: #2980b9; }
.big-num-card.orange .big-copy-btn { color: #e67e22; border-color: #e67e22; }
.big-num-card.green .big-copy-btn { color: var(--p); border-color: var(--p); }

.urgence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.9rem; margin-bottom: 2.5rem;
}

.urg-card {
    background: white; border: 1.5px solid var(--border);
    border-radius: 13px; padding: 1rem 1.1rem;
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.urg-card:hover { box-shadow: var(--shadow); }
.urg-card.danger { border-right: 4px solid var(--red); }
.urg-card.warning { border-right: 4px solid #e67e22; }
.urg-card.info { border-right: 4px solid #2980b9; }
.urg-card.success { border-right: 4px solid var(--p); }

.urg-left { display: flex; align-items: center; gap: 10px; }

.urg-icon {
    width: 40px; height: 40px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}

.urg-card.danger .urg-icon { background: var(--red-light); }
.urg-card.warning .urg-icon { background: #fef3e8; }
.urg-card.info .urg-icon { background: #eaf3fc; }
.urg-card.success .urg-icon { background: var(--p-light); }

.urg-name { font-size: 0.85rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.urg-desc { font-size: 0.68rem; color: var(--gray); }

.urg-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.urg-num { font-size: 1.25rem; font-weight: 900; direction: ltr; }
.urg-card.danger .urg-num { color: var(--red); }
.urg-card.warning .urg-num { color: #e67e22; }
.urg-card.info .urg-num { color: #2980b9; }
.urg-card.success .urg-num { color: var(--p); }

.copy-sm {
    background: var(--p-pale); border: 1px solid var(--border);
    border-radius: 6px; padding: 3px 9px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.68rem; font-weight: 700;
    cursor: pointer; color: var(--p); transition: all 0.2s;
}

.copy-sm:hover { background: var(--p); color: white; }
.copy-sm.copied { background: #27ae60; color: white; border-color: #27ae60; }

/* ===== ADD BANNER ===== */
.add-banner {
    background: linear-gradient(135deg, var(--p-dark), var(--p));
    border-radius: 18px; padding: 2.2rem 2rem;
    display: flex; align-items: center;
    justify-content: space-between; gap: 2rem;
    position: relative; overflow: hidden;
}

.add-banner::before {
    content: '📋'; position: absolute;
    left: 1.5rem; bottom: -10px;
    font-size: 6rem; opacity: 0.07;
}

.add-banner h3 { font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: 4px; }
.add-banner h3 span { color: var(--acc); }
.add-banner p { color: rgba(255,255,255,0.65); font-size: 0.82rem; }

.btn-white {
    background: white; color: var(--p-dark); border: none;
    padding: 11px 24px; border-radius: 9px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800; font-size: 0.9rem;
    cursor: pointer; white-space: nowrap;
    transition: all 0.2s; flex-shrink: 0;
}

.btn-white:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

/* ===== WILAYAS ===== */
.wilayas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 0.6rem;
}

.w-chip {
    background: white; border: 1.5px solid var(--border);
    border-radius: 9px; padding: 7px 10px;
    text-align: center; font-size: 0.78rem;
    font-weight: 600; color: var(--dark);
    cursor: pointer; transition: all 0.2s; display: block;
}

.w-chip:hover { background: var(--p); color: white; border-color: var(--p); }

.w-num {
    display: block; font-size: 0.62rem;
    color: var(--gray); font-weight: 400; margin-bottom: 1px;
}

.w-chip:hover .w-num { color: rgba(255,255,255,0.65); }

/* ===== ALERTS ===== */
.alert-box {
    background: #fdf0ee; border: 1.5px solid #f5c6c1;
    border-radius: 12px; padding: 1.1rem 1.3rem;
    display: flex; gap: 12px; align-items: flex-start;
    margin-bottom: 1.8rem;
}

.alert-box .ai { font-size: 1.4rem; flex-shrink: 0; }
.alert-box p { font-size: 0.8rem; color: #7b0000; font-weight: 600; line-height: 1.6; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--p-dark);
    color: rgba(255,255,255,0.6);
    padding: 2.5rem 2rem 1.5rem;
    margin-top: 1rem;
}

.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem; margin-bottom: 2rem;
}

.footer-brand .logo-ar { color: white; }
.footer-brand p { font-size: 0.8rem; margin-top: 8px; line-height: 1.6; }

.footer-col h4 { color: var(--acc); font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 0.78rem; margin-bottom: 6px; transition: color 0.2s; }
.footer-col a:hover { color: white; }

.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1rem; font-size: 0.72rem;
    display: flex; justify-content: space-between; align-items: center;
}

.footer-bottom strong { color: var(--acc); }

/* ===== WILAYA EMERGENCY TABLE ===== */
.wilaya-table {
    background: white; border: 1.5px solid var(--border);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wt-header {
    background: var(--p-pale); border-bottom: 1.5px solid var(--border);
    display: grid;
    grid-template-columns: 40px 1fr 1fr 1fr 90px;
    padding: 9px 16px;
    font-size: 0.72rem; font-weight: 800;
    color: var(--gray); text-transform: uppercase;
}

.wt-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 1fr 90px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem; align-items: center;
    transition: background 0.15s;
}

.wt-row:last-child { border-bottom: none; }
.wt-row:hover { background: var(--p-pale); }
.wt-num { font-weight: 900; color: var(--p); font-size: 0.78rem; }
.wt-wilaya { font-weight: 700; }
.wt-phone { direction: ltr; font-size: 0.8rem; font-weight: 600; color: var(--red); }
.wt-hopital { font-size: 0.74rem; color: var(--gray); }

/* ===== FORMS/GOV GRID ===== */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.fcard {
    background: white; border: 1.5px solid var(--border);
    border-radius: 12px; padding: 1.1rem 1.2rem;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; transition: all 0.2s; color: var(--dark);
    box-shadow: 0 2px 8px rgba(13,79,60,0.04);
}

.fcard:hover { border-color: var(--p); box-shadow: var(--shadow); transform: translateX(-3px); }

.fcard-icon {
    width: 42px; height: 42px; border-radius: 9px;
    background: var(--p-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}

.fcard-name { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.fcard-meta { font-size: 0.7rem; color: var(--gray); }

.fcard-dl {
    background: var(--p-pale); border: 1px solid var(--border);
    border-radius: 7px; padding: 4px 9px;
    font-size: 0.72rem; color: var(--p); font-weight: 700;
    white-space: nowrap; margin-right: auto;
}

.gov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.9rem;
}

.gcard {
    background: white; border: 1.5px solid var(--border);
    border-radius: 12px; padding: 1rem; text-align: center;
    color: var(--dark); transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(13,79,60,0.04);
}

.gcard:hover { border-color: var(--p); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--p); }

.gcard-logo {
    width: 50px; height: 50px; border-radius: 10px;
    background: var(--p-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 8px;
}

.gcard-name { font-weight: 700; font-size: 0.82rem; line-height: 1.3; }
.gcard-url { font-size: 0.68rem; color: var(--gray); direction: ltr; margin-top: 3px; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex; justify-content: center; gap: 6px; margin-top: 2rem;
}

.page-btn {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: white; border: 1.5px solid var(--border);
    font-size: 0.85rem; font-weight: 700; color: var(--dark);
    cursor: pointer; transition: all 0.2s;
}

.page-btn:hover, .page-btn.active { background: var(--p); color: white; border-color: var(--p); }

/* ===== NOTICES ===== */
.notice-pending {
    background: #fff8e1; border: 1.5px solid #ffe082;
    border-radius: 10px; padding: 10px 14px;
    font-size: 0.8rem; color: #7a5c00;
    margin-bottom: 1rem; font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .detail-wrap { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .topbar { display: none; }
    nav { padding: 0 1rem; }
    .nav-links { display: none; }
    .hero { padding: 3rem 1rem 2.5rem; }
    .hero-stats { gap: 1.5rem; }
    .hstat-num { font-size: 1.3rem; }
    .search-divider, .search-select { display: none; }
    .add-banner { flex-direction: column; text-align: center; }
    .container { padding: 2rem 1rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 5px; text-align: center; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .big-numbers { grid-template-columns: repeat(2, 1fr); padding: 0 1rem; }
    .hours-grid { grid-template-columns: 1fr; }
    .wt-header, .wt-row { grid-template-columns: 30px 1fr 1fr; }
    .wt-hopital, .wt-header :nth-child(4), .wt-row :nth-child(4) { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .detail-wrap { padding: 0 1rem; }
}
