:root {
    --bg-base: #001F3A;
    --bg-surface: #002D4C;
    --primary: #FFD700; 
    --primary-hover: #E6C200;
    --accent: #005691;
    --danger: #ef4444;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-base);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    letter-spacing: -0.5px;
}

/* Abstract Background Glows */
.bg-abstract { display: none; }

/* Glass & Components */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 20px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.glass-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo-container h1 {
    font-size: 28px;
    margin: 0 0 2px 0;
    font-weight: 900;
    letter-spacing: 2px;
}
.logo-container .accent { color: var(--primary); }
.logo-container p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav { display: flex; gap: 15px; }
.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.2s;
}
.nav-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-btn.active { color: var(--primary); }

.glass-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    
    color: var(--text-main);
    transition: all 0.3s;
}
.glass-btn:hover { background: rgba(0,0,0,0.1); }

.radar-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.radar-btn.on {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: #fca5a5;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Layout */
.main-content { padding: 0; } #view-dashboard, #view-routes, #view-route-detail { padding: 40px; }
.dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.top-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.top-row.single-card {
    grid-template-columns: 1fr;
}

/* Location Card */
.location-card {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.location-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    background-image: url('https://vocesdecristo.org/wp-content/uploads/2026/04/Camino-de-Santiago.png');
    transition: opacity 0.5s, transform 5s linear;
}
.location-card:hover .location-bg {
    opacity: 0.7;
    transform: scale(1.05);
}
.location-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(9,9,11,1) 0%, rgba(9,9,11,0.2) 100%);
}
.location-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex: 1;
    color: #ffffff;
}
.location-header { display: flex; justify-content: space-between; }
.badge-distance {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.radar-ping {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}
.radar-ping::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0;
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } 0% { opacity: 1; transform: scale(1); } }

.location-body { margin-top: auto; margin-bottom: 25px; }
.glow-text {
    font-size: 46px;
    font-weight: 900;
    margin: 0 0 5px 0;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.location-body p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 16px;
}
.location-actions { display: flex; gap: 15px; }
.action-btn {
    flex: 1;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.action-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

/* AEMET */
.aemet-card { padding: 35px; display: flex; flex-direction: column; }
.section-title {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title .icon { font-size: 24px; color: var(--primary); }
.aemet-container { flex: 1; overflow-y: auto; max-height: 250px; padding-right: 10px; }
.alert-day h4 {
    color: var(--primary-hover);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
}
.alert-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.alert-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.alert-item p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* Map Card */
.map-card { height: 600px; position: relative; padding: 0; border: 1px solid var(--glass-border); overflow: hidden; border-radius: 8px;}
.map-card.fullscreen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    z-index: 10000;
    border-radius: 0;
    border: none;
}
.close-fullscreen {
    display: none;
    position: absolute;
    top: 25px; left: 25px;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: var(--text-main);
    transition: transform 0.2s;
}
.close-fullscreen:hover {
    transform: scale(1.1);
}
.map-card.fullscreen .close-fullscreen {
    display: flex;
}
#map { width: 100%; height: 100%; background: #f1f5f9; }
.leaflet-container { background: #f1f5f9 !important; }
.map-overlay {
    position: absolute;
    top: 25px; right: 25px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}
.live-dot { width: 8px; height: 8px; background: var(--danger); border-radius: 50%; box-shadow: 0 0 10px var(--danger); }

/* Zoom Buttons */
.map-zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}
.map-zoom-controls button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.map-zoom-controls button:hover {
    background-color: var(--primary-hover);
}
.map-zoom-controls button.active {
    background-color: #0f172a;
}

/* News */
.news-section { padding: 35px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 130px;
}
.news-item:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-4px);
}
.news-item h4 { margin: 0 0 15px 0; color: var(--text-main); font-size: 17px; line-height: 1.5; font-weight: 600; }
.news-item .read-more { color: var(--primary); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1548013146-72479768bada?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.4s ease;
}
.modal-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-card {
    position: relative; z-index: 10;
    padding: 40px 30px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.4) inset;
    border: none;
    text-align: center; max-width: 420px; width: 90%;
    transform: scale(1); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.hidden .modal-card { transform: scale(0.9); }
.modal-card h2 { font-size: 28px; margin: 0 0 10px 0; color: var(--text-main); }
.modal-card p.intro { color: var(--text-muted); margin-bottom: 25px; line-height: 1.5; font-size: 14px; }
.modal-card input[type="text"], .modal-card select {
    width: 100%; padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px; color: var(--text-main); font-size: 15px; font-weight: 500;
    margin-bottom: 15px; box-sizing: border-box; text-align: left;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}
.modal-card input[type="text"]:focus, .modal-card select:focus {
    outline: none; border-color: #FFB612;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 182, 18, 0.15), inset 0 2px 5px rgba(0,0,0,0.02);
}
.modal-card select { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231e293b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 12px auto; }

.consent-divider { height: 1px; background: rgba(0,0,0,0.05); margin: 20px 0; }

.btn-premium {
    width: 100%; padding: 16px;
    background: #FFB612; color: #000000;
    border: none; border-radius: 6px;
    font-size: 15px; font-weight: 800;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 10px 20px rgba(255, 182, 18, 0.3);
}
.btn-premium:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(255, 182, 18, 0.4); }
.btn-premium:disabled { background: #e2e8f0; color: #94a3b8; box-shadow: none; cursor: not-allowed; transform: none; }

/* Toasts */
.toast-container {
    position: fixed; bottom: 30px; right: 30px;
    display: flex; flex-direction: column; gap: 15px; z-index: 10000;
}
.toast {
    background: rgba(24, 24, 27, 0.9); 
    border: 1px solid rgba(255,255,255,0.1); border-left: 4px solid var(--primary);
    padding: 16px 24px; border-radius: 6px; color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.toast.success { border-left-color: var(--primary); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: #3b82f6; }
@keyframes slideIn { 0% { transform: translateX(100%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.toast.fade-out { animation: fadeOut 0.3s forwards; }
@keyframes fadeOut { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }

.hidden { display: none !important; }

/* Route Detail View */
.route-detail-wrapper {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.route-detail-header {
    text-align: left;
    margin-bottom: 20px;
}
.back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 0;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.back-btn:hover {
    color: var(--primary-hover);
}
.stages-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.stage-item {
    display: flex;
    background: var(--bg-surface);
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
    align-items: center;
    position: relative;
    z-index: 2;
}
.stage-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}
.connector-line-top, .connector-line-bottom {
    width: 3px;
    height: 12px;
    background: rgba(59, 130, 246, 0.3);
}
.connector-km {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    margin: 2px 0;
}
.stage-info {
    flex: 1;
}
.stage-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
    margin: 0 0 5px 0;
}
.stage-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive Mobile Layout */
@media (max-width: 1000px) {
    .main-header { flex-direction: column; gap: 12px; text-align: center; padding: 12px 15px; }
    .main-nav { flex-wrap: nowrap; justify-content: space-between; width: 100%; gap: 5px; }
    .nav-btn { flex: 1; padding: 8px 2px; font-size: 12px; justify-content: center; }
    .nav-btn svg { width: 16px; height: 16px; margin-right: 4px; }
    .top-row { grid-template-columns: 1fr; gap: 20px; }
    .map-card { height: 400px; }
    .map-card.fullscreen .map-zoom-controls { bottom: 80px; }
    #view-dashboard, #view-routes, #view-route-detail { padding: 20px 15px; }
    .location-actions { flex-direction: column; }
    .glow-text { font-size: 32px; }
    .modal-card { padding: 30px 20px; }
}

/* Tooltip Custom */
.custom-tooltip {
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: -apple-system, sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.custom-tooltip::before { border-top-color: rgba(24, 24, 27, 0.95); }

/* Town Labels on Map */
.town-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1f2937;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    padding: 0;
    white-space: nowrap;
}
.town-label::before { display: none !important; }

/* View Switching */
.hidden { display: none !important; }

/* Routes View */
.routes-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}
.routes-header {
    text-align: center;
    margin-bottom: 40px;
}
.routes-header p {
    color: var(--text-muted);
    font-size: 18px;
}
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.route-card {
    display: flex;
    align-items: center;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.route-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; width: 60%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 0;
}
.route-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,31,58,1) 40%, rgba(0,31,58,0.7) 65%, rgba(0,31,58,0) 100%);
    z-index: 1;
}
.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.route-info {
    position: relative;
    z-index: 2;
    flex: 1;
}
.route-info h3 {
    margin: 0 0 5px 0;
    font-size: 19px;
    color: #fff;
    font-weight: 800;
}
.route-info p {
    margin: 0;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}
.route-arrow {
    position: relative;
    z-index: 2;
    margin-left: auto;
    color: #001F3A;
    font-size: 20px;
    font-weight: bold;
    background: var(--primary);
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Pilgrim Markers */
.pilgrim-marker {
    background: transparent !important;
    border: none !important;
}
.pilgrim-emoji {
    background: #001F3A;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid var(--primary);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Weather Card */
.weather-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 15px;
}
.weather-town {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.weather-temp {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.weather-minmax {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}
.aemet-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
}
.aemet-slider::-webkit-scrollbar {
    height: 4px;
}
.aemet-slider::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}
.aemet-slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background: rgba(0,0,0,0.03);
    padding: 12px;
    border-radius: 8px;
}
.no-alerts-weather {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    padding: 10px 0;
}

/* Settings Btn */
.settings-btn {
    font-size: 24px;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    color: var(--text-main);
}
.settings-btn:hover {
    transform: rotate(45deg);
}
.next-town-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(14, 165, 233, 0.3) !important;
}

/* Orange Pilgrim Marker */
.pilgrim-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
}
.pilgrim-pin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s;
}
.pilgrim-pin:hover { transform: scale(1.1); }
.pilgrim-pin svg { width: 18px; height: 18px; }
.pilgrim-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
}

/* User Pulse Marker */
.user-marker-dot {
    background-color: #0ea5e9;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    position: relative;
}
.user-marker-dot::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.4);
    animation: userPulse 2s infinite ease-out;
}
@keyframes userPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}


/* Fix select options visibility in dark mode */
select option {
    background-color: var(--bg-surface);
    color: var(--text-main);
}

/* AEMET Slideshow */
.aemet-slideshow {
    position: relative;
    min-height: 85px;
    overflow: hidden;
    margin-top: 10px;
}
.aemet-slideshow .aemet-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    background: rgba(0,0,0,0.03);
    padding: 12px;
    border-radius: 8px;
}
.aemet-slideshow .aemet-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* Language Selector */
.lang-selector { position: relative; display: inline-block; }
.lang-dropdown {
    position: absolute; top: calc(100% + 5px); left: 0;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 6px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 150px; overflow: hidden; z-index: 10000;
    transform-origin: top left; transition: all 0.2s ease;
}
.lang-dropdown.hidden { opacity: 0; transform: scale(0.95); pointer-events: none; }
.lang-dropdown div { padding: 12px 15px; font-size: 14px; font-weight: 500; color: var(--text-main); cursor: pointer; transition: background 0.2s; }
.lang-dropdown div:hover { background: rgba(14, 165, 233, 0.1); color: var(--primary); }

/* Mobile native full-bleed styling for details views */
@media (max-width: 768px) {
    .town-detail-wrapper .glass-card { 
        border-radius: 0 !important; 
        border-left: none !important; 
        border-right: none !important; 
    }
    .town-detail-wrapper > div:first-child { 
        padding: 15px; 
        margin-bottom: 0 !important; 
    }
    #view-single-item .glass-card > div:last-child { 
        padding: 20px 15px !important; 
    }
    #town-items-container .glass-card { 
        border-radius: 0 !important; 
        margin-bottom: 2px !important; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
    }
}
