/*
Theme Name: Portal Afonso Cláudio
Theme URI: https://afonsoclaudio.com.br
Description: Tema filho do Astra para o Portal de Informações de Afonso Cláudio
Author: GitHub Copilot
Template: astra
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portal-ac
*/

/* ==========================================================================
   VARIÁVEIS CSS
   ========================================================================== */
:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --accent-color: #f59e0b;
    --danger-color: #dc2626;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --border-focus: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: 150ms ease;
    --container-max: 1280px;
    --header-height: 70px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-area {
    flex: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.site-main {
    width: 100%;
}

/* Grid layouts */
.portal-noticias-grid,
.portal-classificados-grid,
.portal-imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .portal-noticias-grid,
    .portal-classificados-grid,
    .portal-imoveis-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-topbar {
    background: var(--primary-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.topbar-links a {
    color: rgba(255,255,255,0.8);
    margin-left: 1.5rem;
    text-decoration: none;
    transition: color var(--transition);
}

.topbar-links a:hover {
    color: white;
}

.main-header {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.2;
}

.site-description {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Navigation */
.main-navigation {
    background: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: var(--container-max);
    margin: 0 auto;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background: var(--primary-dark);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition);
}

.nav-menu .sub-menu a:hover {
    background: var(--bg-tertiary);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    
    .nav-menu.toggled {
        display: flex;
    }
    
    .nav-menu > li {
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu .sub-menu.toggled {
        display: block;
    }
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.archive-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   ARCHIVE FILTERS
   ========================================================================== */
.archive-filters {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.filter-select,
.filter-input,
.filter-search {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-select:focus,
.filter-input:focus,
.filter-search:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.filter-search {
    min-width: 250px;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.portal-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.portal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-tertiary);
}

.card-image.no-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.portal-card:hover .card-img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-venda { background: var(--danger-color); color: white; }
.badge-aluguel { background: var(--primary-color); color: white; }
.badge-temporada { background: var(--accent-color); color: var(--text-primary); }

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.375rem;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.feature-item .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.card-contact {
    margin-bottom: 1rem;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-contact:hover {
    background: var(--primary-color);
    color: white;
}

.btn-contact .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-read-more {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-read-more:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}

.btn-email {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-email:hover {
    background: var(--border-color);
}

/* ==========================================================================
   SINGLE POST LAYOUTS
   ========================================================================== */
.single-noticia,
.single-classificado,
.single-imovel {
    max-width: 800px;
}

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.entry-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cat-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all var(--transition);
}

.cat-link:hover {
    background: var(--primary-color);
    color: white;
}

.entry-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-venda { background: #fef2f2; color: var(--danger-color); }
.badge-aluguel { background: #eff6ff; color: var(--primary-color); }
.badge-temporada { background: #fffbeb; color: #92400e; }

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 1.75rem;
    }
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.entry-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.entry-price .price-value {
    font-size: 1.75rem;
}

.entry-condition {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.condition-label {
    color: var(--text-light);
    font-weight: 500;
}

.condition-value {
    color: var(--text-primary);
    font-weight: 600;
}

.entry-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.375rem; }

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--primary-dark);
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tags-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.entry-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all var(--transition);
}

.entry-tags a:hover {
    background: var(--primary-color);
    color: white;
}

.entry-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
}

.share-btn.facebook:hover { background: #1877f2; }
.share-btn.twitter:hover { background: #1da1f2; }
.share-btn.whatsapp:hover { background: #25D366; }
.share-btn.email:hover { background: var(--primary-color); }

.share-btn .dashicons {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================================================
   IMOVEL SPECIFIC
   ========================================================================== */
.entry-gallery {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-main {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    overflow-x: auto;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
}

.imovel-features {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.imovel-features h3 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.feature-item .feature-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.feature-item .feature-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.feature-tags {
    grid-column: 1 / -1;
}

.feature-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.imovel-location {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.imovel-location h3 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.location-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.location-tag {
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background var(--transition);
}

.location-tag:hover {
    background: var(--primary-dark);
    color: white;
}

.imovel-location address {
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.6;
}

.entry-contact {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.entry-contact h3 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-item .dashicons {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   POST NAVIGATION
   ========================================================================== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1.5rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--primary-color);
    color: white;
}

.nav-previous .meta-nav,
.nav-next .meta-nav {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-previous span,
.nav-next span {
    display: block;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.comment-content {
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--primary-color);
    text-decoration: none.
}

.comment-form {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-submit input {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.form-submit input:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    padding-left: 2rem;
}

@media (max-width: 900px) {
    .sidebar {
        padding-left: 0;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
    }
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition).
}

.widget a:hover {
    color: var(--primary-color);
}

.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.widget_search .search-field {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.widget_search .search-submit {
    padding: 0.625rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
}

.widget_search .search-submit:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.footer-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.1);
}

.footer-widget a {
    color: rgba(255,255,255,0.7);
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers.current {
    cursor: default;
}

.page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.page-numbers.dots:hover {
    background: transparent;
    color: var(--text-primary);
}

/* ==========================================================================
   NO RESULTS
   ========================================================================== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results .page-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results .page-content p {
    color: var(--text-secondary);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.clearfix::after { content: ""; display: table; clear: both; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .content-area {
        padding: 1.5rem 1rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.5rem.
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .btn-whatsapp,
    .btn-email {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .archive-filters,
    .post-navigation,
    .comments-area,
    .entry-share,
    .entry-contact,
    .card-footer {
        display: none !important;
    }
    
    .content-area {
        max-width: none;
        padding: 0;
    }
    
    .single-noticia,
    .single-classificado,
    .single-imovel {
        max-width: none.
    }
    
    a {
        text-decoration: none;
        color: inherit;
    }
}