.regions-page {
    background: #f4f7fb;
    padding: 40px 0 80px;
}

.regions-page .container {
    max-width: 1320px;
}

.regions-hero,
.regions-map-card,
.region-card {
    background: #fff;
    border: 1px solid #e7eef6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.regions-hero {
    border-radius: 24px;
    padding: 34px;
}

.regions-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0d47a1;
    font-size: 13px;
    font-weight: 800;
}

.regions-title {
    max-width: 720px;
    color: #082552;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 14px;
}

.regions-title span {
    color: #f77f00;
}

.regions-subtitle {
    max-width: 650px;
    color: #64748b;
    font-size: 17px;
    line-height: 1.6;
}

.regions-search form {
    max-width: 680px;
}

.regions-search-wrapper {
    height: 58px;
    display: flex;
    background: #f8fafc;
    border: 1px solid #dbe7f3;
    border-radius: 16px;
    overflow: hidden;
}

.regions-search-wrapper input {
    flex: 1;
    height: 100%;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 18px;
    color: #082552;
}

.regions-search-wrapper button {
    width: 72px;
    border: 0;
    background: #ffb703;
    color: #082552;
    font-size: 18px;
}

.stats-card {
    height: 100%;
    background: #f8fafc;
    border: 1px solid #e7eef6;
    border-radius: 20px;
    padding: 26px;
}

.stats-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eaf2ff;
    color: #0d47a1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.stats-card h3 {
    color: #082552;
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 8px;
}

.stats-card p {
    color: #64748b;
    font-weight: 700;
    margin: 0;
}

.regions-map-card {
    border-radius: 24px;
    padding: 28px;
}

.map-header {
    margin-bottom: 18px;
}

.map-header h3,
.regions-list-header h3 {
    color: #082552;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 4px;
}

.map-header span,
.regions-list-header span {
    color: #64748b;
    font-weight: 600;
}

.regions-map-card svg {
    width: 100%;
    height: auto;
    display: block;
}

.regions-map-card g path {
    fill: #dbe7f3;
    stroke: #fff;
    stroke-width: 1;
    transition: .2s ease;
    cursor: pointer;
}

.regions-map-card g.bolge-aktif path {
    fill: #ffb703;
}

.regions-map-card g:hover path {
    fill: #0d47a1;
}

.region-card {
    height: 100%;
    border-radius: 20px;
    padding: 22px;
    transition: .2s ease;
}

.region-card:hover {
    transform: translateY(-3px);
}

.region-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.region-card-top h4 {
    color: #082552;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.region-card-top p {
    color: #64748b;
    font-size: 14px;
    margin: 6px 0 0;
}

.region-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    margin-top: 6px;
}

.region-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 18px;
}

.region-stats strong {
    display: block;
    color: #082552;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.region-stats span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
}

.region-btn {
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: #ffb703;
    color: #082552;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.region-btn:hover {
    color: #082552;
    background: #f77f00;
}

.empty-region {
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    color: #64748b;
}

.empty-region i {
    display: block;
    color: #0d47a1;
    font-size: 28px;
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .regions-title {
        font-size: 36px;
    }

    .regions-hero {
        padding: 26px;
    }
}

@media (max-width: 576px) {
    .regions-page {
        padding: 28px 0 56px;
    }

    .regions-title {
        font-size: 30px;
    }

    .regions-search-wrapper {
        height: 54px;
    }

    .stats-card {
        padding: 20px;
    }

    .regions-map-card {
        padding: 18px;
    }
}

.region-detail-page {
    background: #f4f7fb;
    padding: 44px 0 80px;
}

.region-detail-hero {
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 24px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
    margin-bottom: 24px;
}

.region-back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #0d47a1;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 14px;
}

.region-detail-hero h1 {
    color: #082552;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 12px;
}

.region-detail-hero p {
    color: #64748b;
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

.region-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.region-detail-stats div {
    background: #f8fafc;
    border: 1px solid #e7eef6;
    border-radius: 18px;
    padding: 22px;
}

.region-detail-stats strong {
    display: block;
    color: #082552;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.region-detail-stats span {
    color: #64748b;
    font-weight: 700;
}

.region-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.region-detail-card {
    background: #fff;
    border: 1px solid #e7eef6;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.region-detail-card h2 {
    color: #082552;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 18px;
}

.district-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.district-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e7eef6;
    color: #082552;
    border-radius: 14px;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 800;
}

.district-pill i {
    color: #ffb703;
}

.region-action-card p {
    color: #64748b;
    line-height: 1.6;
}

.region-action-btn {
    height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    background: #ffb703;
    color: #082552;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
}

@media (max-width: 991px) {
    .region-detail-hero,
    .region-detail-grid {
        grid-template-columns: 1fr;
    }

    .region-detail-hero h1 {
        font-size: 34px;
    }
}
.region-profile-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.region-profile-grid {
    display: grid;
    gap: 14px;
}

/* Profil kartlarında uzun usta/firma adlarının taşmasını engeller. */
.region-profile-grid .profile-card-component {
    min-width: 0;
}

.region-profile-grid .profile-card-image,
.region-profile-grid .profile-card-placeholder {
    flex-shrink: 0;
}

.region-profile-grid .profile-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    overflow: hidden;
}

.region-profile-grid .profile-card-placeholder-name {
    display: -webkit-box;
    width: 100%;
    max-height: 100%;
    color: inherit;
    font-size: clamp(9px, .9vw, 13px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
}

.region-profile-grid .profile-card-content,
.region-profile-grid .profile-card-title-row {
    min-width: 0;
}

.region-profile-grid .profile-card-title-row h3 {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    font-size: clamp(13px, 1.15vw, 17px);
    line-height: 1.16;
}

.region-profile-grid .profile-card-type {
    flex-shrink: 0;
}

.region-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e7eef6;
    border-radius: 18px;
    padding: 14px;
    background: #f8fafc;
}

.region-profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #0d47a1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    overflow: hidden;
}

.region-profile-avatar.firma {
    background: #ffb703;
    color: #082552;
}

.region-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.region-profile-card h3 {
    color: #082552;
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 4px;
}

.region-profile-card p {
    color: #64748b;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .region-profile-section {
        grid-template-columns: 1fr;
    }
}

.region-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.region-service-pill {
    background: #ffffff;
    border: 1px solid #e7eef6;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: .2s ease;
}

.region-service-pill:hover {
    transform: translateY(-2px);
    border-color: #0d6efd;
    box-shadow: 0 10px 25px rgba(13, 110, 253, .08);
}

.region-service-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #eaf2ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.region-service-pill strong {
    display: block;
    color: #082552;
    font-size: 16px;
    margin-bottom: 4px;
}

.region-service-pill span {
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 768px) {
    .region-services-grid {
        grid-template-columns: 1fr;
    }
}
/* ==============================
   TÜRKİYE HARİTASI + TOOLTIP FIX
   JS aktif class: bolge-aktif
================================ */

.regions-map-wrap {
    position: relative;
}

.regions-map-card .svg-turkiye-haritasi {
    width: 100%;
    max-width: 100%;
    padding: 20px 10px;
}

.regions-map-card .svg-turkiye-haritasi svg,
.regions-map-card #svg-turkiye-haritasi {
    width: 100%;
    height: auto;
    display: block;
}

/* Türkiye şehirleri + Kıbrıs soluk */
.regions-map-card #svg-turkiye-haritasi #turkiye > g path,
.regions-map-card #svg-turkiye-haritasi #kibris > g path {
    fill: #dbe7f3 !important;
    stroke: #ffffff !important;
    stroke-width: 1.2 !important;
    transition: fill .18s ease, opacity .18s ease;
    cursor: pointer;
}

/* Aktif olmayanlar soluk */
.regions-map-card #svg-turkiye-haritasi #turkiye > g:not(.bolge-aktif) path,
.regions-map-card #svg-turkiye-haritasi #kibris > g:not(.bolge-aktif) path {
    opacity: .62 !important;
}

/* Aktif şehirler turuncu */
.regions-map-card #svg-turkiye-haritasi #turkiye > g.bolge-aktif path,
.regions-map-card #svg-turkiye-haritasi #kibris > g.bolge-aktif path {
    fill: #ffb703 !important;
    opacity: 1 !important;
}

/* Sadece üzerine gelinen şehir lacivert */
.regions-map-card #svg-turkiye-haritasi #turkiye > g:hover path,
.regions-map-card #svg-turkiye-haritasi #kibris > g:hover path {
    fill: #0d47a1 !important;
    opacity: 1 !important;
}

.map-city-tooltip {
    position: absolute;
    z-index: 20;
    min-width: 180px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #082552;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .22);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease;
}

.map-city-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.map-city-tooltip strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 8px;
}

.map-city-tooltip span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 700;
    margin-top: 5px;
}

.map-city-tooltip i {
    color: #ffb703;
}