*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
}

.navbar-brand span {
    color: #1e8449;
}

#map {
    height: calc(100vh - 80px);
    width: 100%;
}

/* Custom Marker Styles */
.custom-marker {
    background: transparent;
    border: none;
    text-align: center;
}

/* Popup Card */
.popup-card {
    max-width: 240px;
    font-family: system-ui, sans-serif;
}

.popup-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.popup-card h4 {
    font-size: 16px;
    margin: 8px 0 6px 0;
    color: #222;
}

.popup-card p {
    font-size: 13px;
    color: #555;
    margin: 6px 0;
    line-height: 1.4;
}

.popup-type {
    display: inline-block;
    padding: 3px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.popup-btn {
    display: block;
    margin-top: 8px;
    padding: 8px;
    text-align: center;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    width: 100%;
    transition: background 0.2s;
}

.popup-btn:hover {
    background: #0b5ed7;
}

.popup-btn.secondary {
    background: #6c757d;
    margin-top: 6px;
    color: #fff;
}

.popup-btn.secondary:hover {
    background: #5a6268;
    color: #fff;
}

#route-type {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* GPS Button */
#gps-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 12px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

#gps-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Route Panel */
#route-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    width: 320px;
    background: white;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    max-height: 520px;
    overflow-y: auto;
}

#route-panel h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #333;
}

/* Selected list */
#selected-attractions {
    margin-bottom: 12px;
    max-height: 200px;
    overflow-y: auto;
}

/* Route item */
.route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.route-item span {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.route-item .remove-btn {
    background: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.route-item .remove-btn:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-1px);
}

/* Route options */
.route-options {
    margin: 14px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.route-options label {
    font-weight: 700;
    font-size: 13px;
    color: #333;
}

.route-options select {
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-weight: 600;
    background: #f8f9fa;
}

/* Buttons */
#calculate-route-btn,
#clear-route-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.12s ease, background 0.12s ease;
}

#calculate-route-btn {
    background: #28a745;
    color: white;
}

#calculate-route-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#calculate-route-btn:not(:disabled):hover {
    background: #218838;
    transform: translateY(-1px);
}

#clear-route-btn {
    background: #dc3545;
    color: white;
}

#clear-route-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Route info */
#route-info {
    margin-top: 12px;
    padding: 12px;
    background: #e7f3ff;
    border-radius: 10px;
    font-size: 13px;
    color: #004085;
    display: none;
}

#route-info.show {
    display: block;
}

/* User Location Marker */
.user-location-marker {
    background: transparent;
    border: none;
    font-size: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    #route-panel {
        width: calc(100% - 40px);
        top: auto;
        bottom: 80px;
        right: 20px;
        left: 20px;
    }

    #gps-btn {
        bottom: 20px;
        right: 20px;
    }
}