/* ============================================================
   POLÍGONOS INDUSTRIALES DE SANTANDER - ESTILOS
   Branding: Santander Nexus — Teal #00696c / Turquoise #14c8cc
   ============================================================ */

:root {
    --santander: #00696c;
    --santander-dark: #004f51;
    --santander-light: #14c8cc;
    --santander-accent: #3c4949;
    --santander-glow: #14c8cc;
    --santander-pale: #e0f7fa;
    --bg-primary: #f8f9fa;
    --bg-secondary: #f3f4f5;
    --text-primary: #191c1d;
    --text-secondary: #6c7a7a;
    --border-color: rgba(188, 201, 201, 0.15);
    --card-shadow: 0 12px 32px rgba(0, 105, 108, 0.06);
    --card-hover-shadow: 0 12px 32px rgba(0, 105, 108, 0.12);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- LANDING PAGE ---- */
#landingPage {
    position: fixed; inset: 0; z-index: 10000;
    overflow-y: auto; overflow-x: hidden;
    background: #f5f7fa;
    font-family: 'Inter', system-ui, sans-serif;
}

.landing-hero {
    position: relative;
    min-height: 75vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #00696c 0%, #004f51 40%, #002628 100%);
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2314c8cc' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .5;
}
.landing-hero-content {
    position: relative; z-index: 2;
    text-align: center; padding: 60px 24px 80px;
    max-width: 720px;
}
.landing-logos {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    margin-bottom: 40px;
}
.landing-logo-city { height: 56px; border-radius: 8px; mix-blend-mode: screen; }
.landing-logo-areas { height: 48px; background: rgba(255,255,255,0.9); padding: 5px 10px; border-radius: 8px; }

.landing-title {
    font-size: 2.4rem; font-weight: 800; color: white;
    line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px;
}
.landing-title span { color: #14c8cc; }

.landing-subtitle {
    font-size: 1.1rem; color: rgba(255,255,255,.8);
    max-width: 520px; margin: 0 auto 36px; line-height: 1.6; font-weight: 400;
}

.landing-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #14c8cc, #00969a);
    color: white; border: none; border-radius: 12px;
    font-size: 1.05rem; font-weight: 700;
    cursor: pointer; transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 24px rgba(20,200,204,.3);
    font-family: inherit;
}
.landing-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(20,200,204,.4); }
.landing-cta:active { transform: translateY(0); }

/* Stats bar */
.landing-stats {
    display: flex; justify-content: center; gap: 0;
    background: white;
    border-bottom: 1px solid #e8ecf0;
    padding: 0;
}
.landing-stat {
    flex: 1; max-width: 220px;
    text-align: center; padding: 28px 16px;
    border-right: 1px solid #e8ecf0;
}
.landing-stat:last-child { border-right: none; }
.landing-stat-number { font-size: 2rem; font-weight: 800; color: #00696c; letter-spacing: -1px; }
.landing-stat-label { font-size: .82rem; color: #6c7a7a; margin-top: 4px; font-weight: 500; }

/* Features */
.landing-features {
    max-width: 1000px; margin: 0 auto;
    padding: 56px 24px 40px;
}
.landing-section-title {
    text-align: center; font-size: 1.5rem; font-weight: 700;
    color: #1a2332; margin-bottom: 36px; letter-spacing: -0.01em;
}
.landing-features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.landing-feature {
    background: white; border-radius: 14px; padding: 28px 24px;
    border: 1px solid #e8ecf0;
    transition: box-shadow .2s, transform .2s;
}
.landing-feature:hover { box-shadow: 0 8px 28px rgba(0,105,108,.08); transform: translateY(-2px); }
.landing-feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; color: #00696c;
    box-shadow: 0 4px 12px rgba(0, 105, 108, .1);
}
.landing-emoji { font-size: 28px; line-height: 1; }
.landing-feature h3 { font-size: .95rem; font-weight: 700; color: #1a2332; margin-bottom: 8px; }
.landing-feature p { font-size: .84rem; color: #6c7a7a; line-height: 1.55; }

/* Areas */
.landing-areas {
    max-width: 1000px; margin: 0 auto;
    padding: 20px 24px 56px;
}
.landing-areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.landing-area-card {
    background: white; border-radius: 12px; padding: 22px 18px;
    border: 1px solid #e8ecf0;
    transition: box-shadow .2s;
}
.landing-area-card:hover { box-shadow: 0 6px 24px rgba(0,105,108,.08); }
.landing-area-badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    color: white; font-size: .78rem; font-weight: 700; margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.landing-area-card p { font-size: .82rem; color: #6c7a7a; line-height: 1.5; }

/* Bottom CTA */
.landing-bottom-cta {
    text-align: center; padding: 48px 24px 40px;
    background: linear-gradient(160deg, #00696c, #004f51);
}
.landing-bottom-cta > p:first-child { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 24px; font-weight: 500; }
.landing-footer-logos {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 32px;
}
.landing-footer-logos img:first-child { height: 36px; border-radius: 6px; mix-blend-mode: screen; }
.landing-footer-logos img:last-child { height: 30px; }
.landing-footer-text { color: rgba(255,255,255,.45); font-size: .75rem; margin-top: 12px; }

/* Landing responsive */
@media (max-width: 768px) {
    .landing-title { font-size: 1.6rem; }
    .landing-subtitle { font-size: .95rem; }
    .landing-stats { flex-wrap: wrap; }
    .landing-stat { flex: 1 1 50%; border-bottom: 1px solid #e8ecf0; }
    .landing-stat:nth-child(2) { border-right: none; }
    .landing-features-grid { grid-template-columns: 1fr; }
    .landing-areas-grid { grid-template-columns: 1fr 1fr; }
    .landing-hero { min-height: 60vh; }
    .landing-cta { padding: 14px 28px; font-size: .95rem; }
}
@media (max-width: 480px) {
    .landing-stat { flex: 1 1 100%; border-right: none; }
    .landing-areas-grid { grid-template-columns: 1fr; }
}

/* ---- TUTORIAL GUIADO ---- */
.tutorial-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.tutorial-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 30, 32, .5);
}
.tutorial-card {
    position: relative; z-index: 2;
    background: white; border-radius: 20px;
    padding: 32px 28px 24px;
    max-width: 440px; width: 100%;
    box-shadow: 0 20px 60px rgba(0, 105, 108, .2);
    text-align: center;
}
.tutorial-progress {
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: #e8ecf0; border-radius: 20px 20px 0 0; overflow: hidden;
}
.tutorial-progress-bar {
    height: 100%; background: linear-gradient(90deg, #00696c, #14c8cc);
    border-radius: 20px 20px 0 0;
    transition: width .4s ease;
}
.tutorial-step-counter {
    font-size: .75rem; font-weight: 600; color: #00696c;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 16px;
}
.tutorial-icon {
    font-size: 3rem; margin-bottom: 12px;
    line-height: 1;
}
.tutorial-title {
    font-size: 1.2rem; font-weight: 700; color: #1a2332;
    margin-bottom: 12px; line-height: 1.3;
}
.tutorial-text {
    font-size: .92rem; color: #5a6a6a; line-height: 1.65;
    margin-bottom: 28px;
}
.tutorial-nav {
    display: flex; gap: 12px; justify-content: center;
    margin-bottom: 12px;
}
.tutorial-btn {
    padding: 12px 28px; border-radius: 10px;
    font-size: .9rem; font-weight: 600; cursor: pointer;
    border: none; font-family: inherit;
    transition: transform .15s, box-shadow .15s;
}
.tutorial-btn:hover { transform: translateY(-1px); }
.tutorial-btn-primary {
    background: linear-gradient(135deg, #00696c, #00898d);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 105, 108, .25);
}
.tutorial-btn-primary:hover { box-shadow: 0 6px 20px rgba(0, 105, 108, .35); }
.tutorial-btn-secondary {
    background: #f0f3f5; color: #4a5568;
}
.tutorial-btn-secondary:hover { background: #e4e8ec; }
.tutorial-skip {
    display: inline-block; background: none; border: none;
    color: #94a3b8; font-size: .8rem; cursor: pointer;
    padding: 4px 8px; font-family: inherit; font-weight: 500;
}
.tutorial-skip:hover { color: #64748b; text-decoration: underline; }

@keyframes tutorialFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Spotlight highlight ring — NO blur, clear view of highlighted area */
.tutorial-spotlight {
    position: fixed; z-index: 99998;
    border: 3px solid #14c8cc;
    background: transparent;
    box-shadow: 0 0 0 9999px rgba(0, 20, 22, .6), 0 0 40px 8px rgba(20, 200, 204, .6), 0 0 80px 16px rgba(20, 200, 204, .2);
    pointer-events: none;
    transition: top .4s cubic-bezier(.4,0,.2,1), left .4s cubic-bezier(.4,0,.2,1), width .4s cubic-bezier(.4,0,.2,1), height .4s cubic-bezier(.4,0,.2,1), border-radius .4s;
    animation: spotlightPulse 2s ease-in-out infinite;
}
@keyframes spotlightPulse {
    0%, 100% { border-color: #14c8cc; box-shadow: 0 0 0 9999px rgba(0, 20, 22, .6), 0 0 40px 8px rgba(20, 200, 204, .6), 0 0 80px 16px rgba(20, 200, 204, .2); }
    50% { border-color: #5de8eb; box-shadow: 0 0 0 9999px rgba(0, 20, 22, .6), 0 0 50px 12px rgba(20, 200, 204, .8), 0 0 100px 24px rgba(20, 200, 204, .3); }
}

/* Highlighted element rises above backdrop — crisp, no blur */
.tutorial-highlighted {
    position: relative !important;
    z-index: 99998 !important;
    pointer-events: none;
    filter: none !important;
}
/* Elevate parent stacking contexts during tutorial */
.tutorial-elevated-parent {
    z-index: 99997 !important;
}

/* Tutorial mock card (example company) */
.tutorial-mock-card {
    background: #f8fafa; border: 1px solid #e0e8e8; border-radius: 12px;
    padding: 14px 16px; margin: 16px 0 8px; text-align: left;
}
.tutorial-mock-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tutorial-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #00696c; flex-shrink: 0; }
.tutorial-mock-name { font-size: .85rem; font-weight: 700; color: #1a2332; }
.tutorial-mock-sector { font-size: .7rem; color: #6c7a7a; background: #e0f7fa; padding: 2px 8px; border-radius: 10px; margin-left: auto; }
.tutorial-mock-row { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #5a6a6a; margin-bottom: 6px; }
.tutorial-mock-row svg { width: 14px; height: 14px; color: #00696c; flex-shrink: 0; }
.tutorial-mock-actions { display: flex; gap: 6px; margin-top: 10px; }
.tutorial-mock-btn {
    flex: 1; padding: 6px 0; border-radius: 8px; border: none;
    font-size: .68rem; font-weight: 600; text-align: center;
    cursor: default;
}
.tutorial-mock-btn-call { background: #00696c; color: white; }
.tutorial-mock-btn-nav { background: #e0f7fa; color: #00696c; }
.tutorial-mock-btn-audio { background: #fff3e0; color: #e65100; }
.tutorial-mock-btn-sv { background: #e8f5e9; color: #2e7d32; }

/* Tutorial card positioning */
.tutorial-card-right { margin-left: auto; margin-right: 40px; }
.tutorial-card-left { margin-right: auto; margin-left: 40px; }
.tutorial-card-center { margin: 0 auto; }

@media (max-width: 768px) {
    .tutorial-card { padding: 28px 20px 20px; margin: 12px !important; }
    .tutorial-title { font-size: 1.05rem; }
    .tutorial-text { font-size: .85rem; }
    .tutorial-btn { padding: 10px 22px; font-size: .85rem; }
    .tutorial-card-right, .tutorial-card-left, .tutorial-card-center { margin: 12px !important; }
    .map-controls .floating-pill-label { display: none; }
    .map-controls .floating-pill { padding: 9px 12px; min-height: 38px; }
}

/* ---- LOADER ---- */
#loader {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, #00696c, #004f51);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .spinner {
    width: 48px; height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
#loader p { color: rgba(255,255,255,0.9); margin-top: 16px; font-size: 14px; font-weight: 500; }

/* Logos en loader */
.loader-logos {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 28px;
}
.loader-logo-city {
    height: 50px; width: auto;
    border-radius: 8px;
    mix-blend-mode: screen;
}
.loader-logo-areas {
    height: 44px; width: auto;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- MAP ---- */
#map { width: 100%; height: 100%; }

.maplibregl-popup-content {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    box-shadow: 0 4px 20px rgba(0, 105, 108, 0.15) !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    max-width: 260px !important;
}
.maplibregl-popup-close-button {
    font-size: 16px; color: #94a3b8;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px;
    border-radius: 50%; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 105, 108, 0.08);
    transition: background 0.2s, color 0.2s;
    line-height: 1; aspect-ratio: 1;
}
.maplibregl-popup-close-button:hover {
    color: #fff; background: rgba(0, 105, 108, 0.7);
}

.maplibregl-ctrl-attrib { font-size: 10px !important; opacity: 0.6; }

/* ---- SIDEBAR ---- */
.sidebar-header {
    background: rgba(0, 105, 108, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px; color: white;
}
.sidebar-header h1 { font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.sidebar-header p { font-size: 12px; opacity: 0.85; margin-top: 4px; }

/* Logos en sidebar */
.sidebar-logo-row {
    margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; gap: 14px;
}
.sidebar-logo-city {
    height: 36px; width: auto;
    border-radius: 6px;
    object-fit: contain;
    mix-blend-mode: screen;
}
.sidebar-logo-areas {
    height: 34px; width: auto;
    object-fit: contain;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Logos en mobile */
.mobile-logo-city {
    height: 22px; width: auto; flex-shrink: 0;
    border-radius: 4px;
    object-fit: contain;
    mix-blend-mode: screen;
}
.mobile-logo-areas {
    height: 22px; width: auto; flex-shrink: 0;
    object-fit: contain;
    background: rgba(255,255,255,0.9);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Botón cambio de idioma */
.lang-toggle-btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    height: 30px; padding: 0 10px;
    border-radius: 15px; border: 1.5px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white; font-size: 11px; font-weight: 800;
    letter-spacing: 0.5px; cursor: pointer;
    transition: all 0.2s; flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}
.lang-toggle-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
}
.lang-flag-img {
    width: 20px; height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 105, 108, 0.2);
}

.stat-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.2); border-radius: 20px;
    padding: 4px 10px; font-size: 11px; font-weight: 600;
    color: white; backdrop-filter: blur(4px);
}

/* ---- SEARCH ---- */
.search-container {
    position: relative; padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 105, 108, 0.06);
    background: transparent;
}
.search-input {
    width: 100%; padding: 12px 14px 12px 42px;
    border: 1.5px solid rgba(0, 105, 108, 0.15); border-radius: 14px;
    font-size: 14px; background: #ffffff;
    color: var(--text-primary); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 105, 108, 0.05);
}
.search-input:focus {
    border-color: var(--santander);
    box-shadow: 0 0 0 3px rgba(0, 105, 108, 0.12), 0 2px 8px rgba(0, 105, 108, 0.05);
}
.search-input::placeholder { color: #94a3b8; font-weight: 500; }
.search-icon {
    position: absolute; left: 30px; top: 50%;
    transform: translateY(-50%); color: var(--santander); pointer-events: none;
    opacity: 0.6;
}

/* ---- FILTERS ---- */
.filters-container {
    padding: 10px 16px; display: flex; gap: 6px;
    overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid rgba(0, 105, 108, 0.06);
}
.filters-container::-webkit-scrollbar { display: none; }

.filter-pill {
    flex-shrink: 0; padding: 7px 14px;
    border-radius: 9999px; font-size: 12px; font-weight: 600;
    cursor: pointer; border: 1px solid rgba(0, 105, 108, 0.12);
    background: #ffffff; color: var(--text-secondary);
    transition: all 0.2s; white-space: nowrap;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.filter-pill:hover { color: var(--santander); border-color: rgba(0, 105, 108, 0.3); }
.filter-pill.active {
    background: linear-gradient(135deg, #00696c, #14c8cc); color: white;
    border-color: transparent; box-shadow: 0 2px 8px rgba(0, 105, 108, 0.3);
}

.filter-section-label {
    flex-shrink: 0; padding: 6px 8px 6px 2px;
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--santander);
    display: flex; align-items: center;
    opacity: 0.6;
}

/* ---- COMPANY CARDS — Compact row ---- */
.company-list {
    padding: 8px 12px; display: flex; flex-direction: column; gap: 6px;
    overflow-y: auto; flex: 1;
}

.company-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 105, 108, 0.04);
}
.company-card:hover {
    box-shadow: 0 6px 20px rgba(0, 105, 108, 0.1);
    border-color: rgba(0, 105, 108, 0.15);
    transform: translateY(-1px);
}
.company-card:active { transform: scale(0.98); }

.company-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    border-radius: 11px; display: flex;
    align-items: center; justify-content: center;
    position: relative;
}
.company-icon::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
    pointer-events: none;
}
.company-emoji { font-size: 20px; line-height: 1; }
.company-icon svg {
    width: 18px; height: 18px; stroke: white;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    fill: none;
    filter: drop-shadow(0 1px 1px rgba(0, 105, 108, 0.15));
    position: relative; z-index: 1;
}

.company-info { flex: 1; min-width: 0; }
.company-name {
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    line-height: 1.3; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.company-sector-tag {
    font-size: 10.5px; font-weight: 600;
    margin-top: 2px; letter-spacing: 0.02em;
    opacity: 0.8;
}
.company-desc-preview {
    font-size: 11px; color: #94a3b8; margin-top: 3px;
    line-height: 1.35; opacity: 0.7;
}

.company-arrow {
    flex-shrink: 0; color: #cbd5e1;
    transition: color 0.2s, transform 0.2s;
}
.company-card:hover .company-arrow { color: var(--santander); transform: translateX(2px); }

.card-badges {
    display: flex; align-items: center; gap: 5px;
    flex-wrap: wrap;
}

.card-badge {
    display: inline-flex; align-items: center;
    padding: 3px 8px; border-radius: 6px;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.card-badge-sv {
    background: rgba(76, 175, 80, 0.12); color: #2E7D32;
}
.card-badge-phone {
    background: rgba(0, 105, 108, 0.08); color: #00696c;
}
.card-badge-web {
    background: rgba(63, 81, 181, 0.08); color: #3F51B5;
}

.card-info-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 7px 14px; border-radius: 9999px;
    background: linear-gradient(135deg, #00696c, #14c8cc);
    color: white; border: none;
    font-size: 12px; font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer; white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 105, 108, 0.25);
    flex-shrink: 0;
}
.card-info-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 105, 108, 0.35);
}
.card-info-btn:active { transform: scale(0.96); }

/* ---- DETAIL MODAL ---- */
.detail-overlay {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    display: none; align-items: flex-end; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.detail-overlay.active { display: flex; }

@media (min-width: 1024px) {
    .detail-overlay {
        align-items: center; justify-content: center;
    }
}

.detail-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 20px 20px 0 0;
    width: 100%; max-height: 85vh; overflow-y: auto;
    animation: slideUp 0.3s ease;
    scrollbar-width: thin; scrollbar-color: rgba(0,105,108,0.15) transparent;
}
.detail-card::-webkit-scrollbar { width: 5px; }
.detail-card::-webkit-scrollbar-track { background: transparent; }
.detail-card::-webkit-scrollbar-thumb {
    background: rgba(0, 105, 108, 0.18); border-radius: 10px;
}
.detail-card::-webkit-scrollbar-thumb:hover { background: rgba(0, 105, 108, 0.35); }

@media (min-width: 1024px) {
    .detail-card {
        max-width: 520px; border-radius: 20px;
        max-height: 85vh; margin: 20px;
        background: rgba(255,255,255,0.82);
        backdrop-filter: blur(28px) saturate(200%);
        -webkit-backdrop-filter: blur(28px) saturate(200%);
        border: 1px solid rgba(255,255,255,0.4);
        box-shadow: 0 20px 60px rgba(0, 105, 108, 0.12), 0 4px 16px rgba(0,0,0,0.06);
    }
}

/* Hero Street View background — sticky with fade on scroll (via JS) */
.detail-hero-sv {
    position: sticky; top: 0; z-index: 0;
    width: 100%; height: 180px;
    overflow: hidden;
    transition: opacity 0.15s ease;
}
.detail-hero-iframe {
    width: 100%; height: 100%; border: none;
    pointer-events: none; display: block;
}
.detail-hero-gradient {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,79,81,0.85) 0%, transparent 35%),
        linear-gradient(0deg, rgba(0,79,81,0.92) 0%, rgba(0,105,108,0.4) 45%, transparent 70%);
    pointer-events: none;
}
@media (min-width: 1024px) {
    .detail-hero-sv { height: 220px; }
}

/* Hero top bar: sector + area + close btn */
.hero-top-bar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 10px 10px 10px 10px;
    z-index: 5;
}
.hero-top-bar .detail-close {
    position: static;
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    background: rgba(0, 60, 62, 0.8);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
    border-radius: 12px;
}
.hero-top-bar .detail-close svg {
    width: 18px; height: 18px;
}
.hero-top-info {
    display: flex; flex-direction: column; gap: 3px;
    min-width: 0;
    background: rgba(0, 60, 62, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 10px 16px;
}
.hero-sector-badge {
    display: inline-flex; align-items: center;
    color: white; font-size: 12px; font-weight: 700;
    letter-spacing: 0.02em;
}
.hero-area-label {
    color: rgba(255,255,255,0.8);
    font-size: 11px; font-weight: 500;
}

/* Hero bottom bar: company name */
.hero-bottom-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 0 16px 14px;
    z-index: 5;
}
.hero-title {
    font-size: 20px; font-weight: 800; color: white;
    line-height: 1.25; letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Hide old close-wrap (replaced by hero-top-bar) */
.detail-close-wrap { display: none !important; }

/* Header */
.detail-header {
    background: rgba(0, 105, 108, 0.92);
    backdrop-filter: blur(20px);
    padding: 24px 20px; color: white;
    border-radius: 20px 20px 0 0; position: relative;
}
/* When hero is showing, header overlaps bottom of hero */
.has-hero .detail-hero-sv {
    border-radius: 20px 20px 0 0;
}
.has-hero .detail-header {
    display: none;
}
@media (min-width: 1024px) {
    .detail-header { border-radius: 20px 20px 0 0; }
}
.detail-close {
    position: absolute; top: 16px; right: 16px;
    width: 34px; height: 34px; min-width: 34px; min-height: 34px;
    border-radius: 50%; aspect-ratio: 1;
    background: rgba(255,255,255,0.2); border: none;
    color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; line-height: 1;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}
/* When hero is showing, hide the header close button (use the one in hero instead) */
.has-hero .detail-header .detail-close {
    display: none;
}
.detail-close:hover { background: rgba(255,255,255,0.35); transform: scale(1.1); }
.detail-close:active { transform: scale(0.95); }
.detail-close svg { flex-shrink: 0; }

/* Close button cover zone — sits on the hero to hide Maps UI */
.detail-close-wrap {
    display: none;
}
.has-hero .detail-close-wrap {
    display: flex;
    position: absolute; top: 8px; right: 8px; z-index: 5;
    width: 60px; height: 80px;
    background: rgba(0, 79, 81, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    align-items: flex-start; justify-content: center;
    padding-top: 10px;
}
.has-hero .detail-close-wrap .detail-close {
    position: static;
    width: 40px; height: 40px; min-width: 40px; min-height: 40px;
    background: rgba(255,255,255,0.25);
}
.has-hero .detail-close-wrap .detail-close svg {
    width: 18px; height: 18px;
}

.detail-title { font-size: 20px; font-weight: 700; line-height: 1.3; padding-right: 40px; }
.detail-sector-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.2); border-radius: 20px;
    padding: 4px 12px; font-size: 12px; font-weight: 500;
    margin-top: 8px; backdrop-filter: blur(4px);
}
.detail-area { font-size: 13px; opacity: 0.85; margin-top: 6px; }

.detail-body { padding: 20px; background: transparent; }

.detail-section {
    margin-bottom: 20px;
}
.detail-section-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: #94a3b8; margin-bottom: 8px;
}

.detail-description {
    font-size: 14px; line-height: 1.6; color: var(--text-primary);
}

.detail-info-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; border-bottom: none;
}
.detail-info-row:last-child { border-bottom: none; }
.detail-info-icon {
    flex-shrink: 0; width: 32px; height: 32px;
    border-radius: 8px; background: var(--santander-pale);
    display: flex; align-items: center; justify-content: center;
    color: var(--santander);
}
.detail-info-icon svg { width: 16px; height: 16px; }
.detail-info-content { flex: 1; min-width: 0; }
.detail-info-label { font-size: 11px; color: #94a3b8; font-weight: 500; }
.detail-info-value {
    font-size: 13px; color: var(--text-primary); font-weight: 500;
    word-break: break-word;
}
.detail-info-value a {
    color: var(--santander); text-decoration: none;
}
.detail-info-value a:hover { text-decoration: underline; }

/* ---- ACTION BUTTONS ---- */
.action-buttons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 105, 108, 0.06);
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.action-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s;
}
.action-btn svg { width: 18px; height: 18px; }
.action-btn-primary {
    background: linear-gradient(135deg, #00696c, #14c8cc); color: white;
}
.action-btn-primary:hover { background: var(--santander-dark); }
.action-btn-secondary {
    background: var(--santander-pale); color: var(--santander);
}
.action-btn-secondary:hover { background: #b2ebf2; }

/* ---- MAP CONTROLS ---- */
.map-controls {
    position: absolute; right: 12px; top: 12px;
    display: flex; flex-direction: column; gap: 6px; z-index: 10;
    align-items: flex-end;
}
.map-controls .floating-pill {
    font-size: 13px;
}
.map-ctrl-help {
    background: rgba(0, 105, 108, 0.88) !important;
    color: white !important;
    animation: helpPulse 2.5s ease-in-out infinite;
}
.map-ctrl-help:hover {
    background: rgba(0, 105, 108, 0.95) !important;
    animation: none;
}
.map-ctrl-help .floating-pill-label { color: white; }
@keyframes helpPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0, 105, 108, .3); }
    50% { box-shadow: 0 4px 20px rgba(20, 200, 204, .5); }
}

/* ---- BOTTOM SHEET (MOBILE) ---- */
.bottom-sheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.85); border-radius: 20px 20px 0 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 105, 108, 0.1);
    z-index: 30; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
    max-height: calc(100vh - 60px);
    touch-action: none;
}
.sheet-handle {
    width: 40px; height: 4px; background: #cbd5e1;
    border-radius: 2px; margin: 10px auto 6px;
    flex-shrink: 0;
}
.sheet-header {
    padding: 4px 16px 10px; flex-shrink: 0;
    border-bottom: none;
}
.sheet-header h2 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.sheet-header p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.sheet-content {
    flex: 1; overflow-y: auto; overscroll-behavior: contain;
}

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center; padding: 40px 20px; color: var(--text-secondary);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

/* ---- SCROLLBAR (modern thin) ---- */
.custom-scroll::-webkit-scrollbar { width: 5px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 105, 108, 0.15); border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0, 105, 108, 0.3); }
.custom-scroll { scrollbar-width: thin; scrollbar-color: rgba(0,105,108,0.15) transparent; }

/* ---- ANIMATIONS ---- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ---- CLUSTER MARKERS ---- */
.cluster-marker {
    background: linear-gradient(135deg, #00696c, #14c8cc); color: white;
    border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 105, 108, 0.4);
    border: 3px solid rgba(255,255,255,0.8);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1023px) {
    .desktop-only { display: none !important; }
}
@media (min-width: 1024px) {
    .mobile-only { display: none !important; }
}

/* ---- MAP CREDITS ---- */
.map-credits {
    position: absolute; bottom: 28px; left: 12px;
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 14px; padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0, 105, 108, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 10;
}
.map-credits-logo {
    height: 30px; width: auto; border-radius: 5px;
    flex-shrink: 0;
}
.map-credits-text {
    display: flex; flex-direction: column; gap: 1px;
}
.map-credits-title {
    font-size: 11px; font-weight: 700; color: var(--text-primary);
    letter-spacing: -0.01em;
}
.map-credits-sub {
    font-size: 9px; font-weight: 500; color: var(--text-secondary);
    letter-spacing: 0.02em;
}
@media (max-width: 1023px) {
    .map-credits {
        bottom: 160px; left: 8px;
        padding: 8px 10px; border-radius: 12px;
    }
    .map-credits-logo { height: 22px; }
    .map-credits-title { font-size: 10px; }
    .map-credits-sub { font-size: 8px; }
}

/* ---- AREA LEGEND ---- */
.area-legend {
    position: absolute; bottom: 24px; left: 12px;
    background: rgba(255,255,255,0.7); border-radius: 12px;
    backdrop-filter: blur(20px);
    padding: 12px; box-shadow: 0 12px 32px rgba(0, 105, 108, 0.06);
    font-size: 11px; z-index: 10; max-width: 200px;
}
.area-legend-item {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 0; cursor: pointer; transition: opacity 0.2s;
}
.area-legend-item:hover { opacity: 0.7; }
.area-legend-dot {
    width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
}
.area-legend-name { color: var(--text-secondary); font-weight: 500; }
.area-legend-count {
    margin-left: auto; color: #94a3b8; font-weight: 600;
}

/* ---- STATS BAR ---- */
.stats-bar {
    display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}

/* ---- TOUCH TARGETS ---- */
button, .company-card, .filter-pill, .action-btn {
    min-height: 44px;
}

/* ============================================================
   FICHA ENRIQUECIDA - Street View, Mini-Mapa, Audio
   ============================================================ */

/* ---- PANORAMA 360° EMBEBIDO ---- */
/* ---- GALERÍA DE FOTOS ---- */
.fotos-slider-wrapper {
    position: relative; border-radius: 16px; overflow: hidden;
    border: 1.5px solid var(--border-color); background: #0a1628;
}
.fotos-slider { position: relative; width: 100%; aspect-ratio: 16/9; }
.foto-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 0.4s ease;
}
.foto-slide.active { opacity: 1; }
.foto-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: white; border: none;
    width: 38px; height: 38px; min-width: 38px; min-height: 38px;
    max-width: 38px; max-height: 38px; padding: 0;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 2;
}
.foto-nav:hover { background: rgba(0,0,0,0.75); }
.foto-nav-prev { left: 10px; }
.foto-nav-next { right: 10px; }
.fotos-counter {
    position: absolute; bottom: 10px; right: 12px;
    background: rgba(0,0,0,0.6); color: white; font-size: 11px;
    font-weight: 600; padding: 3px 10px; border-radius: 99px; z-index: 2;
}

/* ---- TOUR VIRTUAL ---- */
.tour-embed-container {
    border-radius: 16px; overflow: hidden;
    border: 1.5px solid var(--border-color);
    position: relative; background: #f1f5f9;
}
.tour-iframe {
    width: 100%; aspect-ratio: 4/3; border: none; display: block;
}

.panorama-embed-container {
    border-radius: 16px; overflow: hidden;
    border: 1.5px solid var(--border-color);
    position: relative;
    background: #f1f5f9;
}
.panorama-iframe {
    width: 100%; height: 300px; border: none;
    display: block;
}
.panorama-distance {
    font-size: 11px; color: #4CAF50; font-weight: 600;
    margin-bottom: 8px; padding-left: 2px;
}

/* ---- STREET VIEW PHOTO PREVIEW (facade thumbnail) ---- */
.sv-photo-card {
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 105, 108, 0.12), 0 1px 4px rgba(0, 105, 108, 0.08);
    cursor: pointer; position: relative;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    background: #004f51;
}
.sv-photo-card:hover {
    box-shadow: 0 12px 32px rgba(0, 105, 108, 0.18), 0 2px 8px rgba(0, 105, 108, 0.1);
    transform: translateY(-2px);
}
.sv-photo-card:active { transform: scale(0.99); }

.sv-photo-iframe-wrap {
    position: relative; width: 100%; height: 200px;
    overflow: hidden;
}
.sv-photo-iframe {
    width: 100%; height: 100%; border: none; display: block;
    pointer-events: none;
}
.sv-photo-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0, 105, 108, 0.7) 0%, rgba(0, 105, 108, 0.35) 60%, transparent 100%);
    padding: 32px 14px 12px; display: flex;
    flex-direction: column; gap: 2px;
}
.sv-photo-label {
    color: #fff; font-size: 13px; font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 105, 108, 0.4);
    display: flex; align-items: center; gap: 6px;
}
.sv-photo-label::before {
    content: '\1F4F7'; font-size: 14px;
}
.sv-photo-expand-hint {
    color: rgba(255,255,255,0.75); font-size: 11px;
    font-weight: 500;
}

/* ---- STREET VIEW BADGE (camera icon in company list) ---- */
.sv-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; margin-left: 5px;
    vertical-align: -2px; opacity: 0.55;
    transition: opacity 0.2s;
}
.sv-badge svg {
    width: 14px; height: 14px; stroke: var(--santander);
    stroke-width: 2; fill: none;
}
.company-card:hover .sv-badge { opacity: 1; }

/* ---- STREET VIEW EMBEBIDO ---- */
.streetview-embed-container {
    border-radius: 16px; overflow: hidden;
    border: 1.5px solid var(--border-color);
    position: relative;
    background: #f1f5f9;
}
.streetview-iframe {
    width: 100%; height: 250px; border: none;
    display: block;
}

/* ---- MINI-MAPA (reducido) ---- */
.minimap-container {
    height: 100px; border-radius: 12px;
    overflow: hidden; border: 1.5px solid var(--border-color);
    position: relative;
}
.minimap-container .maplibregl-canvas { border-radius: 16px; }
.minimap-container .maplibregl-ctrl-attrib { display: none !important; }

/* ---- AUDIO PLAY BUTTON ---- */
.audio-play-btn {
    width: 100%; display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; border-radius: 16px;
    background: linear-gradient(135deg, #00696c 0%, #004f51 100%);
    color: white; border: none; cursor: pointer;
    transition: all 0.25s; position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 105, 108, 0.3);
}
.audio-play-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}
.audio-play-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 105, 108, 0.4);
}
.audio-play-btn:active { transform: scale(0.98); }
.audio-play-btn.playing {
    background: linear-gradient(135deg, #004f51, #004f51);
}

.audio-icon-wrap {
    flex-shrink: 0; width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    backdrop-filter: blur(4px);
}
.audio-icon-svg {
    width: 22px; height: 22px;
    stroke: white; fill: white;
    position: relative; z-index: 2;
}

/* Audio waves animation */
.audio-waves {
    position: absolute; inset: 0;
    display: none; align-items: center; justify-content: center; gap: 3px;
    z-index: 2;
}
.audio-play-btn.playing .audio-waves { display: flex; }
.audio-play-btn.playing .audio-icon-svg { display: none; }

/* Canvas waveform (real audio visualization) */
.audio-canvas {
    position: absolute; inset: 0;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: none;
    z-index: 3;
}
.audio-play-btn.playing .audio-canvas { display: block; }
.audio-play-btn.playing .audio-waves { display: none; }

.audio-waves span {
    width: 3px; border-radius: 2px;
    background: white;
    animation: audioWave 1s ease-in-out infinite;
}
.audio-waves span:nth-child(1) { height: 12px; animation-delay: 0s; }
.audio-waves span:nth-child(2) { height: 20px; animation-delay: 0.15s; }
.audio-waves span:nth-child(3) { height: 16px; animation-delay: 0.3s; }
.audio-waves span:nth-child(4) { height: 10px; animation-delay: 0.45s; }

@keyframes audioWave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.2); }
}

.audio-text {
    flex: 1; display: flex; flex-direction: column;
    text-align: left; gap: 2px;
}
.audio-title {
    font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
}
.audio-duration {
    font-size: 11px; opacity: 0.75; font-weight: 400;
}

.audio-badge {
    flex-shrink: 0; padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px; font-size: 10px;
    font-weight: 800; letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

/* ============================================================
   AUDIO BOTTOM BAR — Floating waveform player
   ============================================================ */
.audio-bottom-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 60;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.audio-bottom-bar.visible {
    transform: translateY(0);
    pointer-events: auto;
}
.audio-bottom-inner {
    position: relative;
    margin: 0 auto; max-width: 520px;
    background: linear-gradient(135deg, #004f51 0%, #00696c 40%, #14c8cc 100%);
    border-radius: 20px 20px 0 0;
    padding: 16px 20px 20px;
    box-shadow: 0 -4px 30px rgba(0, 105, 108, 0.4), 0 -1px 6px rgba(0, 105, 108, 0.1);
    display: flex; align-items: center; gap: 14px;
    backdrop-filter: blur(16px);
}
@media (min-width: 1024px) {
    .audio-bottom-inner {
        margin: 0 12px 12px auto;
        border-radius: 20px;
        max-width: 420px;
    }
}
.audio-bottom-close {
    position: absolute; top: 10px; right: 12px;
    width: 28px; height: 28px; min-width: 28px; min-height: 28px;
    border-radius: 50%; aspect-ratio: 1;
    background: rgba(255,255,255,0.15); border: none;
    color: rgba(255,255,255,0.8); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; transition: background 0.2s, transform 0.2s;
}
.audio-bottom-close:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
.audio-bottom-close svg { flex-shrink: 0; }
.audio-bottom-left { flex-shrink: 0; }
.audio-bottom-play {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.3);
    color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; transition: all 0.2s;
}
.audio-bottom-play:hover { background: rgba(255,255,255,0.3); transform: scale(1.08); }
.audio-bottom-play:active { transform: scale(0.95); }
.audio-bottom-center {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px;
    padding-right: 20px;
}
.audio-bottom-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 700; color: white;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.audio-bottom-waveform-wrap {
    position: relative; width: 100%; height: 48px;
    border-radius: 8px; overflow: hidden;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
}
.audio-bottom-wave-canvas {
    width: 100%; height: 100%;
    display: block;
}
.audio-bottom-progress {
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 0%;
    background: rgba(255,255,255,0.12);
    border-radius: 8px 0 0 8px;
    transition: width 0.15s linear;
    pointer-events: none;
}
.audio-bottom-time {
    display: flex; justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,0.65);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   FEATURE: WIDGET METEOROLÓGICO
   ============================================================ */

.weather-widget {
    border-bottom: none;
    background: linear-gradient(135deg, #e0f7fa 0%, #f3f4f5 50%, #f8f9fa 100%);
    overflow: hidden;
}
.weather-widget.collapsed .weather-details { display: none; }
.weather-widget.collapsed .weather-chevron { transform: rotate(-90deg); }

.weather-loading {
    padding: 14px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.weather-header:hover { background: rgba(0, 105, 108, 0.05); }

.weather-current {
    display: flex;
    align-items: center;
    gap: 10px;
}
.weather-icon-large { font-size: 32px; line-height: 1; }
.weather-temp {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.weather-desc {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.weather-chevron {
    transition: transform 0.3s;
    color: var(--text-secondary);
}

.weather-details {
    padding: 0 16px 14px;
    animation: fadeIn 0.3s ease;
}

.weather-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.weather-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 8px 4px;
    border: none;
    box-shadow: 0 12px 32px rgba(0, 105, 108, 0.04);
}
.weather-stat-icon { font-size: 16px; line-height: 1; }
.weather-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.weather-stat-label {
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.weather-forecast {
    display: flex;
    gap: 4px;
}
.weather-forecast-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 8px 2px;
    border: none;
    box-shadow: 0 12px 32px rgba(0, 105, 108, 0.04);
}
.weather-forecast-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.weather-forecast-icon { font-size: 20px; line-height: 1; }
.weather-forecast-temps {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}
.weather-forecast-temps .temp-max { color: var(--text-primary); }
.weather-forecast-temps .temp-min {
    color: var(--text-secondary);
    font-weight: 400;
}

.weather-widget-mobile {
    border-top: none;
}

/* ============================================================
   FEATURE: POI DISTANCIAS PANEL
   ============================================================ */

.poi-distances-panel {
    border-top: none;
    background: var(--bg-secondary);
}
.poi-distances-panel.collapsed .poi-distances-content { display: none; }
.poi-distances-panel.collapsed .poi-chevron { transform: rotate(-90deg); }

.poi-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.poi-panel-header:hover { background: rgba(0, 105, 108, 0.05); }

.poi-panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.poi-chevron {
    transition: transform 0.3s;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.poi-distances-content {
    padding: 0 8px 8px;
}

.poi-distance-group {
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    margin-bottom: 6px;
    border: none;
    overflow: hidden;
}
.poi-distance-group.collapsed .poi-distance-list { display: none; }
.poi-distance-group.collapsed .poi-chevron { transform: rotate(-90deg); }

.poi-distance-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.2s;
}
.poi-distance-group-title:hover { background: var(--bg-secondary); }

.poi-distance-list {
    padding: 0 14px 10px;
}

.poi-distance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: none;
}
.poi-distance-item:last-child { border-bottom: none; }

.poi-distance-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.poi-distance-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.poi-distance-name {
    flex: 1;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
}

.poi-distance-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--santander);
    white-space: nowrap;
}

/* ============================================================
   FEATURE: CONTROLES MAPA - SEPARADOR
   ============================================================ */

.map-controls-divider {
    width: 24px;
    height: 1px;
    background: rgba(188, 201, 201, 0.15);
    margin: 2px auto;
}

/* ============================================================
   FLOATING OVERLAY BUTTONS — Apple iOS 18+ Style
   Glass morphism, backdrop-blur, rounded pills
   ============================================================ */

.floating-overlays {
    position: absolute;
    bottom: 28px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 10;
    pointer-events: auto;
}

.floating-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 238, 239, 0.88));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.1),
        0 4px 14px rgba(0, 105, 108, 0.08);
    transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    min-height: 42px;
    letter-spacing: -0.01em;
}

.floating-pill:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(237, 238, 239, 0.95));
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 105, 108, 0.12);
    border-color: rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.floating-pill:active {
    transform: scale(0.96) translateY(0);
    transition-duration: 0.1s;
}

.floating-pill.active {
    background: rgba(0, 105, 108, 0.88);
    color: white;
    box-shadow:
        0 2px 8px rgba(0, 105, 108, 0.25),
        0 6px 20px rgba(0, 105, 108, 0.18),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.15);
}

.floating-pill.active:hover {
    background: rgba(0, 105, 108, 0.95);
    box-shadow:
        0 4px 12px rgba(0, 105, 108, 0.3),
        0 8px 28px rgba(0, 105, 108, 0.22);
}

.floating-pill.active .floating-pill-icon svg {
    stroke: white;
}

.floating-pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.floating-pill-icon svg {
    stroke: #475569;
    transition: stroke 0.2s;
}

.floating-pill-label {
    font-size: 12.5px;
    letter-spacing: -0.01em;
}

/* Street View 360° pill icon — green dot */
.sv-dot-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}
.floating-pill-sv.active .sv-dot-icon {
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    background: #66BB6A;
}

/* Satellite dark adaptation */
.satellite-active .floating-pill {
    background: rgba(15, 23, 42, 0.72);
    color: #f1f5f9;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.satellite-active .floating-pill:hover {
    background: rgba(15, 23, 42, 0.85);
}

.satellite-active .floating-pill.active {
    background: rgba(0, 105, 108, 0.9);
    color: white;
}

.satellite-active .floating-pill-icon svg {
    stroke: #cbd5e1;
}

.satellite-active .floating-pill.active .floating-pill-icon svg {
    stroke: white;
}

/* ============================================================
   WEATHER FLOATING OVERLAY PANEL
   ============================================================ */

.floating-btn-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-expand-panel {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 290px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 18px;
    box-shadow:
        0 8px 40px rgba(0, 105, 108, 0.12),
        0 2px 8px rgba(0, 105, 108, 0.06),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
    padding: 18px;
    z-index: 11;
    animation: floatPanelIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-expand-panel.visible {
    display: block;
}

@keyframes floatPanelIn {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.satellite-active .floating-expand-panel {
    background: rgba(15, 23, 42, 0.88);
    color: #f1f5f9;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.35),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

/* Weather panel internal styles */
.weather-float-temp {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #0f172a;
}

.satellite-active .weather-float-temp {
    color: #f1f5f9;
}

.weather-float-desc {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.weather-float-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.weather-float-stat {
    text-align: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.satellite-active .weather-float-stat {
    background: rgba(255, 255, 255, 0.08);
}

.weather-float-stat-value {
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.weather-float-stat-label {
    font-size: 10px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.weather-float-forecast {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 10px;
}

.weather-float-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    flex: 1;
    min-width: 0;
}

.satellite-active .weather-float-day {
    background: rgba(255, 255, 255, 0.06);
}

.weather-float-day-name {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.weather-float-day-icon {
    font-size: 18px;
    line-height: 1;
}

.weather-float-day-temps {
    font-size: 10px;
    font-weight: 600;
}

.weather-float-day-temps .temp-max {
    color: #0f172a;
}

.satellite-active .weather-float-day-temps .temp-max {
    color: #f1f5f9;
}

.weather-float-day-temps .temp-min {
    color: #94a3b8;
    margin-left: 2px;
}

/* ============================================================
   PARCELAS LIBRES (FREE PLOTS) — Popup styles
   ============================================================ */

.parcela-popup .maplibregl-popup-content {
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 20px rgba(0, 105, 108, 0.12);
}

.parcela-popup-content {
    font-family: 'Inter', system-ui, sans-serif;
}

.parcela-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.parcela-popup-area {
    font-size: 22px;
    font-weight: 800;
    color: #2E7D32;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.parcela-popup-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

.parcela-popup-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    background: #E8F5E9;
    color: #1B5E20;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* ============================================================
   ACCESS POINTS — Clean Pill Markers (Vehicle + Direction)
   Anchor: center (0,0 point = exact coordinate on map)
   ============================================================ */

.access-marker {
    position: relative;
    cursor: pointer;
    z-index: 2;
}

.access-marker:hover {
    z-index: 10;
}

.access-marker-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.access-marker:hover .access-marker-body {
    transform: translateX(-50%) scale(1.08);
}

.access-marker-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5C9CE6, #3B7DD8);
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.88;
}

.access-marker.pesados .access-marker-icon {
    background: linear-gradient(135deg, #FF8A65, #EF6C00);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.access-marker.ligeros .access-marker-icon {
    background: linear-gradient(135deg, #81C784, #4CAF50);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.access-marker:hover .access-marker-icon { opacity: 1; }

.access-marker-label {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(0, 105, 108, 0.15);
}

/* Color-coded badge for entry/exit — soft glass style */
.access-marker .access-marker-label {
    background: rgba(255, 255, 255, 0.92);
    color: #3B7DD8;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.access-marker.pesados .access-marker-label {
    color: #EF6C00;
}
.access-marker.ligeros .access-marker-label {
    color: #2E7D32;
}

/* ============================================================
   ENHANCED POI MARKERS — Drop-pin style with stem
   Anchor: center (0,0 point = exact coordinate on map)
   ============================================================ */

.poi-marker-enhanced {
    position: relative;
    cursor: pointer;
    z-index: 3;
}

.poi-marker-enhanced:hover {
    z-index: 15;
}

.poi-marker-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poi-marker-enhanced:hover .poi-marker-body {
    transform: translateX(-50%) translateY(-3px);
}

.poi-marker-pin {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pin-color, #1565C0);
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s, transform 0.2s;
    opacity: 0.9;
}

.poi-marker-enhanced:hover .poi-marker-pin {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transform: scale(1.06);
    opacity: 1;
}

.poi-marker-stem {
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent);
}

.poi-marker-label {
    position: absolute;
    top: 50%;
    left: calc(100% + 24px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    color: #1a2332;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(12px);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ============================================================
   TRANSPORT MARKERS — Drop-pin Bus & Train Stops
   Anchor: center (0,0 point = exact coordinate on map)
   ============================================================ */

.transport-marker {
    position: relative;
    cursor: pointer;
    z-index: 2;
}

.transport-marker:hover {
    z-index: 10;
}

.transport-marker-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.transport-marker:hover .transport-marker-body {
    transform: translateX(-50%) translateY(-3px);
}

.transport-marker-pin {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.85);
    transition: box-shadow 0.2s, transform 0.2s;
    opacity: 0.88;
}

.transport-marker.bus .transport-marker-pin {
    background: linear-gradient(135deg, #66BB6A, #43A047);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.transport-marker.tren .transport-marker-pin {
    background: linear-gradient(135deg, #42A5F5, #1976D2);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.transport-marker:hover .transport-marker-pin {
    transform: scale(1.06);
    opacity: 1;
}

.transport-marker-stem {
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, rgba(0, 105, 108, 0.2), transparent);
}

.transport-marker-label {
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    color: #1a2332;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 105, 108, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
}

/* ============================================================
   MOBILE RESPONSIVE — Floating Overlays
   ============================================================ */

@media (max-width: 1023px) {
    .floating-overlays {
        bottom: 155px;
        right: 8px;
        gap: 6px;
    }

    .floating-pill {
        padding: 7px 12px;
        min-height: 38px;
        border-radius: 20px;
    }

    .floating-pill-label {
        font-size: 11px;
    }

    .floating-pill-icon {
        font-size: 14px;
    }

    .floating-expand-panel {
        width: 265px;
        padding: 14px;
        right: 0;
    }

    .poi-marker-pin {
        width: 38px;
        height: 38px;
    }

    .poi-marker-pin svg {
        width: 17px;
        height: 17px;
    }

    .poi-marker-label {
        font-size: 9px;
        padding: 2px 6px;
        left: calc(100% + 22px);
    }

    .poi-marker-stem {
        height: 8px;
    }

    .transport-marker-pin {
        width: 34px;
        height: 34px;
    }

    .transport-marker-pin svg {
        width: 17px;
        height: 17px;
    }

    .access-marker-icon {
        width: 30px;
        height: 30px;
    }

    .access-marker-icon svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* ---- SEARCH CLEAR BUTTON ---- */
.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-hover, #e2e8f0);
    color: var(--text-secondary, #64748b);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    z-index: 2;
}
.search-clear:hover {
    background: var(--santander, #00696c);
    color: white;
}
.search-container { position: relative; }

/* ---- SEARCH RESULTS COUNT ---- */
.search-results-count {
    padding: 2px 16px 6px;
    font-size: 11px;
    color: var(--text-secondary, #94a3b8);
    font-weight: 500;
}

/* ---- INFO BUTTON ON CARDS ---- */
.info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px;
    border: 1.5px solid rgba(0, 105, 108, 0.2);
    background: rgba(0, 105, 108, 0.05);
    color: var(--santander, #00696c);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: 'Inter', system-ui, sans-serif;
}
.info-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.info-btn span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.info-btn:hover {
    background: linear-gradient(135deg, #00696c, #14c8cc);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 105, 108, 0.25);
}
.info-btn:active {
    transform: scale(0.95);
}

/* Legacy quick-call support */
.quick-call-btn { display: none; }
.quick-call-label { display: none; }

/* ---- RECENT COMPANIES BAR ---- */
.recent-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0, 105, 108, 0.06);
}
.recent-bar::-webkit-scrollbar { display: none; }
.recent-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #94a3b8);
    white-space: nowrap;
    flex-shrink: 0;
}
.recent-chip {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    background: var(--santander-pale, #e0f7fa);
    color: var(--santander, #00696c);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
}
.recent-chip:hover {
    background: var(--santander, #00696c);
    color: white;
}

/* ---- AUDIO BADGE ON CARDS ---- */
.audio-badge-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: -1px;
    opacity: 0.5;
}
.audio-badge-card svg {
    width: 12px;
    height: 12px;
    stroke: #66BB6A;
    fill: none;
    stroke-width: 2;
}
.company-card:hover .audio-badge-card { opacity: 1; }

/* ---- PROXIMITY DISTANCE ON CARDS ---- */
.company-distance {
    font-size: 10px;
    color: var(--santander, #00696c);
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---- STREET VIEW MAP POPUP ---- */
.sv-map-popup .maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 105, 108, 0.25), 0 4px 12px rgba(0, 105, 108, 0.15) !important;
    background: #fff;
    min-width: 300px;
}
.sv-map-popup .maplibregl-popup-close-button {
    font-size: 20px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 105, 108, 0.6);
    right: 6px;
    top: 4px;
    z-index: 10;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 105, 108, 0.3);
    backdrop-filter: blur(4px);
}
.sv-map-popup .maplibregl-popup-close-button:hover {
    background: rgba(0, 105, 108, 0.5);
    color: #fff;
}
.sv-popup-container {
    display: flex;
    flex-direction: column;
}
.sv-popup-header {
    padding: 10px 14px;
    background: #f8f9fa;
    border-bottom: none;
}
.sv-popup-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.sv-popup-sector {
    font-size: 11px;
    color: #64748b;
}
.sv-popup-iframe-wrap {
    width: 100%;
    height: 220px;
    position: relative;
    background: #004f51;
}
.sv-popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.sv-popup-no-sv {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 13px;
}
.sv-popup-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-top: none;
}
.sv-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    border: none;
}
.sv-popup-btn-detail {
    background: #00696c;
    color: #fff;
    flex: 1;
    justify-content: center;
}
.sv-popup-btn-detail:hover { background: #004f51; }
.sv-popup-btn-gmaps {
    background: #e8f5e9;
    color: #2e7d32;
}
.sv-popup-btn-gmaps:hover { background: #c8e6c9; }

@media (max-width: 640px) {
    .sv-map-popup .maplibregl-popup-content { min-width: 260px; }
    .sv-popup-iframe-wrap { height: 180px; }
}

/* ============================================================
   CHATBOT - Asistente flotante
   ============================================================ */
#chatbotLauncher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 40;
    pointer-events: none;
}
#chatbotLauncher .floating-pill {
    pointer-events: auto;
    background: linear-gradient(135deg, var(--santander), var(--santander-light));
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 105, 108, 0.32), 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#chatbotLauncher .floating-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 105, 108, 0.42);
}
#chatbotLauncher .floating-pill-icon { font-size: 16px; }
#chatbotLauncher .floating-pill-label {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}
.chatbot-unread-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #ff5252;
    border: 2px solid #fff;
    border-radius: 50%;
}

.chatbot-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
    animation: chatbotFadeIn 0.18s ease;
}
.chatbot-overlay.active { display: flex; }
@keyframes chatbotFadeIn { from { opacity: 0; } to { opacity: 1; } }

.chatbot-card {
    width: 100%;
    max-width: 420px;
    margin: 0 0 88px 20px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 105, 108, 0.12);
    display: flex;
    flex-direction: column;
    max-height: 75vh;
    height: 600px;
    overflow: hidden;
    animation: chatbotSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes chatbotSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--santander), var(--santander-light));
    color: #fff;
    flex-shrink: 0;
}
.chatbot-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.chatbot-header-text { flex: 1; min-width: 0; }
.chatbot-header-text h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #fff;
}
.chatbot-header-sub {
    font-size: 11px;
    opacity: 0.85;
    margin: 2px 0 0;
    font-weight: 400;
}
.chatbot-close {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.chatbot-close:hover { background: rgba(255, 255, 255, 0.28); }

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
    background: #fafcfc;
}
.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(0, 105, 108, 0.2); border-radius: 4px; }

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 16px;
    word-wrap: break-word;
    animation: chatBubbleIn 0.22s ease;
}
@keyframes chatBubbleIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-bubble-user {
    background: linear-gradient(135deg, var(--santander), var(--santander-light));
    color: #fff;
    align-self: flex-end;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 2px 6px rgba(0, 105, 108, 0.18);
}
.chat-bubble-bot {
    background: #ffffff;
    color: #1e293b;
    align-self: flex-start;
    border-radius: 16px 16px 16px 4px;
    border: 1px solid rgba(0, 105, 108, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.chat-bubble strong { color: var(--santander-dark); font-weight: 700; }
.chat-bubble-user strong { color: #fff; }
.chat-link {
    color: var(--santander);
    text-decoration: underline;
    font-weight: 600;
}
.chat-link:hover { color: var(--santander-light); }

.chat-action-row {
    align-self: flex-start;
    max-width: 85%;
    margin: -2px 0 4px 0;
}
.chat-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--santander);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    font-family: inherit;
}
.chat-action-btn:hover {
    background: var(--santander-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 105, 108, 0.25);
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: stretch;
    margin: 0 0 4px 0;
}
.chat-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid rgba(0, 105, 108, 0.12);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-align: left;
}
.chat-list-item:hover {
    background: var(--santander-pale);
    border-color: var(--santander-light);
    transform: translateX(2px);
}
.cli-label { flex: 1; min-width: 0; }
.cli-count {
    background: var(--santander-pale);
    color: var(--santander-dark);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

.chat-results-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
}
.chat-company-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid rgba(0, 105, 108, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
}
.chat-company-card:hover {
    background: var(--santander-pale);
    border-color: var(--santander-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 105, 108, 0.12);
}
.ccc-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--santander-pale);
    border-radius: 10px;
    flex-shrink: 0;
}
.ccc-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ccc-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ccc-meta {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ccc-arrow {
    color: var(--santander);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.chatbot-quick-replies {
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    flex-shrink: 0;
    background: #fafcfc;
    border-top: 1px solid rgba(0, 105, 108, 0.06);
}
.chatbot-quick-replies::-webkit-scrollbar { height: 4px; }
.chatbot-quick-replies::-webkit-scrollbar-thumb { background: rgba(0, 105, 108, 0.2); border-radius: 4px; }
.chat-quick-reply {
    flex-shrink: 0;
    padding: 7px 14px;
    background: #fff;
    color: var(--santander-dark);
    border: 1px solid rgba(0, 105, 108, 0.2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}
.chat-quick-reply:hover {
    background: var(--santander);
    color: #fff;
    border-color: var(--santander);
}

.chatbot-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 14px;
    background: #fff;
    border-top: 1px solid rgba(0, 105, 108, 0.08);
    flex-shrink: 0;
}
#chatbotInput {
    flex: 1;
    border: 1px solid rgba(0, 105, 108, 0.18);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    background: #fafcfc;
    color: #1e293b;
    outline: none;
    transition: all 0.15s ease;
    min-width: 0;
}
#chatbotInput:focus {
    border-color: var(--santander);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 105, 108, 0.1);
}
.chatbot-send {
    background: var(--santander);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.chatbot-send:hover {
    background: var(--santander-dark);
    transform: scale(1.05);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .chatbot-overlay {
        align-items: stretch;
        justify-content: stretch;
    }
    .chatbot-card {
        max-width: 100%;
        margin: 0;
        height: 88vh;
        max-height: 88vh;
        border-radius: 22px 22px 0 0;
        align-self: flex-end;
        width: 100%;
    }
    #chatbotLauncher {
        bottom: 16px;
        left: 16px;
    }
    #chatbotLauncher .floating-pill-label {
        display: none;
    }
    #chatbotLauncher .floating-pill {
        padding: 11px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        border-radius: 50%;
    }
    #chatbotLauncher .floating-pill-icon {
        font-size: 20px;
    }
}
@media (max-width: 360px) {
    #chatbotLauncher .floating-pill { padding: 9px; }
}

/* Hide launcher when detail modal is open to avoid overlap */
.detail-overlay.active ~ #chatbotLauncher,
body:has(.detail-overlay.active) #chatbotLauncher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.2s ease;
}

