/**
 * EcoFlow Dealer Frontend Styles
 * Sadece bayi arama sayfası için - Diğer sayfalara müdahale etmez
 */

/* ===== CSS VARIABLES ===== */
.ecoflow-dealers-container {
    --ecoflow-black: #000000;
    --ecoflow-text-primary: #1a1a1a;
    --ecoflow-text-secondary: #6c757d;
    --ecoflow-text-third:#919191;
    --ecoflow-text-light: #adb5bd;
    --ecoflow-border: #e9ecef;
    --ecoflow-border-light: #dee2e6;
    --ecoflow-bg-white: #ffffff;
    --ecoflow-bg-light: #f8f9fa;
    --ecoflow-accent: #4a90e2;
    --ecoflow-accent-dark: #357abd;
    --ecoflow-input-border: #e0e6ed;
    --ecoflow-transition: all 0.3s ease;
    --ecoflow-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --ecoflow-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --ecoflow-shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ===== MAIN CONTAINER ===== */
.ecoflow-dealers-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ecoflow-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
.ecoflow-dealers-header {
    text-align: center;
    margin-bottom: 48px;
}

.ecoflow-dealers-header h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--ecoflow-black);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.ecoflow-dealers-header p {
    font-size: 16px;
    color: var(--ecoflow-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ===== FILTERS ===== */
.ecoflow-dealers-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ecoflow-filter-item {
    flex: 1;
    min-width: 280px;
    position: relative;
}

/* Postal Code Filter */
.ecoflow-filter-postal {
    position: relative;
}

/* Postal Type Toggle Button */
.ecoflow-postal-toggle {
    position: absolute;
    left: 12px; /* Input'un sol padding'i içinde */
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--ecoflow-bg-light);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--ecoflow-transition);
    z-index: 10;
}

.ecoflow-postal-toggle:hover {
    background: #e9ecef;
}

.ecoflow-postal-toggle.active {
    background: #e3f2fd;
}

.ecoflow-postal-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecoflow-postal-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--ecoflow-text-secondary);
    transition: var(--ecoflow-transition);
}

.ecoflow-postal-toggle.active .ecoflow-postal-arrow {
    transform: rotate(180deg);
}

/* Postal Type Dropdown Menu */
.ecoflow-postal-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--ecoflow-bg-white);
    border: 1px solid var(--ecoflow-border);
    border-radius: 10px;
    box-shadow: var(--ecoflow-shadow-md);
    z-index: 1000;
    min-width: 280px;
    display: none;
    overflow: hidden;
}

.ecoflow-postal-menu.active {
    display: block;
    animation: ecoflowFadeIn 0.2s ease;
}

.ecoflow-postal-option {
    padding: 14px 18px;
    cursor: pointer;
    transition: var(--ecoflow-transition);
    border-bottom: 1px solid var(--ecoflow-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ecoflow-postal-option:last-child {
    border-bottom: none;
}

.ecoflow-postal-option:hover {
    background: var(--ecoflow-bg-light);
}

.ecoflow-postal-option.active {
    background: #e3f2fd;
    color: var(--ecoflow-accent);
}

.ecoflow-option-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecoflow-option-label {
    font-size: 15px;
    font-weight: 500;
}

/* Input & Select Styling */
.ecoflow-filter-item select,
.ecoflow-filter-item input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--ecoflow-text-primary);
    background: var(--ecoflow-bg-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: var(--ecoflow-transition);
    font-family: inherit;
}

.ecoflow-filter-item select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236c757d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
    cursor: pointer;
}

/* Postal Input - Space for Toggle and Search Icon */
.ecoflow-filter-postal input[type="text"] {
    padding-left: 85px; /* Toggle (56px) + spacing */
    padding-right: 50px; /* Search icon için */
}

.ecoflow-filter-item select:focus,
.ecoflow-filter-item input[type="text"]:focus {
    outline: none;
    border-color: #ddd;
}

.ecoflow-filter-item input::placeholder {
    color: var(--ecoflow-text-light);
}
/* City Select - Clear Button */
.ecoflow-filter-city {
    position: relative;
}

.ecoflow-city-clear {
    position: absolute;
    right: 45px; /* Dropdown arrow'un solunda */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: none; /* Default gizli */
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--ecoflow-transition);
    z-index: 5;
    font-size: 18px;
    line-height: 1;
    color: var(--ecoflow-text-third);
    font-weight: 700;
}
/* Store Type Clear Button */
.ecoflow-filter-store-type {
    position: relative;
}

.ecoflow-store-type-clear {
    position: absolute;
    right: 45px; /* Dropdown arrow'un solunda */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: none; /* Default gizli */
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--ecoflow-transition);
    z-index: 5;
    font-size: 18px;
    line-height: 1;
    color: var(--ecoflow-text-third);
    font-weight: 700;
}

.ecoflow-store-type-clear svg {
    width: 16px;
    height: 16px;
}
/* Hover state - Show clear button when city is selected */
.ecoflow-filter-city:hover .ecoflow-city-clear.has-value {
    display: flex;
}

/* Select padding adjustment when clear button is visible */
.ecoflow-filter-city select {
    padding-right: 70px; /* Space for clear + arrow */
}
/* Search Icon */
.ecoflow-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #000;
    cursor: pointer;
    transition: var(--ecoflow-transition);
    z-index: 2;
}

.ecoflow-search-icon:hover {
    color: #000;
}
/* SVG Icon Styling */
.ecoflow-postal-icon svg,
.ecoflow-option-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    color: #919191;
    transition: var(--ecoflow-transition);
    fill: #919191 !important;
}

.ecoflow-postal-toggle:hover .ecoflow-postal-icon svg {
    color: var(--ecoflow-accent);
}

.ecoflow-postal-toggle.active .ecoflow-postal-icon svg {
    color: var(--ecoflow-accent);
}

.ecoflow-postal-option:hover .ecoflow-option-icon svg {
    color: var(--ecoflow-accent);
}

.ecoflow-postal-option.active .ecoflow-option-icon svg {
    color: var(--ecoflow-accent);
}

.ecoflow-option-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecoflow-postal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ===== LIST PANEL ===== */
.ecoflow-dealers-results {
    display: flex;
    flex-direction: row;
    gap: 25px;
}
.ecoflow-dealers-list-panel {
    flex: 0 366px;
    display: flex;
    flex-direction: column;
}

.ecoflow-dealers-count {
    padding: 16px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--ecoflow-text-secondary);
}

.ecoflow-dealers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Scrollbar Styling */
.ecoflow-dealers-list::-webkit-scrollbar {
    width: 6px;
}

.ecoflow-dealers-list::-webkit-scrollbar-track {
    background: var(--ecoflow-bg-light);
    border-radius: 10px;
}

.ecoflow-dealers-list::-webkit-scrollbar-thumb {
    background: var(--ecoflow-border-light);
    border-radius: 10px;
}

.ecoflow-dealers-list::-webkit-scrollbar-thumb:hover {
    background: var(--ecoflow-border);
}

/* ===== DEALER CARD ===== */
.ecoflow-dealer-card {
    background: var(--ecoflow-bg-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 16px 24px;
    transition: var(--ecoflow-transition);
    cursor: pointer;
}

.ecoflow-dealer-card:hover {
    border-color: var(--ecoflow-border-light);
    background-color: #f8f8f8;
}

.ecoflow-dealer-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ecoflow-text-primary);
    margin: 0 0 16px 0;
}

.ecoflow-dealer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ecoflow-dealer-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1.6;
    color: #757575;
    font-weight: 400;
}

.ecoflow-info-icon {
    flex-shrink: 0;
    font-size: 16px;
    color: #757575;
    width: 16px;
    margin-top: 2px;
}

.ecoflow-info-text {
    flex: 1;
}

.ecoflow-info-text a {
    color: var(--ecoflow-text-secondary);
    text-decoration: none;
    transition: var(--ecoflow-transition);
}

.ecoflow-info-text a:hover {
    color: var(--ecoflow-accent);
    text-decoration: underline;
}

/* No Results */
.ecoflow-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--ecoflow-text-light);
    font-size: 16px;
}

/* ===== MAP PANEL (Desktop Only) ===== */
.ecoflow-dealers-map-panel {
    flex: 3;
    background: var(--ecoflow-bg-light);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ecoflow-dealers-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.ecoflow-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 700px;
    color: var(--ecoflow-text-light);
    font-size: 16px;
}

/* ===== PAGINATION ===== */
.ecoflow-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding: 20px 0;
}

.ecoflow-pagination-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ecoflow-border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--ecoflow-transition);
    color: var(--ecoflow-text-secondary);
    background: var(--ecoflow-bg-white);
}

.ecoflow-pagination-arrow:hover:not(.disabled) {
    border-color: var(--ecoflow-accent);
    color: var(--ecoflow-accent);
    background: var(--ecoflow-bg-light);
}

.ecoflow-pagination-arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ecoflow-pagination-info {
    font-size: 14px;
    color: var(--ecoflow-text-secondary);
}

/* ===== ANIMATIONS ===== */
@keyframes ecoflowFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
    .ecoflow-dealers-results {
        flex-direction: column;
    }

    .ecoflow-dealers-map-panel {
        display: none;
    }

    .ecoflow-dealers-list {
        max-height: none;
    }

    .ecoflow-dealers-list-panel {
        flex: 1;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    .ecoflow-dealers-container {
        padding: 40px 15px;
    }

    .ecoflow-dealers-header h1 {
        font-size: 32px;
    }

    .ecoflow-dealers-header p {
        font-size: 14px;
    }

    .ecoflow-dealers-filters {
        flex-direction: column;
    }

    .ecoflow-filter-item {
        min-width: 100%;
    }

    .ecoflow-dealer-card {
        padding: 20px;
    }

    .ecoflow-dealer-card h3 {
        font-size: 16px;
    }

    .ecoflow-dealer-info-item {
        font-size: 13px;
    }

    .ecoflow-pagination {
        gap: 12px;
    }
}
/* ===== ICON IMPROVEMENTS ===== */

/* Icon'ları daha iyi göstermek için */
.ecoflow-postal-icon,
.ecoflow-search-icon,
.ecoflow-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Emoji fallback styling */
.ecoflow-postal-icon::before,
.ecoflow-option-icon::before {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

/* Search icon hover effect */
.ecoflow-search-icon {
    font-size: 18px;
    transition: var(--ecoflow-transition);
}

/* Info icons spacing */
.ecoflow-dealer-info-item .ecoflow-info-icon {
    font-size: 14px;
    width: 20px;
    height: 20px;
}

/* Responsive icon sizes */
@media (max-width: 768px) {
    .ecoflow-postal-icon,
    .ecoflow-search-icon {
        font-size: 16px;
    }
    
    .ecoflow-info-icon {
        font-size: 13px;
    }
}

/* Loading state */
.ecoflow-dealers-list.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ecoflow-dealers-list.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--ecoflow-border);
    border-top-color: var(--ecoflow-accent);
    border-radius: 50%;
    animation: ecoflowSpin 0.8s linear infinite;
}

@keyframes ecoflowSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Empty state styling */
.ecoflow-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
/* Search Input */
.ecoflow-filter-search {
    position: relative;
}

.ecoflow-filter-search input {
    padding-right: 50px;
}

/* No Results SVG */
.ecoflow-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.ecoflow-no-results svg {
    width: 180px;
    height: auto;
    opacity: 0.8;
}

.ecoflow-no-results p {
    color: var(--ecoflow-text-secondary);
    font-size: 16px;
    text-align: center;
    margin: 0;
}
/* Google Maps InfoWindow özelleştirme */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

/* Üstteki boş alanı kaldır */
.gm-style .gm-style-iw-t::after {
    display: none !important;
}

/* X (kapat) butonunu gizle */
.gm-style .gm-ui-hover-effect {
    display: none !important;
}

/* InfoWindow içeriği */
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}

/* Scroll bar'ı kaldır */
.gm-style-iw-d::-webkit-scrollbar , .gm-style-iw-chr{
    display: none !important;
}
/* ===== END OF FILE ===== */