/* Bayilerimiz Page - Ek Stiller */
/* Global styles.css'deki .map-page stilleri kullanılıyor */

/* Branch List - Dikey düzen (bu sayfaya özel) */
.map-page .branch-list {
    flex-direction: column;
}

/* Branch Card - Yatay Layout (PHP gibi) */
.map-page .branch-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem;
    gap: 1.5rem;
    background: #fff;
    transition: all 0.3s ease;
}

    .map-page .branch-card:hover {
        border-color: var(--yellow, #f9d42e);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

/* Info Text - Sol taraf */
.branch-card .info-text {
    flex: 1;
    min-width: 280px;
}

    .branch-card .info-text h3 {
        text-transform: uppercase;
        letter-spacing: 0.15em;
        font-size: clamp(1.1rem, 2.5vw, 1.4rem);
        margin-bottom: 0.75rem;
        color: #333;
        font-weight: 700;
    }

    .branch-card .info-text p {
        margin-bottom: 0.35rem;
        color: #4f4f4f;
        font-size: 0.95rem;
        line-height: 1.5;
    }

        .branch-card .info-text p.fw-bold {
            font-weight: 600;
            color: #333;
        }

/* Info Actions - Sağ taraf butonlar */
.branch-card .info-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 180px;
}

    .branch-card .info-actions .action-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 1.25rem;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        transition: all 0.3s ease;
        border: 2px solid var(--yellow, #f9d42e);
        background: var(--yellow, #f9d42e);
        color: #333;
    }

        .branch-card .info-actions .action-btn:hover {
            background: #e5c400;
            border-color: #e5c400;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(249, 212, 46, 0.3);
        }

        .branch-card .info-actions .action-btn.outline {
            background: transparent;
            color: #333;
        }

            .branch-card .info-actions .action-btn.outline:hover {
                background: var(--yellow, #f9d42e);
            }

        .branch-card .info-actions .action-btn i {
            font-size: 1.1rem;
        }

/* Empty State */
.branch-empty {
    color: #6b6b6b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    width: 100%;
    justify-content: center;
}

    .branch-empty i {
        font-size: 1.25rem;
    }

/* Loading State */
.branch-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    width: 100%;
    color: #6b6b6b;
}

    .branch-loading .spinner {
        width: 20px;
        height: 20px;
        border: 2px solid #ddd;
        border-top-color: var(--yellow, #f9d42e);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Map Tooltip */
.map-tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
    white-space: nowrap;
}

    .map-tooltip.show {
        opacity: 1;
    }

    .map-tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: #333;
    }

/* Province with expertise */
#svg-turkiye-haritasi path.has-expertise,
#svg-turkiye-haritasi polygon.has-expertise {
    fill: #c9c9c9;
    cursor: pointer;
    transition: fill 0.2s ease;
}

    #svg-turkiye-haritasi path.has-expertise:hover,
    #svg-turkiye-haritasi polygon.has-expertise:hover {
        fill: var(--yellow, #f9d42e);
    }

/* Selected province */
#svg-turkiye-haritasi path.selected,
#svg-turkiye-haritasi polygon.selected {
    fill: var(--yellow, #f9d42e);
    stroke: #e5b400;
    stroke-width: 2;
}

/* Responsive */
@media (max-width: 992px) {
    .map-page .branch-card {
        flex-direction: column;
    }

    .branch-card .info-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

        .branch-card .info-actions .action-btn {
            flex: 1 1 140px;
            justify-content: center;
        }
}

@media (max-width: 576px) {
    .branch-card .info-actions {
        flex-direction: column;
    }

        .branch-card .info-actions .action-btn {
            width: 100%;
        }
}
