/* ==========================================================================
   Bayi Bulucu Modern Sidebar Stilleri v5
   ========================================================================== */

/* Ana Kapsayıcı (Flexbox ile sütunları yan yana getirir) */
#bayi-bulucu-wrapper {
    display: flex;
    flex-wrap: wrap; /* Mobilde alt alta geçmesi için */
    gap: 30px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Sol Sütun: Filtre Alanı */
.bayi-sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
}

.bayi-filters {
    background-color: #f7f7f7;
    padding: 25px 25px 10px 25px;
    border: 1px solid #e9e9e9;
    border-radius: 20px;
    position: sticky; /* Sayfa kaydırılsa bile filtrenin ekranda kalmasını sağlar */
    top: 30px;
}

.filter-group {
    margin-bottom: 15px;
}

/* Modern Select ve Input stilleri */
.bayi-filters select,
.input-with-button-wrapper input[type="text"] {
    width: 100%;
    height: 50px;
    border: 1px solid #dcdfe6;
    border-radius: 20px;
    background-color: #ffffff;
    font-size: 16px;
    color: #606266;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.bayi-filters select {
    padding: 0 40px 0 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23888888" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.input-with-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-button-wrapper input[type="text"] {
    padding: 0 50px 0 15px;
}

.input-with-button-wrapper #bayi-arama-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #606266;
    display: flex;
    align-items: center;
    justify-content: center;
}
.input-with-button-wrapper #bayi-arama-btn:hover { color: #2c3e50; }

.bayi-filters select:focus,
.input-with-button-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

/* Sağ Sütun: Bayi Listesi İçeriği */
.bayi-content {
    flex: 3;
    min-width: 300px;
}

.sonuc-baslik { font-size: 24px; font-weight: 600; color: #333; margin-bottom: 20px; }
#bayi-listesi-sonuclar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.bayi-item { border: 1px solid #e9e9e9; padding: 25px; border-radius: 12px; background-color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); transition: all 0.3s ease; }
.bayi-item h3 { margin-top: 0; }
.bayi-item p { margin: 8px 0; color: #555; }
.loading-text { text-align: center; padding: 40px; color: #888; grid-column: 1 / -1; }

.bayi-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    #bayi-bulucu-wrapper { flex-direction: column; }
    .bayi-sidebar { max-width: 100%; position: static; }
    #bayi-listesi-sonuclar { grid-template-columns: 1fr; }
}