:root {
    --bg: #0a111f;
    --text: #f8fbff;
    --muted: #c8d4ea;
    --glass: rgba(255, 255, 255, 0.08);
    --page-bg: linear-gradient(160deg, rgba(7, 17, 27, 0.75), rgba(11, 18, 28, 0.88)), url('../img/bg.jpg') center/cover fixed no-repeat;
    --surface-1: rgba(6, 10, 20, 0.72);
    --surface-2: rgba(6, 10, 20, 0.92);
    --border-soft: rgba(255, 255, 255, 0.12);
    --icon-btn-bg: rgba(255, 255, 255, 0.06);
    --icon-btn-border: rgba(255, 255, 255, 0.18);
    --title-card-bg: rgba(12, 18, 28, 0.82);
    --title-card-border: rgba(255, 255, 255, 0.12);
    --title-share-bg: rgba(255, 255, 255, 0.04);
    --title-share-border: rgba(255, 255, 255, 0.14);
}

body[data-theme="light"] {
    --bg: #f3f6fb;
    --text: #11243a;
    --muted: #4e637b;
    --glass: rgba(16, 32, 56, 0.08);
    --page-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(232, 238, 246, 0.82)), url('../img/bg.jpg') center/cover fixed no-repeat;
    --surface-1: rgba(255, 255, 255, 0.9);
    --surface-2: rgba(255, 255, 255, 0.96);
    --border-soft: rgba(16, 32, 56, 0.18);
    --icon-btn-bg: rgba(16, 32, 56, 0.06);
    --icon-btn-border: rgba(16, 32, 56, 0.2);
    --title-card-bg: #ffffff;
    --title-card-border: rgba(17, 36, 58, 0.08);
    --title-share-bg: #f4f6fb;
    --title-share-border: rgba(17, 36, 58, 0.08);
}

body[data-theme="light"] .topbar,
body[data-theme="light"] .top-menu-panel,
body[data-theme="light"] .menu-sub-list {
    background: #0B111C;
    color: var(--text);
}

body[data-theme="light"] .local-title-card,
body[data-theme="light"] .local-breadcrumb-card {
    background: #ffffff;
    border-color: rgba(17, 36, 58, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .local-title-name,
body[data-theme="light"] .local-breadcrumb-text,
body[data-theme="light"] .local-title-meta,
body[data-theme="light"] .local-breadcrumb-text i {
    color: #11243a;
}

body[data-theme="light"] .top-menu-panel,
body[data-theme="light"] .menu-sub-list {
    box-shadow: none;
    border: 0;
}

body[data-theme="light"] .menu-parent-btn,
body[data-theme="light"] .menu-sub-link {
    color: var(--text);
}

.page-local,
.cat-app,
.hosp-app {
    padding-bottom: 80px;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: #0B111C;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.22);
}

/* Barra "Como chegar" da página do local, acima da barra do rodapé (56px de altura, reservados em .page-local--rota). */
.site-footer-rota {
    width: min(1180px, calc(100% - 1rem));
    margin: 0 auto;
    height: 56px;
    padding: 0.5rem 0.3rem 0;
    box-sizing: border-box;
}

.site-footer-rota-botao {
    appearance: none;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.site-footer-rota-botao i {
    color: #b794f6;
    font-size: 1.05rem;
}

.site-footer-rota-botao:hover,
.site-footer-rota-botao:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.page-local.page-local--rota {
    padding-bottom: 136px;
}

/* Botões flutuantes da página do local sobem junto, para não ficarem em cima da barra. */
.page-local--rota .voltar-meunegocio-flutuante,
.page-local--rota .botao-flutuante {
    bottom: calc(134px + env(safe-area-inset-bottom, 0px));
}

.site-footer-inner {
    width: min(1180px, calc(100% - 1rem));
    margin: 0 auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.5rem 0.3rem;
    box-sizing: border-box;
}

.site-footer-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.96rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.site-footer-back:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    color: #ffffff;
}

.site-footer-back-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.site-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-footer-action {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.site-footer-action:hover,
.site-footer-action:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.08);
    color: #ffffff;
}

.site-footer-action--secondary {
    background: rgba(255, 255, 255, 0.06);
}

.site-footer-action--primary {
    background: #63b314;
    border-color: rgba(99, 179, 20, 0.9);
}

.site-footer-action--distancia {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.site-footer-action--guiajar {
    background: #1a1d22;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.site-footer-action--guiajar:hover,
.site-footer-action--guiajar:focus-visible {
    background: #111417;
}

/* Botão da conta (Entrar / Meu perfil / Meu negócio): guarda o lugar, sem mostrar, até saber se há login. */
.site-footer-action--conta.is-carregando {
    visibility: hidden;
}

/* Avaliações do local e modal "Avaliar" */
.local-review-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.local-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.local-proprietario {
    margin-bottom: 1.5rem;
}

.local-proprietario-nome {
    margin-top: 2px;
    font-size: 0.94rem;
    opacity: 0.8;
    overflow-wrap: anywhere;
}

.local-proprietario-topo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.local-proprietario-foto {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border-radius: 50%;
    object-fit: cover;
}

.local-proprietario-texto {
    margin: 14px 0 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Página da cidade: foto com o texto "Sobre", dados (altitude, clima, alta temporada), clima e cards de categoria */
/* Card de boas-vindas no topo da página da cidade: mesmo visual do card da cidade na página inicial. */
.cidade-boasvindas {
    position: relative;
    height: 190px;
    border-radius: 1rem;
    overflow: hidden;
    background: #0d1320;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.cidade-boasvindas img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cidade-boasvindas-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 0.85rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}

.cidade-boasvindas-titulo {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.cidade-hero {
    display: flex;
    align-items: flex-end;
    min-height: 540px;
    margin: 0.9rem 0.85rem 0;
    border-radius: 20px;
    overflow: hidden;
    background-color: #0d1320;
    background-position: center top;
    background-size: cover;
    /* Sem borda: com ela, a foto aparecia como um filete em volta do escurecimento da base. */
    border: 0;
}

.cidade-hero-corpo {
    width: 100%;
    padding: 5.5rem 1.1rem 1.1rem;
    color: #ffffff;
    background: linear-gradient(to bottom, rgba(7, 11, 20, 0), rgba(7, 11, 20, 0.86) 38%, rgba(7, 11, 20, 0.97));
}

.cidade-hero-titulo {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.cidade-hero-texto {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    overflow-wrap: anywhere;
}

/* Fica abaixo da foto, com fundo próprio escuro (vale nos temas claro e escuro). */
.cidade-dados {
    display: flex;
    padding: 0.85rem 0.4rem;
    border-radius: 16px;
    background: #0d1320;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cidade-dado {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0 0.4rem;
    text-align: center;
}

.cidade-dado + .cidade-dado {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.cidade-dado i {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.cidade-dado strong {
    font-size: 0.92rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.cidade-dado span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.cidade-clima-bloqueio {
    min-height: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cidade-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

@media (min-width: 768px) {
    .cidade-hero {
        min-height: 600px;
    }

    .cidade-cats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cidade-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 168px;
    padding: 0.75rem;
    border-radius: 16px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background-color: var(--cat-cor, #0d6efd);
    background-position: center;
    background-size: cover;
    border: 1px solid var(--cat-cor, rgba(255, 255, 255, 0.16));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Cor da categoria, com transparência, por cima da foto: mais leve em cima e mais forte na base, onde fica o texto. */
.cidade-cat::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Navegadores sem color-mix(): só o escurecimento da base. */
    background: linear-gradient(to bottom, rgba(7, 11, 20, 0.25), rgba(7, 11, 20, 0.88));
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--cat-cor, #0d6efd) 50%, transparent) 0%,
        color-mix(in srgb, var(--cat-cor, #0d6efd) 70%, rgba(7, 11, 20, 0.9)) 100%
    );
}

.cidade-cat:hover,
.cidade-cat:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
}

.cidade-cat-icone {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cat-cor, #0d6efd);
    color: #ffffff;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.cidade-cat-texto {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-right: 1.1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.cidade-cat-texto strong {
    font-size: 1rem;
    line-height: 1.2;
}

.cidade-cat-texto span {
    font-size: 0.74rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

.cidade-cat-seta {
    position: absolute;
    right: 0.7rem;
    bottom: 0.95rem;
    font-size: 0.8rem;
}

/* Links externos do local (Premium / Destaque): botões para Booking, Airbnb, TripAdvisor e outros sites */
.local-links-lista {
    display: grid;
    gap: 0.55rem;
}

.local-link-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.local-link-botao:hover,
.local-link-botao:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

/* Horário de funcionamento do local e selo ABERTO / FECHADO dos cards */
.local-horario-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.local-horario-lista li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.local-horario-lista li:last-child {
    border-bottom: 0;
}

.local-horario-lista li span:last-child {
    text-align: right;
}

.local-horario-status {
    margin: 0 0 0.6rem;
}

.local-horario-subtitulo {
    margin: 0.9rem 0 0.2rem;
    font-weight: 700;
}

/* Selo ABERTO / FECHADO sobre a foto do local, no canto superior direito. */
.local-hero-horario {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    pointer-events: none;
}

.local-hero-horario .horario-selo {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.card-horario {
    margin-bottom: 0.35rem;
}

/* Galeria de imagens do local (Premium / Destaque) */
.local-galeria-grade {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .local-galeria-grade {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.local-galeria-item {
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0d1320;
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}

.local-galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.local-galeria-item:hover img,
.local-galeria-item:focus-visible img {
    transform: scale(1.04);
}

.local-image-lightbox.is-galeria {
    flex-direction: column;
    gap: 0.75rem;
}

.local-image-lightbox.is-galeria img {
    max-height: 74vh;
}

.local-image-lightbox__legenda {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: min(760px, 92vw);
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}

.local-image-lightbox__legenda[hidden],
.local-image-lightbox__nav[hidden] {
    display: none;
}

.local-image-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.local-image-lightbox__nav--anterior {
    left: 0.75rem;
}

.local-image-lightbox__nav--proxima {
    right: 0.75rem;
}

.avaliar-estrelas {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
}

.avaliar-legenda {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.avaliar-estrelas input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avaliar-estrelas label {
    padding: 4px;
    color: #f2c230;
    font-size: 2.1rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 120ms ease;
}

.avaliar-estrelas label:hover {
    transform: scale(1.12);
}

.avaliar-estrelas input:focus-visible + label {
    outline: 3px solid rgba(45, 212, 191, 0.7);
    outline-offset: 2px;
    border-radius: 6px;
}

.avaliar-rotulo {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.85;
}

.guiajado-icone {
    width: 64px;
    height: 64px;
    object-fit: contain;
    animation: guiajado-pop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

@keyframes guiajado-pop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .guiajado-icone { animation: none; }
}

.site-footer-action--avaliado.is-active {
    background: #6b5308;
    border-color: rgba(242, 194, 48, 0.6);
    box-shadow: 0 0 0 2px rgba(242, 194, 48, 0.25);
    color: #ffffff;
}

.site-footer-action--avaliado.is-active i {
    color: #f2c230;
}

/* Página do local: cor do ícone de cada botão do rodapé (Curtir já vem vermelho pelo text-danger). */
.site-footer--icones .site-footer-back-icon {
    color: #3b9dff;
}

.site-footer--icones .site-footer-action--conta i {
    color: #63b314;
}

.site-footer--icones .site-footer-action[data-action="avaliar"] i {
    color: #f2c230;
}

.site-footer-action--guiajar.is-active {
    background: #5c1420;
    border-color: rgba(220, 53, 69, 0.6);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.site-footer-action--primary.is-active {
    background: #4e980d;
    box-shadow: 0 0 0 2px rgba(99, 179, 20, 0.3);
}

/* Página do local: modais (Avaliar / Curtido) e textos auxiliares nos temas escuro e claro */
.page-local .modal-content.gj-modal {
    background: #0f1519;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    color: #f8fbff;
}

.page-local .gj-modal .modal-header,
.page-local .gj-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.page-local .gj-modal .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

.page-local .gj-modal .form-control {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f8fbff;
}

.page-local .gj-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.page-local .text-muted {
    color: var(--muted) !important;
}

.page-local .fa-star.text-muted {
    color: rgba(255, 255, 255, 0.25) !important;
}

body[data-theme="light"].page-local .modal-content.gj-modal {
    background: #ffffff;
    border-color: #d4dbe5;
    color: #11243a;
}

body[data-theme="light"].page-local .gj-modal .modal-header,
body[data-theme="light"].page-local .gj-modal .modal-footer {
    border-color: #d4dbe5;
}

body[data-theme="light"].page-local .gj-modal .btn-close {
    filter: none;
}

body[data-theme="light"].page-local .gj-modal .form-control {
    background: #ffffff;
    border-color: #c6d0dc;
    color: #11243a;
}

body[data-theme="light"].page-local .gj-modal .form-control::placeholder {
    color: #6b7c90;
}

body[data-theme="light"].page-local .gj-modal .btn-outline-light {
    color: #111821;
    border-color: #c6d0dc;
}

body[data-theme="light"].page-local .gj-modal .btn-outline-light:hover {
    color: #0f172a;
    background: #dbe2eb;
    border-color: #bac6d4;
}

body[data-theme="light"].page-local .fa-star.text-muted {
    color: rgba(17, 36, 58, 0.25) !important;
}

.local-review-historico {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    opacity: 0.85;
}

body[data-theme="light"] .local-review-historico {
    border-top-color: #d4dbe5;
}

body[data-theme="light"] .local-review-avatar {
    background: rgba(17, 36, 58, 0.1);
}

.site-footer-action-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.distance-modal .modal-content {
    background: #0f1519;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.distance-modal .modal-header,
.distance-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.distance-modal-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.distance-map-wrapper {
    position: relative;
    background: #0b111c;
}

.distance-map-frame {
    width: 100%;
    min-height: 320px;
    border: 0;
    display: block;
    background: #0b111c;
}

.distance-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    background: rgba(9, 12, 17, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    backdrop-filter: blur(6px);
    font-size: 0.8rem;
}

.distance-meta {
    display: flex;
    justify-content: center;
    padding: 0.9rem 1rem 1.2rem;
}

.distance-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: rgba(255, 255, 255, 0.86);
}

.distance-meta-item strong {
    font-size: 1.3rem;
    color: #fff;
}

@media (max-width: 767px) {
    .site-footer-inner {
        min-height: 52px;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.45rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .site-footer-back,
    .site-footer-action {
        flex: 1 1 0;
        width: auto;
        min-height: 42px;
        height: auto;
        padding: 0.65rem 0.5rem;
        border-radius: 12px;
        justify-content: center;
        font-size: 0.75rem;
    }

    .site-footer-back {
        display: inline-flex;
        justify-content: center;
    }

    .site-footer-back span:not(.site-footer-back-icon),
    .site-footer-action span {
        display: inline;
    }

    .site-footer-back-icon,
    .site-footer-action i {
        width: 18px;
        height: 18px;
        font-size: 0.9rem;
    }

    .site-footer-actions {
        display: flex;
        flex: 2.6;
        justify-content: stretch;
        gap: 0.45rem;
    }

    .site-footer-back {
        flex: 1;
    }

    /* Página do local: só os ícones, quatro colunas iguais (Voltar + três ações). O texto segue no aria-label. */
    .site-footer--icones .site-footer-actions {
        flex: 3;
        flex-wrap: nowrap;
    }

    .site-footer--icones .site-footer-back span:not(.site-footer-back-icon),
    .site-footer--icones .site-footer-action span {
        display: none;
    }

    .site-footer--icones .site-footer-back-icon {
        background: transparent;
    }

    .site-footer--icones .site-footer-back-icon,
    .site-footer--icones .site-footer-action i {
        width: auto;
        height: auto;
        font-size: 1.15rem;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s ease-out forwards;
}

.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.cat-app,
.hosp-app {
    max-width: 1024px;
    margin: 0 auto;
    min-height: 100vh;
    background: transparent;
}

/* Em local.php o espaço do rodapé fixo já vem do body (.page-local). */
.hosp-app {
    padding-bottom: 1.25rem;
}

/* Categoria, subcategoria e busca: reserva a altura do rodapé fixo (.site-footer) para ele não cobrir o fim do conteúdo. */
.cat-app {
    padding-bottom: 80px;
}

body[data-theme="light"] .hosp-app {
    background: transparent;
}

@media (min-width: 768px) {
    .hosp-app {
        max-width: 1180px;
    }
}

.topbar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #0B111C;
    backdrop-filter: blur(8px);
    border-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar::after {
    display: block;
    height: 4px;
    content: "";
    background: linear-gradient(to right, #7b2cbf 0 14.285%, #123b75 14.285% 28.57%, #39a9db 28.57% 42.855%, #2e9d62 42.855% 57.14%, #f2c230 57.14% 71.425%, #ef8225 71.425% 85.71%, #d83b42 85.71% 100%);
}

.topbar-main {
    width: min(1024px, calc(100% - 1.4rem));
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.85rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .topbar {
        display: block;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .topbar-main,
    .topbar-menu-row,
    .top-menu-panel {
        width: min(1024px, calc(100% - 1.4rem));
        margin-left: auto;
        margin-right: auto;
    }

    .topbar-main {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .topbar-menu-row {
        display: none !important;
        padding: 0;
    }

    .menu-trigger {
        display: none !important;
    }

    .top-menu-panel {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        position: static;
        top: auto;
        left: auto;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        max-width: none;
        transform: none;
        margin-right: 0;
        border-radius: 0;
        overflow: visible;
        background: #0f1624;
        border: 0;
        border-top: 0;
        box-shadow: none;
        padding: 0.38rem 0 0.5rem;
    }

    .top-menu-panel > .menu-group {
        margin: 0;
    }

    .menu-meta {
        display: none;
    }

    .top-menu-panel > .menu-group {
        position: relative;
        display: inline-block;
        width: auto;
        vertical-align: top;
        margin: 0.05rem 0.1rem;
    }

    .menu-parent-btn {
        min-height: 42px;
        padding: 0.72rem 0.9rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid transparent;
    }

    .menu-sub-list {
        position: absolute;
        left: 0;
        top: calc(100% + 0.35rem);
        min-width: 230px;
        max-width: 320px;
        background: rgba(11, 17, 28, 0.98);
        border: 0;
        box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
        padding: 0.4rem;
        z-index: 80;
    }

    .menu-sub-list:not(.is-open) {
        display: none;
    }

    .menu-sub-link {
        padding: 0.5rem 0.6rem;
    }
}

.topbar-menu-row {
    width: 100%;
    padding: 0;
    border-top: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .topbar-main,
    .topbar-menu-row {
        width: min(1024px, calc(100% - 1.4rem));
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }

    .topbar-menu-row {
        padding-top: 0;
        padding-bottom: 0;
        border-top: 0;
    }
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.topbar-right {
    justify-content: flex-end;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--icon-btn-border);
    background: var(--icon-btn-bg);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: relative;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 190px;
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: #0B111C;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
    z-index: 90;
}

.user-menu-dropdown[hidden] {
    display: none;
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
}

.user-menu-link:hover,
.user-menu-link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.menu-trigger {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    text-align: left;
}

.menu-trigger .caret {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.menu-trigger[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

.top-menu-panel {
    margin: 0 auto;
    padding: 0.35rem 0.7rem 0.5rem;
    border-radius: 12px;
    border: 0;
    background: #0B111C;
    backdrop-filter: blur(8px);
    display: none;
    position: relative;
    top: auto;
    left: auto;
    width: min(1024px, calc(100% - 1rem));
    max-width: none;
    transform: none;
    z-index: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.top-menu-panel.is-open {
    display: block;
}

@keyframes menuItemFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-group.menu-item-animate {
    opacity: 0;
    animation: menuItemFadeUp 0.28s ease-out forwards;
}

.menu-meta {
    padding: 0.55rem 0.6rem 0.65rem;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 0.25rem;
}

.menu-meta .where {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    font-size: 0.86rem;
}

.menu-meta .switch-city {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.5rem;
    text-decoration: none;
    border-bottom: 1px dashed rgba(90, 120, 160, 0.55);
    width: fit-content;
}

.menu-meta .meta-icon {
    color: #a0a7b4;
    font-size: 0.78rem;
    width: 0.9rem;
    text-align: center;
    flex: 0 0 auto;
}

.menu-group {
    margin-top: 0.2rem;
}

.menu-parent-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.58rem 0.35rem;
    border-radius: 10px;
    text-align: left;
}

.menu-parent-btn:active {
    background: rgba(255, 255, 255, 0.08);
}

.menu-parent-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.menu-parent-icon {
    width: 1.3rem;
    text-align: center;
}

.menu-parent-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88rem;
}

.menu-parent-btn .chev {
    font-size: 0.75rem;
    opacity: 0.88;
    transition: transform 0.2s ease;
}

.menu-parent-btn[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

.menu-sub-list {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 0.35rem 0 2.1rem;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding-bottom 0.2s ease;
}

.menu-sub-list.is-open {
    opacity: 1;
    padding-bottom: 0.4rem;
}

.menu-sub-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.36rem 0.35rem;
    border-radius: 8px;
    font-size: 0.82rem;
}

.menu-sub-list.subitems-animate .menu-sub-link {
    opacity: 0;
    transform: translateY(7px);
    animation: menuItemFadeUp 0.24s ease-out forwards;
}

.menu-sub-link:active {
    background: rgba(255, 255, 255, 0.08);
}

.menu-empty {
    color: var(--muted);
    font-size: 0.8rem;
    padding: 0.7rem 0.65rem;
}

.topbar-logo {
    width: 124px;
    max-width: 42vw;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.section-pad {
    padding: 0.9rem 0.85rem;
}

.slide-wrap {
    border-radius: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

#catSlide .carousel-inner {
    height: 280px;
}

#catSlide .carousel-item {
    height: 100%;
}

#catSlide .carousel-item.active {
    animation: slideFade 0.6s ease;
}

@keyframes slideFade {
    from {
        opacity: 0.25;
    }
    to {
        opacity: 1;
    }
}

.slide-item {
    position: relative;
    height: 100%;
    background: #101827;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.28rem 0.55rem 0.35rem;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
    background: rgba(0, 0, 0, 0.64);
    pointer-events: none;
}

.slide-name-row {
    width: 100%;
    border-radius: 0;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.slide-name-row .slide-title {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-desc {
    margin-top: 0.1rem;
    font-size: 0.8rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.93);
    background: transparent;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.slide-meta,
.rail-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
}

.slide-meta {
    justify-content: center;
    margin-top: 0.2rem;
}

.rail-meta {
    padding: 0 0.55rem 0.45rem;
    background: rgba(10, 16, 29, 0.9);
}

.slide-meta > span,
.rail-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.slide-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 8;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(12, 17, 30, 0.72);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slide-arrow.left {
    left: 0.5rem;
}

.slide-arrow.right {
    right: 0.5rem;
}

/* Indicadores no topo do slide: a legenda (nome, resumo, curtidas e avaliações) varia de altura. */
#catSlide .carousel-indicators {
    margin: 0;
    gap: 0.26rem;
    top: 0.55rem;
    bottom: auto;
    z-index: 8;
}

#catSlide .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 0;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.62);
}

#catSlide .carousel-indicators .active {
    background-color: #ffffff;
}

#catSlide .carousel-indicators [data-bs-target] {
    pointer-events: auto;
    cursor: pointer;
}

.stream-row {
    margin-top: 1rem;
}

.stream-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.2rem 0.6rem;
}

.stream-head .sub-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
}

.stream-head .sub-name {
    color: var(--text);
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.rail-wrap {
    position: relative;
}

.rail {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar {
    display: none;
}

.rail-card {
    width: 430px;
    max-width: 86vw;
    min-width: 430px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #111827;
    scroll-snap-align: start;
}

.rail-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.rail-card .name {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    padding: 0.4rem 0.55rem;
    background: rgba(10, 16, 29, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(12, 17, 30, 0.72);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 0.85;
}

.rail-arrow.left {
    left: -2px;
}

.rail-arrow.right {
    right: -2px;
}

.empty-box {
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.85rem;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

.premium-section {
    padding-top: 0.2rem;
}

.subcat-nav-wrap {
    padding-top: 0.2rem;
    padding-bottom: 0.1rem;
}

.subcat-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.83rem;
    transition: all 0.2s ease;
    box-shadow: 0 8px 16px rgba(7, 12, 17, 0.14);
}

.subcat-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--category-accent) 20%, transparent);
    color: var(--category-accent);
    border: 1px solid color-mix(in srgb, var(--category-accent) 35%, transparent);
    flex-shrink: 0;
}

.subcat-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: var(--text);
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.premium-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 208px;
    padding: 0.75rem;
    border-radius: 18px;
    overflow: hidden;
    background-color: #0d1320;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    border: 0;
    box-shadow: 0 10px 18px rgba(7, 12, 17, 0.35);
}

.premium-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.8) 100%);
}

.premium-card > * {
    position: relative;
    z-index: 1;
}

.premium-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.premium-badge-premium {
    background: rgba(236, 240, 244, 0.96);
    color: #1d2430;
    box-shadow: 0 6px 12px rgba(17, 23, 31, 0.15);
}

.premium-badge-destaque {
    background: rgba(255, 193, 7, 0.96);
    color: #2a1a00;
    box-shadow: 0 6px 12px rgba(255, 176, 0, 0.3);
}

.premium-card .premium-badge-premium i.fa-crown,
.free-card .premium-badge-premium i.fa-crown {
    color: #1d2430;
}

.premium-card .premium-badge-destaque i.fa-star,
.free-card .premium-badge-destaque i.fa-star {
    color: #2a1a00;
}

.premium-card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.premium-card-content h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.premium-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.72);
}

.premium-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.premium-rating {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.free-section {
    padding-top: 0.25rem;
}

.free-list {
    display: grid;
    gap: 0.7rem;
}

.free-card {
    display: flex;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 6px 12px rgba(7, 12, 17, 0.18);
}

.free-card-image-wrap {
    width: 118px;
    min-width: 118px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: #101827;
}

.free-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.free-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.free-card-body h3 {
    margin: 0 0 0.45rem;
    font-size: 0.98rem;
    line-height: 1.2;
    color: #ffffff;
}

.free-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.86);
}

.free-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.free-rating {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

@media (max-width: 767px) {
    .premium-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .premium-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .premium-card {
        min-height: 170px;
        border-radius: 14px;
        padding: 0.6rem;
        border: 0;
        box-shadow: none;
    }

    .premium-badge {
        top: 0.55rem;
        right: 0.55rem;
        padding: 0.25rem 0.45rem;
        font-size: 0.64rem;
    }

    .premium-card-content h3 {
        font-size: 0.9rem;
    }

    .premium-meta {
        gap: 0.45rem;
        font-size: 0.64rem;
    }

    .free-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .free-card {
        gap: 0.55rem;
        padding: 0.38rem;
        border-radius: 12px;
    }

    .free-card-image-wrap {
        width: 94px;
        min-width: 94px;
        height: 80px;
        border-radius: 10px;
    }

    .free-card-body h3 {
        font-size: 0.88rem;
    }

    .free-card-meta {
        gap: 0.35rem;
        font-size: 0.62rem;
    }
}

.subcat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding: 0.85rem;
}

.subcat-tile {
    height: 70px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.2rem;
    text-decoration: none;
    transition: background 0.18s;
}

.subcat-tile:active {
    background: rgba(255, 255, 255, 0.12);
}

.subcat-tile .tile-icon {
    font-size: 1.5rem;
}

.subcat-tile .tile-name {
    color: #ffffff;
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.subcat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 0.85rem 0.4rem;
}

.subcat-header .header-icon {
    font-size: 1.2rem;
    color: var(--text);
}

.subcat-header .header-text {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.subcat-header .header-text .city {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.subcat-featured-hero {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.subcat-featured-image {
    position: relative;
    width: 100%;
    min-height: 0;
    height: clamp(120px, 22vw, 210px);
    border-radius: 0;
    overflow: hidden;
    background: #e7e5e2;
}

.subcat-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9) saturate(0.95);
}

.subcat-featured-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 1rem;
    background: linear-gradient(90deg, rgba(12, 17, 24, 0.66) 0%, rgba(12, 17, 24, 0.28) 42%, rgba(12, 17, 24, 0.08) 100%);
}

.subcat-featured-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: transparent;
    color: var(--category-accent);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: none;
}

.subcat-featured-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.1;
    text-shadow: none;
}

.subcat-featured-text strong {
    font-size: clamp(1.05rem, 2vw, 1.75rem);
    color: #ffffff;
    letter-spacing: 0.01em;
    font-weight: 700;
}

.subcat-featured-text span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    margin-top: 0.2rem;
    font-weight: 500;
}

@media (max-width: 767px) {
    .subcat-featured-hero {
        margin: 0;
    }

    .subcat-featured-image {
        height: clamp(110px, 35vw, 170px);
    }

    .subcat-featured-overlay {
        gap: 0.55rem;
        padding: 0 0.75rem;
    }

    .subcat-featured-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 10px;
        font-size: 1rem;
    }

    .subcat-featured-text strong {
        font-size: clamp(0.88rem, 4vw, 1.25rem);
    }

    .subcat-featured-text span {
        font-size: 0.71rem;
    }
}

body[data-theme="light"] .topbar {
    background: #0B111C;
    border-bottom: 0;
}

body[data-theme="light"] .icon-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

body[data-theme="light"] .top-menu-panel {
    border: 0;
    background: transparent;
}

body[data-theme="light"] .menu-meta {
    border-bottom: 0;
}

body[data-theme="light"] .menu-meta .where {
    color: #ffffff;
}

body[data-theme="light"] .menu-meta .switch-city {
    color: #cfe7ff;
    border-bottom: 1px dashed rgba(207, 231, 255, 0.5);
}

body[data-theme="light"] .menu-parent-btn,
body[data-theme="light"] .menu-sub-link {
    color: #dceafe;
}

body[data-theme="light"] .menu-empty {
    color: rgba(255, 255, 255, 0.68);
}

body[data-theme="light"] .subcat-tile {
    background: #e2e7ef;
    border: 1px solid #d4dbe5;
}

body[data-theme="light"] .subcat-tile:active {
    background: #d9e0e9;
}

body[data-theme="light"] .subcat-tile .tile-name {
    color: #111821;
    text-shadow: none;
}

body[data-theme="light"] .free-card {
    background: rgba(17, 36, 58, 0.04);
    border-color: rgba(17, 36, 58, 0.08);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .free-card-body h3 {
    color: #111821;
}

body[data-theme="light"] .free-card-meta {
    color: rgba(17, 36, 58, 0.8);
}

body[data-theme="light"] .free-rating {
    background: rgba(17, 36, 58, 0.06);
    border-color: rgba(17, 36, 58, 0.12);
    color: #111821;
}

body[data-theme="light"] .rail-card {
    background: #e2e7ef;
    border: 1px solid #d4dbe5;
}

body[data-theme="light"] .rail-card .name {
    color: #111821;
    background: #dfe5ed;
    text-shadow: none;
}

body[data-theme="light"] .stream-head .sub-name {
    color: #111821;
}

body[data-theme="light"] .detail-hero {
    background: #e2e7ef;
    border: 1px solid #d4dbe5;
}

body[data-theme="light"] .detail-hero-body {
    background: linear-gradient(180deg, rgba(226, 231, 239, 0.12), rgba(219, 226, 236, 0.95));
}

body[data-theme="light"] .detail-title {
    color: #111821;
}

body[data-theme="light"] .detail-subtitle {
    color: #334155;
}

body[data-theme="light"] .meta-card,
body[data-theme="light"] .local-info .info-group,
body[data-theme="light"] .local-sidebar .info-group,
body[data-theme="light"] .location-address {
    background: #ffffff;
    border: 1px solid #d4dbe5;
}

body[data-theme="light"] .meta-card strong,
body[data-theme="light"] .local-info .info-group h5,
body[data-theme="light"] .local-sidebar .info-group h5 {
    color: #111821;
}

body[data-theme="light"] .meta-card span,
body[data-theme="light"] .local-info .info-group p,
body[data-theme="light"] .local-info .info-group li,
body[data-theme="light"] .local-sidebar .info-group p,
body[data-theme="light"] .local-sidebar .info-group li,
body[data-theme="light"] .location-address {
    color: #334155;
}

body[data-theme="light"] .contact-list {
    color: #1f2937;
}

body[data-theme="light"] .contact-list a {
    color: #1d4ed8;
}

body[data-theme="light"] .map-frame,
body[data-theme="light"] .streetview-frame,
body[data-theme="light"] .location-map-frame {
    border: 1px solid #d4dbe5;
}

body[data-theme="light"] .detail-actions .btn-outline-light,
body[data-theme="light"] .tags-list .btn-outline-light {
    color: #111821;
    border-color: #c6d0dc;
}

body[data-theme="light"] .detail-actions .btn-outline-light:hover,
body[data-theme="light"] .tags-list .btn-outline-light:hover {
    color: #0f172a;
    background: #dbe2eb;
    border-color: #bac6d4;
}

.detail-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    margin: 1rem 0;
}

.detail-hero img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.local-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 17, 0.82);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 2rem;
}

.local-image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.local-image-lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 90vh;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    background: rgba(0, 0, 0, 0.2);
}

.local-image-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

.detail-hero-body {
    position: relative;
    z-index: 2;
    padding: 0.55rem 0.9rem 0.62rem;
    background: linear-gradient(180deg, rgba(10, 16, 29, 0.02), rgba(10, 16, 29, 0.95));
}

.local-title-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.9rem 0.85rem 0.4rem;
    text-align: center;
}

.local-title-card {
    width: min(100%, 1180px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1rem 1.05rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.local-title-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.local-title-share {
    flex-shrink: 0;
    min-width: 220px;
    height: 52px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--title-share-border);
    background: var(--title-share-bg);
    color: var(--text);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.local-title-share:hover {
    transform: translateY(-1px);
    background: var(--title-share-bg);
    filter: brightness(0.98);
}

@media (min-width: 768px) {
    .local-title-header,
    .local-main-section {
        width: min(1180px, calc(100% - 0.9rem));
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .local-title-header {
        padding-top: 1rem;
        padding-bottom: 0.35rem;
    }

    .local-main-section {
        padding-top: 0.25rem;
    }
}

.local-title-icon {
    font-size: 1.2rem;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.local-title-line-main {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.28rem;
    width: 100%;
}

.local-title-name {
    color: var(--text);
    font-size: 1.0rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-align: left;
}

.local-title-meta {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
    display: block;
    margin-top: 0.15rem;
    text-align: left;
    line-height: 1.2;
}

.local-breadcrumb-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.local-breadcrumb-text {
    color: var(--text);
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.local-breadcrumb-text i {
    color: #ff7a59;
}

.local-main-section {
    padding-top: 0.35rem;
}

.local-layout {
    align-items: flex-start;
}

.local-main-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.local-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.local-detail-hero {
    margin-top: 0.4rem;
}

.local-hero-stats {
    flex: 1 1 480px;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    color: #c8d4ea;
    min-height: 38px;
    padding: 0.1rem 0;
}

.local-hero-stat-item {
    flex: 1 1 33.333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.02rem;
    font-size: 0.96rem;
    white-space: nowrap;
    min-width: 0;
    padding: 0.12rem 0;
}

.local-hero-stat-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    line-height: 1;
}

.local-hero-stat-top i {
    font-size: 1.02rem;
}

.local-hero-stat-item strong {
    color: #f3f7ff;
    font-weight: 700;
    font-size: 1.08rem;
}

.local-hero-stat-label {
    font-size: 0.86rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-top: 0.24rem;
}

.local-hero-stat-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 0.25rem;
}

body[data-theme="light"] .local-hero-stats {
    color: #334155;
}

body[data-theme="light"] .local-hero-stat-item strong {
    color: #111821;
}

body[data-theme="light"] .local-hero-stat-divider {
    background: rgba(15, 23, 42, 0.28);
}

@media (max-width: 767.98px) {
    .local-title-name {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .local-title-meta {
        font-size: 0.78rem;
    }

    .local-hero-stats {
        min-height: 34px;
    }

    .local-hero-stat-item {
        font-size: 0.8rem;
        gap: 0;
        padding: 0.08rem 0;
    }

    .local-hero-stat-top i {
        font-size: 0.86rem;
    }

    .local-hero-stat-item strong {
        font-size: 0.95rem;
    }

    .local-hero-stat-label {
        font-size: 0.72rem;
        margin-top: 0.14rem;
    }
}

.detail-title { font-size: 1.65rem; margin: 0; color: #ffffff; }
.detail-subtitle { color: #c8d4ea; margin-top: 0.35rem; font-size: 0.95rem; }

.badge-status { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.75rem; font-size: 0.82rem; font-weight: 700; border-radius: 999px; text-transform: uppercase; }
.badge-status.open { background: rgba(46, 204, 113, 0.18); color: #b7f5c2; }
.badge-status.closed { background: rgba(248, 113, 113, 0.18); color: #fed7d7; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; }
.detail-actions .btn { min-width: 180px; }

.local-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.meta-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 0.85rem; }
.meta-card strong { display: block; color: #ffffff; margin-bottom: 0.45rem; }
.meta-card span { color: #c8d4ea; }

.local-info { display: grid; gap: 1rem; margin-bottom: 1rem; }
.local-info .info-group,
.local-sidebar .info-group { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 1rem; font-size: 0.94rem; }
.local-info .info-group h5,
.local-sidebar .info-group h5 {
    margin-top: 0;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}

.description-content {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text);
    text-align: justify;
}

.description-content p,
.description-content li,
.description-content strong,
.description-content span {
    font-size: inherit;
    line-height: inherit;
}

.tags-list { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tags-list button { border-radius: 24px; }

.map-frame,
.streetview-frame { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); }
.map-frame iframe,
.streetview-frame iframe { width: 100%; display: block; }

.contact-list { list-style: none; padding: 0; margin: 0; color: #f8fbff; }
.contact-list li { margin-bottom: 0.65rem; }
.contact-list a { color: #9ec5ff; text-decoration: none; }

.location-address {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-map-frame {
    margin-bottom: 0.9rem;
}

.location-actions {
    margin-top: 0.15rem;
}

/* Mapa OpenStreetMap (Leaflet) da página do local. O z-index mantém os controles do mapa abaixo do menu e dos modais. */
.location-map-osm {
    height: 420px;
    position: relative;
    z-index: 0;
}

.location-actions--rota {
    margin-bottom: 0.8rem;
}

.route-button.route-button--rota {
    flex-basis: 100%;
    border: 0;
    background: linear-gradient(135deg, #2b6ef7, #1d4ed8);
    cursor: pointer;
}

.route-button--rota:disabled {
    opacity: 0.7;
    cursor: progress;
}

.location-rota-aviso {
    margin: 0 0 0.8rem;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.location-rota-aviso.is-erro {
    color: #ef4444;
}

/* Modal "Como chegar" da página do local. */
.location-map-osm--modal {
    height: 46vh;
    min-height: 260px;
    max-height: 420px;
}

.rota-destino {
    margin: 0 0 0.9rem;
}

.rota-contador {
    margin: 0 0 0.8rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.rota-destino strong,
.rota-destino span {
    display: block;
}

.rota-destino span {
    opacity: 0.8;
    font-size: 0.92rem;
}

.rota-resumo {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.rota-resumo-item {
    flex: 1 1 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 12px;
}

.rota-resumo-item small {
    display: block;
    opacity: 0.75;
    font-size: 0.8rem;
}

.rota-resumo-item strong {
    font-size: 1.25rem;
}

.rota-passos summary {
    cursor: pointer;
    font-weight: 700;
}

.rota-passos ol {
    margin: 0.7rem 0 0;
    padding-left: 1.3rem;
}

.rota-passos li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    font-size: 0.92rem;
}

.rota-passos li:last-child {
    border-bottom: 0;
}

.rota-passos li small {
    display: block;
    opacity: 0.7;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.35rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, var(--social-color), var(--social-color-2));
    box-shadow: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: #ffffff !important;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 90px;
}

.contact-card--full {
    flex: 1 1 100%;
}

.contact-card--half {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 180px;
}

.contact-card__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #dfeaff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.contact-card a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.phone-button,
.whatsapp-button,
.internet-button,
.route-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    font-size: 0.96rem !important;
    font-weight: 700;
    line-height: 1.2;
    flex-direction: row;
}

.phone-button {
    background: linear-gradient(135deg, #2b6ef7, #1d4ed8);
}

.whatsapp-button {
    background: linear-gradient(135deg, #25d366, #1ebe5d);
}

.internet-button--website {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #ffffff !important;
}

.internet-button--email {
    background: linear-gradient(135deg, #ff9a3d, #df6a00);
    color: #ffffff !important;
}

.route-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.route-button {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 180px;
    display: inline-flex !important;
}

.route-button--google {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.route-button--waze {
    background: linear-gradient(135deg, #7ecafc, #47a8f0);
    color: #ffffff !important;
}

.phone-button i,
.whatsapp-button i,
.internet-button i,
.route-button i {
    font-size: 1.15rem;
    display: inline-flex;
}

.phone-button span,
.whatsapp-button span,
.internet-button span,
.route-button span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.9rem !important;
}

.phone-button:hover,
.whatsapp-button:hover,
.internet-button:hover,
.route-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: #ffffff !important;
}

.phone-button--full,
.whatsapp-button--full,
.internet-button--full {
    flex: 1 1 100%;
}

.phone-button--half,
.whatsapp-button--half,
.internet-button--half {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 180px;
}

.internet-button--website:hover,
.internet-button--website:focus,
.internet-button--website:active {
    color: #ffffff !important;
}

.internet-button--email:hover,
.internet-button--email:focus,
.internet-button--email:active {
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    .local-title-card {
        gap: 0.6rem;
        padding: 0.7rem 0.8rem;
    }

    .local-title-share {
        min-width: 46px;
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 12px;
    }

    .local-title-share span {
        display: none;
    }

    .social-links {
        gap: 0.65rem !important;
    }

    .social-link {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        font-size: 1.15rem !important;
    }

    .contact-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.55rem !important;
        align-items: stretch !important;
    }

    .phone-button,
    .phone-button--half,
    .phone-button--full,
    .whatsapp-button,
    .whatsapp-button--half,
    .whatsapp-button--full,
    .internet-button,
    .internet-button--half,
    .internet-button--full {
        flex: 1 1 50% !important;
        width: 50% !important;
        min-width: 0 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.7rem 0.6rem !important;
        font-size: 0.75rem !important;
        min-height: 44px !important;
    }

    .route-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.55rem !important;
    }

    .route-button {
        width: 100% !important;
        flex: 1 1 100% !important;
        display: inline-flex !important;
        min-width: 0 !important;
        padding: 0.7rem 0.6rem !important;
        font-size: 0.75rem !important;
        min-height: 44px !important;
    }

    .phone-button span,
    .whatsapp-button span,
    .internet-button span,
    .route-button span {
        white-space: nowrap !important;
        font-size: 0.8rem !important;
    }
}

@media (min-width: 768px) {
    .section-pad {
        padding: 1rem 1rem;
    }

    .topbar {
        border-radius: 0 0 14px 14px;
    }

    .subcat-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .rail-card {
        min-width: 390px;
        width: 390px;
        max-width: 390px;
    }

    .detail-hero img { height: 500px; }
    .local-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .subcat-grid {
        grid-template-columns: repeat(6, minmax(120px, 150px));
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .rail-card {
        min-width: 250px;
        width: 250px;
        max-width: 250px;
    }

    .rail-card img {
        height: 165px;
    }
}

/* Selo azul de estabelecimento verificado (ao lado do nome do local). */
.selo-verificado {
    position: relative;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 1.15em;
    height: 1.15em;
    margin-left: 0.35em;
    vertical-align: -0.12em;
    font-size: 1em;
    line-height: 1;
}

.selo-verificado .fa-certificate {
    color: #1d9bf0;
    font-size: 1.15em;
}

.selo-verificado .fa-check {
    position: absolute;
    color: #fff;
    font-size: 0.52em;
}
