/* Bayilerimiz Plugin CSS - FRT Prefix - Perway Tasarım Uyumlu */

.frt-bayilerimiz-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8e8e8;
    min-height: 500px;
}

.frt-bayilerimiz-wrapper {
    display: flex;
    height: auto;
    min-height: 600px;
}

/* Sol Panel */
.frt-left-panel {
    width: 40%;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.frt-panel-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.frt-panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.frt-panel-header h1,
.frt-panel-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.frt-il-secimi {
    padding: 25px 20px;
    border-bottom: 1px solid #e9ecef;
}

/* Mobil Şube Dropdown */
.frt-sube-dropdown {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    display: none;
    position: relative;
    z-index: 5;
}


.frt-sube-dropdown label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.frt-sube-dropdown .frt-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ffc107;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s ease;
}

.frt-sube-dropdown .frt-dropdown:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.frt-il-secimi label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.frt-dropdown {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #2c3e50;
}

.frt-dropdown:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}

.frt-dropdown:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

/* Şube Listesi */
.frt-sube-listesi {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
    min-height: 0;
}

.frt-no-selection {
    text-align: center;
    color: #5d6d7e;
    margin: 10px 5px;
    padding: 10px 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.frt-no-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
}

.frt-no-selection-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 20px;
    opacity: 0.8;
}

.frt-no-selection h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.frt-no-selection p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0 0 25px 0;
    line-height: 1.5;
    font-weight: 500;
}

.frt-no-selection-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.frt-feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.frt-feature-item:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.frt-feature-item i {
    color: #3498db;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.frt-sube-item {
    background: #ffffff;
    border: 2px solid #f1f3f4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.frt-sube-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.frt-sube-item.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.frt-sube-item.active .frt-sube-telefon {
    color: rgba(255, 255, 255, 0.9);
}

.frt-sube-adi {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.frt-sube-item.active .frt-sube-adi {
    color: white;
}

.frt-sube-telefon {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}

.frt-sube-adres {
    color: #495057;
    font-size: 13px;
    line-height: 1.4;
}

.frt-sube-item.active .frt-sube-adres {
    color: rgba(255, 255, 255, 0.9);
}

.frt-harita-goster {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.frt-harita-goster:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.frt-sube-item.active .frt-harita-goster {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.frt-sube-item.active .frt-harita-goster:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Sağ Panel - Harita */
.frt-right-panel {
    width: 60%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    border-left: 1px solid #e1e8ed;
}

/* Harita Başlığı - Kaldırıldı */

.frt-map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#frt-google-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Loading Spinner */
.frt-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.frt-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f1f3f4;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: frt-spin 1s linear infinite;
}

@keyframes frt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .frt-bayilerimiz-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .frt-bayilerimiz-wrapper {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .frt-left-panel {
        width: 100%;
        max-height: 50vh;
        height: auto;
        border-right: none;
        border-bottom: 2px solid #e1e8ed;
        order: 1;
        flex: 0 0 auto;
        overflow-y: auto;
        position: relative;
        z-index: 10;
        min-height: 300px;
    }
    
    .frt-right-panel {
        width: 100%;
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
        order: 2;
        flex: 0 0 500px;
        overflow: hidden;
    }
    
    .frt-sube-listesi {
        max-height: none;
        overflow-y: auto;
        padding: 10px;
        height: auto;
        flex: 1;
        min-height: 200px;
    }
    
    .frt-sube-item {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 6px;
        position: relative;
        border: 1px solid #e1e8ed;
        background: #ffffff;
    }
    
    .frt-sube-item.active {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        color: white;
        border-color: #3498db;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        transform: none; /* Mobilde transform kaldır */
    }
    
    .frt-sube-item:hover {
        transform: none; /* Mobilde hover transform kaldır */
    }
    
    .frt-sube-adi {
        font-size: 14px;
        margin-bottom: 4px;
        margin-top: 5px;
        line-height: 1.2;
        font-weight: 600;
        color: #2c3e50;
        text-align: center;
    }
    
    .frt-sube-telefon {
        font-size: 12px;
        margin-bottom: 4px;
        color: #7f8c8d;
        text-align: center;
    }
    
    .frt-sube-adres {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 8px;
        color: #5d6d7e;
    }
    
    .frt-harita-goster {
        position: static;
        width: 100%;
        margin-top: 6px;
        padding: 6px 10px;
        font-size: 11px;
        text-align: center;
        border-radius: 4px;
        display: block;
        background: #e74c3c;
        color: white;
        border: none;
    }
    
    .frt-sube-item.active .frt-harita-goster {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .frt-sube-item.active .frt-harita-goster:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    #frt-google-map {
        min-height: 300px;
    }
    
    /* Mobilde bilgilendirme yazısını gizle */
    .frt-no-selection {
        display: none;
    }
}

@media (max-width: 480px) {
    .frt-bayilerimiz-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .frt-panel-header {
        padding: 12px 15px;
    }
    
    .frt-panel-header h1,
    .frt-panel-header h3 {
        font-size: 18px;
    }
    
    .frt-il-secimi {
        padding: 15px;
    }
    
    .frt-sube-listesi {
        padding: 8px;
        max-height: none;
        overflow-y: auto;
        height: auto;
        flex: 1;
        min-height: 0;
    }
    
    .frt-right-panel {
        width: 100%;
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
        flex: 0 0 500px;
        overflow: hidden;
    }
    
    .frt-sube-item {
        padding: 10px;
        margin-bottom: 6px;
        border-radius: 4px;
        border: 1px solid #e1e8ed;
        background: #ffffff;
    }
    
    .frt-sube-adi {
        font-size: 13px;
        margin-bottom: 3px;
        margin-top: 5px;
        line-height: 1.1;
        font-weight: 600;
        color: #2c3e50;
        text-align: center;
    }
    
    .frt-sube-telefon {
        font-size: 11px;
        margin-bottom: 3px;
        color: #7f8c8d;
        text-align: center;
    }
    
    .frt-sube-adres {
        font-size: 10px;
        line-height: 1.2;
        margin-bottom: 6px;
        color: #5d6d7e;
    }
    
    .frt-harita-goster {
        padding: 5px 8px;
        font-size: 10px;
        margin-top: 5px;
        background: #e74c3c;
        color: white;
        border: none;
        border-radius: 3px;
    }
    
    .frt-right-panel {
        height: 500px !important;
        min-height: 500px !important;
        flex: 0 0 auto;
    }
    
    #frt-google-map {
        height: 500px !important;
        min-height: 500px !important;
    }
    
    .frt-left-panel {
        max-height: 50vh;
        height: auto;
        flex: 0 0 auto;
        overflow-y: auto;
        position: relative;
        z-index: 10;
        min-height: 300px;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .frt-sube-item:active {
        background: #f0f8ff;
        border-color: #3498db;
        transform: scale(0.98);
    }
    
    .frt-sube-item.active:active {
        background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
        transform: scale(0.98);
    }
    
    .frt-harita-goster:active {
        transform: scale(0.95);
    }
    
    .frt-dropdown {
        font-size: 16px; /* iOS zoom önleme */
        padding: 12px;
    }
    
    .frt-il-secimi label {
        font-size: 16px;
        margin-bottom: 8px;
        display: block;
    }
}

/* Ultra small screens */
@media (max-width: 360px) {
    .frt-bayilerimiz-container {
        margin: 5px;
        border-radius: 2px;
    }
    
    .frt-sube-item {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .frt-sube-adi {
        font-size: 13px;
    }
    
    .frt-sube-telefon {
        font-size: 11px;
    }
    
    .frt-sube-adres {
        font-size: 10px;
    }
    
    .frt-harita-goster {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* Scrollbar Styling */
.frt-sube-listesi::-webkit-scrollbar {
    width: 6px;
}

.frt-sube-listesi::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.frt-sube-listesi::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 3px;
}

.frt-sube-listesi::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
}

/* Empty State */
.frt-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.frt-empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.frt-empty-state h4 {
    margin-bottom: 10px;
    color: #495057;
}

.frt-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Error State */
.frt-error-state {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
}

.frt-error-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.frt-error-state h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.frt-error-state p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
}

/* Perway Brand Colors Integration */
.frt-brand-accent {
    color: #3498db;
}

.frt-brand-secondary {
    color: #2c3e50;
}

.frt-brand-success {
    color: #27ae60;
}

.frt-brand-warning {
    color: #f39c12;
}

.frt-brand-danger {
    color: #e74c3c;
}

/* Enhanced Typography */
.frt-sube-adi {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.3;
}

.frt-sube-telefon {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.frt-sube-adres {
    color: #5d6d7e;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}
