@import url('./constants.css');

h1 {
    font-family: "Poppins", serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-color);
    margin-left: 5%;
    margin-top: 60px;
    margin-bottom: 60px;
}

.map-container {
    padding: 10px 5%;
}

.branch-list-container {
    position: absolute;
    right: 10%;
    top: 200px;
    font-family: "Poppins", serif;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 20px;
    width: 400px;
    height: 70%;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.branch-list-container .branch-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #000000;
}
svg#svg-turkey-map{
    width: 100%;

}
.branch-list-container .branch-total {
    font-weight: 500;
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 16px;
}

.branch-list-scroll .branch-info {
    margin: 12px 5px 12px 0;
    box-sizing: border-box;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: start;
    background-color: #f8f9fa;
    width: calc(100% - 5px);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-list-scroll .branch-info:hover {
    background-color: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.branch-list-scroll .branch-info .branch-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #000000;
}

.branch-list-scroll .branch-info .branch-address {
    font-weight: 400;
    font-size: 0.8rem;
    color: #666666;
    line-height: 1.4;
}

.branch-list-scroll .branch-info .branch-address span {
    font-weight: 500;
    font-size: 0.8rem;
    color: #333333;
}

.branch-listener {
    cursor: pointer;
    overflow-y: auto;
    overflow-x: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
}

.branch-listener::-webkit-scrollbar {
    display: none;
}

/* Loading Animation */
.branch-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6c757d;
}

.branch-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
}


/*map*/
.city {
    fill: var(--lightGrey-color);
    fill-opacity: 1;
    stroke: white;
    stroke-opacity: 1;
    stroke-width: 0.5;
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
    cursor: pointer;

}

.city:hover {
    fill: var(--success-color);
}

.show-city-name {
    background-color: var(--white-color);
    color: var(--grey-color);
    position: absolute;
    font-family: "Poppins", serif;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    font-size: 16px;
    border: solid 1px #ccc;
    border-radius: 5px;
}

.show-city-name--active {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 1752px) {
    .branch-list-container {
        top: 25%;
       height: 70%;
    }
}
@media screen and (max-width: 1255px) {
    .branch-list-container {
        width: 380px;
        padding: 16px;
    }
}
@media screen and (max-width: 1105px) {
    .branch-list-container {
        height: 400px;
    }
}
@media screen and (max-width: 1006px) {
    .map-container{
        padding: 0;
    }
    svg#svg-turkey-map{
        width: 95%;

    }
    .branch-list-container {
        width: 95%;
        position: sticky;
        right: 0;
        margin: 10px auto;

    }
}
.branch-list-container {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform-origin: right center;
}

.branch-list-container.slide-left {
    transform: translateX(-420px);
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.branch-list-container.slide-right {
    transform: translateX(0);
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-420px) scale(0.98);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-420px) scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(0) scale(0.98);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}


.branch-info {
    position: relative; /* bunu ekleyelim ki child'ı absolute konumlandırabilelim */
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.branch-status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.branch-status-pill.active {
    background: #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.branch-status-pill.inactive {
    background: #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}.branch-social-media a i {
    margin-top: 8px;
    color: #000000;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.branch-social-media a:hover i {
    color: #333333;
}

@media (max-width: 900px) {
    .branch-list-container {
        min-width: unset !important;
        max-width: 100vw !important;
        padding: 16px !important;
        font-size: 0.9rem;
    }
    .map-container {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100vw !important;
        height: 250px !important;
        margin-bottom: 20px;
    }
    .branch-list-scroll {
        max-height: 200px !important;
    }
    .branch-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }
    .branch-list-scroll .branch-info .branch-name {
        font-size: 0.9rem;
    }
    .branch-list-scroll .branch-info .branch-address {
        font-size: 0.8rem;
    }
    .main-branch-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .branch-list-container {
        font-size: 0.85rem;
        padding: 12px !important;
    }
    .map-container {
        height: 180px !important;
    }

    .branch-list-scroll .branch-info .branch-name {
        font-size: 0.85rem;
    }
    .branch-list-scroll .branch-info .branch-address {
        font-size: 0.75rem;
    }
}

/* Bağlı Ürünler Tablosu Stilleri artık admin paneli CSS'inde */





