* {
    box-sizing: border-box;
}

.kdf-store-locator {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

.kdf-header {
    text-align: center;
    margin-bottom: 30px;
}

.kdf-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.kdf-header p {
    font-size: 16px;
    color: #666;
}

.kdf-search-section {
    margin-bottom: 30px;
}

.kdf-search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.kdf-search-input:focus {
    outline: none;
    border-color: #2067b0;
}

.kdf-cities-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.kdf-district-block.hidden,
.kdf-city-item.hidden {
    display: none;
}

.kdf-district-title {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 700;
    color: #1f3d5b;
}

.kdf-district-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.kdf-city-item {
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 15px;
    color: #333;
}

.kdf-city-item:hover {
    background: #2067b0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 103, 176, 0.3);
}

.kdf-content {
    display: none;
    gap: 20px;
}

.kdf-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.kdf-stores-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 600px;
    overflow-y: auto;
}

.kdf-stores-panel h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.kdf-store-card {
    padding: 16px;
    margin-bottom: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.kdf-store-card:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.kdf-store-card.active {
    border-color: #2067b0;
    background: #e3f2fd;
}

.kdf-store-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.kdf-store-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}

.kdf-store-phone {
    font-size: 14px;
    color: #2067b0;
    font-weight: 500;
}

.kdf-map-container {
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 600px;
    position: relative;
}

#kdf-map {
    width: 100%;
    height: 100%;
}

.kdf-back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2067b0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.kdf-back-btn:hover {
    background: #1a5490;
}

@media (max-width: 1024px) {
    .kdf-content.active {
        grid-template-columns: 1fr;
    }

    .kdf-map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .kdf-district-cities {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .kdf-header h1 {
        font-size: 24px;
    }

    .kdf-stores-panel {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .kdf-district-cities {
        grid-template-columns: 1fr;
    }

    .kdf-store-locator {
        padding: 15px;
    }
}
