* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    /* Prevent scrolling and zooming on mobile */
    overflow: hidden;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent pull-to-refresh */
    overscroll-behavior: none;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header h1 {
    color: #667eea;
    font-weight: 600;
    font-size: 1.8rem;
}

.header h1 i {
    margin-right: 0.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9ff;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover:not(:disabled) {
    background: #667eea;
    color: white;
}

.btn-secondary:disabled {
    background: #f5f5f5;
    color: #adb5bd;
    border-color: #dee2e6;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.btn-outline {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Sidebar hidden state */
.container.sidebar-hidden .main-content {
    flex-direction: row;
}

.container.sidebar-hidden .sidebar {
    display: none !important;
}

.container.sidebar-hidden .map-container {
    width: 100% !important;
    flex: none !important;
}

/* Sidebar */
.sidebar {
    width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Allow scrolling within sidebar */
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.trip-info {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.trip-info h2 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.trip-dates {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-input {
    padding: 0.5rem;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 16px; /* Prevent zoom on iOS */
    transition: border-color 0.3s ease;
    width: 140px;
    text-align: center;
    cursor: pointer;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
}

.date-input:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

/* Days Container */
.days-container {
    flex: 1;
    padding: 2rem;
}

.days-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.days-header h3 {
    color: #333;
    font-weight: 600;
}

.days-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.day-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.day-card.selected {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.day-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.day-view-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    background: #e0e0e0;
    color: #666;
    transition: all 0.3s ease;
}

.day-view-btn:hover {
    background: #d0d0d0;
}

.day-view-btn.active {
    background: #43a047;
    color: white;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.3);
}

.day-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.day-date {
    color: #666;
    font-size: 0.9rem;
}

.day-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.add-location-btn, .add-note-btn {
    background: #f8f9ff;
    color: #667eea;
    border: 2px dashed #667eea;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    flex: 1;
    font-size: 0.9rem;
}

.add-note-btn {
    border-color: #43a047;
    color: #43a047;
}

.add-location-btn:hover {
    background: #667eea;
    color: white;
    border-style: solid;
}

.add-note-btn:hover {
    background: #43a047;
    color: white;
    border-style: solid;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-item {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    position: relative;
    transition: all 0.3s ease;
}

.location-item.clickable {
    cursor: pointer;
}

.location-item.clickable:hover {
    background: #f0f2ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.note-item {
    background: #f8fff8;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #43a047;
    position: relative;
    transition: all 0.3s ease;
}

.travel-item {
    background: #fff8f8;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    position: relative;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    cursor: pointer;
}

.travel-item:hover {
    background: #fff0f0;
}

.travel-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.travel-connector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.travel-emoji {
    font-size: 1.2rem;
}

.travel-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ff9800;
    font-weight: 500;
}

.travel-placeholder {
    color: #999;
    font-style: italic;
}

.note-content {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

.note-timestamp {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.location-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.location-address {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.location-time {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 500;
}

.location-notes {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.location-address {
    color: #667eea;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location-maps {
    margin-top: 0.5rem;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #4285f4;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(66, 133, 244, 0.1);
    transition: all 0.2s ease;
}

.maps-link:hover {
    background: rgba(66, 133, 244, 0.2);
    color: #3367d6;
    transform: translateY(-1px);
}

.item-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.location-item:hover .item-actions,
.note-item:hover .item-actions {
    opacity: 1;
}

.edit-item, .delete-location {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.delete-location:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

.sidebar-footer .btn-outline {
    flex: 1;
    justify-content: center;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* Allow touch interactions for map */
    touch-action: manipulation;
}

#map {
    width: 100%;
    height: 100%;
    /* Ensure map gets proper touch events */
    touch-action: manipulation;
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: auto;
}

.control-btn {
    width: 45px;
    height: 45px;
    background: white !important;
    border: none !important;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #667eea !important;
    z-index: 1000;
    position: relative;
    font-size: 1rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background: white;
    margin: 0 auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.modal-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    color: #333;
    font-weight: 600;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #667eea;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(100vh - 200px);
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px; /* Prevent zoom on iOS */
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

/* Transport Options - kept for backward compatibility */
.transport-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.transport-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9ff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.transport-checkbox:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.transport-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    margin: 0;
    flex-shrink: 0;
}

.transport-checkbox input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.transport-checkbox span {
    font-size: 0.9rem;
    color: #333;
}

/* Money Input Group */
.money-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.money-input-group input {
    flex: 1;
}

.currency-select {
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: white;
    color: #333;
}

.currency-select:focus {
    outline: none;
    border-color: #667eea;
}

.currency-select:hover {
    border-color: #667eea;
}

/* Transport Methods Display in Activities */
.transport-methods {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    display: flex;
    gap: 0.3rem;
}

/* Activity Money Display */
.activity-money {
    color: #2ecc71;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Activity Duration Display */
.activity-duration {
    color: #3498db;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
}

.location-search-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.location-search-container input {
    flex: 1;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.search-btn:hover {
    background: #5a67d8;
}

.search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.coordinates-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.coordinates-container input {
    flex: 1;
    background-color: #f8f9fa;
    color: #666;
}

.clear-coords-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
}

.clear-coords-btn:hover {
    background: #ff3742;
    transform: scale(1.05);
}

.clear-coords-btn:active {
    transform: scale(0.95);
}

.coordinates-group {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e6ff;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 50vh;
        transition: all 0.3s ease;
    }
    
    .map-container {
        height: 50vh;
        transition: all 0.3s ease;
    }
    
    /* Mobile fullscreen map when sidebar is hidden */
    .container.sidebar-hidden .map-container {
        height: calc(100vh - 80px) !important; /* Subtract header height */
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .trip-dates {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sidebar-footer {
        flex-direction: column;
    }
    
    /* Make toggle button more prominent on mobile */
    .map-controls {
        top: 15px;
        right: 15px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .sidebar {
        padding: 1rem;
    }
    
    .trip-info,
    .days-container,
    .sidebar-footer {
        padding: 1rem;
    }
    
    .modal {
        padding: 10px 0;
    }
    
    .modal-content {
        margin: 0 auto;
        width: 95%;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: calc(100vh - 160px);
    }
    
    /* Even better mobile fullscreen experience */
    .container.sidebar-hidden .map-container {
        height: calc(100vh - 70px) !important; /* Smaller header on mobile */
    }
    
    /* Larger toggle button for easier mobile interaction */
    .control-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.2rem !important;
    }
    
    .map-controls {
        top: 10px;
        right: 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Custom Leaflet Marker Styles */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Ensure map control buttons are always visible */
.map-container .control-btn {
    background: white !important;
    color: #667eea !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
}

.map-container .control-btn i {
    color: #667eea !important;
    font-size: 1rem !important;
}

.map-container .control-btn:hover {
    background: #667eea !important;
    color: white !important;
}

.map-container .control-btn:hover i {
    color: white !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom marker styling */
.custom-marker {
    background: none !important;
    border: none !important;
}

/* Sidebar hidden state */
.container.sidebar-hidden .main-content {
    padding-left: 0;
}

.container.sidebar-hidden .sidebar {
    transform: translateX(-100%);
}

/* Drag and Drop Styles */
.location-item, .note-item {
    position: relative;
    transition: all 0.2s ease;
}

.location-item.draggable, .note-item.draggable {
    cursor: grab;
}

.location-item.draggable:active, .note-item.draggable:active {
    cursor: grabbing;
}

.location-item.dragging, .note-item.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.drag-handle {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: grab;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 10;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-item:hover .drag-handle,
.note-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.drag-handle:active {
    cursor: grabbing;
}

.drop-zone {
    min-height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    margin: 4px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.drop-zone.active {
    opacity: 1;
}

.locations-list.drag-active {
    background-color: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

/* Adjust padding for drag handle space */
.location-item {
    padding-left: 32px;
}

.note-item {
    padding-left: 32px;
}

/* Drag placeholder */
.drag-placeholder {
    opacity: 0.8;
    transition: all 0.2s ease;
}

/* Improved drag handle visibility */
.drag-handle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.drag-handle:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: #667eea;
}

/* Better dragging state */
.location-item.dragging, .note-item.dragging {
    opacity: 0.3 !important;
    transform: rotate(5deg) scale(0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px dashed #667eea;
}

/* Smooth transitions for all items */
.location-item, .note-item {
    transition: all 0.15s ease;
}

/* Improve drop zone visibility */
.locations-list {
    min-height: 20px;
    transition: background-color 0.2s ease;
}

.locations-list:empty::after {
    content: "Drop items here";
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 8px 0;
}

/* Edit Mode Styles */
.custom-marker {
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
}

/* Edit mode marker styling */
.leaflet-editing-icon {
    border-radius: 50%;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
}

/* Draggable marker cursor */
.leaflet-marker-draggable {
    cursor: move !important;
}

/* Edit mode notification styling */
#editModeNotification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Transport Selector Container */
.transport-selector {
    background: white;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin: 0.5rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.transport-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.transport-method-group {
    flex: 1;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    min-width: 180px;
}

.transport-method {
    flex: 1;
    padding: 0.35rem 0.4rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    max-width: 180px;
}

.transport-method:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.transport-method:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.travel-time-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.travel-time-mode {
    padding: 0.35rem 0.4rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    width: 78px;
}

.travel-time-input {
    padding: 0.35rem 0.4rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    width: 80px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.travel-time-input[disabled] {
    opacity: 0.85;
    background: #f8f9ff;
}

.travel-duration-input {
    padding: 0.35rem 0.4rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    width: 58px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
}


.travel-time-input:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.travel-time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.transport-delete {
    flex: 0 0 auto;
}

.delete-transport-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Make transport controls wrap nicely on narrow screens */
@media (max-width: 480px) {
    .transport-row {
        justify-content: flex-start;
    }

    .transport-method-group {
        flex: 1 1 100%;
        min-width: 0;
    }

    .transport-method {
        max-width: none;
        width: 100%;
    }

    .travel-time-group {
        flex: 1 1 auto;
        width: auto;
    }

    .travel-time-mode {
        width: 88px;
    }

    .travel-time-input {
        width: 78px;
    }

    .travel-duration-input {
        width: 68px;
    }

    .transport-delete {
        margin-left: auto;
    }
}

.delete-transport-btn:hover {
    background: #f0f0f0;
    color: #ff4757;
}

/* Transport connector between activities */
.transport-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0.5rem 0;
    height: 20px;
}

.transport-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.transport-emoji {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    border: 2px solid #667eea;
    font-size: 1rem;
    z-index: 2;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}