/* =========================================================
   Gau Mitra - Emergency contact card component
   Auto-segregated from the original Gau Mitra stylesheet.
========================================================= */

/* Contact Card */

.ec-contact-card {
    --ec-main: #f97316;
    --ec-dark: #9f1239;
    --ec-soft: rgba(249, 115, 22, 0.14);
    --ec-text: #fff8dc;

    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 28px;
    padding: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
        radial-gradient(circle at 10% 0%, var(--ec-soft), transparent 36%);
    border: 1px solid rgba(255, 238, 203, 0.16);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
    color: var(--ec-text);
    transition: all 0.28s ease;
}

.ec-page-wrapper .ec-contact-card {
    --ec-text: #2b1908;

    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
        radial-gradient(circle at 10% 0%, var(--ec-soft), transparent 38%);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 54px rgba(107, 63, 24, 0.12);
    color: var(--ec-text);
}

.ec-contact-card.medical {
    --ec-main: #16a34a;
    --ec-dark: #065f46;
    --ec-soft: rgba(34, 197, 94, 0.18);
}

.ec-contact-card.protection {
    --ec-main: #2563eb;
    --ec-dark: #1e3a8a;
    --ec-soft: rgba(37, 99, 235, 0.16);
}

.ec-contact-card.rescue {
    --ec-main: #f97316;
    --ec-dark: #9f1239;
    --ec-soft: rgba(249, 115, 22, 0.18);
}

.ec-contact-card.support {
    --ec-main: #0f766e;
    --ec-dark: #115e59;
    --ec-soft: rgba(20, 184, 166, 0.16);
}

.ec-contact-card.fire {
    --ec-main: #dc2626;
    --ec-dark: #7f1d1d;
    --ec-soft: rgba(220, 38, 38, 0.18);
}

.ec-contact-card:hover {
    transform: translateY(-7px);
    border-color: rgba(250, 204, 21, 0.36);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.ec-page-wrapper .ec-contact-card:hover {
    box-shadow: 0 28px 78px rgba(107, 63, 24, 0.18);
}

.ec-card-glow {
    position: absolute;
    width: 170px;
    height: 170px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ec-soft), transparent 70%);
    pointer-events: none;
}

.ec-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.ec-icon-wrap {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    font-size: 25px;
    background: linear-gradient(135deg, var(--ec-main), var(--ec-dark));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.ec-badges {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.ec-type-badge,
.ec-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.ec-type-badge {
    color: #fff;
    background: linear-gradient(135deg, var(--ec-main), var(--ec-dark));
}

.ec-open-badge {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(187, 247, 208, 0.20);
}

.ec-page-wrapper .ec-open-badge {
    color: #166534;
    background: rgba(220, 252, 231, 0.86);
    border-color: rgba(22, 101, 52, 0.12);
}

.ec-card-body {
    position: relative;
    z-index: 2;
}

.ec-card-body h4 {
    margin: 0 0 15px;
    color: #fff8dc;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.ec-page-wrapper .ec-card-body h4 {
    color: var(--maroon);
}

.ec-info-list {
    display: grid;
    gap: 10px;
}

.ec-info-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 238, 203, 0.84);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.ec-page-wrapper .ec-info-item {
    color: #70451f;
}

.ec-info-item i {
    color: #facc15;
    min-width: 16px;
    margin-top: 2px;
}

.ec-page-wrapper .ec-info-item i {
    color: var(--ec-main);
}

.ec-info-item.important {
    color: #fff;
    font-weight: 900;
}

.ec-page-wrapper .ec-info-item.important {
    color: var(--maroon);
}

.ec-hours-box {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #fff8dc;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 238, 203, 0.12);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.ec-page-wrapper .ec-hours-box {
    color: #6b3f18;
    background: rgba(255, 247, 237, 0.92);
    border-color: rgba(249, 115, 22, 0.12);
}

.ec-hours-box i {
    color: #facc15;
    margin-top: 2px;
}

.ec-page-wrapper .ec-hours-box i {
    color: var(--ec-main);
}

.ec-note {
    margin: 13px 0 0;
    color: rgba(255, 238, 203, 0.72);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 650;
}

.ec-page-wrapper .ec-note {
    color: var(--muted);
}

.ec-card-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.ec-call-btn,
.ec-map-btn {
    min-height: 44px;
    border: 0;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ec-main), var(--ec-dark));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    transition: all 0.22s ease;
}

.ec-call-btn {
    flex: 1;
}

.ec-map-btn {
    width: 46px;
    min-width: 46px;
}

.ec-call-btn:hover,
.ec-map-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.ec-call-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ec-empty-box {
    padding: 46px 20px;
    text-align: center;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px dashed rgba(249, 115, 22, 0.30);
    box-shadow: 0 16px 45px rgba(107, 63, 24, 0.08);
}

.ec-empty-box.dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(250, 204, 21, 0.24);
}

.ec-empty-box i {
    display: block;
    font-size: 46px;
    color: var(--saffron);
    margin-bottom: 12px;
}

.ec-empty-box h4 {
    color: var(--maroon);
    font-weight: 900;
}

.ec-empty-box.dark h4 {
    color: #fff8dc;
}

.ec-empty-box p {
    color: var(--muted);
    margin: 0;
    font-weight: 700;
}

.ec-empty-box.dark p {
    color: rgba(255, 238, 203, 0.78);
}


@media (max-width: 991px) {
    .ec-page-hero {
        padding: 52px 0 36px;
    }

    .ec-type-shortcuts {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .ec-type-shortcuts a {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .ec-page-hero h1 {
        font-size: 34px;
    }

    .ec-page-hero p {
        font-size: 15px;
    }

    .ec-filter-box {
        padding: 16px;
        border-radius: 22px;
    }

    .ec-summary-bar {
        display: grid;
    }

    .ec-contact-card {
        padding: 18px;
        border-radius: 24px;
    }

    .ec-card-top {
        display: grid;
    }

    .ec-badges {
        justify-content: flex-start;
    }

    .ec-card-body h4 {
        font-size: 18px;
    }

}
