/* Ice Cream Rater - Styles */

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    /* Use dynamic viewport height for better browser support */
    min-height: 100dvh;
    /* Safari fallback */
    min-height: -webkit-fill-available;
    /* PWA improvements */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    /* Prevent overscroll bounce and scrolling issues on iOS */
    overflow-x: hidden;
    overflow-y: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    /* Prevent pull-to-refresh on iOS */
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 1000;
}

.header h1 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
    color: #666;
    font-size: 1rem;
}

.controls {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ff9a9e;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    display: none;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.search-result-marker {
    background: none !important;
    border: none !important;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.custom-marker {
    background: none !important;
    border: none !important;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
    min-width: auto;
}

.btn-text {
    margin-left: 0.3rem;
}

/* Adjust button spacing for small screens */
@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1rem;
    }
}

/* Extra tight space - hide all button text except emojis */
@media (max-width: 380px) {
    .btn-text {
        display: none;
    }
    
    .btn {
        padding: 0.75rem 0.8rem;
        font-size: 1.2rem;
    }
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff9a9e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-help {
    background: linear-gradient(45deg, #4dabf7, #1e90ff);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

/* User Menu Modal Items */
.user-menu-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #4a5568;
    border-bottom: 1px solid #f1f5f9;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background-color: #f8fafc;
}

.user-menu-item span {
    font-weight: 500;
}

.btn-action {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 0.1rem;
    white-space: nowrap;
    min-width: auto;
    position: relative;
    overflow: hidden;
}

.btn-action:hover {
    transform: translateY(-1px);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-action.edit {
    background: #8b5cf6;
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.btn-action.edit:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.btn-action.delete {
    background: #ef4444;
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-action.delete:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-action.save {
    background: #10b981;
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-action.save:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-action.cancel {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-action.cancel:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sync-indicator {
    padding: 0.3rem 0.8rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #4ecdc4;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sync-indicator.saving {
    opacity: 1;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.sync-indicator.saved {
    opacity: 1;
}

.map-container {
    height: calc(100vh - 200px);
    min-height: 400px;
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f0f0f0;
}

/* User location marker styling */
.user-location-marker {
    text-align: center;
    animation: userLocationPulse 2s ease-in-out;
}

@keyframes userLocationPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Leaflet control styling to match app buttons */
.leaflet-control {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    font-family: 'Poppins', sans-serif !important;
}

.leaflet-bar {
    border-radius: 12px !important;
    overflow: hidden;
}

.leaflet-bar a {
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    color: #4a5568 !important;
    font-weight: 500 !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    font-size: 16px !important;
}

.leaflet-bar a:hover {
    background: #f7fafc !important;
    color: #2d3748 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-bar a:first-child {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.leaflet-bar a:last-child {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* Layer control specific styling */
.leaflet-control-layers {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Only add padding when expanded (has the form content) */
.leaflet-control-layers-expanded {
    padding: 8px 12px !important;
}

.leaflet-control-layers-toggle {
    background: white !important;
    border-radius: 12px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%234a5568" stroke-width="2"><path d="m12 8-6 4 6 4 6-4z"/><path d="m8 14-2 1 6 4 6-4-2-1"/><path d="m8 10-2 1 6 4 6-4-2-1"/></svg>') !important;
    background-size: 24px 24px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.leaflet-control-layers-toggle:hover {
    background: #f7fafc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-control-layers-list {
    margin: 4px 0 !important;
}

.leaflet-control-layers label {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    color: #4a5568 !important;
    font-weight: 500 !important;
    margin: 2px 0 !important;
    cursor: pointer !important;
}

.leaflet-control-layers input[type="radio"] {
    margin-right: 8px !important;
    accent-color: #8b5cf6 !important;
}

/* Custom My Location control styling */
.leaflet-control-custom {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
    margin-bottom: 8px !important;
    width: 40px !important;
    height: 40px !important;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%234a5568" stroke-width="2"><circle cx="12" cy="12" r="3"/><circle cx="12" cy="12" r="10"/><path d="M12 2v4"/><path d="M12 18v4"/><path d="M2 12h4"/><path d="M18 12h4"/></svg>') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.leaflet-control-custom:hover {
    background: #f7fafc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Attribution styling */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
}

/* Adjust for browser mode vs PWA mode */
@media (display-mode: browser) {
    body {
        position: relative;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .map-container {
        height: calc(100vh - 220px);
        min-height: 350px;
    }
}

/* PWA mode - prevent scrolling and fix to viewport */
@media (display-mode: standalone) {
    body {
        position: fixed;
        overflow: hidden;
        height: 100vh;
        height: 100dvh;
        overscroll-behavior: none;
    }
}

/* Safari-specific map container adjustments */
@supports (-webkit-touch-callout: none) {
    .map-container {
        height: calc(100vh - 240px);
        min-height: 320px;
    }
}

/* Additional adjustments for very small screens */
@media (max-height: 600px) {
    .map-container {
        height: calc(100vh - 180px);
        min-height: 300px;
    }
    
    .header {
        padding: 0.75rem 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .controls {
        padding: 0.75rem 1rem;
    }
}

#map {
    height: 100%;
    width: 100%;
    background: #f0f0f0;
    /* Prevent iOS context menu and selection */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x pan-y;
}

/* Ensure map controls and overlays aren't affected by the filter */
.leaflet-control-container,
.leaflet-popup,
.leaflet-tooltip {
    filter: none;
}

.custom-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 250px;
    width: max-content;
}

.popup-header {
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.popup-status {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.status-btn {
    padding: 0.3rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.status-btn.visited {
    background: #4ecdc4;
    color: white;
    border-color: #4ecdc4;
}

.status-btn.planned {
    background: #ffd93d;
    color: #333;
    border-color: #ffd93d;
}

.popup-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.popup-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.popup-btn.edit {
    background: #ff9a9e;
    color: white;
}

.popup-btn.delete {
    background: #ff6b6b;
    color: white;
}

.popup-btn:hover {
    opacity: 0.8;
}

.instructions {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    margin: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    color: #666;
}

/* List View Modal Styles */
.list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent background scrolling on iOS */
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Safari modal height fix - use viewport units that work better on iOS */
@supports (-webkit-touch-callout: none) {
    .list-modal {
        height: 100vh;
        height: 100dvh;
        min-height: -webkit-fill-available;
    }
}

.list-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 80vh;
    width: 800px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Adjust modal height for browser mode */
@media (display-mode: browser) {
    .list-modal-content {
        max-height: 75vh;
    }
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    .list-modal-content {
        max-height: 70vh;
    }
}

/* Adjust for short screens */
@media (max-height: 600px) {
    .list-modal-content {
        max-height: 85vh;
    }
}

/* Safari on short screens */
@media (max-height: 600px) and (-webkit-touch-callout: none) {
    .list-modal-content {
        max-height: 80vh;
    }
}

.list-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 1.5rem;
    color: white;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

/* Specific modal header colors to match buttons */
#placesModal .list-header {
    background: linear-gradient(135deg, #4ecdc4 0%, #44b3a6 100%);
}

#iceCreamsModal .list-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.list-header h2 {
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Adjust header size for mobile and browser */
@media (max-width: 768px), (display-mode: browser) {
    .list-header {
        padding: 1rem;
    }
    
    .list-header h2 {
        font-size: 1.3rem;
    }
}

/* Extra compact for very small screens */
@media (max-height: 600px) {
    .list-header {
        padding: 0.75rem;
    }
    
    .list-header h2 {
        font-size: 1.2rem;
    }
}

/* Hide title on very narrow screens to make room for delete button */
@media (max-width: 360px) {
    .list-header h2 {
        display: none;
    }
    
    .list-header {
        padding: 0.5rem;
        min-height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-btn {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
    }
}

/* Also hide on very narrow screens in landscape */
@media (max-width: 480px) and (max-height: 400px) {
    .list-header h2 {
        display: none;
    }
    
    .list-header {
        padding: 0.5rem;
        min-height: 2.5rem;
    }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Adjust close button for smaller headers */
@media (max-width: 768px), (display-mode: browser) {
    .close-btn {
        top: 0.75rem;
        right: 0.75rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

@media (max-height: 600px) {
    .close-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.list-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.places-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.places-table th {
    background: #f8f9fa;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.places-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    min-height: 3rem;
    box-sizing: border-box;
}

.places-table tbody tr:hover {
    background: #f8f9fa;
}

/* Ensure ice cream rows have consistent minimum height of 2 lines */
.places-table tbody tr {
    min-height: 3rem;
}

.places-table tbody td {
    min-height: 3rem;
    line-height: 1.4;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.status-visited {
    background: #4ecdc4;
    color: white;
}

.status-planned {
    background: #ffd93d;
    color: #333;
}

.rating-stars {
    display: flex;
    gap: 0.1rem;
    font-size: 1rem;
    justify-content: center;
}

.rating-cell {
    text-align: center;
    min-width: 60px;
}

.place-name {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

.place-name:hover {
    color: #ff6b6b;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Help Modal Styles */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent background scrolling on iOS */
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Safari help modal height fix - use viewport units that work better on iOS */
@supports (-webkit-touch-callout: none) {
    .help-modal {
        height: 100vh;
        height: 100dvh;
        min-height: -webkit-fill-available;
    }
}

.help-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 80vh;
    width: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Default width for user menu modal */
#userMenuModal .help-modal-content {
    max-width: 300px;
}

/* Adjust help modal height for browser mode */
@media (display-mode: browser) {
    .help-modal-content {
        max-height: 75vh;
    }
}

/* Safari-specific fixes for help modal */
@supports (-webkit-touch-callout: none) {
    .help-modal-content {
        max-height: 70vh;
    }
}

/* Adjust for short screens */
@media (max-height: 600px) {
    .help-modal-content {
        max-height: 85vh;
    }
}

/* Safari on short screens for help modal */
@media (max-height: 600px) and (-webkit-touch-callout: none) {
    .help-modal-content {
        max-height: 80vh;
    }
}

.help-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 1.5rem;
    color: white;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.help-header h2 {
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Adjust help header size for mobile and browser */
@media (max-width: 768px), (display-mode: browser) {
    .help-header {
        padding: 1rem;
    }
    
    .help-header h2 {
        font-size: 1.3rem;
    }
}

/* Extra compact for very small screens */
@media (max-height: 600px) {
    .help-header {
        padding: 0.75rem;
    }
    
    .help-header h2 {
        font-size: 1.2rem;
    }
}

.help-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Reduce help body padding on smaller screens */
@media (max-width: 768px), (display-mode: browser) {
    .help-body {
        padding: 1.5rem;
    }
}

@media (max-height: 600px) {
    .help-body {
        padding: 1rem;
    }
}

.help-section {
    margin-bottom: 1.5rem;
}

.help-section h3 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 768px) {
    .help-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .help-body {
        padding: 1.5rem;
    }
    
    /* Make user menu full-screen on mobile devices like table popups */
    #userMenuModal .help-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 350px;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.notification.show {
    transform: translateX(0);
}

.notification.info {
    background: linear-gradient(135deg, #4ecdc4 0%, #44b3a6 100%);
    color: white;
}

.notification.warning {
    background: linear-gradient(135deg, #ffd93d 0%, #ffc107 100%);
    color: #333;
}

.notification.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
}

.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notification .notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification .notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification .notification-text {
    flex: 1;
    line-height: 1.4;
}

.notification .notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.notification .notification-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Ice cream modal footer adjustments - keep button padding */
@media (max-width: 768px), (display-mode: browser) {
    .list-modal-content > .list-body {
        padding: 0 !important;
    }
}

@media (max-height: 600px) {
    .list-modal-content > .list-body {
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls > div:last-child {
        display: flex !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .controls > div:last-child .btn {
        flex: 1 !important;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .map-container {
        height: calc(100vh - 240px);
        min-height: 300px;
    }

    .list-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .places-table th,
    .places-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
        min-height: 2.5rem;
    }
    
    .places-table tbody td {
        min-height: 2.5rem;
    }
    
    /* Make action buttons smaller on mobile */
    .btn-action {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* Extra compact action buttons in table */
    .edit-actions .btn-action {
        padding: 0.3rem 0.4rem;
        font-size: 1rem;
        min-width: 35px;
    }
    
    /* Hide button text on small screens, show only emojis */
    .btn-action .btn-text {
        display: none;
    }
    
    .rating-stars {
        font-size: 0.9rem;
    }
}