/* Fonts — Lomas Conectado brand (placas.lomasconectado.com) */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@600;700;800&family=Exo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* List pages: compact search under title (results + listings) */
.list-search-bar {
    background: #fff;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.list-search-bar .form-control {
    min-height: 42px;
}
.list-search-bar .input-group-text {
    border-color: #ccc;
}
.list-search-bar .border-left-0 {
    border-left: 0 !important;
}
.list-search-bar .border-right-0 {
    border-right: 0 !important;
}
.list-search-bar .btn-primary {
    min-height: 42px;
}

/* Directory list pages (results + listings) — shared card system */
.tpl-results,
.tpl-listings {
    background: #eef0f4;
}
.tpl-results #public-listings,
.tpl-listings #public-listings {
    background: transparent;
}
.tpl-results .results-page-title,
.tpl-listings .results-page-title {
    font-size: 1.4rem;
    margin: 0.35rem 0 0.2rem;
    font-weight: 800;
    color: #111 !important;
}
.tpl-results .results-page-meta,
.tpl-listings .results-page-meta {
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}
.tpl-results .results-chips,
.tpl-listings .results-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.tpl-results .results-chip,
.tpl-listings .results-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333 !important;
}
.tpl-results .results-chip i,
.tpl-listings .results-chip i {
    color: var(--accent-color);
}
.tpl-results .results-chip--clear,
.tpl-listings .results-chip--clear {
    background: #111;
    border-color: #111;
    color: #fff !important;
    text-decoration: none !important;
}
.tpl-results .results-chip--clear:hover,
.tpl-listings .results-chip--clear:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff !important;
}
.tpl-results .results-toolbar,
.tpl-listings .results-toolbar {
    gap: 0.5rem;
}
.tpl-results .results-empty,
.tpl-listings .results-empty {
    text-align: center;
    padding: 2.75rem 1.25rem;
    background: #fff;
    border: 1px dashed #d8d8d8;
    border-radius: 16px;
    margin: 0.5rem 0 2rem;
}
.tpl-results .results-empty-icon,
.tpl-listings .results-empty-icon {
    font-size: 2.4rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
.tpl-results .results-empty h2,
.tpl-listings .results-empty h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #111 !important;
}

/* Shared listing cards */
.tpl-results .item-list,
.tpl-listings .item-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-bottom: 5rem;
}
.tpl-results .res-card,
.tpl-listings .res-card {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.tpl-results .res-card:hover,
.tpl-listings .res-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}
.tpl-results .res-card.is-featured,
.tpl-listings .res-card.is-featured {
    border-color: rgba(201, 73, 10, 0.35);
    box-shadow: 0 4px 16px rgba(201, 73, 10, 0.12);
}
.tpl-results .res-card-media,
.tpl-listings .res-card-media {
    position: relative;
    display: block;
    /* Mobile-first: 4:3 is taller than 16:10 — better for phone photos without wasting scroll */
    aspect-ratio: 4 / 3;
    background: #ececec;
    overflow: hidden;
}
@media (min-width: 768px) {
    .tpl-results .res-card-media,
    .tpl-listings .res-card-media {
        aspect-ratio: 16 / 10;
    }
}
.tpl-results .res-card-media img,
.tpl-listings .res-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}
.tpl-results .res-card-cat,
.tpl-listings .res-card-cat {
    position: absolute;
    left: 0.65rem;
    bottom: 0.65rem;
    background: rgba(17,17,17,0.82);
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    max-width: calc(100% - 5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tpl-results .res-card-feat,
.tpl-listings .res-card-feat {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: var(--accent-color);
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
}
.tpl-results .res-card-body,
.tpl-listings .res-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.tpl-results .res-card-top,
.tpl-listings .res-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.tpl-results .res-card-title,
.tpl-listings .res-card-title {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 800;
    min-width: 0;
}
.tpl-results .res-card-title a,
.tpl-listings .res-card-title a {
    color: #111 !important;
    text-decoration: none !important;
}
.tpl-results .res-card-title a:hover,
.tpl-listings .res-card-title a:hover {
    color: var(--accent-color) !important;
}
.tpl-results .res-card-fav,
.tpl-listings .res-card-fav {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: var(--accent-color, #c9490a);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.tpl-results .res-card-fav:hover,
.tpl-listings .res-card-fav:hover {
    background: #ffe8e8;
}
.tpl-results .res-card-desc,
.tpl-listings .res-card-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555 !important;
}
.tpl-results .res-card-addr,
.tpl-listings .res-card-addr {
    margin: 0;
    font-size: 0.84rem;
    color: #444 !important;
    display: flex;
    gap: 0.3rem;
    align-items: flex-start;
    line-height: 1.35;
}
.tpl-results .res-card-addr i,
.tpl-listings .res-card-addr i {
    color: var(--accent-color);
    margin-top: 0.1rem;
}
.tpl-results .res-card-actions,
.tpl-listings .res-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}
.tpl-results .res-card-actions .btn,
.tpl-listings .res-card-actions .btn,
.res-card-actions .btn {
    border-radius: 999px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.82rem !important;
    padding: 0.4rem 0.85rem !important;
}

/* Grid cards (home / profile / favorites) — same design language */
.dir-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.dir-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.dir-card.is-featured {
    border-color: rgba(201, 73, 10, 0.35);
    box-shadow: 0 4px 16px rgba(201, 73, 10, 0.12);
}
.dir-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #ececec;
    overflow: hidden;
}
@media (min-width: 768px) {
    .dir-card-media {
        aspect-ratio: 16 / 10;
    }
}
.dir-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}
.dir-card-cat {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    background: rgba(17,17,17,0.82);
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    max-width: calc(100% - 4.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dir-card-feat {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    background: var(--accent-color, #c9490a);
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}
.dir-card-body {
    padding: 0.85rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
}
.dir-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.dir-card-title {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 800;
    min-width: 0;
    font-family: var(--font-title) !important;
}
.dir-card-title a {
    color: #111 !important;
    text-decoration: none !important;
}
.dir-card-title a:hover {
    color: var(--accent-color, #c9490a) !important;
}
.dir-card-fav {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: var(--accent-color, #c9490a);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.dir-card-fav:hover {
    background: #ffe8e8;
}
.dir-card-loc {
    margin: 0;
    font-size: 0.82rem;
    color: #555 !important;
    display: flex;
    gap: 0.25rem;
    align-items: flex-start;
    line-height: 1.35;
}
.dir-card-loc i {
    color: var(--accent-color, #c9490a);
    margin-top: 0.1rem;
}
.dir-card-cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-color, #c9490a);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-title);
    text-transform: none !important;
    letter-spacing: 0;
}
.dir-card-cta:hover {
    background: var(--accent-hover, #a83d08);
    color: #fff !important;
}
/* Featured carousel slides */
#featured-listings .dir-card {
    margin-bottom: 0.5rem;
}
.tpl-home h2 {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}
.tpl-results .results-filter-fab,
.tpl-listings .results-filter-fab {
    position: fixed;
    bottom: calc(var(--nav-height, 60px) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    border-radius: 999px;
    padding: 0.7rem 1.35rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    display: none;
    font-weight: 700;
}
@media (max-width: 991.98px) {
    .tpl-results .results-filter-fab,
    .tpl-listings .results-filter-fab {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }
    /* Map wastes space on phone — list first */
    .tpl-results #map-col,
    .tpl-listings #map-col {
        display: none !important;
    }
    .tpl-results #content > .col-lg-7,
    .tpl-listings #content > .col-lg-7 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}
@media (min-width: 576px) {
    .tpl-results .res-card,
    .tpl-listings .res-card {
        grid-template-columns: 168px 1fr;
        min-height: 148px;
    }
    .tpl-results .res-card-media,
    .tpl-listings .res-card-media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 148px;
    }
}
@media (min-width: 992px) {
    .tpl-results .res-card,
    .tpl-listings .res-card {
        grid-template-columns: 200px 1fr;
    }
    .tpl-results .res-card-media,
    .tpl-listings .res-card-media {
        min-height: 168px;
    }
}

/* Variables — marca Lomas Conectado (style-feed / placas) */
:root {
    /* Brand Colors Lomas Conectado */
    --lc-orange: #c9490a;      /* Premium warm orange */
    --lc-orange-dark: #a83d08;
    --lc-blue: #1976d2;        /* Deep brand blue */
    --lc-celeste: #38bdf8;     /* Sky / celeste */
    --lc-blue-mid: #0092c8;    /* Logo typing / mid blue */
    --lc-yellow: #C6BA7A;
    --lc-dark: #37474F;
    --lc-slate: #1e293b;

    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #475569;
    --accent-color: #c9490a;   /* CTAs / highlights */
    --accent-hover: #a83d08;
    --brand-primary: #1976d2;  /* Primary brand blue */
    --header-bg: #1e293b;
    --border-color: #e2e8f0;
    --nav-height: 60px;

    --font-title: 'Exo 2', sans-serif;
    --font-ui: 'Inter', sans-serif;
    --font-display: 'Dosis', 'Exo 2', sans-serif;
}

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-ui) !important;
    padding-bottom: var(--nav-height) !important;
}

/* Títulos Exo 2 (marca LC) */
h1, h2, h3, h4, h5, h6, .card-title, .navbar-brand {
    font-family: var(--font-title) !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

/* Sobrescribir fondos de contenedores */
.bg-light, .bg-white, .card, .panel {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Header Solido Oscuro (sin Glassmorphism) */
#header {
    background-color: var(--header-bg) !important;
    border-bottom: 3px solid var(--accent-color) !important; /* Linea roja debajo del header tipica de portales */
    position: sticky;
    top: 0;
    z-index: 1000;
}
#header a, #header .nav-link {
    color: #ffffff !important;
    font-family: var(--font-title) !important;
}

a {
    color: #0078BF; /* Azul de enlaces como en Lomas Conectado */
    text-decoration: none !important;
}
a:hover {
    color: var(--accent-color);
}
/* Texto secundario — NO aplicar a span/small globales (rompía botones y nav) */
p, .text-muted {
    color: var(--text-secondary) !important;
}

/* Tarjetas genéricas — alineadas al sistema dir-card / res-card */
.card, .listing-card {
    border-radius: 16px !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    overflow: hidden;
}
.card:hover, .listing-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* Imagenes */
img {
    border-radius: 2px;
}
.card-img-top {
    border-radius: 4px 4px 0 0 !important;
}

/* Inputs y Formularios */
input, select, textarea, .form-control {
    background-color: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: var(--text-primary) !important;
    border-radius: 4px !important;
    font-family: var(--font-ui) !important;
}
input:focus, select:focus, textarea:focus {
    background-color: #ffffff !important;
    border: 1px solid var(--brand-primary, #1976d2) !important;
    box-shadow: none !important;
}

/* Botones principales — regla completa (no dejar sin cerrar) */
.btn-primary,
.btn-success,
.btn-info,
a.btn-primary,
button.btn-primary,
input.btn-primary {
    background: var(--accent-color) !important;
    background-color: var(--accent-color) !important;
    border: none !important;
    border-color: var(--accent-color) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-family: var(--font-title) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background 0.2s ease, background-color 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 8px 16px;
    text-decoration: none !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
a.btn-primary:hover,
button.btn-primary:hover {
    background: var(--accent-hover) !important;
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(201, 73, 10, 0.25) !important;
}
.btn-primary *,
.btn-success *,
.btn-info * {
    color: #ffffff !important;
}
.btn-primary.disabled,
.btn-primary:disabled {
    background: var(--accent-color) !important;
    opacity: 0.65;
    color: #ffffff !important;
}

/* Outline primary (selección de plan, etc.) */
.btn-outline-primary {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    background: transparent !important;
    font-family: var(--font-title) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:not(:disabled):not(.disabled):active {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

/* Mobile Bottom Navigation Bar - Estilo solido */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Scope bottom-nav items only (don't break Bootstrap navbar .nav-item) */
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777777 !important;
    text-decoration: none !important;
    font-size: 11px;
    font-family: var(--font-title);
    font-weight: 600;
    flex: 1 1 0;
    padding: 0.25rem 0.15rem;
    min-width: 0;
}
.mobile-bottom-nav .nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
    color: inherit;
}
.mobile-bottom-nav .nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--accent-color) !important;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* IMPORTANT: do NOT hide .navbar-toggler / .navbar-collapse
       (that was killing "Explorar" and the whole top menu on mobile) */
    #header-nav .navbar-toggler {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.12);
        padding: 0.35rem 0.55rem;
        border-radius: 8px;
        line-height: 1;
    }
    #header-nav .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(201, 73, 10, 0.25);
    }

    /* Mobile expanded menu panel */
    #header-nav .navbar-collapse {
        background: #fff;
        border-top: 1px solid var(--border-color);
        margin: 0.5rem -15px 0;
        padding: 0.5rem 1rem 1rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    #header-nav .navbar-collapse .navbar-nav {
        width: 100%;
        align-items: stretch !important;
    }
    #header-nav .navbar-collapse .nav-item {
        margin: 0 0 0.35rem 0 !important;
        width: 100%;
    }
    #header-nav .navbar-collapse .nav-item .btn,
    #header-nav .navbar-collapse .nav-item > a {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
        background: #f7f7f7;
        color: #111 !important;
    }
    #header-nav .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100%;
        margin: 0.25rem 0 0.5rem;
        border: 1px solid #eee;
        box-shadow: none;
        transform: none !important;
    }
    #header-nav .navbar-collapse .dropdown-item {
        padding: 0.6rem 0.9rem;
    }

    .categories-wrapper {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; 
    }
    .categories-wrapper::-webkit-scrollbar {
        display: none; 
    }
    .category-card {
        flex: 0 0 70%;
        scroll-snap-align: center;
        margin-right: 15px;
    }
}
/* Category Pills */
.category-pills .category-pill {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border-color: #e0e0e0;
    color: #333;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-pills .category-pill:hover {
    background-color: var(--accent-color, #c9490a);
    color: #fff;
    border-color: var(--accent-color, #c9490a);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(201,73,10,0.3);
}

.category-pills .category-pill span {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* =========================================================
   Categories page — hero + color hierarchy + chips
   ========================================================= */
.tpl-categories {
    background: #f0f2f5;
}

.tpl-categories .cats-page {
    padding: 0 0 3rem;
    min-height: 60vh;
}

/* Full-bleed hero with gradient */
.tpl-categories .cats-hero {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 2rem 0 2.25rem;
    background:
        linear-gradient(135deg, #1e293b 0%, #0f4c81 45%, #1976d2 100%);
    color: #fff;
    overflow: hidden;
}
.tpl-categories .cats-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(255,255,255,0.12), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(0,0,0,0.25), transparent 50%);
    pointer-events: none;
}
.tpl-categories .cats-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tpl-categories .cats-kicker {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff !important;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    font-family: var(--font-title) !important;
}

.tpl-categories .cats-title {
    margin: 0 0 0.55rem;
    font-size: 1.85rem;
    line-height: 1.15;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tpl-categories .cats-subtitle {
    margin: 0 auto 1.25rem;
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.88) !important;
    max-width: 32rem;
}

.tpl-categories .cats-option-link {
    margin-bottom: 0.75rem !important;
}
.tpl-categories .cats-option-link a,
.tpl-categories .cats-option-link small {
    color: rgba(255,255,255,0.85) !important;
}

/* Search — hero focal point */
.tpl-categories .cats-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow:
        0 0 0 3px rgba(201, 73, 10, 0.35),
        0 10px 28px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.tpl-categories .cats-search-wrap:focus-within {
    box-shadow:
        0 0 0 4px rgba(201, 73, 10, 0.55),
        0 12px 32px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.tpl-categories .cats-search-icon {
    position: absolute;
    left: 1.05rem;
    color: var(--accent-color);
    font-size: 1.25rem;
    pointer-events: none;
    line-height: 1;
}

.tpl-categories .cats-search {
    width: 100%;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 1rem 2.9rem 1rem 2.85rem !important;
    font-size: 1.05rem !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111 !important;
}
.tpl-categories .cats-search::placeholder {
    color: #999 !important;
}
.tpl-categories .cats-search:focus {
    outline: none;
    box-shadow: none !important;
}

.tpl-categories .cats-search-clear {
    position: absolute;
    right: 0.55rem;
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.tpl-categories .cats-search-meta {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85) !important;
}

.tpl-categories .cats-body {
    padding-top: 0.25rem;
}

.tpl-categories .cats-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Cards tinted by category color */
.tpl-categories .cats-item {
    --cat-color: var(--accent-color, #c9490a);
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--cat-color) 12%, #fff) 0%,
            #fff 55%);
    border: 1px solid color-mix(in srgb, var(--cat-color) 22%, #e5e5e5);
    border-left: 4px solid var(--cat-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
@supports not (background: color-mix(in srgb, red 12%, white)) {
    .tpl-categories .cats-item {
        background: #fff;
        border-color: #e5e5e5;
    }
}

.tpl-categories .cats-item:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.tpl-categories .cats-item.is-open {
    border-color: var(--cat-color);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--cat-color) 22%, transparent);
}

/* Hierarchy by subcategory count */
.tpl-categories .cats-item--xl .cats-item-toggle {
    padding: 1.15rem 1.1rem;
}
.tpl-categories .cats-item--xl .cats-item-name {
    font-size: 1.15rem;
}
.tpl-categories .cats-item--xl .cats-item-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 1.55rem;
}
.tpl-categories .cats-item--lg .cats-item-toggle {
    padding: 1rem 1.05rem;
}
.tpl-categories .cats-item--lg .cats-item-name {
    font-size: 1.08rem;
}
.tpl-categories .cats-item--sm .cats-item-toggle {
    padding: 0.7rem 0.9rem;
}
.tpl-categories .cats-item--sm .cats-item-name {
    font-size: 0.95rem;
}
.tpl-categories .cats-item--sm .cats-item-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 1.15rem;
}

.tpl-categories .cats-item-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tpl-categories .cats-item-toggle:active {
    background: rgba(0,0,0,0.02);
}

.tpl-categories .cats-item-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color) 18%, #fff);
    color: var(--cat-color);
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat-color) 25%, transparent);
}
@supports not (background: color-mix(in srgb, red 18%, white)) {
    .tpl-categories .cats-item-icon {
        background: #f5f5f5;
        color: var(--cat-color);
    }
}

.tpl-categories .cats-item-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tpl-categories .cats-item-name {
    font-family: var(--font-title) !important;
    font-weight: 700 !important;
    font-size: 1.04rem;
    color: var(--text-primary) !important;
    line-height: 1.25;
}

.tpl-categories .cats-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    line-height: 1.2;
}

.tpl-categories .cats-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--cat-color) 14%, #fff);
    color: color-mix(in srgb, var(--cat-color) 75%, #222) !important;
    border: 1px solid color-mix(in srgb, var(--cat-color) 22%, transparent);
}
.tpl-categories .cats-badge--muted {
    background: #f0f0f0;
    color: #777 !important;
    border-color: #e5e5e5;
}
.tpl-categories .cats-badge--count {
    background: #111;
    color: #fff !important;
    border-color: #111;
}

.tpl-categories .cats-item-chevron {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.04);
    color: #666;
    font-size: 1.1rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tpl-categories .cats-item-toggle.is-open .cats-item-chevron {
    transform: rotate(180deg);
    background: var(--cat-color);
    color: #fff;
}

.tpl-categories .cats-item-panel {
    border-top: 1px solid color-mix(in srgb, var(--cat-color) 18%, #e5e5e5);
    background: color-mix(in srgb, var(--cat-color) 5%, #fafafa);
}

.tpl-categories .cats-item-panel-inner {
    padding: 1rem 1rem 1.15rem;
}

.tpl-categories .cats-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.95rem;
    padding: 0.58rem 1rem;
    border-radius: 999px;
    background: var(--cat-color);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-title) !important;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--cat-color) 35%, transparent);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.tpl-categories .cats-view-all:hover {
    color: #fff !important;
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.tpl-categories .cats-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tpl-categories .cats-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.52rem 0.85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cat-color) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--cat-color) 28%, #e0e0e0);
    color: #1a1a1a !important;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.25;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.tpl-categories .cats-chip:hover,
.tpl-categories .cats-chip.is-match {
    background: var(--cat-color);
    border-color: var(--cat-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--cat-color) 40%, transparent);
}
.tpl-categories .cats-chip:hover .cats-chip-count,
.tpl-categories .cats-chip.is-match .cats-chip-count {
    background: rgba(255,255,255,0.25);
    color: #fff !important;
}

.tpl-categories .cats-chip-nested {
    font-size: 0.8rem;
    opacity: 0.92;
    border-style: dashed;
}

.tpl-categories .cats-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cat-color) 16%, #eee);
    color: #444 !important;
    font-size: 0.72rem;
    font-weight: 700;
}

.tpl-categories .cats-empty-childs {
    font-size: 0.9rem;
    color: #666 !important;
}

.tpl-categories .cats-empty-results {
    margin: 1.75rem 0 0;
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #ddd;
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .tpl-categories .cats-page {
        padding: 0 0 4rem;
    }

    .tpl-categories .cats-hero {
        padding: 2.75rem 0 3rem;
        margin-bottom: 2rem;
    }

    .tpl-categories .cats-title {
        font-size: 2.35rem;
    }

    .tpl-categories .cats-subtitle {
        font-size: 1.05rem;
    }

    .tpl-categories .cats-search {
        padding: 1.1rem 3rem 1.1rem 3rem !important;
        font-size: 1.08rem !important;
    }

    .tpl-categories .cats-accordion {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        align-items: start;
    }

    .tpl-categories .cats-item.is-open {
        grid-column: 1 / -1;
    }

    .tpl-categories .cats-item-toggle {
        padding: 1.05rem 1.15rem;
    }

    .tpl-categories .cats-item-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        font-size: 1.5rem;
    }
}

@media (min-width: 1100px) {
    .tpl-categories .cats-accordion {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   Listing detail (ficha) — coherent with list cards
   ========================================================= */
.tpl-listing {
    background: #eef0f4;
}
.tpl-listing .listing-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f4c81 55%, #1976d2 100%);
    padding: 1rem 0 1.75rem;
    margin-bottom: 0;
    color: #fff;
}
.tpl-listing .listing-breadcrumbs {
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}
.tpl-listing .listing-breadcrumbs a {
    color: rgba(255,255,255,0.82) !important;
}
.tpl-listing .listing-breadcrumbs a:hover {
    color: #fff !important;
}
.tpl-listing .listing-breadcrumbs .bc-sep {
    margin: 0 0.3rem;
    color: rgba(255,255,255,0.4);
}

/* LC_VITRINA_BREADCRUMB_CONTRAST */
.tpl-listing .listing-breadcrumbs,
.tpl-listing .listing-breadcrumbs span {
    color: rgba(255, 255, 255, 0.9) !important;
}
.tpl-listing .listing-breadcrumbs a {
    color: rgba(255, 255, 255, 0.9) !important;
}
.tpl-listing .listing-breadcrumbs a:hover {
    color: #ffffff !important;
}
.tpl-listing .listing-breadcrumbs .bc-sep {
    color: rgba(255, 255, 255, 0.45) !important;
}
/* chips as span (vitrina) stay readable on white card */
.tpl-listing .listing-chip {
    color: #1a1a1a !important;
    background: #f3f3f3;
    border: 1px solid #e5e5e5;
}

.tpl-listing .listing-hero-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    color: #111;
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .tpl-listing .listing-hero-card {
        grid-template-columns: 1fr auto;
        align-items: start;
        padding: 1.35rem 1.5rem;
    }
}
.tpl-listing .listing-hero-main {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
}
/* Logo style aligned with comercios.lomasconectado.com
   white frame + soft shadow + 100px rounded square */
.tpl-listing .listing-hero-logo {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    padding: 4px;
    border-radius: 28px;
    background: #fff;
    border: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    margin-right: 0.15rem;
}
.tpl-listing .listing-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px !important;
    display: block;
    background: #fff;
}
@media (max-width: 575.98px) {
    .tpl-listing .listing-hero-logo {
        width: 84px;
        height: 84px;
        border-radius: 22px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    }
    .tpl-listing .listing-hero-logo img {
        border-radius: 18px !important;
    }
}
@media (min-width: 768px) {
    .tpl-listing .listing-hero-logo {
        width: 100px;
        height: 100px;
        border-radius: 28px;
    }
    .tpl-listing .listing-hero-logo img {
        border-radius: 24px !important;
    }
}
.tpl-listing .listing-hero-info {
    min-width: 0;
    flex: 1 1 auto;
}
.tpl-listing .listing-feat-pill {
    display: inline-block;
    background: var(--accent-color, #c9490a);
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}
.tpl-listing .listing-title {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111 !important;
}
@media (min-width: 768px) {
    .tpl-listing .listing-title {
        font-size: 1.75rem;
    }
}
.tpl-listing .listing-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.45rem 0 0.5rem;
}
.tpl-listing .listing-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #f3f3f3;
    border: 1px solid #e5e5e5;
    color: #222 !important;
    font-size: 0.78rem;
    font-weight: 600;
}
.tpl-listing .listing-chip:hover {
    background: #111;
    border-color: #111;
    color: #fff !important;
}
.tpl-listing .listing-addr {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #555 !important;
    display: flex;
    gap: 0.3rem;
    align-items: flex-start;
    line-height: 1.4;
}
.tpl-listing .listing-addr i {
    color: var(--accent-color, #c9490a);
    margin-top: 0.12rem;
}
.tpl-listing .listing-claim {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
}
.tpl-listing .listing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

/* LC_HERO_DESKTOP_LAYOUT */
/* Desktop: title full-width; actions as a toolbar under it (not a side column).
   Side-by-side broke once we added Cómo llegar / Waze / Guardar contacto. */
@media (min-width: 768px) {
    .tpl-listing .listing-hero-card {
        grid-template-columns: 1fr !important;
        align-items: stretch;
    }
    .tpl-listing .listing-hero-main {
        align-items: flex-start;
        width: 100%;
    }
    .tpl-listing .listing-hero-info {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
    .tpl-listing .listing-title {
        font-size: 1.85rem;
        line-height: 1.25;
        font-weight: 800;
        letter-spacing: -0.01em;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: manual;
        max-width: 100%;
    }
    .tpl-listing .listing-hero-actions {
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 0.85rem;
        margin-top: 0.15rem;
        border-top: 1px solid #ececec;
    }
    .tpl-listing .listing-hero-actions .listing-phone-label {
        margin-left: 0;
        margin-right: 0.25rem;
    }
    .tpl-listing .listing-social {
        width: auto;
        margin-top: 0;
        margin-left: 0.15rem;
    }
}

.tpl-listing .listing-action-btn {
    border-radius: 999px !important;
    text-transform: none !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.95rem !important;
    min-height: 42px;
}
.tpl-listing .listing-wa-btn,
.tpl-listing .btn-success.listing-side-btn {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}
.tpl-listing .listing-wa-btn:hover,
.tpl-listing .btn-success.listing-side-btn:hover {
    background: #1ebe57 !important;
    border-color: #1ebe57 !important;
    color: #fff !important;
}
.tpl-listing .listing-phone-label {
    font-size: 0.82rem;
    color: #666 !important;
    margin-left: 0.15rem;
}
.tpl-listing .listing-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    align-items: center;
    width: 100%;
    margin-top: 0.15rem;
}
.tpl-listing .listing-social a {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4f4f4;
    color: #333 !important;
    font-size: 1.15rem;
}
.tpl-listing .listing-social a:hover {
    background: #111;
    color: #fff !important;
}
.tpl-listing .listing-panel {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.tpl-listing .listing-section-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 800;
    color: #111 !important;
    letter-spacing: -0.01em;
}
/* Short blurb: callout style — different from long description panel */
.tpl-listing .listing-short-desc {
    background: linear-gradient(135deg, #fff8f6 0%, #fff 55%);
    border: 1px solid rgba(201, 73, 10, 0.18);
    border-left: 4px solid var(--accent-color, #c9490a);
    border-radius: 14px;
    padding: 0.95rem 1.1rem 1.05rem;
    box-shadow: none;
}
.tpl-listing .listing-short-desc-label {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-color, #c9490a) !important;
    font-family: var(--font-title) !important;
}
.tpl-listing .listing-short-desc-body {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #222 !important;
    font-weight: 500;
}
.tpl-listing .listing-short-desc-body p:last-child {
    margin-bottom: 0;
}
/* Long description stays as neutral white card */
.tpl-listing .listing-long-desc {
    background: #fff;
    border: 1px solid #e6e6e6;
}
.tpl-listing .listing-long-desc .description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444 !important;
}
.tpl-listing .listing-side-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 1rem 1.05rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.tpl-listing .listing-side-btn {
    border-radius: 999px !important;
    text-transform: none !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    margin-bottom: 0.45rem;
}
/* Gallery: fixed frame so H/V photos don't jump (mobile-first swipe) */
.tpl-listing #gallery {
    overflow: hidden;
}
.tpl-listing #primary-slider {
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}
.tpl-listing #primary-slider .splide__track,
.tpl-listing #primary-slider .splide__list {
    height: 100%;
}
.tpl-listing #primary-slider .splide__slide {
    height: auto;
}
.tpl-listing #primary-slider .splide__slide > div {
    position: relative;
    width: 100%;
    /* Phone: nearly square / slightly tall — good for facade + vertical phone shots */
    aspect-ratio: 4 / 3;
    background: #1a1a1a;
    overflow: hidden;
}
@media (min-width: 768px) {
    .tpl-listing #primary-slider .splide__slide > div {
        aspect-ratio: 16 / 10;
    }
}
.tpl-listing #primary-slider img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    display: block;
}
/* Thumbs strip: same crop language */
.tpl-listing #secondary-slider .splide__slide {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    background: #ececec;
}
.tpl-listing #secondary-slider .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    display: block;
}
.tpl-listing #place-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    min-height: 220px;
}
.tpl-listing #place-map-canvas {
    min-height: 220px;
    border-radius: 12px;
}

/* Sticky mobile contact bar (above bottom nav) */
.tpl-listing .listing-sticky-bar {
    display: none;
}
@media (max-width: 767.98px) {
    .tpl-listing .listing-sticky-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--nav-height, 60px) + env(safe-area-inset-bottom, 0px));
        z-index: 1040;
        gap: 0.45rem;
        padding: 0.55rem 0.75rem;
        background: rgba(255,255,255,0.96);
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
        backdrop-filter: blur(8px);
    }
    .tpl-listing .listing-sticky-btn {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        min-height: 46px;
        border-radius: 999px;
        font-weight: 700;
        font-family: var(--font-title);
        font-size: 0.9rem;
        color: #fff !important;
        text-decoration: none !important;
    }
    .tpl-listing .listing-sticky-call {
        background: var(--accent-color, #c9490a);
    }
    .tpl-listing .listing-sticky-wa {
        background: #25d366;
    }

/* LC_DIRECTIONS_VCARD_CSS */
.tpl-listing .listing-dir-btn {
    border-color: #1976d2 !important;
    color: #1565c0 !important;
}
.tpl-listing .listing-dir-btn:hover {
    background: #1976d2 !important;
    border-color: #1976d2 !important;
    color: #fff !important;
}
.tpl-listing .listing-side-dir {
    border-color: #1976d2 !important;
    color: #1565c0 !important;
}
.tpl-listing .listing-side-dir:hover {
    background: #1976d2 !important;
    border-color: #1976d2 !important;
    color: #fff !important;
}
@media (max-width: 767.98px) {
    .tpl-listing .listing-sticky-dir {
        background: #1976d2;
    }
    .tpl-listing .listing-sticky-bar {
        flex-wrap: nowrap;
    }
    .tpl-listing .listing-sticky-btn {
        font-size: 0.78rem;
        padding: 0.35rem 0.4rem;
        min-height: 44px;
    }
    .tpl-listing .listing-sticky-btn i {
        font-size: 1rem;
    }
}

    .tpl-listing {
        padding-bottom: calc(var(--nav-height, 60px) + 70px) !important;
    }
}

/* =========================================================
   Filter sidebar (results + listings)
   ========================================================= */
.tpl-results .sidebar,
.tpl-listings .sidebar {
    background: #fff !important;
    box-shadow: 8px 0 28px rgba(0,0,0,0.14);
    max-width: 320px;
}
.tpl-results .sidebar .closebtn,
.tpl-listings .sidebar .closebtn {
    color: #111;
    font-size: 1.75rem;
    top: 10px;
    right: 14px;
    text-decoration: none !important;
    line-height: 1;
}
.tpl-results #sidebar-filter,
.tpl-listings #sidebar-filter {
    padding: 0.5rem 1rem 2rem !important;
}
.tpl-results #sidebar-filter h6,
.tpl-listings #sidebar-filter h6,
.tpl-results .sidebar p strong,
.tpl-listings .sidebar p strong {
    font-family: var(--font-title);
    font-size: 0.92rem;
}
.tpl-results #sidebar-filter .btn-primary,
.tpl-listings #sidebar-filter .btn-primary {
    border-radius: 999px !important;
    text-transform: none !important;
    font-weight: 700 !important;
    min-height: 46px;
}

/* =========================================================
   Home hero search polish
   ========================================================= */
.tpl-home .jumbotron {
    border-radius: 0;
    min-height: 340px;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}
.tpl-home .jumbotron::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.tpl-home .jumbotron > .container {
    position: relative;
    z-index: 1;
}
.tpl-home .home-search-form {
    max-width: 820px;
    margin: 0 auto;
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}
.tpl-home .home-search-form .form-control,
.tpl-home .home-search-form .btn {
    min-height: 48px;
    border-radius: 12px !important;
}
.tpl-home .home-search-form .btn-primary {
    text-transform: none !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    border-radius: 12px !important;
}
.tpl-home .home-search-form .input-group-text {
    border-radius: 12px 0 0 12px !important;
    border-right: 0 !important;
}
.tpl-home .home-search-form .input-group .form-control {
    border-left: 0 !important;
    border-radius: 0 12px 12px 0 !important;
}
.tpl-home h2 {
    position: relative;
    padding-bottom: 0.45rem;
}
.tpl-home h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: var(--accent-color, #c9490a);
    margin: 0.55rem auto 0;
    border-radius: 2px;
}

/* =========================================================
   Home promotions
   ========================================================= */
.tpl-home .home-promos-sub {
    font-size: 0.95rem;
    margin-top: 0.25rem;
    text-align: center;
}
.tpl-home .home-promo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 1rem 1.05rem 1.1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: #111 !important;
    text-decoration: none !important;
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.15s ease;
    position: relative;
    overflow: hidden;
}
.tpl-home .home-promo-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color, #c9490a);
}
.tpl-home .home-promo-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: rgba(201, 73, 10, 0.28);
}
.tpl-home .home-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    align-self: flex-start;
    background: rgba(201, 73, 10, 0.1);
    color: var(--accent-color, #c9490a) !important;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
    font-family: var(--font-title);
}
.tpl-home .home-promo-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 800;
    color: #111 !important;
}
.tpl-home .home-promo-place {
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
    color: #555 !important;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.tpl-home .home-promo-place i {
    color: var(--accent-color, #c9490a);
}
.tpl-home .home-promo-desc {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #666 !important;
    flex: 1 1 auto;
}
.tpl-home .home-promo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}
.tpl-home .home-promo-exp {
    font-size: 0.78rem;
    color: #777 !important;
}
.tpl-home .home-promo-cta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color, #c9490a) !important;
    font-family: var(--font-title);
}
.tpl-home .home-promos-all {
    border-radius: 999px !important;
    text-transform: none !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    padding: 0.45rem 1.1rem !important;
}

/* =========================================================
   Promotions listing + detail (tpl-coupons / tpl-coupon)
   ========================================================= */
.tpl-coupons,
.tpl-coupon {
    background: #eef0f4 !important;
}

.promos-page {
    min-height: 60vh;
    padding-bottom: 3rem;
}

.promos-hero {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 2.1rem 1rem 2.35rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f4c81 48%, #1976d2 100%);
    color: #fff;
    overflow: hidden;
}
.promos-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.promos-kicker {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.28rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff !important;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
}
.promos-title {
    margin: 0 0 0.5rem;
    font-size: 1.9rem;
    line-height: 1.15;
    color: #fff !important;
    font-weight: 800;
    font-family: var(--font-title);
}
.promos-subtitle {
    margin: 0 auto 0.85rem;
    max-width: 32rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.9) !important;
}
.promos-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.22);
    color: #fff !important;
    font-size: 0.86rem;
    font-weight: 600;
}
.promos-body {
    padding-bottom: 1rem;
}
.promos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 576px) {
    .promos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .promos-title {
        font-size: 2.2rem;
    }
}
@media (min-width: 992px) {
    .promos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
    }
}
@media (min-width: 1200px) {
    .promos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.promo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.15s ease;
}
.promo-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: rgba(201, 73, 10, 0.28);
}
.promo-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
    overflow: hidden;
}
.promo-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.promo-card-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(201, 73, 10, 0.95);
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-family: var(--font-title);
}
.promo-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0.95rem 1rem 1.05rem;
}
.promo-card-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 800;
    font-family: var(--font-title);
}
.promo-card-title a {
    color: #111 !important;
    text-decoration: none !important;
}
.promo-card-title a:hover {
    color: var(--accent-color, #c9490a) !important;
}
.promo-card-place {
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
    color: #555 !important;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.promo-card-place i {
    color: var(--accent-color, #c9490a);
}
.promo-card-desc {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #666 !important;
    flex: 1 1 auto;
}
.promo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}
.promo-card-exp {
    font-size: 0.78rem;
    color: #777 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.promo-card-cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-color, #c9490a) !important;
    font-family: var(--font-title);
    text-decoration: none !important;
}
.promo-card-cta:hover {
    text-decoration: underline !important;
}

.promos-pagination {
    margin-top: 1.75rem;
}
.promos-empty {
    text-align: center;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 2.5rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    max-width: 480px;
    margin: 0.5rem auto 0;
}
.promos-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 73, 10, 0.1);
    color: var(--accent-color, #c9490a);
    font-size: 1.8rem;
}
.promos-empty h2 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111 !important;
}
.promos-empty p {
    margin: 0 0 1rem;
    color: #666 !important;
}

/* =========================================================
   Promo DETAIL — marketing coupon page
   ========================================================= */
.tpl-coupon {
    background: #eef0f4 !important;
}
.promo-detail-page {
    min-height: 60vh;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

/* Hero band */
.pd-hero {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255,120,80,0.35), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(201,73,10,0.45), transparent 50%),
        linear-gradient(135deg, #1e293b 0%, #0f4c81 42%, #1976d2 100%);
    color: #fff;
    padding: 1.15rem 0 2rem;
    margin-bottom: -1.5rem;
}
.pd-hero-inner {
    max-width: 1100px;
}
.pd-breadcrumb {
    margin-bottom: 0.9rem;
}
.pd-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.88) !important;
    text-decoration: none !important;
}
.pd-breadcrumb a:hover {
    color: #fff !important;
}
.pd-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.pd-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-title);
}
.pd-tag--promo {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff !important;
}
.pd-tag--live {
    background: #1db954;
    color: #fff !important;
}
.pd-tag--expired {
    background: #555;
    color: #fff !important;
}
.pd-tag--urgent {
    background: #ffb020;
    color: #1a1a1a !important;
}
.pd-hero-title {
    margin: 0 0 0.85rem;
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 800;
    color: #fff !important;
    font-family: var(--font-title);
    max-width: 18ch;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
@media (min-width: 768px) {
    .pd-hero-title {
        font-size: 2.35rem;
        max-width: 22ch;
    }
}
.pd-hero-place {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: rgba(255,255,255,0.92) !important;
}
.pd-hero-logo,
.pd-hero-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    flex: 0 0 auto;
}
.pd-hero-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color, #c9490a);
    font-size: 1.3rem;
}
.pd-hero-place strong {
    display: block;
    font-size: 1rem;
    color: #fff !important;
}
.pd-hero-meta {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75) !important;
    margin-top: 0.1rem;
}

/* Layout */
.pd-layout {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding-top: 0.25rem;
    padding-bottom: 1rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 992px) {
    .pd-layout {
        grid-template-columns: 1.35fr 0.85fr;
        align-items: start;
        gap: 1.35rem;
    }
    .pd-aside {
        position: sticky;
        top: 84px;
    }
}

/* Ticket — site design owns the coupon; photo is optional decoration */
.pd-ticket {
    position: relative;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.12),
        0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    border-top: 6px solid var(--accent-color, #c9490a);
}
.pd-ticket.is-highlight {
    box-shadow: 0 0 0 3px var(--accent-color, #c9490a), 0 16px 40px rgba(201,73,10,0.25);
    transform: translateY(-2px);
}
.pd-ticket.is-expired {
    opacity: 0.88;
    filter: grayscale(0.25);
}
.pd-ticket-notch {
    display: none;
}
@media (min-width: 576px) {
    .pd-ticket-notch {
        display: block;
        position: absolute;
        top: 48%;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #eef0f4;
        z-index: 3;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    }
    .pd-ticket-notch--l { left: -14px; }
    .pd-ticket-notch--r { right: -14px; }
}
.pd-ticket-top {
    padding: 1.2rem 1.15rem 1.35rem;
}
@media (min-width: 768px) {
    .pd-ticket-top {
        padding: 1.45rem 1.5rem 1.6rem;
    }
}
.pd-ticket-brand-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}
.pd-ticket-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(201,73,10,0.1);
    color: var(--accent-color, #c9490a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex: 0 0 auto;
}
.pd-ticket-brand-text {
    flex: 1 1 auto;
    min-width: 0;
}
.pd-ticket-brand-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #888 !important;
}
.pd-ticket-brand-place {
    display: block;
    font-weight: 800;
    color: #111 !important;
    font-size: 1rem;
    font-family: var(--font-title);
}
.pd-ticket-ribbon-inline {
    flex: 0 0 auto;
    background: #ffb020;
    color: #1a1a1a !important;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    font-family: var(--font-title);
}
.pd-ticket-offer-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.35rem;
}
@media (min-width: 576px) {
    .pd-ticket-offer-block {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.15rem;
    }
}
/* Client photo — never the full coupon design */
.pd-ticket-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid rgba(201,73,10,0.15);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    background: #f0f0f0;
    align-self: center;
}
@media (min-width: 576px) {
    .pd-ticket-photo {
        width: 132px;
        max-width: none;
        align-self: flex-start;
    }
}
.pd-ticket-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-ticket-offer-text {
    flex: 1 1 auto;
    min-width: 0;
}
.pd-ticket-kicker {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-color, #c9490a) !important;
}
.pd-ticket-title {
    margin: 0 0 0.65rem;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111 !important;
    font-family: var(--font-title);
}
.pd-ticket-desc {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #444 !important;
    margin-bottom: 0.25rem;
}
.pd-ticket-desc p { margin-bottom: 0.5rem; }
.pd-ticket-dash {
    height: 0;
    border-top: 2px dashed #e5e5e5;
    margin: 1rem 0 1rem;
}
/* List cards: photo is cover photo only */
.promo-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
}
.promo-card-media img {
    object-fit: cover;
}
/* Home promo: optional photo thumb */
.home-promo-card .home-promo-photo {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.7rem;
    background: #f0f0f0;
}
.home-promo-card .home-promo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-ticket-validity {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}
@media (min-width: 480px) {
    .pd-ticket-validity {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.pd-valid-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.7rem;
    background: #f7f7f8;
    border-radius: 12px;
    border: 1px solid #eee;
}
.pd-valid-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff;
    color: var(--accent-color, #c9490a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.pd-valid-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888 !important;
    font-weight: 700;
}
.pd-valid-value {
    display: block;
    font-size: 0.92rem;
    color: #111 !important;
    margin-top: 0.1rem;
}
.pd-ticket-hint {
    margin: 1rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(201,73,10,0.06);
    border: 1px solid rgba(201,73,10,0.12);
    color: #444 !important;
    font-size: 0.88rem;
    line-height: 1.4;
}
.pd-ticket-hint i {
    color: var(--accent-color, #c9490a);
    margin-right: 0.2rem;
}

/* How-to steps */
.pd-howto {
    margin-top: 1.15rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.15rem 1.15rem 1.25rem;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.pd-section-title {
    margin: 0 0 0.9rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111 !important;
    font-family: var(--font-title);
}
.pd-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.pd-steps li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.pd-step-num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    box-shadow: 0 4px 10px rgba(201,73,10,0.3);
}
.pd-steps strong {
    display: block;
    color: #111 !important;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}
.pd-steps p {
    margin: 0;
    color: #666 !important;
    font-size: 0.88rem;
    line-height: 1.4;
}

/* CTA sidebar card */
.pd-cta-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.15rem;
    border: 1px solid #e6e6e6;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.pd-cta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}
.pd-cta-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888 !important;
}
.pd-cta-urgent {
    font-size: 0.72rem;
    font-weight: 800;
    background: #fff3d6;
    color: #8a5a00 !important;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
}
.pd-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-title);
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    line-height: 1.2;
}
.pd-btn:hover {
    transform: translateY(-1px);
}
.pd-btn i { font-size: 1.2rem; }
.pd-btn--primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(201,73,10,0.35);
}
.pd-btn--primary:hover {
    box-shadow: 0 10px 24px rgba(201,73,10,0.45);
    color: #fff !important;
}
.pd-btn--ghost {
    background: #fff;
    border-color: #e5e5e5;
    color: #222 !important;
}
.pd-btn--ghost:hover {
    border-color: #ccc;
    color: #111 !important;
}
.pd-btn--whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(37,211,102,0.32);
}
.pd-btn--whatsapp:hover {
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(37,211,102,0.4);
}
.pd-btn--whatsapp-soft {
    background: #e8faf0;
    border-color: #b8ebcd;
    color: #0b6b3a !important;
}
.pd-btn--whatsapp-soft:hover {
    background: #d6f5e4;
    color: #08532d !important;
}
.pd-btn--outline {
    background: #fff;
    border-color: #222;
    color: #111 !important;
}
.pd-btn--outline:hover {
    background: #111;
    color: #fff !important;
}

.pd-share-block {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.pd-share-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.55rem;
}
.pd-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.pd-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    border: 1px solid #e5e5e5;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
    padding: 0;
}
.pd-share-btn:hover {
    background: #111;
    border-color: #111;
    color: #fff !important;
    transform: translateY(-1px);
}
.pd-share-btn--wa {
    background: #25d366;
    border-color: #25d366;
    color: #fff !important;
}
.pd-share-btn--wa:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    color: #fff !important;
}
.pd-copy-feedback {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0b6b3a !important;
}

/* Merchant mini card */
.pd-merchant-card {
    margin-top: 0.9rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.05rem 1.1rem;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.pd-merchant-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}
.pd-merchant-logo,
.pd-merchant-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f3f3;
    flex: 0 0 auto;
}
.pd-merchant-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color, #c9490a);
    font-size: 1.3rem;
    border: 1px solid #eee;
}
.pd-merchant-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #999 !important;
}
.pd-merchant-name {
    font-weight: 800;
    color: #111 !important;
    font-size: 1rem;
    font-family: var(--font-title);
}
.pd-merchant-line {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    color: #555 !important;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}
.pd-merchant-line i {
    color: var(--accent-color, #c9490a);
    margin-top: 0.1rem;
}
.pd-merchant-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.45rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent-color, #c9490a) !important;
    text-decoration: none !important;
}

/* Sticky mobile bar */
.pd-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}
@media (min-width: 992px) {
    .pd-sticky-bar {
        display: none;
    }
}
.pd-sticky-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.8rem 0.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none !important;
    font-family: var(--font-title);
}
.pd-sticky-btn--dl {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff !important;
    border: 0;
    cursor: pointer;
}
.pd-sticky-btn--wa {
    background: #25d366;
    color: #fff !important;
}
/* Keep sticky bar above mobile bottom nav if present */
body.tpl-coupon .pd-sticky-bar {
    bottom: var(--nav-height, 0px);
}
@media (min-width: 768px) {
    body.tpl-coupon .pd-sticky-bar {
        bottom: 0;
    }
}

/* =========================================================
   Home — Descubrí Comercios Locales (grilla, sin slider)
   ========================================================= */
.home-lc-notes {
    padding: 1.75rem 0 2rem;
    margin: 0;
}
.home-lc-notes-inner {
    max-width: 1140px;
}
.home-lc-notes-head {
    text-align: center;
    margin: 0 auto 1.25rem;
    max-width: 32rem;
}
.home-lc-notes-kicker {
    display: inline-block;
    margin: 0 0 0.45rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--brand-primary, #1976d2);
    border-radius: 999px;
    font-family: var(--font-title);
}
.home-lc-notes-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    line-height: 1.2;
}
.home-lc-notes-sub {
    margin: 0;
    font-size: 0.92rem;
    color: #64748b !important;
    line-height: 1.4;
}

/* Responsive grid: 1 → 2 → 3 cols */
.lc-notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0;
}
@media (min-width: 576px) {
    .lc-notes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}
@media (min-width: 992px) {
    .lc-notes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.lc-note-card {
    display: flex;
    flex-direction: column;
    min-width: 0; /* evita overflow en grid */
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
@media (hover: hover) {
    .lc-note-card:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
}
.lc-note-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e8eef5;
    overflow: hidden;
    flex: 0 0 auto;
}
.lc-note-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}
.lc-note-media-fallback {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--brand-primary, #1976d2);
    background: linear-gradient(135deg, #e0f2fe, #f1f5f9);
}
.lc-note-chip {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(25, 118, 210, 0.95);
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-family: var(--font-title);
}
.lc-note-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0.85rem 0.9rem 1rem;
    min-width: 0;
}
.lc-note-date {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b !important;
    margin-bottom: 0.3rem;
}
.lc-note-title {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 800;
    font-family: var(--font-title);
    /* clamp title on mobile */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lc-note-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    word-break: break-word;
}
.lc-note-title a:hover {
    color: var(--brand-primary, #1976d2) !important;
}
.lc-note-excerpt {
    margin: 0 0 0.65rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: #555 !important;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lc-note-cta {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--accent-color, #c9490a) !important;
    text-decoration: none !important;
    font-family: var(--font-title);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}
.lc-note-cta:hover {
    text-decoration: underline !important;
}
.home-lc-notes-footer {
    text-align: center;
    margin-top: 1.15rem;
}
.home-lc-notes-all {
    border-radius: 999px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 0.45rem 1.1rem !important;
}
@media (max-width: 575.98px) {
    .home-lc-notes {
        padding: 1.25rem 0 1.5rem;
    }
    .home-lc-notes-head h2 {
        font-size: 1.25rem;
    }
    /* En celular: solo 3 notas */
    .lc-notes-grid .lc-note-card:nth-child(n+4) {
        display: none !important;
    }
    .lc-note-body {
        padding: 0.75rem 0.8rem 0.9rem;
    }
    .lc-note-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
    .lc-note-excerpt {
        -webkit-line-clamp: 2;
        font-size: 0.84rem;
    }
}

/* =========================================================
   Select plan (user/select-plan)
   ========================================================= */
.tpl-user-select-plan {
    background: #eef0f4 !important;
}
.plans-page {
    min-height: 60vh;
    padding-bottom: 3rem;
}
.plans-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f4c81 48%, #1976d2 100%);
    color: #fff;
    padding: 2.1rem 1rem 2.4rem;
    margin-bottom: 0;
}
.plans-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.plans-kicker {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.28rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff !important;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
}
.plans-title {
    margin: 0 0 0.55rem;
    font-size: 1.85rem;
    line-height: 1.15;
    font-weight: 800;
    color: #fff !important;
    font-family: var(--font-title);
}
@media (min-width: 768px) {
    .plans-title { font-size: 2.25rem; }
}
.plans-subtitle {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.45;
}
.plans-body {
    margin-top: -1.25rem;
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
}
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    max-width: 920px;
    margin: 0 auto;
    align-items: stretch;
}
@media (min-width: 768px) {
    .plans-grid.plans-count-2,
    .plans-grid.plans-count-3,
    .plans-grid.plans-count-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .plans-grid.plans-count-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1100px;
    }
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    padding: 1.35rem 1.25rem 1.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}
.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.plan-card.is-recommended {
    border-color: rgba(201, 73, 10, 0.45);
    box-shadow: 0 12px 32px rgba(201, 73, 10, 0.14);
    border-width: 2px;
}
.plan-badge-rec {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffb020, #f59e0b);
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    font-family: var(--font-title);
    white-space: nowrap;
}
.plan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    margin-top: 0.35rem;
}
.plan-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111 !important;
    font-family: var(--font-title);
}
.plan-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.plan-tag--free {
    background: #e8faf0;
    color: #0b6b3a !important;
}
.plan-tag--premium {
    background: rgba(201, 73, 10, 0.1);
    color: var(--accent-color, #c9490a) !important;
}
.plan-price-block {
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e5e5e5;
}
.plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem 0.35rem;
    font-family: var(--font-title);
    color: #111 !important;
}
.plan-price--free {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #111 !important;
}
.plan-cur {
    font-size: 1.25rem;
    font-weight: 700;
    color: #555 !important;
}
.plan-amount {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #111 !important;
}
.plan-period {
    font-size: 0.95rem;
    font-weight: 600;
    color: #777 !important;
}
.plan-price-note {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: #666 !important;
}
.plan-features {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: #333 !important;
    line-height: 1.35;
}
.plan-feat-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(201, 73, 10, 0.1);
    color: var(--accent-color, #c9490a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 0.05rem;
}
.plan-card.is-free .plan-feat-icon {
    background: #e8faf0;
    color: #0b6b3a;
}
.plan-card-footer {
    margin-top: auto;
}
.plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none !important;
    font-family: var(--font-title);
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.plan-cta:hover {
    transform: translateY(-1px);
}
.plan-cta--primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(201, 73, 10, 0.32);
}
.plan-cta--primary:hover {
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(201, 73, 10, 0.42);
}
.plan-cta--outline {
    background: #fff;
    color: #111 !important;
    border: 2px solid #222;
}
.plan-cta--outline:hover {
    background: #111;
    color: #fff !important;
}
.plans-help {
    max-width: 640px;
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666 !important;
}
.plans-help i {
    color: var(--accent-color, #c9490a);
}
.plans-empty {
    text-align: center;
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem 1.25rem;
    border: 1px solid #e6e6e6;
    max-width: 480px;
    margin: 1.5rem auto 0;
}
.plans-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: rgba(201, 73, 10, 0.1);
    color: var(--accent-color, #c9490a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.plans-empty h2 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111 !important;
}

/* =========================================================
   Logo + typing animation (navbar brand)
   Inspired by comercios.lomasconectado.com
   ========================================================= */
#header-nav .navbar-brand.brand-with-type,
.brand-with-type {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
    max-width: min(90vw, 480px);
    text-decoration: none !important;
}
/* Wifi mark — exact asset from comercios.lomasconectado.com/assets/imgs/logo.png */
#header-nav .navbar-brand.brand-with-type .logo,
.brand-with-type .logo,
#header-nav .logo {
    width: auto !important;
    height: 50px !important;
    max-width: none !important;
    object-fit: contain !important;
    margin: 0 8px 0 0 !important;
    flex: 0 0 auto;
}
.logo-typing-wrapper {
    display: inline-flex;
    align-items: baseline; /* alinea "Comercios" con la palabra animada */
    font-weight: 500;
    font-size: 1.35rem;
    color: #0092c8;
    font-family: "Exo 2", var(--font-title);
    letter-spacing: -0.5px;
    line-height: 1;
    height: auto;
    min-width: 0;
    white-space: nowrap;
    gap: 0.28em;
}
@media (max-width: 575.98px) {
    .logo-typing-wrapper {
        font-size: 1.05rem;
        line-height: 1;
        align-items: baseline;
        gap: 0.22em;
        transform: translateY(1px); /* sutil ajuste óptico con el ícono */
    }
    #header-nav .navbar-brand.brand-with-type .logo,
    .brand-with-type .logo,
    #header-nav .logo {
        height: 40px !important;
    }
    #header-nav .navbar-brand.brand-with-type,
    .brand-with-type {
        align-items: center !important;
    }
}
/* Static word "Comercios" + animated word */
.logo-static-word {
    font-family: "Exo 2", var(--font-title) !important;
    font-weight: 500 !important;
    font-size: 1em !important;
    line-height: 1 !important;
    color: #222 !important;
    margin-right: 0;
    display: inline-block;
    vertical-align: baseline;
}
.logo-typing-text {
    display: inline-block;
    border-right: 2px solid #0092c8;
    padding-right: 3px;
    min-height: 0;
    min-width: 0.4em;
    height: 1em;
    line-height: 1 !important;
    font-size: 1em !important;
    color: #0092c8 !important;
    font-family: "Exo 2", var(--font-title) !important;
    font-weight: 500 !important;
    vertical-align: baseline;
    animation: dlLogoCursor 0.8s infinite;
    box-sizing: content-box;
}
@media (max-width: 575.98px) {
    .logo-static-word,
    .logo-typing-text {
        font-size: 1em !important;
        line-height: 1 !important;
    }
    .logo-typing-text {
        border-right-width: 2px;
        /* reserva ancho para no saltar el layout entre palabras */
        min-width: 4.6ch;
    }
}
.logo-typing-text.is-static {
    border-right-color: transparent;
    animation: none;
}
@keyframes dlLogoCursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: #0092c8; }
}
/* Home transparent nav: white "Comercios" + cyan typing */
.tpl-home #header-nav.transparent .brand-with-type--light .logo-static-word,
.brand-with-type--light .logo-static-word {
    color: #fff !important;
}
.tpl-home #header-nav.transparent .brand-with-type--light .logo-typing-wrapper,
.tpl-home #header-nav.transparent .brand-with-type--light .logo-typing-text {
    color: #7ec8e8 !important;
}
.tpl-home #header-nav.transparent .brand-with-type--light .logo-typing-text {
    border-right-color: #7ec8e8;
}
/* Home solid / scrolled: back to LC colors */
.tpl-home #header-nav.solid .brand-with-type--light .logo-static-word {
    color: #222 !important;
}
.tpl-home #header-nav.solid .brand-with-type--light .logo-typing-wrapper,
.tpl-home #header-nav.solid .brand-with-type--light .logo-typing-text {
    color: #0092c8 !important;
}
.tpl-home #header-nav.solid .brand-with-type--light .logo-typing-text {
    border-right-color: #0092c8;
}

/* =========================================================
   PWA install banner + iOS help
   ========================================================= */
.pwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--nav-height, 60px) + 12px);
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.16);
    max-width: 520px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .pwa-banner {
        left: auto;
        right: 20px;
        bottom: 20px;
        margin: 0;
        max-width: 380px;
    }
}
.pwa-banner[hidden] { display: none !important; }
.pwa-banner-close {
    position: absolute;
    top: 4px;
    right: 8px;
    border: 0;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
}
.pwa-banner-icon {
    flex: 0 0 auto;
}
.pwa-banner-icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: block;
}
.pwa-banner-copy {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0.5rem;
}
.pwa-banner-copy strong {
    display: block;
    font-size: 0.92rem;
    color: #111 !important;
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1.25;
}
.pwa-banner-copy span {
    display: block;
    font-size: 0.8rem;
    color: #666 !important;
    line-height: 1.3;
    margin-top: 0.15rem;
}
.pwa-banner-btn {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    font-family: var(--font-title);
    white-space: nowrap;
}
.pwa-banner-btn:hover {
    filter: brightness(1.05);
}

.pwa-ios-help {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}
@media (min-width: 576px) {
    .pwa-ios-help {
        align-items: center;
    }
}
.pwa-ios-help[hidden] { display: none !important; }
.pwa-ios-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 1.35rem 1.25rem 1.25rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.pwa-ios-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}
.pwa-ios-card h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111 !important;
    font-family: var(--font-title);
    padding-right: 1.5rem;
}
.pwa-ios-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pwa-ios-steps li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.92rem;
    color: #333 !important;
    line-height: 1.4;
}
.pwa-ios-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-color, #c9490a);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
html.pwa-standalone .pwa-banner {
    display: none !important;
}

/* 5-item bottom nav (with App) */
.mobile-bottom-nav .nav-item span {
    font-size: 0.65rem;
}
.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
}


/* =========================================================
   LC: no-photo / no-logo placeholders
   Cards + listing detail look good without media
   ========================================================= */
.dir-card-media.is-no-photo,
.res-card-media.is-no-photo,
.tpl-results .res-card-media.is-no-photo,
.tpl-listings .res-card-media.is-no-photo {
    background: linear-gradient(145deg, #f4f1ee 0%, #e8e4df 45%, #ddd6ce 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dir-card-media.is-no-photo img,
.res-card-media.is-no-photo img {
    display: none !important;
}
.card-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.75rem;
    text-align: center;
    z-index: 0;
}
.card-ph-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,73,10,0.14) 0%, transparent 70%);
    pointer-events: none;
}
.card-ph-icon {
    position: relative;
    font-size: 1.55rem;
    color: rgba(17,17,17,0.28);
    line-height: 1;
}
.card-ph-initials {
    position: relative;
    font-family: var(--font-title), system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    letter-spacing: 0.04em;
    color: #2a2a2a;
    line-height: 1.1;
    text-transform: uppercase;
}
.card-ph-hint {
    position: relative;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(17,17,17,0.42);
    margin-top: 0.15rem;
}
.dir-card.is-no-photo .dir-card-cat,
.res-card.is-no-photo .res-card-cat {
    z-index: 2;
}
.dir-card.is-no-photo .dir-card-feat,
.res-card.is-no-photo .res-card-feat {
    z-index: 2;
}

/* Detail: logo fallback initials */
.tpl-listing .listing-hero-logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f7f4f1 0%, #ebe5de 100%);
}
.tpl-listing .listing-logo-initials {
    font-family: var(--font-title), system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: 0.04em;
    color: #333;
    text-transform: uppercase;
    line-height: 1;
}
@media (max-width: 575.98px) {
    .tpl-listing .listing-logo-initials {
        font-size: 1.35rem;
    }
}

/* Detail: empty gallery panel */
.tpl-listing .listing-no-gallery {
    border: 1px dashed #d9d3cb;
    background: linear-gradient(160deg, #faf8f6 0%, #f0ebe5 100%);
    border-radius: 16px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.tpl-listing .listing-no-gallery-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 2rem 1.25rem;
    text-align: center;
}
.tpl-listing .listing-no-gallery-icon {
    font-size: 1.75rem;
    color: rgba(17,17,17,0.28);
    line-height: 1;
}
.tpl-listing .listing-no-gallery-initials {
    font-family: var(--font-title), system-ui, sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: 0.05em;
    color: #2a2a2a;
    text-transform: uppercase;
    line-height: 1.1;
}
.tpl-listing .listing-no-gallery-text {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #666 !important;
    font-weight: 600;
}
@media (min-width: 768px) {
    .tpl-listing .listing-no-gallery {
        min-height: 260px;
    }
}


/* =========================================================
   LC: omit media frame when no photo
   ========================================================= */
.dir-card.is-no-photo .dir-card-media,
.res-card.is-no-photo .res-card-media {
    display: none !important;
}
.dir-card.is-no-photo .dir-card-body,
.res-card.is-no-photo .res-card-body {
    padding-top: 1rem;
}
.dir-card-badges,
.res-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}
.dir-card-cat--inline,
.res-card-cat--inline {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    display: inline-flex;
    background: #111;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    max-width: 100%;
}
.dir-card-feat--inline,
.res-card-feat--inline {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex;
    background: var(--accent-color, #c9490a);
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
}
/* Results list: without photo, full-width text row */
@media (min-width: 768px) {
    .tpl-results .res-card.is-no-photo,
    .tpl-listings .res-card.is-no-photo {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   LC FIX: Listing page — hide bottom nav when sticky bar exists
   Avoids double fixed bar eating 120px of screen on small phones
   ========================================================= */
@media (max-width: 767.98px) {
    .tpl-listing .mobile-bottom-nav {
        display: none !important;
    }
    .tpl-listing .listing-sticky-bar {
        bottom: 0;
        bottom: env(safe-area-inset-bottom, 0px);
        padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
    }
}

/* =========================================================
   LC FIX: All-listings grid section styling
   ========================================================= */
.lc-all-listings {
    padding: 2.5rem 0 1rem;
    background: linear-gradient(180deg, #faf8f6 0%, #fff 100%);
}
.lc-all-listings h2 {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.65rem;
    color: #111;
    margin-bottom: 0.25rem;
}
.lc-all-listings p {
    font-size: 0.95rem;
    max-width: 480px;
    text-align: center;
}

/* =========================================================
   LC FIX: "Ver comercios" button → scroll to grid, not carousel
   ========================================================= */
