﻿/* =========================================================
   RoadLiving - roadliving.css
   (Portal / Index + Layout responsive)
   ========================================================= */

:root {
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --soft: #f8fafc;
    --pad: 24px;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(17,24,39,.08);
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
    min-width: 0;
}

/* =========================
   HEADER (responsive)
   ========================= */
.header {
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    min-width: 0;
}

.logo-link {
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
}

/* Desktop nav */
.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
}

    .nav-link:hover {
        background: var(--soft);
    }

/* Dropdown */
.nav-dd {
    position: relative;
}

.nav-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

    .nav-dd-btn:hover {
        background: var(--soft);
    }

.nav-dd-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(17,24,39,.10);
    padding: 8px;
    display: none;
    z-index: 30;
}

.nav-dd-item {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

    .nav-dd-item:hover {
        background: var(--soft);
    }

.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
    display: block;
}

/* Hamburger button hidden on desktop */
.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

    .nav-toggle i {
        color: var(--text);
    }

/* Mobile menu behavior (slide-down suave) */
@media (max-width: 760px) {
    .header-row {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* nav becomes animated panel */
    .nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        /* Animación */
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
        transition: max-height .28s ease, opacity .22s ease, transform .22s ease;
        /* espaciado interno cuando abre */
        padding: 0;
    }

        .nav.is-open {
            max-height: 420px; /* suficiente para links + dropdown */
            opacity: 1;
            transform: translateY(0);
            padding: 10px 0 14px;
        }

    .nav-link, .nav-dd-btn {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dd-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 12px;
        width: 100%;
        margin-top: 6px;
    }

    .nav-dd:hover .nav-dd-menu,
    .nav-dd:focus-within .nav-dd-menu {
        display: block;
    }

    .nav-dd {
        width: 100%;
    }
}

/* Smaller padding on small phones */
@media (max-width: 520px) {
    :root {
        --pad: 16px;
    }
}

/* =========================
   PORTAL HERO
   ========================= */
.portal-hero {
    padding: 18px 0 10px;
}

/* Gallery wrapper: prevents “giant image” */
.hero-gallery {
    position: relative;
    background: #0b1220;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* The figure controls the height via aspect-ratio */
.main-photo {
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 560px;
}

    .main-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: rgba(17,24,39,.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

    .nav-arrow:hover {
        background: rgba(17,24,39,.72);
    }

    .nav-arrow.left {
        left: 14px;
    }

    .nav-arrow.right {
        right: 14px;
    }

/* thumbs */
.thumbs {
    display: flex;
    gap: 10px;
    padding: 12px 12px 14px;
    overflow-x: auto;
    background: rgba(255,255,255,.06);
    scrollbar-color: rgba(255,255,255,.35) transparent;
}

    .thumbs::-webkit-scrollbar {
        height: 10px;
    }

    .thumbs::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
        border-radius: 999px;
    }

    .thumbs::-webkit-scrollbar-track {
        background: transparent;
    }

.thumb {
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
    cursor: pointer;
}

    .thumb img {
        display: block;
        width: 86px;
        height: 54px;
        object-fit: cover;
    }

    .thumb.is-active {
        border-color: rgba(255,255,255,.85);
    }

/* Title */
.hero-title {
    padding: 16px 0 6px;
}

.brand-title {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.12;
    margin: 0;
    letter-spacing: -.02em;
}

@media (max-width: 520px) {
    .main-photo {
        aspect-ratio: 4 / 3;
        max-height: 420px;
    }

    .thumb img {
        width: 76px;
        height: 50px;
    }
}

/* =========================
   SEARCH CARD
   ========================= */
.search-card {
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    padding: 14px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    min-width: 0;
}

.field label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    margin: 0 0 6px;
}

.input-icon {
    position: relative;
    min-width: 0;
}

    .input-icon i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        pointer-events: none;
    }

    .input-icon input,
    .input-icon select {
        width: 100%;
        min-width: 0;
        padding: 11px 12px 11px 36px;
        border: 1px solid var(--border);
        border-radius: 12px;
        font-size: 14px;
        outline: none;
        background: #fff;
    }

        .input-icon input:focus,
        .input-icon select:focus {
            border-color: #cbd5e1;
            box-shadow: 0 0 0 4px rgba(59,130,246,.10);
        }

/* Buttons */
.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    min-width: 220px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid var(--border);
    cursor: pointer;
    background: #fff;
    color: var(--text);
    white-space: nowrap;
}

.btn-primary {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: #111827;
    border-color: var(--border);
}

@media (max-width: 860px) {
    .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actions {
        grid-column: 1 / -1;
        min-width: 0;
        justify-content: stretch;
    }

        .actions .btn {
            flex: 1;
        }
}

@media (max-width: 520px) {
    .search-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

        .actions .btn {
            width: 100%;
        }
}

/* =========================
   FOOTER
   ========================= */
.footer {
    margin-top: 18px;
    padding: 14px 0 18px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.footer-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.dot {
    color: #cbd5e1;
}

.footer-disclaimer {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
    text-align: center;
}

    .footer-disclaimer i {
        margin-top: 2px;
        color: #111827;
    }

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
}

.result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 150px;
}

.result-body {
    padding: 14px 0;
    min-width: 0;
}

.result-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.result-city {
    font-weight: 800;
}

.result-price {
    font-weight: 900;
}

.result-address {
    margin-top: 6px;
    color: var(--text);
    font-weight: 600;
}

.result-meta {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.result-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.result-cta {
    display: flex;
    align-items: center;
    padding: 14px;
}

@media (max-width: 860px) {
    .result-card {
        grid-template-columns: 180px 1fr;
    }

    .result-cta {
        grid-column: 1 / -1;
        padding-top: 0;
    }

        .result-cta .btn {
            width: 100%;
        }
}

@media (max-width: 520px) {
    .result-card {
        grid-template-columns: 1fr;
    }

    .result-img img {
        min-height: 190px;
    }

    .result-body {
        padding: 12px 14px 0;
    }
}






/* =========================
   SEARCH RESULTS LIST (Beta 0)
   ========================= */
.result-card {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 14px;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    overflow: hidden;
}

.result-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 160px;
}

.result-body {
    padding: 14px 0;
    min-width: 0;
}

.result-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.result-city {
    font-weight: 800;
    color: var(--text);
}

.result-price {
    font-weight: 900;
    color: var(--text);
}

.result-title {
    margin-top: 6px;
    font-weight: 900;
    font-size: 16px;
}

.result-addr {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.result-meta {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 700;
    font-size: 12.5px;
}

.result-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
}

.result-cta {
    display: flex;
    align-items: center;
    padding: 14px;
}

@media (max-width: 860px) {
    .result-card {
        grid-template-columns: 180px 1fr;
    }

    .result-cta {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .result-card {
        grid-template-columns: 1fr;
    }

    .result-img img {
        min-height: 200px;
    }

    .result-body {
        padding: 12px 14px 0;
    }

    .result-cta {
        justify-content: stretch;
    }

        .result-cta .btn {
            width: 100%;
        }
}






/* =========================
   SEARCH RESULTS
   ========================= */
.results-top {
    padding: 10px 0 8px;
}

.crumbs {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

    .crumbs a {
        color: #2563eb;
        text-decoration: none;
        font-weight: 700;
    }

        .crumbs a:hover {
            text-decoration: underline;
        }

.results-title {
    margin: 10px 0 0;
    font-size: 22px;
    letter-spacing: -.01em;
}

.results-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.r-card {
    display: grid;
    grid-template-columns: 260px 1fr 220px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    overflow: hidden;
}

.r-img {
    height: 180px;
    background: #0b1220;
}

    .r-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.r-body {
    padding: 12px 0;
    min-width: 0;
}

.r-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.r-city {
    font-weight: 800;
    color: #0f172a;
}

.r-price {
    font-weight: 900;
    font-size: 18px;
}

.r-title {
    margin-top: 6px;
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r-address {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.r-meta {
    margin-top: 10px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
}

    .r-meta i {
        color: #64748b;
    }

.r-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.r-cta {
    padding: 0 14px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 860px) {
    .r-card {
        grid-template-columns: 1fr;
    }

    .r-img {
        height: 220px;
    }

    .r-body {
        padding: 12px 14px;
    }

    .r-cta {
        padding: 0 14px 14px;
        justify-content: stretch;
    }

        .r-cta .btn {
            width: 100%;
        }
}

.empty-state {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}



/*==================================*/
/*==================================*/
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

    .card-actions .btn {
        min-width: 160px;
    }

.env-stamps {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: 16px;
}

    .env-stamps .stamp {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        line-height: 1;
        opacity: .95;
    }

        .env-stamps .stamp i {
            font-size: 16px;
        }

        .env-stamps .stamp span {
            margin-top: 4px;
            font-weight: 600;
            letter-spacing: .05em;
        }



.env-stamps {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: 16px;
}

    .env-stamps .stamp {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        line-height: 1;
        opacity: .95;
    }

        .env-stamps .stamp i {
            font-size: 16px;
        }

        .env-stamps .stamp span {
            margin-top: 4px;
            font-weight: 600;
            letter-spacing: .05em;
        }
