:root {
    --hpv-header-height: 86px;

    --hpv-bg: #f7f5ef;
    --hpv-surface: #ffffff;
    --hpv-sand: #b8b09a;
    --hpv-sand-dark: #a79f88;
    --hpv-text: #5f5c55;
    --hpv-text-strong: #4a4944;
    --hpv-border: rgba(0, 0, 0, 0.08);
    --hpv-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* =========================
   BASE
========================= */
html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--hpv-bg);
    color: var(--hpv-text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: inherit;
}

.hpv-main {
    padding-top: calc(var(--hpv-header-height) + 1.5rem);
    min-height: 100vh;
}

/* =========================
   HEADER
========================= */
.hpv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--hpv-header-height);
    background: rgba(184, 176, 154, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hpv-header-inner {
    min-height: var(--hpv-header-height);
}

.hpv-brand {
    text-decoration: none;
    color: #fff;
}

.hpv-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hpv-brand-logo {
    height: 54px;
    width: auto;
    display: block;
}

.hpv-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.hpv-brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.hpv-brand-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hpv-nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hpv-lang a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hpv-lang a.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* =========================
   FOOTER
========================= */
.hpv-footer {
    padding: 2.5rem 0;
    color: #8a867c;
    font-size: 0.95rem;
}

/* =========================
   HERO
========================= */
.hpv-hero {
    padding: 2rem 0 2.25rem;
}

.hpv-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f6f1 100%);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--hpv-shadow);
    overflow: hidden;
}

.hpv-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--hpv-sand-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hpv-hero-title {
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--hpv-text-strong);
    margin-bottom: 1rem;
    max-width: 11ch;
}

.hpv-hero-subtitle {
    font-size: 1.1rem;
    color: var(--hpv-text);
    max-width: 58ch;
    margin-bottom: 1.5rem;
}

.hpv-hero-media {
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.hpv-hero-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================
   BUTTONS
========================= */
.hpv-btn-primary,
.hpv-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.hpv-btn-primary {
    background: var(--hpv-sand);
    color: #fff;
    border: 1px solid var(--hpv-sand);
}

.hpv-btn-primary:hover {
    background: var(--hpv-sand-dark);
    border-color: var(--hpv-sand-dark);
    color: #fff;
}

.hpv-btn-secondary {
    background: transparent;
    color: var(--hpv-text-strong);
    border: 1px solid rgba(79, 76, 68, 0.18);
}

.hpv-btn-secondary:hover {
    background: rgba(184, 176, 154, 0.12);
    color: var(--hpv-text-strong);
}

/* =========================
   SECTION HEADERS
========================= */
.hpv-section-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7b7972;
    margin: 0;
}

/* =========================
   DESTINATIONS CARDS
========================= */
.hpv-featured {
    padding: 1rem 0 3rem;
}

.hpv-destination-card {
    height: 100%;
    border: 0;
    border-radius: 1.75rem;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hpv-destination-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.09);
}

.hpv-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hpv-sand);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.hpv-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--hpv-text-strong);
    margin-bottom: 0.5rem;
}

.hpv-card-text {
    color: var(--hpv-text);
    margin-bottom: 0;
}

/* =========================
   DESTINATIONS PAGE
========================= */
.hpv-panel {
    background: #fff;
    border-radius: 1.75rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.hpv-search-input {
    min-height: 52px;
    border-radius: 999px 0 0 999px;
    border-color: rgba(0, 0, 0, 0.12);
}

.hpv-search-btn {
    min-height: 52px;
    border-radius: 0 999px 999px 0;
    background: var(--hpv-sand);
    border-color: var(--hpv-sand);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hpv-search-btn:hover {
    background: var(--hpv-sand-dark);
    border-color: var(--hpv-sand-dark);
    color: #fff;
}

.hpv-list-item {
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hpv-list-item:last-child {
    border-bottom: 0;
}

/* =========================
   VIEWER
========================= */
.viewer-page {
    position: relative;
    min-height: calc(100vh - var(--hpv-header-height));
    background: #111;
}

.viewer-shell {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--hpv-header-height));
    min-height: 560px;
    background: #000;
}

.viewer-canvas {
    width: 100%;
    height: 100%;
    background: #000;
}

.viewer-topbar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.viewer-topbar-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.viewer-location-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
    color: var(--hpv-text-strong);
}

.viewer-location-subtitle {
    font-size: 0.8rem;
    color: #8a867c;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.viewer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.viewer-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(184, 176, 154, 0.14);
    color: var(--hpv-text-strong);
    border: 1px solid rgba(184, 176, 154, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
}

.viewer-action-btn:hover {
    background: rgba(184, 176, 154, 0.24);
    color: var(--hpv-text-strong);
}

.viewer-debug {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    min-width: 180px;
    font-size: 14px;
    line-height: 1.4;
}

.viewer-debug-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px) {
    .hpv-brand-logo {
        height: 42px;
    }

    .hpv-brand-subtitle {
        display: none;
    }

    .hpv-hero-card {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --hpv-header-height: 78px;
    }

    .hpv-brand-title {
        font-size: 0.9rem;
    }

    .hpv-nav-link {
        display: none;
    }

    .hpv-hero {
        padding-top: 1rem;
    }

    .hpv-hero-title {
        max-width: none;
    }

    .viewer-shell {
        min-height: calc(100vh - var(--hpv-header-height));
    }

    .viewer-topbar {
        top: 12px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .viewer-actions {
        width: 100%;
    }

    .viewer-action-btn {
        flex: 1 1 auto;
    }
}


.hpv-hotspot {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.85);
    border: 3px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(140, 110, 70, 0.15);
    cursor: pointer;
    position: relative;
}

.hpv-hotspot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    border-top: 4px solid #fff;
    border-right: 4px solid #fff;
    transform: translate(-60%, -50%) rotate(45deg);
}

.hpv-hotspot-label {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.82);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}


.hpv-hero-media {
    position: relative;
    overflow: hidden;
    border-radius: 20px; /* opcional, pero encaja con tu diseño */
}

.hpv-hero-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Overlay principal */
.hpv-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;

    /* mezcla de oscuridad + tono cálido */
    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.18),
            rgba(0, 0, 0, 0.05)
        ),
        linear-gradient(
            0deg,
            rgba(120, 95, 60, 0.12),
            rgba(255, 255, 255, 0.02)
        );
}

.hpv-hero-media img {
    transition: transform 0.6s ease;
}

.hpv-hero-media:hover img {
    transform: scale(1.03);
}

/* =========================
   HOME QUICK SEARCH
========================= */

.hpv-quick-search {
    margin-top: 1.75rem;
    padding: 1rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.hpv-quick-search-label {
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hpv-sand-dark);
}

.hpv-quick-search-form {
    display: flex;
    gap: 0.65rem;
}

.hpv-quick-search-input {
    flex: 1;
    min-width: 0;
    min-height: 56px;
    padding: 0 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--hpv-text-strong);
    font-size: 1rem;
}

.hpv-quick-search-input:focus {
    outline: none;
    border-color: var(--hpv-sand);
    box-shadow: 0 0 0 4px rgba(184, 176, 154, 0.18);
}

.hpv-quick-search-btn {
    min-height: 56px;
    padding: 0 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--hpv-sand);
    background: var(--hpv-sand);
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hpv-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.hpv-quick-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: rgba(184, 176, 154, 0.14);
    color: var(--hpv-text-strong);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
}

.hpv-quick-chip:hover {
    background: rgba(184, 176, 154, 0.24);
    color: var(--hpv-text-strong);
}

@media (max-width: 767.98px) {
    .hpv-hero-card {
        border-radius: 1.4rem;
        padding: 1.15rem;
    }

    .hpv-hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 0.75rem;
    }

    .hpv-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hpv-quick-search {
        margin-top: 1rem;
        padding: 0.85rem;
    }

    .hpv-quick-search-form {
        flex-direction: column;
    }

    .hpv-quick-search-input,
    .hpv-quick-search-btn {
        width: 100%;
        min-height: 54px;
    }

    .hpv-quick-search-btn {
        justify-content: center;
    }

    .hpv-quick-actions {
        flex-direction: column;
    }

    .hpv-quick-chip {
        justify-content: center;
        width: 100%;
    }

    .hpv-hero-media {
        display: none;
    }
}

/* =========================
   VIEWER ROUTE PANEL
========================= */

.viewer-route-panel,
.viewer-arrived-panel {
    position: absolute;
    left: 24px;
    right: auto;
    bottom: 28px;
    z-index: 25;
    width: min(520px, calc(100% - 48px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.viewer-route-label {
    margin-bottom: 2px;
    color: #8a867c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.viewer-route-destination {
    color: var(--hpv-text-strong);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
}

.viewer-route-change {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    background: var(--hpv-sand);
    color: #fff;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.viewer-route-change:hover {
    background: var(--hpv-sand-dark);
    color: #fff;
}

.viewer-arrived-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--hpv-text-strong);
    font-size: 1.05rem;
    font-weight: 800;
}

.viewer-arrived-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #2f9e44;
    color: #fff;
    font-weight: 900;
}

@media (max-width: 767.98px) {
    .viewer-topbar {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .viewer-topbar-card {
        padding: 9px 11px;
        border-radius: 16px;
    }

    .viewer-topbar-card:nth-child(2) {
        display: none;
    }

    .viewer-location-subtitle {
        font-size: 0.68rem;
    }

    .viewer-location-title {
        font-size: 0.95rem;
    }

    .viewer-route-panel,
    .viewer-arrived-panel {
        left: 10px;
        right: 10px;
        bottom: 32px;
        padding: 12px;
        border-radius: 18px;
    }

    .viewer-route-destination {
        font-size: 1rem;
    }

    .viewer-route-change {
        min-height: 40px;
        padding: 0 0.85rem;
    }

    .viewer-turn-indicator {
        bottom: 96px;
    }
}

/* =========================
   DESTINATIONS MOBILE UX
========================= */

.hpv-destinations-search-panel {
    position: relative;
}

.hpv-destinations-help {
    margin: 0.85rem 0 1.25rem;
    max-width: 48rem;
    color: var(--hpv-text);
    font-size: 1.05rem;
}

.hpv-destinations-search-form {
    display: flex;
    gap: 0.75rem;
}

.hpv-destinations-search-input {
    min-height: 58px;
    border-radius: 999px;
    padding: 0 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 1.05rem;
}

.hpv-destinations-search-input:focus {
    border-color: var(--hpv-sand);
    box-shadow: 0 0 0 4px rgba(184, 176, 154, 0.18);
}

.hpv-destinations-search-btn {
    min-height: 58px;
    padding: 0 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--hpv-sand);
    background: var(--hpv-sand);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hpv-results-list {
    display: flex;
    flex-direction: column;
}

.hpv-result-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: var(--hpv-text-strong);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hpv-result-card:hover {
    background: rgba(184, 176, 154, 0.08);
    color: var(--hpv-text-strong);
}

.hpv-result-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hpv-sand);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
}

.hpv-result-main {
    min-width: 0;
}

.hpv-result-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hpv-result-description {
    margin-top: 0.2rem;
    color: #8a867c;
    font-size: 0.9rem;
    line-height: 1.25;
}

.hpv-result-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: rgba(184, 176, 154, 0.16);
    color: var(--hpv-text-strong);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .container.py-5 {
        padding-top: 1.25rem !important;
        padding-bottom: 2rem !important;
    }

    .hpv-destinations-search-panel {
        margin-bottom: 1.5rem !important;
        padding: 1.15rem !important;
        border-radius: 1.35rem;
    }

    .hpv-destinations-help {
        font-size: 0.98rem;
        margin-bottom: 1rem;
    }

    .hpv-destinations-search-form {
        flex-direction: column;
    }

    .hpv-destinations-search-input,
    .hpv-destinations-search-btn {
        width: 100%;
        min-height: 56px;
    }

    .hpv-destinations-search-btn {
        justify-content: center;
    }

    .hpv-result-card {
        grid-template-columns: 46px 1fr auto;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .hpv-result-icon {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
    }

    .hpv-result-action {
        min-height: 36px;
        padding: 0 0.75rem;
    }

    .hpv-section-title {
        letter-spacing: 0.08em;
    }
}

.hpv-origin-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(184, 176, 154, 0.16);
    color: var(--hpv-text-strong);
    font-size: 0.9rem;
}

.hpv-origin-pill strong {
    margin-left: 0.3rem;
}

.hpv-origin-selector {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.65rem;
    border-radius: 1rem;
    background: rgba(184, 176, 154, 0.12);
}

.hpv-origin-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hpv-sand-dark);
}

.hpv-origin-select {
    min-height: 42px;
    flex: 1;
    min-width: 220px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0 2.2rem 0 1rem;
    background-color: #fff;
    color: var(--hpv-text-strong);
    font-weight: 700;
}

.hpv-origin-select:focus {
    outline: none;
    border-color: var(--hpv-sand);
    box-shadow: 0 0 0 4px rgba(184, 176, 154, 0.18);
}

@media (max-width: 767.98px) {
    .hpv-origin-selector {
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }

    .hpv-origin-select {
        width: 100%;
        min-width: 0;
    }
}

.viewer-shell {
    height: 100%;
    min-height: 0;
}


.hpv-install-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: rgba(15, 61, 53, 0.96);
    color: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
}

.hpv-install-banner[hidden] {
    display: none !important;
}

.hpv-install-banner__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.95rem;
}

.hpv-install-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hpv-install-banner__button,
.hpv-install-banner__close {
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.hpv-install-banner__button {
    background: #f6efe4;
    color: #0f3d35;
}

.hpv-install-banner__close {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.pwa-standalone .hpv-install-banner {
    display: none !important;
}

@media (max-width: 575.98px) {
    .hpv-install-banner {
        align-items: flex-start;
        flex-direction: column;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .hpv-install-banner__actions {
        width: 100%;
        justify-content: flex-end;
    }
}


html,
body {
    min-height: 100%;
}

body.hpv-viewer-page {
    height: 100dvh;
    overflow: hidden;
}

body.hpv-viewer-page main {
    height: 100dvh;
    overflow: hidden;
}

.hpv-viewer-shell {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

.hpv-install-ios-help {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hpv-install-ios-help[hidden] {
    display: none !important;
}

.hpv-install-ios-help strong {
    display: block;
    margin-bottom: 0.45rem;
}

.hpv-install-ios-help ol {
    margin: 0;
    padding-left: 1.25rem;
}

.hpv-install-ios-help li {
    margin-bottom: 0.25rem;
}

.hpv-ios-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    height: 1.8rem;
    margin-left: 0.25rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
    letter-spacing: -0.08em;
}


/* Search results highlight */
.hpv-search-results-section {
    scroll-margin-top: calc(var(--hpv-header-height, 92px) + 24px);
}

.hpv-search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 28px;
    background: rgba(184, 176, 154, 0.18);
    border: 1px solid rgba(184, 176, 154, 0.35);
}

.hpv-search-results-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: .35rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9b9077;
}

.hpv-search-results-title {
    color: #5f5c55;
}

.hpv-search-results-count {
    flex: 0 0 auto;
    min-width: 44px;
    height: 44px;
    padding: 0 .9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #b8b09a;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.hpv-search-results-panel {
    border: 2px solid rgba(184, 176, 154, .55);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .12);
}

.hpv-search-results-panel .hpv-list-item {
    position: relative;
    padding: 1.15rem 1.35rem !important;
    background: #fff;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.hpv-search-results-panel .hpv-list-item:hover,
.hpv-search-results-panel .hpv-list-item:focus {
    background: rgba(184, 176, 154, .12);
    transform: translateY(-1px);
}

.hpv-search-result-action {
    flex: 0 0 auto;
    padding: .65rem 1rem;
    border-radius: 999px;
    background: #b8b09a;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .hpv-search-results-header {
        align-items: flex-start;
        padding: 1rem;
    }

    .hpv-search-results-title {
        font-size: 2rem;
        letter-spacing: .12em;
    }

    .hpv-search-result-action {
        display: none;
    }
}



/* =========================================================
   Preferencia de accesibilidad: evitar escaleras
   ========================================================= */

.hpv-route-preferences {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.hpv-accessibility-option {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.hpv-accessibility-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hpv-accessibility-surface {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;

    min-width: 390px;
    max-width: 100%;
    min-height: 76px;
    padding: 0.8rem 1rem;

    border: 1px solid rgba(184, 176, 154, 0.32);
    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(184, 176, 154, 0.12),
            rgba(184, 176, 154, 0.05)
        );

    color: #5f5c55;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.hpv-accessibility-option:hover .hpv-accessibility-surface {
    border-color: rgba(184, 176, 154, 0.55);
    background:
        linear-gradient(
            135deg,
            rgba(184, 176, 154, 0.17),
            rgba(184, 176, 154, 0.08)
        );
}

.hpv-accessibility-option:active .hpv-accessibility-surface {
    transform: translateY(1px);
}

.hpv-accessibility-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    border: 1px solid rgba(184, 176, 154, 0.32);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.8);
    color: #9b9077;

    font-size: 1.45rem;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.hpv-accessibility-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.12rem;
}

.hpv-accessibility-title {
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.25;
    color: #5f5c55;
}

.hpv-accessibility-description {
    font-size: 0.84rem;
    line-height: 1.35;
    color: #7f7b73;
}

.hpv-accessibility-switch {
    position: relative;
    display: inline-flex;
    align-items: center;

    width: 48px;
    height: 28px;
    padding: 3px;
    flex: 0 0 48px;

    border: 1px solid rgba(95, 92, 85, 0.16);
    border-radius: 999px;

    background: rgba(95, 92, 85, 0.18);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.hpv-accessibility-switch-knob {
    display: block;
    width: 20px;
    height: 20px;

    border-radius: 50%;
    background: #fff;

    box-shadow: 0 2px 6px rgba(50, 48, 43, 0.2);

    transform: translateX(0);

    transition: transform 0.2s ease;
}

/* Estado activado */

.hpv-accessibility-checkbox:checked + .hpv-accessibility-surface {
    border-color: rgba(155, 144, 119, 0.58);

    background:
        linear-gradient(
            135deg,
            rgba(184, 176, 154, 0.22),
            rgba(184, 176, 154, 0.1)
        );

    box-shadow: 0 10px 28px rgba(95, 92, 85, 0.08);
}

.hpv-accessibility-checkbox:checked
    + .hpv-accessibility-surface
    .hpv-accessibility-icon {
    border-color: rgba(155, 144, 119, 0.5);
    background: #9b9077;
    color: #fff;
}

.hpv-accessibility-checkbox:checked
    + .hpv-accessibility-surface
    .hpv-accessibility-switch {
    border-color: #9b9077;
    background: #9b9077;
}

.hpv-accessibility-checkbox:checked
    + .hpv-accessibility-surface
    .hpv-accessibility-switch-knob {
    transform: translateX(20px);
}

/* Navegación mediante teclado */

.hpv-accessibility-checkbox:focus-visible
    + .hpv-accessibility-surface {
    outline: 3px solid rgba(155, 144, 119, 0.3);
    outline-offset: 3px;
}

/* Responsive */

@media (max-width: 575.98px) {
    .hpv-route-preferences {
        margin-top: 0.85rem;
        margin-bottom: 1rem;
    }

    .hpv-accessibility-option {
        width: 100%;
    }

    .hpv-accessibility-surface {
        width: 100%;
        min-width: 0;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 0.75rem;
        min-height: 70px;
        padding: 0.75rem 0.85rem;
        border-radius: 19px;
    }

    .hpv-accessibility-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 14px;
        font-size: 1.25rem;
    }

    .hpv-accessibility-title {
        font-size: 0.95rem;
    }

    .hpv-accessibility-description {
        font-size: 0.78rem;
    }

    .hpv-accessibility-switch {
        width: 44px;
        height: 26px;
        flex-basis: 44px;
    }

    .hpv-accessibility-switch-knob {
        width: 18px;
        height: 18px;
    }

    .hpv-accessibility-checkbox:checked
        + .hpv-accessibility-surface
        .hpv-accessibility-switch-knob {
        transform: translateX(18px);
    }
}