/* WP Local SEO Pro — Front-end styles for shortcodes on virtual pages.
   Uses CSS custom properties from the Raptus theme when present,
   with fallbacks so it works on any theme. */

:root {
    --wplsp-front-primary: var(--primary, #FF6B00);
    --wplsp-front-primary-soft: var(--primary-soft, #FFF4EB);
    --wplsp-front-text: var(--text, #1f2937);
    --wplsp-front-text-dim: var(--text-dim, #64748b);
    --wplsp-front-border: var(--border, #e5e7eb);
}

/* Nearby cities */
.wplsp-nearby {
    background: var(--wplsp-front-primary-soft);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 32px 0;
}
.wplsp-nearby h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--wplsp-front-primary);
}
.wplsp-nearby ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wplsp-nearby li a {
    background: #fff;
    border: 1px solid var(--wplsp-front-border);
    color: var(--wplsp-front-text);
    padding: 8px 14px;
    border-radius: 99px;
    text-decoration: none;
    font-size: 13px;
    transition: all .15s;
    display: inline-block;
}
.wplsp-nearby li a:hover {
    background: var(--wplsp-front-primary);
    color: #fff;
    border-color: var(--wplsp-front-primary);
}

/* Regions grid */
.wplsp-regions {
    margin: 32px 0;
}
.wplsp-regions h3 {
    font-size: 18px;
    margin-bottom: 14px;
}
.wplsp-regions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.wplsp-regions-list li {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
}
.wplsp-regions-list li.is-current {
    background: var(--wplsp-front-primary);
    color: #fff;
    font-weight: 600;
}
.wplsp-regions-list li a {
    color: var(--wplsp-front-text);
    text-decoration: none;
    display: block;
}
.wplsp-regions-list li a:hover {
    color: var(--wplsp-front-primary);
}

/* Sidebar links */
.wplsp-sidebar-links {
    background: #fff;
    border: 1px solid var(--wplsp-front-border);
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
}
.wplsp-sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--wplsp-front-primary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}
.wplsp-sidebar-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wplsp-sidebar-links li {
    border-bottom: 1px solid #f1f5f9;
}
.wplsp-sidebar-links li:last-child { border-bottom: 0; }
.wplsp-sidebar-links li a {
    display: block;
    padding: 10px 0;
    color: var(--wplsp-front-text);
    text-decoration: none;
    font-size: 13px;
    transition: color .15s;
}
.wplsp-sidebar-links li a:hover {
    color: var(--wplsp-front-primary);
}
.wplsp-sidebar-links li.is-active a {
    color: var(--wplsp-front-primary);
    font-weight: 600;
}

/* Map */
.wplsp-map {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Phone */
.wplsp-phone {
    display: inline-block;
    background: var(--wplsp-front-primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all .15s;
}
.wplsp-phone:hover {
    background: #E55A00;
    color: #fff;
    transform: translateY(-1px);
}

/* HTML sitemap */
.wplsp-html-sitemap {
    margin: 32px 0;
}
.wplsp-sitemap-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    margin: 24px 0 12px;
    color: var(--wplsp-front-primary);
    border-bottom: 2px solid var(--wplsp-front-primary-soft);
    padding-bottom: 8px;
}
.wplsp-html-sitemap ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.wplsp-html-sitemap li {
    padding: 4px 0;
    break-inside: avoid;
}
.wplsp-html-sitemap li a {
    color: var(--wplsp-front-text);
    text-decoration: none;
    font-size: 14px;
}
.wplsp-html-sitemap li a:hover {
    color: var(--wplsp-front-primary);
}

@media (max-width: 600px) {
    .wplsp-html-sitemap ul {
        column-count: 1 !important;
    }
}

/* ═════════════════════════════════════════════════════════════════════
   AUTO INTERLINKING — bloco no rodapé das páginas virtuais (v2.1.1)
   Listas em colunas: lê leve, rankeia forte, scaneia rápido.
   ═════════════════════════════════════════════════════════════════════ */
.wplsp-related {
    margin: 48px 0 24px;
    padding-top: 32px;
    border-top: 1px solid var(--wplsp-front-border);
}
.wplsp-related-block {
    margin-bottom: 36px;
}
.wplsp-related-block:last-child {
    margin-bottom: 0;
}
.wplsp-related-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--wplsp-front-text);
    margin: 0 0 6px;
    line-height: 1.3;
}
.wplsp-related-sub {
    color: var(--wplsp-front-text-dim);
    font-size: 14px;
    margin: 0 0 18px;
    line-height: 1.5;
}
.wplsp-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    column-count: 3;
    column-gap: 28px;
}
.wplsp-related-list li {
    break-inside: avoid;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
}
.wplsp-related-list li a {
    color: var(--wplsp-front-text);
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
    position: relative;
    padding-left: 16px;
    transition: color 0.15s ease, padding-left 0.15s ease;
}
.wplsp-related-list li a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--wplsp-front-primary);
    font-weight: 700;
    transition: transform 0.15s ease;
}
.wplsp-related-list li a:hover {
    color: var(--wplsp-front-primary);
    padding-left: 20px;
}
.wplsp-related-list li a:hover::before {
    transform: translateX(2px);
}
.wplsp-related-list li a strong {
    font-weight: 600;
    color: inherit;
}

/* Outros serviços (mesma cidade) — versão mais destacada, 2 colunas */
.wplsp-related-list-services {
    column-count: 2;
}
.wplsp-related-list-services li a {
    background: var(--wplsp-front-primary-soft);
    border-radius: 8px;
    padding: 12px 14px 12px 30px;
    margin-bottom: 4px;
}
.wplsp-related-list-services li a::before {
    left: 12px;
    top: 12px;
}
.wplsp-related-list-services li a:hover {
    background: var(--wplsp-front-primary);
    color: #fff;
    padding-left: 34px;
}
.wplsp-related-list-services li a:hover::before {
    color: #fff;
}
.wplsp-related-list-services li a:hover strong {
    color: #fff;
}

/* Responsive — telas médias */
@media (max-width: 900px) {
    .wplsp-related-list { column-count: 2; }
}
/* Mobile */
@media (max-width: 600px) {
    .wplsp-related-list,
    .wplsp-related-list-services {
        column-count: 1;
        column-gap: 0;
    }
    .wplsp-related-title { font-size: 19px; }
}

/* ═════════════════════════════════════════════════════════════════════
   TEMPLATE SINGLE PRÓPRIO — single-wplsp.php  (v2.2)
   Layout autossuficiente, independente do tema instalado.
   ═════════════════════════════════════════════════════════════════════ */

/* ── Reset dentro do container ───────────────────────────── */
.wplsp-page *,
.wplsp-page *::before,
.wplsp-page *::after {
    box-sizing: border-box;
}

/* ── Container centralizado ──────────────────────────────── */
.wplsp-container {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── HERO ────────────────────────────────────────────────── */
.wplsp-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 100px 0 52px; /* padding-top maior para compensar header fixo do tema */
}

.wplsp-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.wplsp-breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
}
.wplsp-breadcrumb a:hover { color: #fff; }

.wplsp-page-title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 24px;
    color: #fff;
    letter-spacing: -0.02em;
}

.wplsp-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.wplsp-btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--wplsp-front-primary, #FF6B00);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: background .15s, transform .15s;
}
.wplsp-btn-phone:hover {
    background: #e55a00;
    color: #fff;
    transform: translateY(-2px);
}

.wplsp-hero-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ── LAYOUT PRINCIPAL ────────────────────────────────────── */
.wplsp-main {
    padding: 56px 0 72px;
    background: #f8fafc;
}

.wplsp-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ── CONTEÚDO ─────────────────────────────────────────────── */
.wplsp-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px 44px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.wplsp-entry-content h1,
.wplsp-entry-content h2,
.wplsp-entry-content h3,
.wplsp-entry-content h4 {
    color: #1a1a2e;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.8em;
    margin-bottom: .5em;
}
.wplsp-entry-content h2 { font-size: 1.5em; }
.wplsp-entry-content h3 { font-size: 1.25em; }
.wplsp-entry-content p  { line-height: 1.75; color: #374151; margin-bottom: 1.2em; }
.wplsp-entry-content a  { color: var(--wplsp-front-primary, #FF6B00); }
.wplsp-entry-content a:hover { text-decoration: underline; }
.wplsp-entry-content ul,
.wplsp-entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.wplsp-entry-content li { line-height: 1.7; color: #374151; }
.wplsp-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}
.wplsp-entry-content blockquote {
    border-left: 4px solid var(--wplsp-front-primary, #FF6B00);
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--wplsp-front-primary-soft, #FFF4EB);
    border-radius: 0 10px 10px 0;
}
.wplsp-entry-content blockquote p { color: #374151; margin: 0; }

/* ── SIDEBAR AUTOMÁTICA ───────────────────────────────────── */
.wplsp-auto-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}

/* Card de info local */
.wplsp-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border-top: 4px solid var(--wplsp-front-primary, #FF6B00);
}
.wplsp-info-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    line-height: 1.3;
}
.wplsp-info-phone {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--wplsp-front-primary, #FF6B00);
    text-decoration: none;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.wplsp-info-phone:hover {
    text-decoration: underline;
}
.wplsp-info-address,
.wplsp-info-city {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* ── RESPONSIVO ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .wplsp-layout {
        grid-template-columns: 1fr;
    }
    .wplsp-auto-sidebar {
        position: static;
    }
    .wplsp-content {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .wplsp-hero {
        padding: 90px 0 36px; /* compensa header fixo no mobile */
    }
    .wplsp-page-title {
        font-size: 24px;
    }
    .wplsp-main {
        padding: 32px 0 48px;
    }
    .wplsp-content {
        padding: 20px 16px;
    }
    .wplsp-btn-phone {
        font-size: 14px;
        padding: 10px 16px;
    }
}
