/* PAGE BACKGROUND + HEADER */
.location-page-background {
    background: radial-gradient(circle at top left, #e0f2f1 0, #f4f7fb 45%, #ffffff 100%);
    padding: 40px 0 60px;
}

.location-page-header {
    text-align: center;
    margin-bottom: 32px;
}

    .location-page-header h1 {
        font-size: 2.1rem;
        font-weight: 800;
        color: #0f766e; /* modern teal */
        letter-spacing: 0.03em;
        margin-bottom: 8px;
    }

    .location-page-header p {
        font-size: 1rem;
        color: #4b5563;
    }

/* GRID LAYOUT */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* always 2 per row on large screens */
    gap: 24px;
}

/* CARD STYLE – POPUP SHADOW */
.location-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    border: 1px solid rgba(148, 163, 184, 0.25);
    position: relative;
}

    .location-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 55%);
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
    }

    .location-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(16, 185, 129, 0.18);
        border-color: transparent;
    }

        .location-card:hover::before {
            opacity: 1;
        }

/* LEFT: IMAGE */
.location-image-wrapper {
    flex: 0 0 230px;
    max-width: 230px;
    min-height: 210px;
    overflow: hidden;
    position: relative;
}

    .location-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.02);
        transition: transform 0.35s ease;
    }

.location-card:hover .location-image-wrapper img {
    transform: scale(1.08);
}

/* RIGHT: DETAILS */
.location-details-wrapper {
    flex: 1;
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .location-details-wrapper h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #111827;
        margin-bottom: 4px;
    }

/* INFO LINES */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
}

    .detail-item i {
        font-size: 1rem;
        color: #16a34a; /* clinic green */
        margin-top: 2px;
    }

    .detail-item a {
        color: #0f766e;
        font-weight: 500;
        text-decoration: none;
    }

        .detail-item a:hover {
            text-decoration: underline;
        }

/* TELEGRAM */
.tg-icon {
    font-size: 1.2rem;
    color: #229ED9;
    background: rgba(34, 158, 217, 0.1);
    border-radius: 999px;
    padding: 6px;
}

.detail-item a[href^="https://t.me"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* MAP BUTTON */
.clinic-map-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff; /* base text color */
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.45);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

    .clinic-map-link span {
        white-space: nowrap;
        color: #ffffff; /* 🔹 force text to white */
    }

    .clinic-map-link img {
        width: 18px;
        height: 18px;
    }

      .clinic-map-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(22, 163, 74, 0.55);
        background: linear-gradient(135deg, #16a34a, #15803d);
    }

/* RESPONSIVE */
@media (max-width: 992px) {
    .location-card {
        flex-direction: column; /* stack image on top */
    }

    .location-image-wrapper {
        flex: none;
        width: 100%; /* full width of card */
        max-width: 100%;
        min-height: 200px;
        margin: 0; /* no side gap */
        border-radius: 16px 16px 0 0; /* nice rounded top */
        overflow: hidden;
    }

        .location-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* fill area nicely */
            transform: scale(1.02);
        }

    .location-details-wrapper {
        padding: 14px 16px 18px;
    }
}


@media (max-width: 576px) {
    .location-page-background {
        padding: 24px 0 40px;
    }

    .location-page-header h1 {
        font-size: 1.6rem;
    }

    .location-card {
        border-radius: 16px;
    }

    .location-details-wrapper h3 {
        font-size: 1.1rem;
    }

    .detail-item {
        font-size: 0.9rem;
    }

    .clinic-map-link {
        width: 100%;
        justify-content: center;
    }
    .location-image-wrapper {
        min-height: 180px;
    }
}
@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr; /* 1 card per row on small screens */
    }
}
