/* Köpek Haritası - Public Styles v2 */

.kh-map-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

/* === GUVENLI ALAN SORGUSU === */
.kh-guvenlik-sorgu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.kh-guvenlik-sorgu h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kh-guvenlik-sorgu p {
    margin: 0 0 15px 0;
    opacity: 0.9;
    font-size: 14px;
}

.kh-sorgu-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.kh-sorgu-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255,255,255,0.95);
    color: #333;
}

.kh-sorgu-form input::placeholder {
    color: #999;
}

.kh-sorgu-form button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #28a745;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.kh-sorgu-form button:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.kh-sorgu-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === SORGU SONUCU === */
.kh-sorgu-sonuc {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    display: none;
    animation: khFadeIn 0.4s ease;
}

@keyframes khFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.kh-sonuc-guvenli {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.kh-sonuc-orta {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.kh-sonuc-tehlikeli {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.kh-sonuc-baslik {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kh-sonuc-detay {
    font-size: 15px;
    line-height: 1.6;
}

.kh-sonuc-detay strong {
    font-size: 28px;
    display: block;
    margin: 5px 0;
}

.kh-yakin-kopekler {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed currentColor;
}

.kh-yakin-kopekler h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.kh-yakin-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kh-yakin-liste li {
    padding: 5px 0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

/* === HARITA === */
.kh-map-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.kh-map-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    background: white;
    cursor: pointer;
}

.kh-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.kh-btn-primary {
    background: #007cba;
    color: white;
}

.kh-btn-primary:hover {
    background: #005a87;
}

.kh-btn-secondary {
    background: #6c757d;
    color: white;
}

.kh-btn-secondary:hover {
    background: #545b62;
}

#kh-harita {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kh-map-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.kh-stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.kh-stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.kh-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Popup */
.kh-popup {
    min-width: 220px;
}

.kh-popup-header {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
}

.kh-popup-content {
    font-size: 13px;
    line-height: 1.6;
}

.kh-popup-content p {
    margin: 4px 0;
}

.kh-popup-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.kh-popup-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 5px;
}

.kh-badge-green { background: #d4edda; color: #155724; }
.kh-badge-orange { background: #fff3cd; color: #856404; }
.kh-badge-red { background: #f8d7da; color: #721c24; }

/* Form */
.kh-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.kh-form-container h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007cba;
}

.kh-form-group {
    margin-bottom: 20px;
}

.kh-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.kh-form-group input,
.kh-form-group select,
.kh-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.kh-form-group input:focus,
.kh-form-group select:focus,
.kh-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

#kh-form-harita {
    border-radius: 8px;
    border: 2px solid #ddd;
}

#kh-form-mesaj {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.kh-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.kh-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.kh-notice {
    padding: 20px;
    background: #e7f3ff;
    border-left: 4px solid #007cba;
    border-radius: 4px;
    margin: 20px 0;
}

.kh-notice a {
    color: #007cba;
    font-weight: 500;
}

/* Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    padding: 12px;
}

.marker-cluster-small {
    background-color: rgba(0, 124, 186, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(0, 124, 186, 0.8);
    color: white;
}

.marker-cluster-medium {
    background-color: rgba(255, 159, 64, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(255, 159, 64, 0.8);
    color: white;
}

.marker-cluster-large {
    background-color: rgba(255, 99, 132, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(255, 99, 132, 0.8);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .kh-sorgu-form {
        flex-direction: column;
    }
    .kh-sorgu-form input,
    .kh-sorgu-form button {
        width: 100%;
    }
    .kh-map-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .kh-map-filters select,
    .kh-map-filters button {
        width: 100%;
    }
    .kh-map-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .kh-form-container {
        padding: 20px;
    }
}
