/* routing-styles.css (Tıklanabilir ve Gelişmiş Stilli Sürüm) */
html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

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

#controls {
    position: absolute;
    top: 10px;
    z-index: 1000;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
}

/* Rota Bilgi Tooltip Stili */
.route-summary-tooltip {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    /* YENİ: Tooltip'in tıklanabilir olmasını sağlar */
    pointer-events: auto !important;
}

.route-tooltip-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.route-tooltip-inner:hover {
    transform: scale(1.05);
}

/* Seçili Rota Tooltip'i */
.primary-tooltip .route-tooltip-inner {
    background-color: #1a73e8;
    color: white;
}

/* Alternatif Rota Tooltip'i */
.alternative-tooltip .route-tooltip-inner {
    background-color: white;
    color: #3c4043;
}


.route-tooltip-inner .duration {
    font-weight: bold;
}

.route-tooltip-inner .distance {
    opacity: 0.9;
    font-size: 0.9em;
}

/* ... Geri kalan CSS kodları aynı ... */
#waypoint-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.waypoint-item { display: flex; align-items: center; gap: 8px; position: relative; }
.waypoint-item i { color: #777; font-style: normal; width: 20px; text-align: center; }
.waypoint-item input { flex-grow: 1; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.pick-on-map, .remove-waypoint { background: none; border: none; color: #555; cursor: pointer; font-size: 1.6em; padding: 0 5px; }
#add-waypoint-btn, #clear-all-btn, #start-nav-btn { padding: 12px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; }
#add-waypoint-btn { background-color: #f0f0f0; color: #333; margin-bottom: 10px; }
#clear-all-btn { background-color: #dc3545; color: white; }
#suggestions-container { position: absolute; background: white; border: 1px solid #ddd; box-shadow: 0 4px 8px rgba(0,0,0,0.1); z-index: 1001; display: none; }
.suggestion-item { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; font-size: 14px; }
.picking-mode { cursor: crosshair !important; }
#loader { display: none; position: absolute; top: 15px; right: 15px; z-index: 1001; padding: 5px 10px; background: rgba(0,0,0,0.7); color: white; border-radius: 4px; }

@media (min-width: 768px) {
  #controls {
    left: 10px;
    transform: none;
    width: 350px;
  }
}
/* Profil Seçim Butonları Stilleri */
#profile-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.profile-btn {
    flex-grow: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.profile-btn:hover {
    background-color: #e9ecef;
}

.profile-btn.selected {
    background-color: #1a73e8;
    color: white;
    border-color: #0056b3;
}

/* === NAVİGASYON PANELİ STİLLERİ === */
#navigation-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: white;
    max-height: 40%; /* Ekranın en fazla %40'ını kaplasın */
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

#instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0; /* Küçülmesin */
}

#instructions-header h4 {
    margin: 0;
    font-size: 1.1em;
}

#stop-nav-btn {
    background: none;
    border: none;
    font-size: 2em;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

#instructions-list {
    overflow-y: auto; /* Dikeyde kaydırma çubuğu */
    padding: 10px 20px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.instruction-item:last-child {
    border-bottom: none;
}
.instruction-item .icon {
    font-size: 1.8em;
    flex-shrink: 0;
}
.instruction-item .text {
    font-size: 0.95em;
}

.instruction-item .text-container {
    display: flex;
    flex-direction: column;
}

.instruction-item .distance {
    font-size: 0.8em;
    color: #555;
    margin-top: 2px;
}

/* === KULLANICI KONUM IKONU === */
.user-location-marker {
    background-color: #1a73e8;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

