/* =========================================
   INTRO SECTION
========================================= */

.alj-contact-intro {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}

.alj-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7E5BA2, #4C2770);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
}
.alj-badge-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48BCCC;
}
.alj-badge-pill .label {
    white-space: nowrap;
}

.alj-section-title {
    font-size: clamp(1.9rem, 2.6vw, 2.3rem);
    font-weight: 800;
    color: #111827;
}
.alj-section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    font-size: .95rem;
    color: #4b5563;
    line-height: 1.9;
    text-wrap: balance;
}

[data-bs-theme="dark"] .alj-section-title {
    color: #f9fafb;
}
[data-bs-theme="dark"] .alj-section-subtitle {
    color: #9ca3af;
}

/* بطاقات قنوات التواصل السريعة */
.alj-contact-quick-row {
    margin-top: 1.8rem;
}

.alj-contact-quick-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 1rem 1.1rem 1.1rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.alj-contact-quick-card .icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(126, 91, 162, 0.08);
    color: #4C2770;
    margin-bottom: .3rem;
}
.alj-contact-quick-card .icon-wrap i {
    font-size: 1.2rem;
}
.alj-contact-quick-card h6 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .1rem;
    color: #111827;
}
.alj-contact-quick-card p {
    font-size: .85rem;
    color: #4b5563;
    margin-bottom: .15rem;
}
.alj-quick-link {
    font-size: .86rem;
    font-weight: 600;
    color: #4C2770;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.alj-quick-link:hover {
    color: #7E5BA2;
}
.alj-quick-chip {
    display: inline-flex;
    align-items: center;
    padding: .1rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: rgba(72, 188, 204, 0.08);
    color: #0e7490;
}

.alj-contact-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
    border-color: rgba(126, 91, 162, 0.9);
}

/* دارك مود لقنوات التواصل */
[data-bs-theme="dark"] .alj-contact-quick-card {
    background: #020617;
    border-color: rgba(31, 41, 55, .95);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.9);
}
[data-bs-theme="dark"] .alj-contact-quick-card h6 {
    color: #e5e7eb;
}
[data-bs-theme="dark"] .alj-contact-quick-card p {
    color: #9ca3af;
}
[data-bs-theme="dark"] .alj-contact-quick-card .icon-wrap {
    background: rgba(72, 188, 204, 0.18);
    color: #e0f2fe;
}
[data-bs-theme="dark"] .alj-quick-link {
    color: #7dd3fc;
}
[data-bs-theme="dark"] .alj-quick-chip {
    background: rgba(72, 188, 204, 0.25);
    color: #e5e7eb;
}

/* =========================================
   BRANCHES GRID (صور + خرائط)
========================================= */

.alj-branches-grid {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

/* الكارت الكبير لكل فرع */
.alj-branch-tile {
    border-radius: 26px;
    padding: 1.6rem 1.5rem;
    background: #ffffff;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(148, 163, 184, 0.32);
}

[data-bs-theme="dark"] .alj-branch-tile {
    background: #020617;
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(31, 41, 55, 0.95);
}

/* معرض الصور */
.alj-branch-gallery {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* الصورة الرئيسية */
.alj-branch-gallery-main {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
}
.alj-branch-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .35s ease, filter .35s ease;
}

/* بادجات فوق الصورة */
.alj-branch-gallery-badge {
    position: absolute;
    inset-inline-start: .9rem;
    bottom: .9rem;
    display: inline-flex;
    gap: .4rem;
}
.alj-branch-gallery-badge span {
    border-radius: 999px;
    padding: .1rem .7rem;
    font-size: .75rem;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(10px);
}
.alj-branch-gallery-badge .chip-main {
    background: linear-gradient(135deg, #7E5BA2, #4C2770);
}
.alj-branch-gallery-badge .chip-city {
    background: linear-gradient(135deg, #48BCCC, #0e7490);
}

/* الصور المصغرة الثلاثة */
.alj-branch-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}
.alj-branch-gallery-thumbs img {
    width: 100%;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    filter: brightness(.97);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
    cursor: pointer;
}
.alj-branch-gallery-thumbs img:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 10px 20px rgba(15, 23, 42, .25);
}

/* الخريطة الصغيرة تحت الصور */
.alj-branch-inline-map {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.45);
}
.alj-branch-inline-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

[data-bs-theme="dark"] .alj-branch-inline-map {
    border-color: rgba(51, 65, 85, 0.9);
}
[data-bs-theme="dark"] .alj-branch-inline-map iframe {
    filter: grayscale(.12) contrast(1.05) brightness(.9);
}

/* محتوى المعلومات */
.alj-branch-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.alj-branch-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}
.alj-branch-city {
    font-size: .9rem;
    color: #6b7280;
}

/* كود المدينة */
.alj-branch-code-pill {
    min-width: 46px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    color: #f9fafb;
    background: radial-gradient(circle at 25% 0, #4C2770, #7E5BA2);
    box-shadow: 0 12px 22px rgba(76, 39, 112, .7);
}
.alj-branch-code-pill--teal {
    background: radial-gradient(circle at 25% 0, #48BCCC, #0e7490);
    box-shadow: 0 12px 22px rgba(8, 145, 178, .7);
}

/* عنواين صغيرة + نص */
.alj-branch-section {
    font-size: .86rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: .15rem;
}
.alj-branch-text {
    font-size: .9rem;
    color: #4b5563;
    line-height: 1.9;
}

/* قائمة بيانات التواصل */
.alj-branch-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .9rem;
}
.alj-branch-list li {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-bottom: .2rem;
}
.alj-branch-list .label {
    font-weight: 600;
    color: #374151;
}
.alj-branch-list a {
    color: #4C2770;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.alj-branch-list a:hover {
    color: #7E5BA2;
}

/* رابط الخرائط + تاج إضافي */
.alj-branch-link {
    font-size: .86rem;
    font-weight: 600;
    color: #4C2770;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.alj-branch-link:hover {
    color: #7E5BA2;
}
.alj-branch-tag {
    font-size: .78rem;
    padding: .15rem .7rem;
    border-radius: 999px;
    background: rgba(126, 91, 162, 0.08);
    color: #4C2770;
    font-weight: 600;
}
.alj-branch-tag--teal {
    background: rgba(72, 188, 204, 0.08);
    color: #0e7490;
}

/* دارك مود للفروع */
[data-bs-theme="dark"] .alj-branch-name {
    color: #f9fafb;
}
[data-bs-theme="dark"] .alj-branch-city,
[data-bs-theme="dark"] .alj-branch-text {
    color: #9ca3af;
}
[data-bs-theme="dark"] .alj-branch-section,
[data-bs-theme="dark"] .alj-branch-list .label {
    color: #e5e7eb;
}
[data-bs-theme="dark"] .alj-branch-list a,
[data-bs-theme="dark"] .alj-branch-link {
    color: #7dd3fc;
}
[data-bs-theme="dark"] .alj-branch-tag {
    background: rgba(126, 91, 162, 0.22);
    color: #e5e7eb;
}
[data-bs-theme="dark"] .alj-branch-tag--teal {
    background: rgba(72, 188, 204, 0.22);
    color: #e5e7eb;
}

/* =========================================
   CONTACT CARD (اللي عندك أصلاً)
========================================= */

.alj-contact-form-section {
    padding-bottom: 4rem;
}

.alj-contact-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    padding: 1.8rem 1.8rem 2rem;
}

[data-bs-theme="dark"] .alj-contact-card {
    background: #1e2844;
   
}

/* النص الجانبي */
.alj-contact-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}
.alj-contact-desc {
    font-size: .9rem;
    color: #4b5563;
    line-height: 1.8;
}
.alj-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .9rem;
    color: #374151;
}
.alj-contact-list li {
    position: relative;
    padding-inline-start: 1rem;
    margin-bottom: .25rem;
}
.alj-contact-list li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    color: #7E5BA2;
}

[data-bs-theme="dark"] .alj-contact-title {
    color: #f9fafb;
}
[data-bs-theme="dark"] .alj-contact-desc,
[data-bs-theme="dark"] .alj-contact-list {
    color: #9ca3af;
}
[data-bs-theme="dark"] .alj-contact-list li::before {
    color: #48BCCC;
}

/* الحقول */
.alj-input-label {
    font-size: .83rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: .15rem;
}
.alj-input {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .95);
    font-size: .9rem;
    padding: .45rem .8rem;
    background-color: #fff;
}
.alj-input:focus {
    border-color: #7E5BA2;
    box-shadow: 0 0 0 1px rgba(126, 91, 162, .7);
}
.alj-textarea {
    min-height: 120px;
    resize: vertical;
}

[data-bs-theme="dark"] .alj-input-label {
    color: #e5e7eb;
}
[data-bs-theme="dark"] .alj-input {
    background-color: #1e2844;
    border-color: white;
    color: #e5e7eb;
}
[data-bs-theme="dark"] .alj-input::placeholder {
    color: #6b7280;
}
[data-bs-theme="dark"] .alj-input:focus {
    border-color: #48BCCC;
    box-shadow: 0 0 0 1px rgba(72, 188, 204, .7);
}

/* زر الإرسال */
.alj-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .55rem 1.6rem;
    border-radius: 999px;
    border: none;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    background-color: #48BCCC;
}
.alj-contact-btn i {
    font-size: 1.2rem;
}


/* ريسبونسف */
@media (max-width: 991.98px) {
    .alj-branch-gallery-main {
        height: 220px;
    }
    .alj-branch-inline-map {
        height: 150px;
    }
    .alj-branch-tile {
        padding: 1.2rem 1rem;
    }
}
@media (max-width: 767.98px) {
    .alj-contact-intro {
        padding-top: 2.5rem;
        padding-bottom: 2.2rem;
    }
    .alj-branches-grid {
        padding-top: 1.8rem;
        padding-bottom: 2.5rem;
    }
    .alj-branch-gallery-main {
        height: 210px;
    }
    .alj-branch-gallery-thumbs img {
        height: 70px;
    }
}
/* ثمنيل الفرع - حالة Active بعد الضغط */
.alj-branch-gallery-thumbs img.alj-branch-thumb.active {
    outline: 2px solid #48BCCC;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(72, 188, 204, 0.4),
                0 10px 18px rgba(15, 23, 42, 0.3);
    transform: translateY(-2px);
}


