/* ============================================
   SAFAR - Compact Version CSS (Optimized Spacing)
   ============================================ */

:root {
    /* SAFAR brand palette — deep teal + warm gold */
    --primary-color: #0d7377;
    --secondary-color: #14a098;
    --accent-color: #f4a261;
    --accent-color-deep: #e76f51;
    --text-color: #1e293b;
    --text-color-light: #64748b;
    --background-color: #fafbfb;
    --light-color: #ffffff;
    --dark-color: #0a2540;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --box-shadow: 0 6px 20px -4px rgba(13, 115, 119, 0.10), 0 2px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 14px 36px -8px rgba(13, 115, 119, 0.18), 0 4px 12px -4px rgba(0, 0, 0, 0.06);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --success-color: #10b981;
    --error-color: #ef4444;
    --card-bg: #ffffff;
    --header-height: 64px;
    --brand-gradient: linear-gradient(135deg, #0d7377 0%, #14a098 60%, #f4a261 100%);
}

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

html { scroll-behavior: smooth; font-size: 15px; } /* قُلِّص من 16px */

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.55; /* قُلِّص من 1.7 */
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.loaded { opacity: 1; }

html[lang="fr"] body { font-family: 'Poppins', sans-serif; }
html[dir="ltr"] { text-align: left; }
html[dir="rtl"] { text-align: right; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
a:hover { color: var(--secondary-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* قُلِّص من 80px إلى 45px */
section { padding: 45px 0; }

.section-title {
    font-size: 1.9rem; /* قُلِّص من 2.8rem */
    margin-bottom: 28px; /* قُلِّص من 60px */
    text-align: center;
    position: relative;
    color: var(--dark-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title.animate { opacity: 1; transform: translateY(0); }

/* ===== Header ===== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo { display: flex; align-items: center; }

.logo-text {
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    padding: 3px 0;
}

.company-name {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color); /* fallback */
    font-size: 1.75rem;
    letter-spacing: 2px;
    position: relative;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    padding-right: 2px;
}

.company-name::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.18);
    opacity: 0;
    transition: var(--transition);
}

.company-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 3px;
    transform: scaleX(0.4);
    transform-origin: left;
    opacity: 0.85;
    transition: var(--transition);
}

.logo-text:hover .company-name::before { opacity: 1; left: -14px; }
.logo-text:hover .company-name::after { transform: scaleX(1); opacity: 1; }

.main-nav ul { display: flex; gap: 1.5rem; }
.main-nav ul li { position: relative; }

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 6px 0;
    position: relative;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover { color: var(--primary-color); }
.main-nav ul li a:hover::after { width: 100%; }

.btn-lang {
    background: var(--brand-gradient);
    background-size: 200% 100%;
    background-position: 0% 50%;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(13, 115, 119, 0.25);
}

.btn-lang:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 115, 119, 0.35);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.05) 0%, rgba(20, 160, 152, 0.1) 100%);
    min-height: auto; /* قُلِّص من 70vh */
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top, rgba(173, 216, 230, 0.2) 0%, rgba(240, 248, 255, 0) 70%);
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
    padding: 20px 18px; /* قُلِّص من 50px */
    gap: 30px;
}

.hero-content {
    flex: 1;
    padding-right: 20px; /* قُلِّص من 50px */
    position: relative;
    z-index: 5;
    animation: fade-in 0.8s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

html[dir="ltr"] .hero-content { padding-right: 0; }

.hero-title {
    font-size: 2.2rem; /* قُلِّص من 3.2rem */
    margin-bottom: 0.9rem;
    color: var(--dark-color);
    font-weight: 800;
    line-height: 1.25;
}

.hero-text {
    font-size: 1.05rem; /* قُلِّص من 1.3rem */
    margin-bottom: 1.3rem;
    color: var(--text-color);
    max-width: 540px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white;
    height: 46px;
    padding: 0 26px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(244, 162, 97, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.3px;
    line-height: 1;
    box-sizing: border-box;
    text-decoration: none;
    font-family: inherit;
    vertical-align: middle;
}

/* ===== Hero Buttons Container ===== */
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch; /* تساوي ارتفاع الزرّين */
    margin-top: 0;
}

/* ===== Location Button (نفس مقاسات cta-button تماماً) ===== */
.location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    color: var(--primary-color);
    border: none;
    height: 46px; /* ⚖️ نفس ارتفاع الـ CTA */
    padding: 0 22px 0 14px; /* بدون padding عمودي - الارتفاع ثابت */
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.95rem; /* ⚖️ نفس font-size */
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1; /* ⚖️ نفس line-height */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 0 0 1px rgba(13, 115, 119, 0.18),
        0 8px 18px rgba(13, 115, 119, 0.12);
    letter-spacing: 0.3px;
    box-sizing: border-box;
    vertical-align: middle;
}

/* الأيقونة في شارة دائرية — محاذية بدقة للوسط */
.location-button i {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-color), #ea580c);
    color: white;
    border-radius: 50%;
    /* 🎯 محاذاة الأيقونة في وسط الدائرة بدقة */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    line-height: 1; /* يلغي ارتفاع السطر الافتراضي */
    text-align: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    box-shadow:
        0 0 0 3px rgba(244, 162, 97, 0.15),
        0 3px 10px rgba(244, 162, 97, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* تأثير الومضة الجارية عند التحويم */
.location-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 0;
}

/* نبضة دائرية حول الأيقونة (تجذب الانتباه) */
.location-button::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* النبضة في اليمين (RTL) */
html[dir="rtl"] .location-button::after {
    right: 14px;
    transform: translateY(-50%);
    animation: pin-ring-pulse 2.4s ease-out infinite;
}

/* النبضة في اليسار (LTR) */
html[dir="ltr"] .location-button::after {
    left: 14px;
    transform: translateY(-50%);
    animation: pin-ring-pulse 2.4s ease-out infinite;
}

@keyframes pin-ring-pulse {
    0% {
        opacity: 0.55;
        transform: translateY(-50%) scale(0.85);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(1.85);
    }
}

/* ===== Hover ===== */
.location-button:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 0 0 1px rgba(13, 115, 119, 0.3),
        0 14px 28px rgba(13, 115, 119, 0.35);
}

.location-button:hover i {
    background: white;
    color: var(--accent-color);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.25),
        0 4px 14px rgba(0, 0, 0, 0.15);
    transform: scale(1.1) rotate(-8deg);
}

.location-button:hover::before {
    left: 100%;
}

.location-button:hover::after {
    animation: none;
    opacity: 0;
}

/* ===== Active / Focus ===== */
.location-button:active {
    transform: translateY(-1px);
    transition-duration: 0.15s;
}

.location-button:focus-visible {
    outline: 3px solid rgba(13, 115, 119, 0.4);
    outline-offset: 3px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(13, 115, 119, 0.3);
}

.cta-button:hover::before { left: 100%; }

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-image img {
    max-width: 85%; /* قُلِّص قليلاً */
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== Services ===== */
.services {
    background-color: var(--card-bg);
    padding: 50px 0; /* قُلِّص من 100px */
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; /* قُلِّص من 30px */
    margin-top: 25px;
}

.service-card {
    background-color: white;
    padding: 28px 20px; /* قُلِّص من 50px 30px */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.animate { opacity: 1; transform: translateY(0); }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 115, 119, 0.2);
}

.service-icon {
    font-size: 1.7rem; /* قُلِّص */
    margin-bottom: 16px; /* قُلِّص من 30px */
    transition: all 0.4s ease;
    width: 64px; /* قُلِّص من 100px */
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.1), rgba(13, 115, 119, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 5px 14px rgba(13, 115, 119, 0.15);
}

.service-icon i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.15), rgba(13, 115, 119, 0.25));
    box-shadow: 0 8px 20px rgba(13, 115, 119, 0.25);
    transform: scale(1.08) translateY(-5px);
}

.service-title {
    font-size: 1.1rem; /* قُلِّص من 1.6rem */
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 700;
    transition: var(--transition);
}

.service-card:hover .service-title { color: var(--primary-color); }

.service-description {
    color: var(--text-color-light);
    font-size: 0.92rem; /* قُلِّص */
    line-height: 1.55;
}

/* ============================================
   ✨ Why Us — شريط أفقي مدمج
   ============================================ */
.why-us {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 28px 0;
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.why-us .container {
    position: relative;
    z-index: 2;
}

/* ===== Wrapper ===== */
.why-us-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* ===== Header (يسار) ===== */
.why-us-header {
    flex-shrink: 0;
    max-width: 280px;
}

.why-us-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(244, 162, 97, 0.3);
}

.why-us-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin: 0;
}

/* ===== List (يمين) — شريط أفقي ===== */
.why-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
}

.why-us-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    position: relative;
    transition: transform 0.3s ease;
    cursor: default;
}

/* فاصل عمودي بين العناصر */
.why-us-item::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.25), transparent);
}

html[dir="rtl"] .why-us-item::after { left: 0; }
html[dir="ltr"] .why-us-item::after { right: 0; }

.why-us-item:last-child::after { display: none; }

.why-us-item:hover {
    transform: translateY(-2px);
}

/* الأيقونة */
.why-us-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
    line-height: 1;
}

.why-us-item:hover .why-us-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(10deg) scale(1.08);
    box-shadow: 0 6px 14px rgba(244, 162, 97, 0.4);
}

/* النص */
.why-us-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    line-height: 1.2;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .why-us {
        padding: 24px 0;
    }
    
    .why-us-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    
    .why-us-header {
        max-width: 100%;
    }
    
    .why-us-list {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .why-us {
        padding: 22px 0;
    }
    
    .why-us-heading {
        font-size: 1.05rem;
    }
    
    .why-us-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 0;
        width: 100%;
    }
    
    .why-us-item {
        padding: 6px 8px;
        justify-content: center;
    }
    
    /* فاصل عمودي بين العمودين (1 و 3 على اليمين، 2 و 4 على اليسار) */
    .why-us-item::after { display: none; }
    
    .why-us-icon {
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
    }
    
    .why-us-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .why-us-list {
        grid-template-columns: 1fr;
    }
    
    .why-us-item {
        justify-content: flex-start;
        padding: 6px 12px;
    }
}

/* ============================================
   ✨ Contact Section — تصميم أنيق ومبتكر
   ============================================ */
.contact {
    background: linear-gradient(180deg, var(--background-color) 0%, #eef2f7 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

/* خلفية زخرفية: نقاط ناعمة */
.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle, rgba(13, 115, 119, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.contact .container {
    position: relative;
    z-index: 2;
}

/* ===== Wrapper — بطاقة موحَّدة بشريط + نموذج ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 5fr 7fr;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 20px 50px -10px rgba(13, 115, 119, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.04);
    max-width: 980px;
    margin: 0 auto;
}

/* ===== Sidebar — الشريط الجانبي الملوّن ===== */
.contact-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

/* عناصر زخرفية في الشريط */
.contact-sidebar-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.deco-circle-1 {
    width: 220px;
    height: 220px;
    top: -90px;
    right: -70px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
}

.deco-circle-2 {
    width: 160px;
    height: 160px;
    bottom: -60px;
    left: -40px;
    background: radial-gradient(circle, rgba(249,115,22,0.18), transparent 70%);
}

.contact-sidebar-content {
    position: relative;
    z-index: 1;
}

/* العنوان */
.contact-heading {
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-heading-sub {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-heading-main {
    font-size: 1.55rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.contact-intro {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
}

/* قائمة معلومات التواصل المصغرة */
.contact-mini-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-mini-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-mini-item a:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

html[dir="ltr"] .contact-mini-item a:hover {
    transform: translateX(3px);
}

.contact-mini-item i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-mini-item a:hover i {
    background: var(--accent-color);
    transform: scale(1.08);
}

.mini-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.mini-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-value {
    font-size: 0.88rem;
    color: white;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* أزرار التواصل السريع */
.contact-social {
    display: flex;
    gap: 8px;
}

.contact-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px) rotate(8deg);
    border-color: var(--accent-color);
    box-shadow: 0 6px 14px rgba(244, 162, 97, 0.4);
}

/* ===== Form Wrapper ===== */
.contact-form-wrapper {
    padding: 28px 26px;
    background: white;
    display: flex;
    align-items: center;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

/* ===== Floating Label Fields ===== */
.form-field {
    position: relative;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 42px 14px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.25s ease;
    outline: none;
    line-height: 1.3;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* RTL: الأيقونة على اليمين، المحتوى يبدأ بـ padding-right كبير */
html[dir="rtl"] .form-field input,
html[dir="rtl"] .form-field select,
html[dir="rtl"] .form-field textarea {
    padding: 14px 42px 14px 14px;
}

html[dir="ltr"] .form-field input,
html[dir="ltr"] .form-field select,
html[dir="ltr"] .form-field textarea {
    padding: 14px 14px 14px 42px;
}

.form-field textarea {
    resize: vertical;
    min-height: 72px;
    padding-top: 14px;
}

/* Floating label */
.form-field label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light);
    font-size: 0.92rem;
    font-weight: 500;
    background: transparent;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 4px;
}

html[dir="rtl"] .form-field label { right: 42px; }
html[dir="ltr"] .form-field label { left: 42px; }

/* للtextarea: التسمية لأعلى وليس وسط */
.form-field-textarea label {
    top: 18px;
    transform: translateY(0);
}

/* عند الـ Focus أو إذا كان الحقل ممتلئ → الـ label يرتفع */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field select:focus + .select-label,
.form-field select:valid + .select-label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: white;
    color: var(--primary-color);
    font-weight: 700;
}

.form-field-textarea textarea:focus + label,
.form-field-textarea textarea:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
}

/* أيقونة الحقل */
.field-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.25s ease;
}

html[dir="rtl"] .field-icon { right: 14px; }
html[dir="ltr"] .field-icon { left: 14px; }

/* أيقونة textarea في الأعلى */
.form-field-textarea .field-icon {
    top: 18px;
    transform: translateY(0);
}

/* Focus state */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 115, 119, 0.1);
}

.form-field input:focus ~ .field-icon,
.form-field select:focus ~ .field-icon,
.form-field textarea:focus ~ .field-icon {
    color: var(--primary-color);
}

/* Select chevron */
.select-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light);
    font-size: 0.78rem;
    pointer-events: none;
    transition: transform 0.25s ease;
}

html[dir="rtl"] .select-chevron { left: 14px; }
html[dir="ltr"] .select-chevron { right: 14px; }

.form-field select:focus ~ .select-chevron {
    color: var(--primary-color);
    transform: translateY(-50%) rotate(180deg);
}

.form-field select {
    cursor: pointer;
}

/* ===== Submit Button ===== */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 0 24px;
    height: 50px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
    font-family: inherit;
    line-height: 1;
    box-sizing: border-box;
    margin-top: 4px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.submit-btn i:first-child {
    font-size: 1.25rem;
}

.btn-arrow {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    opacity: 0.85;
}

html[dir="ltr"] .btn-arrow {
    transform: rotate(180deg);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(-4px);
}

html[dir="ltr"] .submit-btn:hover .btn-arrow {
    transform: rotate(180deg) translateX(4px);
}

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

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-sidebar {
        padding: 24px 22px;
    }
    
    .contact-form-wrapper {
        padding: 24px 22px;
    }
    
    .contact-heading-main {
        font-size: 1.35rem;
    }
}

@media (max-width: 540px) {
    .contact { padding: 35px 0; }
    
    .contact-wrapper {
        border-radius: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .contact-heading-main {
        font-size: 1.25rem;
    }
    
    .contact-intro {
        font-size: 0.88rem;
    }
    
    .mini-value {
        font-size: 0.82rem;
    }
    
    .submit-btn {
        height: 46px;
        font-size: 0.95rem;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: #1e293b;
    color: #ffffff;
    padding: 35px 0 18px; /* قُلِّص من 80px 0 30px */
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(13, 115, 119, 0.15), transparent 70%);
    z-index: 1;
}

.footer .container { position: relative; z-index: 2; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px; /* قُلِّص من 50px */
    margin-bottom: 22px;
}

.footer-logo { margin-bottom: 8px; }

.footer-logo-text {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-logo-text .company-name {
    color: #ffffff;
    font-size: 1.7rem; /* قُلِّص من 2.4rem */
    position: relative;
    margin-bottom: 6px;
    display: inline-block;
}

.footer-logo-text .company-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

.agency-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.92rem;
    max-width: 380px;
}

.footer h3 {
    margin-bottom: 14px; /* قُلِّص من 25px */
    font-size: 1.05rem; /* قُلِّص من 1.5rem */
    position: relative;
    padding-bottom: 8px;
    color: #ffffff;
    font-weight: 700;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.4s ease;
    border-radius: 3px;
}

html[dir="ltr"] .footer h3::after { left: 0; right: auto; }
html[dir="rtl"] .footer h3::after { right: 0; left: auto; }

.footer-links:hover h3::after,
.footer-contact:hover h3::after { width: 50px; }

.footer-links ul li { margin-bottom: 7px; } /* قُلِّص من 15px */

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.92rem;
    display: inline-block;
    position: relative;
    padding: 2px 0;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-links ul li a:hover::after { width: 100%; }

.footer-contact p {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.92rem;
}

.footer-contact p i {
    color: var(--accent-color);
    font-size: 0.95rem;
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}

/* ===== Floating buttons ===== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px; /* قُلِّص من 60px */
    height: 44px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 3px 12px rgba(13, 115, 119, 0.3);
    z-index: 100;
    font-size: 16px;
}

.scroll-top.visible { opacity: 1; visibility: visible; }

.scroll-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-6px);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px; /* قُلِّص من 60px */
    height: 50px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: whatsapp-pulse 1.5s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    left: 65px;
    background-color: white;
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: var(--border-radius);
    font-size: 0.88rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: max-content;
    max-width: 220px;
    font-weight: 600;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; left: 60px; }

/* ===== Form Message ===== */
.form-message {
    padding: 10px;
    margin-top: 12px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.92rem;
}

.form-message.success { background-color: rgba(16, 185, 129, 0.1); color: var(--success-color); border: 1px solid var(--success-color); }
.form-message.error { background-color: rgba(239, 68, 68, 0.1); color: var(--error-color); border: 1px solid var(--error-color); }

/* ===== Clouds ===== */
.clouds-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.cloud { position: absolute; background: white; border-radius: 100px; opacity: 0.7; filter: blur(4px); }
.cloud::before, .cloud::after { content: ''; position: absolute; background: white; border-radius: 50%; }

.cloud-1 { width: 110px; height: 45px; top: 18%; left: -110px; animation: cloud-drift-1 35s linear infinite; }
.cloud-1::before { width: 65px; height: 65px; top: -32px; left: 18px; }
.cloud-1::after { width: 50px; height: 50px; top: -25px; left: 60px; }

.cloud-2 { width: 130px; height: 50px; top: 35%; left: -130px; opacity: 0.6; animation: cloud-drift-2 45s linear infinite; animation-delay: 5s; }
.cloud-2::before { width: 75px; height: 75px; top: -38px; left: 20px; }
.cloud-2::after { width: 60px; height: 60px; top: -30px; left: 70px; }

.cloud-3 { width: 100px; height: 40px; top: 60%; left: -100px; opacity: 0.5; animation: cloud-drift-3 40s linear infinite; animation-delay: 10s; }
.cloud-3::before { width: 55px; height: 55px; top: -28px; left: 15px; }
.cloud-3::after { width: 45px; height: 45px; top: -22px; left: 50px; }

.cloud-4 { width: 90px; height: 38px; top: 25%; left: -90px; opacity: 0.6; animation: cloud-drift-4 38s linear infinite; animation-delay: 15s; }
.cloud-4::before { width: 55px; height: 55px; top: -28px; left: 15px; }
.cloud-4::after { width: 40px; height: 40px; top: -20px; left: 40px; }

.cloud-5 { width: 120px; height: 45px; top: 50%; left: -120px; opacity: 0.55; animation: cloud-drift-5 50s linear infinite; animation-delay: 20s; }
.cloud-5::before { width: 70px; height: 70px; top: -35px; left: 20px; }
.cloud-5::after { width: 55px; height: 55px; top: -28px; left: 60px; }

@keyframes cloud-drift-1 { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw + 150px)); } }
@keyframes cloud-drift-2 { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw + 200px)); } }
@keyframes cloud-drift-3 { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw + 180px)); } }
@keyframes cloud-drift-4 { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw + 130px)); } }
@keyframes cloud-drift-5 { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw + 170px)); } }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero .container { flex-direction: column; }
    .hero-content { padding-right: 0; margin-bottom: 25px; text-align: center; }
    .hero-title { font-size: 1.9rem; }
    .contact-container { grid-template-columns: 1fr; }
    .hero-image img { max-width: 70%; }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root { --header-height: 55px; }
    
    .header .container { flex-wrap: wrap; }
    
    .main-nav {
        width: 100%;
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        background: white;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .main-nav.show { display: block; }
    .main-nav ul { flex-direction: column; padding: 12px; gap: 0.5rem; }
    .main-nav ul li { margin: 4px 0; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 1.7rem; }
    section { padding: 35px 0; }
    .services, .why-us, .contact { padding: 35px 0; }
    
    .services-grid, .why-us-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 18px; }
    .footer h3::after { left: 50%; transform: translateX(-50%); }
    .footer-contact p { justify-content: center; }
    .agency-description { text-align: center; margin-left: auto; margin-right: auto; }
    
    .footer-logo-text .company-name::after { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; margin-bottom: 20px; }
    .hero-title { font-size: 1.5rem; }
    .hero-text { font-size: 0.95rem; }
    
    /* ⚖️ نفس الارتفاع وحجم الخط على الموبايل */
    .cta-button,
    .location-button {
        height: 42px;
        font-size: 0.88rem;
    }
    .cta-button { padding: 0 22px; }
    .location-button { padding: 0 18px 0 12px; }
    .location-button i { width: 26px; height: 26px; font-size: 0.85rem; }
    
    html[dir="rtl"] .location-button::after { right: 12px; width: 26px; height: 26px; }
    html[dir="ltr"] .location-button::after { left: 12px; width: 26px; height: 26px; }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .hero-buttons .cta-button,
    .hero-buttons .location-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .services-grid, .why-us-grid { grid-template-columns: 1fr; }
    .service-card, .why-us-card, .contact-item { padding: 18px 14px; }
    .contact-form { padding: 16px; }
    
    .scroll-top, .whatsapp-float { width: 42px; height: 42px; font-size: 18px; }
    .whatsapp-tooltip { display: none; }
}

/* ===== Animations ===== */
.service-card, .why-us-card, .section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.service-card.animate, .why-us-card.animate, .section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Map Modal — نافذة الخريطة المنبثقة
   ============================================ */
.map-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-modal.active {
    opacity: 1;
    visibility: visible;
}

.map-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.map-modal-container {
    position: relative;
    background: white;
    width: 100%;
    max-width: 720px;
    height: 80vh;
    max-height: 620px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.4),
                0 10px 30px -5px rgba(0, 0, 0, 0.2);
}

.map-modal.active .map-modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ===== Header ===== */
.map-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.map-modal-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.map-modal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.map-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-modal-titles {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.map-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.6px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-modal-phone {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease, transform 0.25s ease;
    width: fit-content;
}

.map-modal-phone:hover {
    color: var(--accent-color);
    transform: translateX(-2px);
}

html[dir="ltr"] .map-modal-phone:hover {
    transform: translateX(2px);
}

.map-modal-phone i {
    font-size: 0.78rem;
    opacity: 0.9;
}

.map-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    padding: 0;
}

.map-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.map-modal-close:active {
    transform: rotate(90deg) scale(0.92);
}

/* ===== Body: بطاقة الموقع (بدل iframe) ===== */
.map-modal-body {
    flex: 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

/* بطاقة الموقع */
.location-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    text-align: center;
    z-index: 2;
}

/* خلفية شبكية تشبه الخريطة */
.location-card-grid {
    position: absolute;
    inset: -30px -20px;
    background-image: 
        linear-gradient(rgba(13, 115, 119, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 115, 119, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
}

/* علامة الموقع المتحركة */
.location-pin-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 22px;
    z-index: 2;
}

.location-pin {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-color), #ea580c);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(244, 162, 97, 0.4);
    animation: pin-drop 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.location-pin i {
    color: white;
    font-size: 2.2rem;
    transform: rotate(45deg);
}

.location-pin-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    opacity: 0;
    animation: pin-pulse 2s ease-out infinite;
}

.location-pin-pulse-2 {
    animation-delay: 1s;
}

@keyframes pin-drop {
    0% {
        transform: rotate(-45deg) translateY(-100px);
        opacity: 0;
    }
    60% {
        transform: rotate(-45deg) translateY(8px);
        opacity: 1;
    }
    100% {
        transform: rotate(-45deg) translateY(0);
        opacity: 1;
    }
}

@keyframes pin-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* معلومات الموقع */
.location-info {
    position: relative;
    z-index: 2;
}

.location-address {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.location-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-color-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.location-street {
    display: block;
    font-size: 1.15rem;
    color: var(--dark-color);
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.3;
}

.location-city {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color-light);
    font-weight: 600;
}

.location-coordinates {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 115, 119, 0.1);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', monospace;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(13, 115, 119, 0.15);
}

.location-coordinates:hover {
    background: rgba(13, 115, 119, 0.18);
    transform: translateY(-1px);
}

.location-coordinates.copied {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
}

.location-coordinates i {
    font-size: 0.85rem;
}

.coords-value {
    letter-spacing: 0.3px;
}

/* ===== Footer ===== */
.map-modal-footer {
    background: white;
    padding: 14px 18px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.map-modal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-color), #ea580c);
    color: white;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    padding: 13px 22px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(244, 162, 97, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.map-modal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.map-modal-link:hover {
    background: linear-gradient(135deg, #ea580c, var(--accent-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(244, 162, 97, 0.4);
}

.map-modal-link:hover::before {
    left: 100%;
}

.map-modal-link i {
    font-size: 1.05rem;
}

/* ===== Body scroll lock ===== */
body.modal-open {
    overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .map-modal {
        padding: 0;
        align-items: stretch;
    }
    .map-modal-container {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    .map-modal-title { font-size: 0.95rem; }
    .map-modal-phone { font-size: 0.82rem; }
    .map-modal-icon { width: 38px; height: 38px; font-size: 1rem; }
    .map-modal-close { width: 32px; height: 32px; font-size: 0.88rem; }
    .map-modal-header { padding: 12px 14px; }
    .map-modal-link-text { font-size: 0.92rem; }
    
    .location-pin-wrapper { width: 72px; height: 72px; margin-bottom: 18px; }
    .location-pin i { font-size: 1.8rem; }
    .location-street { font-size: 1.05rem; }
    .location-city { font-size: 0.85rem; }
    .location-coordinates { font-size: 0.78rem; padding: 7px 12px; }
    .map-modal-body { padding: 24px 16px; }
}
