
/* Genel sayfa stilleri */
html, body {
height: 100%;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}

/* Container */
.container {
display: flex;
flex-direction: column;
height: 100vh;
}

/* Logo bölümü */
.logo-section {
display: flex;
justify-content: center;
align-items: center;
padding: 15px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 1000;
}

.logo-section img {
max-height: 60px;
max-width: 250px;
height: auto;
width: auto;
}

/* Ana içerik bölümü */
.main-content {
display: flex;
flex: 1;
overflow: hidden;
}

/* Sol panel - Çekici listesi */
.sidebar {
width: 350px;
background: #f8f9fa;
border-right: 1px solid #dee2e6;
display: flex;
flex-direction: column;
overflow: hidden;
}

.sidebar-header {
padding: 20px;
background: #fff;
border-bottom: 1px solid #dee2e6;
}

.sidebar-title {
font-size: 18px;
font-weight: bold;
color: #333;
margin: 0;
}

.location-status {
font-size: 14px;
margin-top: 8px;
padding: 8px 12px;
border-radius: 5px;
background: #e3f2fd;
color: #1976d2;
}

.location-status.loading {
background: #e3f2fd;
color: #1976d2;
}

.location-status.success {
background: #e8f5e8;
color: #2e7d32;
}

.location-status.error {
background: #ffebee;
color: #c62828;
}

.cekici-list {
flex: 1;
overflow-y: auto;
padding: 10px;
}

.cekici-item {
background: white;
border-radius: 8px;
padding: 15px;
margin-bottom: 10px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid transparent;
}

.cekici-item:hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
transform: translateY(-1px);
}

.cekici-item.selected {
border-color: #007bff;
background: #f0f8ff;
}

.cekici-item.closest {
border-color: #28a745;
background: #f0fff0;
}

.cekici-header {
display: flex;
justify-content: between;
align-items: center;
margin-bottom: 8px;
}

.cekici-name {
font-size: 16px;
font-weight: bold;
color: #333;
flex: 1;
}

.cekici-badge {
background: #28a745;
color: white;
padding: 2px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: bold;
}

.cekici-distance {
font-size: 14px;
color: #666;
margin-bottom: 10px;
}

.cekici-actions {
display: flex;
gap: 8px;
}

.cekici-btn {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
padding: 8px 12px;
text-decoration: none;
border-radius: 5px;
font-size: 13px;
font-weight: bold;
transition: all 0.3s ease;
}

.cekici-btn-whatsapp {
background-color: #25D366;
color: white;
}

.cekici-btn-whatsapp:hover {
background-color: #20b358;
}

.cekici-btn-call {
background-color: #007bff;
color: white;
}

.cekici-btn-call:hover {
background-color: #0056b3;
}

/* Harita bölümü */
.map-section {
flex: 1;
position: relative;
}

gmp-map {
width: 100%;
height: 100%;
}

/* Responsive tasarım */
@media (max-width: 768px) {
.main-content {
    flex-direction: column;
}

.sidebar {
    width: 100%;
    height: 40%;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
}

.map-section {
    height: 60%;
}

.logo-section {
    padding: 10px;
}

.logo-section img {
    max-height: 50px;
    max-width: 200px;
}

.sidebar-header {
    padding: 15px;
}

.cekici-item {
    padding: 12px;
}

}

/* Scrollbar stilleri */
.cekici-list::-webkit-scrollbar {
width: 6px;
}

.cekici-list::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}

.cekici-list::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 3px;
}

.cekici-list::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}

/* Talep sayfası stilleri */
.talep-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.talep-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.cekici-info, .price-calculator, .map-container, .location-info, .message-preview {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cekici-info h2, .price-calculator h3, .map-container h3, .location-info h3, .message-preview h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.info-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.info-item strong {
    color: #333;
    margin-right: 8px;
}

/* Fiyat hesaplayıcı stilleri */
.vehicle-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.vehicle-type-selector label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.vehicle-type-selector input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.price-display {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.price-amount {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.price-details {
    font-size: 14px;
    color: #666;
}

/* Harita container */
.map-container gmp-map {
    border-radius: 8px;
    overflow: hidden;
}

/* Konum linkleri */
.location-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.location-links .btn {
    flex: 1;
    min-width: 200px;
}

/* Mesaj önizleme */
.message-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    color: #333;
}

/* Yanıt mesajı stilleri */
.response-message {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid #28a745;
}

.response-message h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #28a745;
    font-size: 18px;
}

.response-content {
    background: #f8fff8;
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #333;
    margin-bottom: 15px;
    min-height: 200px;
}

.copy-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.copy-status {
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Buton stilleri */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #20b358;
}

.btn-call {
    background-color: #dc3545;
    color: white;
}

.btn-call:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Aksiyon butonları */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Header logo */
header {
    text-align: center;
    padding: 25px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

header .logo img {
    max-height: 80px;
    max-width: 350px;
    height: auto;
    width: auto;
}

/* Responsive tasarım - Talep sayfası */
@media (max-width: 768px) {
    .talep-container {
        padding: 15px;
    }
    
    .vehicle-type-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .location-links {
        flex-direction: column;
    }
    
    .location-links .btn {
        min-width: auto;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        min-width: auto;
    }
    
    .price-amount {
        font-size: 20px;
    }
    
    header {
        padding: 20px;
    }
    
    header .logo img {
        max-height: 65px;
        max-width: 280px;
    }
}


/* Leaflet özel marker stilleri */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Leaflet harita stilleri */
#map, #talepMap {
    z-index: 1;
}

.leaflet-container {
    font-family: Arial, sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 10px;
    font-size: 14px;
}
