:root {
    --primary: #3498db;
    --accent: #e74c3c;
    --success: #2ecc71;
    --dark: #2c3e50;
    --color-visitar: #16a085; /* Turquesa */
    --color-comer: #d35400;   /* Naranja */
    --color-ruta: #2980b9;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    outline: none;
    touch-action: manipulation;
}

html {
    font-size: calc(100vw / 40);
}

body, html {
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f8;
    user-select: none;
    -webkit-user-select: none;
}

#rotate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(10px);
    z-index: 99999999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    color: white;
}

@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(-90deg); }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
    #rotate-overlay {
        display: flex !important;
    }
    #main-layout, .modal, #splash-screen, #install-gatekeeper {
        display: none !important;
    }
}

#install-gatekeeper {
    position: fixed;
    inset: 0;
    background: rgba(44, 62, 80, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.install-card {
    background: white;
    border-radius: 2.5rem;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 45rem;
    text-align: center;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.5);
    border: 0.4rem solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.install-icon { font-size: 6rem; line-height: 1; }
.install-title { font-size: 3rem; font-weight: 900; color: var(--dark); margin: 0; }
.install-desc { font-size: 1.6rem; color: #7f8c8d; line-height: 1.4; margin: 0; }
#install-instructions { background: #f4f6f8; border-radius: 1.5rem; padding: 1.5rem; border: 0.2rem dashed #bdc3c7; font-size: 1.6rem; color: var(--dark); line-height: 1.4; }
#btn-install-native { background: var(--success); color: white; border: none; border-radius: 1.5rem; padding: 1.5rem; font-size: 2rem; font-weight: 900; cursor: pointer; box-shadow: 0 0.5rem 1.5rem rgba(46,204,113,0.4); text-transform: uppercase; width: 100%; margin-top: 1rem; display: none; }
.btn-dismiss-install { background: transparent; color: #95a5a6; border: none; font-size: 1.4rem; font-weight: bold; text-decoration: underline; margin-top: 1rem; cursor: pointer; }

#splash-screen {
    position: fixed;
    inset: 0;
    background: url('/iconos/portada.jpg') no-repeat center center;
    background-size: cover;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}
#splash-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}
#splash-image, #splash-title, #splash-subtitle {
    position: relative;
    z-index: 1;
}

#splash-image {
    width: 90%;
    max-width: 400px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.3);
}
#splash-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 0.4rem 0.8rem rgba(0,0,0,0.9);
    animation: titleColorCycle 4s infinite alternate ease-in-out;
    color: white;
}
#splash-subtitle {
    font-size: 2rem;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-shadow: 0 0.2rem 0.4rem rgba(0,0,0,0.9);
    text-align: center;
}

#main-layout {
    display: flex;
    flex-direction: column;
    height: 100dvh;
}
#map-container {
    height: 50dvh;
    width: 100%;
    position: relative;
    z-index: 1;
}
#map {
    height: 100%;
    width: 100%;
}

#map-route-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 2rem;
    font-size: 1.8rem;
    font-weight: 900;
    z-index: 9999;
    border: 0.3rem solid var(--color-ruta);
    box-shadow: 0 0.6rem 1.5rem rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    animation: pulse-loading 1.5s infinite alternate ease-in-out;
}

#map-banner {
    position: absolute;
    top: 10.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1.2rem;
    border-radius: 1.5rem;
    text-align: center;
    font-size: 1.6rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 0.4rem 1.5rem rgba(0,0,0,0.4);
    border: 0.2rem solid var(--primary);
}

#map-app-title {
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    height: 3.5rem;
    z-index: 1000;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 900;
    pointer-events: auto;
    cursor: pointer;
    text-shadow: 0 0.3rem 0.6rem rgba(0,0,0,0.5);
    animation: titleColorCycle 12s infinite alternate ease-in-out;
    white-space: nowrap;
}

#map-visiting {
    position: absolute;
    top: 4.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    font-size: 1.6rem;
    font-weight: 400;
    font-style: normal;
    text-shadow: 0 0.2rem 0.4rem rgba(0,0,0,0.5);
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.05rem;
    font-family: inherit;
    animation: titleColorCycle 12s infinite alternate ease-in-out;
}

#map-city-title {
    position: absolute;
    top: 7rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    font-size: 1.8rem;
    font-weight: 900;
    pointer-events: none;
    text-shadow: 0 0.3rem 0.6rem rgba(0,0,0,0.6);
    width: 85%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes titleColorCycle {
    0% { color: white; }
    50% { color: var(--primary); }
    100% { color: white; }
}

#btn-info {
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    z-index: 9000;
    background: #005bb5;
    color: white;
    border: 0.2rem solid white;
    border-radius: 50%;
    width: 3.8rem;
    height: 3.8rem;
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    cursor: pointer;
    box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-map-selector {
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    z-index: 9000;
    background: #ebf5fb;
    border: 0.3rem solid var(--primary);
    border-radius: 1.2rem;
    width: 4.2rem;
    height: 4.2rem;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 0.6rem 1.5rem rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-elevation {
    position: absolute;
    bottom: 2rem;
    right: 1rem;
    z-index: 9000;
    background: #ebf5fb;
    border: 0.3rem solid var(--primary); 
    border-radius: 1.2rem;
    width: 4.2rem;
    height: 4.2rem;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 0.6rem 1.5rem rgba(0,0,0,0.4); 
    display: none; 
    align-items: center;
    justify-content: center;
    transition: bottom 0.3s ease-in-out;
}
#elevation-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: rgba(44, 62, 80, 0.95);
    z-index: 8500;
    display: none;
    padding: 1rem 1.5rem;
    border-top: 0.3rem solid var(--primary);
    box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.3);
}
#elevation-title {
    margin-bottom: 5px;
    width: 100%;
}
#elevation-svg {
    width: 100%;
    height: calc(100% - 40px);
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}
#elevation-svg:active {
    cursor: grabbing;
}

#action-bar {
    height: 8.5rem;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background: #d4efdf;
    border-bottom: 0.3rem solid #27ae60;
    z-index: 2000;
    box-shadow: 0 0.2rem 1rem rgba(0,0,0,0.1);
}
#search-box {
    flex: 1;
    height: 5.5rem;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 1.2rem;
    border: 0.2rem solid #ddd;
    margin-right: 1.2rem;
}
#search-input {
    width: 100%;
    font-size: 1.8rem !important;
    font-weight: 900;
    background: transparent;
    border: none;
    padding-left: 1.5rem;
    color: var(--dark);
    -webkit-appearance: none;
}
#search-input::-webkit-search-decoration,
#search-input::-webkit-search-cancel-button,
#search-input::-webkit-search-results-button,
#search-input::-webkit-search-results-decoration {
    display: none;
}
#search-btn {
    background: var(--primary);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin-right: 0.5rem;
}
#search-btn img {
    width: 2.4rem;
    height: 2.4rem;
    filter: brightness(0) invert(1);
}

.category-bar {
    display: flex;
    gap: 0.8rem;
}
.cat-btn {
    width: 7.5rem;
    height: 5.5rem;
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    cursor: pointer;
    border: 0.2rem solid transparent;
    color: white;
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.cat-btn img {
    width: 2.4rem;
    height: 2.4rem;
    filter: brightness(0) invert(1);
}
.btn-text-bold {
    font-size: 0.9rem;
    font-weight: 900;
}
.cat-btn.active-cat {
    transform: scale(1.02);
    border: 0.2rem solid white;
    box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.3);
}

/* FIX: Animación de iluminación para el botón RUTA cuando hay 2+ POIs */
@keyframes pulse-ruta-ready {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.8); }
    70% { box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.btn-ruta-ready:not(.active-cat) {
    animation: pulse-ruta-ready 2s infinite;
    background-color: var(--success) !important;
    border: 0.2rem solid white !important;
}

#sidebar {
    flex-grow: 1;
    overflow: hidden;
    background: #5c656d;
    position: relative;
}
.view-pane {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
}
.view-pane.active-view {
    display: flex;
}

.sidebar-header {
    padding: 1rem 1.2rem;
    background: var(--dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 4.8rem;
}
.sidebar-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
}

#total-distance-display {
    font-size: 1.8rem;
    font-weight: 900;
    color: #f1c40f;
    text-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.3);
    white-space: nowrap;
}

.action-btn {
    background: white;
    border: 0.1rem solid #bdc3c7;
    border-radius: 50%;
    width: 3.5rem; 
    height: 3.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: black;
}
.action-btn:hover {
    transform: scale(1.05);
}
.share-route-btn svg {
    width: 1.8rem;
    height: 1.8rem;
}

#btn-optimize {
    background: var(--dark);
    color: white;
    border: 0.2rem solid #f1c40f; 
    box-shadow: 0 0.4rem 0.8rem rgba(0,0,0,0.3);
}

.status-indicator {
    position: absolute;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-family: monospace;
    font-weight: bold;
    color: white;
    z-index: 1000;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 12rem;
    justify-content: space-between;
}
#status-gps {
    bottom: 2.8rem;
}
#status-server {
    bottom: 1rem;
}

.signal-bars {
    display: inline-flex;
    gap: 0.2rem;
    align-items: flex-end;
    height: 1.4rem;
}
.signal-bars .bar {
    width: 0.5rem;
    background-color: #aaa;
    transition: background-color 0.2s;
    border-radius: 0.1rem;
}
.signal-bars .bar:nth-child(1) { height: 0.6rem; }
.signal-bars .bar:nth-child(2) { height: 0.8rem; }
.signal-bars .bar:nth-child(3) { height: 1.0rem; }
.signal-bars .bar:nth-child(4) { height: 1.2rem; }
.signal-bars .bar:nth-child(5) { height: 1.4rem; }

.list-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 4rem;
    scroll-behavior: smooth;
}
.loading-msg {
    font-size: 1.6rem;
    font-weight: 900;
    color: #cbd5e0;
    text-align: center;
    margin-top: 2rem;
    text-transform: uppercase;
}

.poi-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: #fff;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 0.1rem solid #e0e0e0;
}

.drag-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    padding: 0.4rem;
    min-width: 3rem;
    background: #f8f9fa;
    border-radius: 0.8rem;
    margin-right: 0.6rem;
}
.drag-zone:active {
    cursor: grabbing;
}
.drag-handle {
    font-size: 2rem;
    color: #cbd5e0;
    line-height: 1;
}
.poi-number {
    font-size: 1.2rem;
    font-weight: 900;
    margin-top: 0.1rem;
}

.poi-icon {
    font-size: 2.2rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}
.poi-info {
    flex-grow: 1;
    overflow: hidden;
    margin-right: 0.6rem;
}
.poi-name {
    font-size: 1.4rem !important;
    font-weight: 900;
    color: var(--dark);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.poi-address {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 600;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.poi-contact {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}
.contact-link {
    text-decoration: none;
    background: #ecf0f1;
    border: 0.1rem solid #bdc3c7;
    padding: 0.2rem 0.5rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    color: var(--dark);
    font-weight: bold;
}
.dist-tag {
    font-size: 1.1rem;
    font-weight: 900;
    margin-top: 0.3rem;
}

.poi-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}
.btn-toggle-poi {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btn-add {
    background: var(--success);
}
.btn-remove {
    background: var(--accent);
}
.btn-toggle-poi img {
    width: 1.4rem;
    height: 1.4rem;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.map-pin-custom {
    background: white;
    border: 0.3rem solid var(--dark);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.4rem 0.8rem rgba(0,0,0,0.3);
}
.pin-content {
    transform: rotate(45deg);
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
}

.user-loc-icon {
    width: 100%;
    height: 100%;
    background-color: #ff0000;
    -webkit-mask: url('/iconos/userlocation.svg') no-repeat center;
    mask: url('/iconos/userlocation.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    filter: drop-shadow(0 0.3rem 0.6rem rgba(255, 0, 0, 0.5));
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content.large-modal {
    background: #f4f6f8;
    padding: 1.5rem;
    border-radius: 2rem;
    width: 92%;
    max-width: 80rem;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
}
.modal-content.large-modal h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
}

.info-card {
    background: white;
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.05);
    border: 0.1rem solid #e0e0e0;
}
.info-card-header {
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 1.4rem;
    font-weight: 900;
    text-align: left;
}
.info-card-body {
    padding: 1rem 1.2rem;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.4;
    text-align: left;
}
.info-card-body ul { margin: 0; padding-left: 1.6rem; }
.info-card-body li { margin-bottom: 0.4rem; }

.inline-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 0.2rem;
    box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.2);
}
.inline-icon-btn img {
    width: 1rem;
    height: 1rem;
    filter: brightness(0) invert(1);
}

.map-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.map-card {
    background: white;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 0.2rem solid transparent;
    box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.1);
    cursor: pointer;
    text-align: center;
}
.map-preview {
    height: 8rem;
    background-size: cover;
    background-position: center;
    border-bottom: 0.1rem solid #eee;
    width: 100%;
}
.map-preview-osm { background-image: url('https://a.tile.openstreetmap.org/6/31/24.png'); }
.map-preview-light { background-image: url('https://a.basemaps.cartocdn.com/rastertiles/voyager/6/31/24.png'); }
.map-preview-topo { background-image: url('https://a.tile.opentopomap.org/6/31/24.png'); }
.map-preview-sat { background-image: url('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/6/24/31'); }
.map-preview-dark { background-image: url('https://a.basemaps.cartocdn.com/dark_all/6/31/24.png'); }
.map-preview-calles { background-image: url('https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/6/24/31'); }

.map-card h4 {
    font-size: 1.2rem;
    font-weight: 900;
    padding: 0.4rem 0;
    margin: 0;
}

.btn-close {
    background: var(--accent);
    color: white;
    padding: 0.8rem;
    width: 100%;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
}

#map-loading-message { animation: pulse 1s infinite; }
@keyframes pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }

.bouncing-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 10px; gap: 15px; color: var(--accent); font-weight: bold; text-align: center; }
.bouncing-dots { display: flex; gap: 8px; }
.bouncing-dots div { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; animation: bounce 0.5s infinite alternate; }
.bouncing-dots div:nth-child(2) { animation-delay: 0.15s; }
.bouncing-dots div:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { to { transform: translateY(-12px); opacity: 0.5; } }

.loading-addr { color: #e67e22; font-size: 1.1rem; animation: pulse-loading 1.5s infinite alternate ease-in-out; }
@keyframes pulse-loading { 0% { opacity: 0.5; } 100% { opacity: 1; } }

#info-modal .modal-body-scroll {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 20px !important;
    padding-bottom: 10px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
#info-modal .modal-body-scroll::-webkit-scrollbar { display: none !important; }
#info-modal .info-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    scroll-snap-align: center !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    max-height: 60vh !important;
}

.mini-pin { color: white; padding: 2px 7px; border-radius: 10px; font-weight: bold; font-size: 0.85em; margin-right: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.user-pin { background: #ff0000; color: white; padding: 2px 5px; border-radius: 10px; font-size: 0.85em; margin-right: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

@media (min-width: 1024px) {
    html {
        font-size: 10px !important;
        background: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?q=80&w=2144&auto=format&fit=crop') no-repeat center center fixed;
        background-size: cover;
        overflow: hidden !important;
        width: 100vw;
        height: 100vh;
    }
    body {
        width: 430px !important;
        height: 900px !important;
        max-width: none !important;
        max-height: none !important;
        min-height: auto !important;
        position: absolute !important;
        top: 2vh !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1);
        transform-origin: top center !important;
        border-radius: 40px;
        box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 0 15px #1a1c1e;
        overflow: hidden;
        margin: 0 !important;
    }
    #main-layout { height: 100% !important; }
    #map-container { height: 50% !important; }
    #splash-screen, .modal { position: absolute !important; border-radius: 40px; inset: 0; width: 100%; height: 100%; }
    .modal-content.large-modal { max-height: 85% !important; }
    #install-gatekeeper { display: none !important; }
}
