/**
 * Tríade Imóveis - Frontend Styles
 * Paleta de cores: #008ECE (Azul Tríade)
 */

/* Grid de Imóveis */
.triade-imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Card do Imóvel */
.triade-imovel-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.triade-imovel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Imagem do Card */
.triade-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.triade-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.triade-imovel-card:hover .triade-card-image img {
    transform: scale(1.05);
}

/* Conteúdo do Card */
.triade-card-content {
    padding: 20px;
}

.triade-card-price {
    font-size: 24px;
    font-weight: 700;
    color: #008ECE;
    margin-bottom: 10px;
}

.triade-card-title {
    font-size: 18px;
    margin: 10px 0;
    line-height: 1.4;
}

.triade-card-title a {
    color: #1D1D1B;
    text-decoration: none;
    transition: color 0.3s;
}

.triade-card-title a:hover {
    color: #008ECE;
}

/* Características */
.triade-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.triade-card-features span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Botão */
.triade-card-button {
    display: inline-block;
    padding: 10px 20px;
    background: #008ECE;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.triade-card-button:hover {
    background: #006BA6;
    transform: translateX(5px);
}

/* Responsivo */
@media (max-width: 768px) {
    .triade-imoveis-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Wrapper */
.triade-imoveis-wrapper {
    margin: 40px 0;
}

.triade-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 40px 0;
}

.triade-no-results p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* ========================================
   PAGINAÇÃO PROFISSIONAL
   ======================================== */

.triade-pagination {
    margin: 60px 0 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.triade-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: auto;
    max-width: fit-content;
}

.triade-pagination .page-numbers li {
    list-style: none;
    margin: 0;
}

.triade-pagination a,
.triade-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    text-align: center;
    background: transparent;
    color: #555;
    text-decoration: none;
    border: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.triade-pagination a:hover {
    background: #f0f8ff;
    color: #008ECE;
    transform: scale(1.1);
}

.triade-pagination .current {
    background: linear-gradient(135deg, #008ECE 0%, #0066a6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 142, 206, 0.4);
    transform: scale(1.05);
}

.triade-pagination .dots {
    background: transparent;
    cursor: default;
    color: #999;
    min-width: 30px;
}

.triade-pagination .dots:hover {
    background: transparent;
    transform: none;
}

.triade-pagination .prev,
.triade-pagination .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    padding: 0 18px;
    min-width: auto;
    border-radius: 25px;
    background: #f5f5f5;
    color: #333;
}

.triade-pagination .prev:hover,
.triade-pagination .next:hover {
    background: #008ECE;
    color: #ffffff;
    transform: translateX(0) scale(1.05);
}

/* Paginação WordPress nativa */
.pagination {
    margin: 60px 0 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: auto;
    max-width: fit-content;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    text-align: center;
    background: transparent;
    color: #555;
    text-decoration: none;
    border: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination a.page-numbers:hover {
    background: #f0f8ff;
    color: #008ECE;
    transform: scale(1.1);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #008ECE 0%, #0066a6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 142, 206, 0.4);
    transform: scale(1.05);
}

.pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
    color: #999;
    min-width: 30px;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    transform: none;
}

.pagination .prev,
.pagination .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    padding: 0 18px;
    min-width: auto;
    border-radius: 25px;
    background: #f5f5f5;
    color: #333;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #008ECE;
    color: #ffffff;
    transform: scale(1.05);
}

/* Responsivo para Paginação */
@media (max-width: 768px) {
    .triade-pagination .page-numbers,
    .pagination .nav-links {
        padding: 10px 15px;
        gap: 6px;
    }
    
    .triade-pagination a,
    .triade-pagination span,
    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 14px;
    }
    
    .triade-pagination .prev,
    .triade-pagination .next,
    .pagination .prev,
    .pagination .next {
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .triade-pagination .page-numbers,
    .pagination .nav-links {
        padding: 8px 12px;
        gap: 4px;
    }
    
    .triade-pagination a,
    .triade-pagination span,
    .pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* Rodapé Customizado - Fundo #fafafa */
.triade-custom-footer {
    background-color: #fafafa !important;
}

/* Archive Header */
.triade-archive-wrapper .page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #008ECE;
}

.triade-archive-wrapper .page-title {
    font-size: 32px;
    color: #1D1D1B;
    margin: 0 0 10px 0;
}

.triade-archive-wrapper .taxonomy-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .triade-archive-wrapper .page-title {
        font-size: 24px;
    }
}




/* ========================================
   PÁGINA SINGLE DO IMÓVEL
   ======================================== */

.triade-single-wrapper {
    padding: 40px 0;
}

.triade-single-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.triade-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.triade-breadcrumb a {
    color: #008ECE;
    text-decoration: none;
    transition: color 0.3s;
}

.triade-breadcrumb a:hover {
    color: #006BA6;
}

.triade-breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

.triade-breadcrumb .current {
    color: #333;
}

/* Cabeçalho */
.triade-single-header {
    margin-bottom: 40px;
}

.triade-header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.triade-single-title {
    font-size: 32px;
    color: #1D1D1B;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.triade-address {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.triade-address .icon {
    font-size: 18px;
}

/* Tags */
.triade-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.triade-meta-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.triade-meta-tags .tag.tipo {
    background: #e3f2fd;
    color: #1976d2;
}

.triade-meta-tags .tag.finalidade {
    background: #f3e5f5;
    color: #7b1fa2;
}

.triade-meta-tags .tag.codigo {
    background: #f5f5f5;
    color: #666;
}

/* Preços */
.triade-price-section {
    background: linear-gradient(135deg, #008ECE 0%, #0066a6 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 142, 206, 0.3);
}

.triade-price-main {
    margin-bottom: 20px;
}

.triade-price-main:last-of-type {
    margin-bottom: 15px;
}

.triade-price-main .label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.triade-price-main .price {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.triade-price-extra {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

.triade-price-extra .label {
    opacity: 0.9;
}

.triade-price-extra .value {
    font-weight: 600;
}

/* Galeria */
.triade-gallery-section {
    margin-bottom: 50px;
}

/* Carrossel Principal da Galeria */
.triade-gallery-swiper {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 20px;
}

.triade-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.triade-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Setas de navegação do carrossel principal */
.triade-gallery-swiper .swiper-button-next,
.triade-gallery-swiper .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(0, 142, 206, 0.9);
    border-radius: 50%;
    color: white;
}

.triade-gallery-swiper .swiper-button-next:after,
.triade-gallery-swiper .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

.triade-gallery-swiper .swiper-button-next:hover,
.triade-gallery-swiper .swiper-button-prev:hover {
    background: rgba(0, 107, 166, 1);
}

/* Paginação do carrossel principal */
.triade-gallery-swiper .swiper-pagination {
    bottom: 20px;
}

.triade-gallery-swiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
    width: 10px;
    height: 10px;
}

.triade-gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #008ECE;
}

/* Galeria de Miniaturas */
.triade-thumbnails-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.triade-thumbnail-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    border: 3px solid transparent;
}

.triade-thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #ddd;
}

.triade-thumbnail-item.active {
    border-color: #ddd;
    box-shadow: 0 4px 15px rgba(0, 142, 206, 0.3);
}

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

/* Modal Lightbox */
.triade-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.triade-lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.triade-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.triade-lightbox-close:hover {
    color: #008ECE;
}

/* Carrossel do Lightbox */
.triade-lightbox-swiper {
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
}

.triade-lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.triade-lightbox-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Setas de navegação do lightbox */
.triade-lightbox-swiper .swiper-button-next,
.triade-lightbox-swiper .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(0, 142, 206, 0.9);
    border-radius: 50%;
    color: white;
}

.triade-lightbox-swiper .swiper-button-next:after,
.triade-lightbox-swiper .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

.triade-lightbox-swiper .swiper-button-next:hover,
.triade-lightbox-swiper .swiper-button-prev:hover {
    background: rgba(0, 107, 166, 1);
}

/* Paginação do lightbox */
.triade-lightbox-swiper .swiper-pagination {
    bottom: 20px;
}

.triade-lightbox-swiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
    width: 12px;
    height: 12px;
}

.triade-lightbox-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #008ECE;
}

/* Características */
.triade-features-section {
    margin-bottom: 50px;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

.triade-features-section h2 {
    font-size: 24px;
    color: #1D1D1B;
    margin: 0 0 30px 0;
}

.triade-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-item .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.feature-item .label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.feature-item .value {
    font-size: 18px;
    font-weight: 700;
    color: #008ECE;
}

/* Descrição */
.triade-description-section {
    margin-bottom: 50px;
}

.triade-description-section h2 {
    font-size: 24px;
    color: #1D1D1B;
    margin: 0 0 20px 0;
}

.triade-description-content {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.triade-description-content p {
    margin-bottom: 15px;
}

/* Vídeo */
.triade-video-section {
    margin-bottom: 50px;
}

.triade-video-section h2 {
    font-size: 24px;
    color: #1D1D1B;
    margin: 0 0 20px 0;
}

.triade-video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.triade-video-wrapper iframe {
    width: 100%;
    height: 500px;
    display: block;
}

.triade-video-wrapper .video-link {
    display: block;
    padding: 60px 20px;
    background: #f8f9fa;
    text-align: center;
    font-size: 18px;
    color: #008ECE;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.triade-video-wrapper .video-link:hover {
    background: #008ECE;
    color: white;
}

/* Informações Adicionais */
.triade-additional-info {
    margin-bottom: 50px;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

.triade-additional-info h2 {
    font-size: 24px;
    color: #1D1D1B;
    margin: 0 0 25px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-item .label {
    font-weight: 600;
    color: #666;
}

.info-item .value {
    color: #1D1D1B;
}

/* Botões de Ação */
.triade-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.triade-action-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.triade-action-buttons .btn-whatsapp {
    background: #25D366;
    color: white;
    flex: 1;
    justify-content: center;
}

.triade-action-buttons .btn-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.triade-action-buttons .btn-back {
    background: #f5f5f5;
    color: #333;
}

.triade-action-buttons .btn-back:hover {
    background: #008ECE;
    color: white;
}

/* Responsivo */
@media (max-width: 768px) {
    .triade-header-top {
        grid-template-columns: 1fr;
    }
    
    .triade-price-section {
        min-width: auto;
    }
    
    .triade-single-title {
        font-size: 24px;
    }
    
    .triade-features-section,
    .triade-additional-info {
        padding: 25px 20px;
    }
    
    .triade-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .triade-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .triade-video-wrapper iframe {
        height: 300px;
    }
    
    .triade-action-buttons {
        flex-direction: column;
    }
    
    .triade-action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .triade-features-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   FILTRO DE BUSCA
   ======================================== */

.triade-search-filter-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.triade-search-filter {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.triade-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Botões Venda/Aluguel */
.triade-filter-finalidade {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.triade-finalidade-btn {
    flex: 1;
    max-width: 200px;
    cursor: pointer;
    margin: 0;
}

.triade-finalidade-btn input[type="radio"] {
    display: none;
}

.triade-finalidade-btn span {
    display: block;
    padding: 12px 30px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.triade-finalidade-btn:hover span {
    border-color: #ddd;
    color: #008ECE;
}

.triade-finalidade-btn.active span,
.triade-finalidade-btn input[type="radio"]:checked + span {
    background: #008ECE;
    border-color: #ddd;
    color: #fff;
}

/* Campos do filtro */
.triade-filter-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.triade-filter-select,
.triade-filter-search {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.triade-filter-select:focus,
.triade-filter-search:focus {
    outline: none;
    border-color: #ddd;
}

/* Botão Buscar */
.triade-filter-submit {
    padding: 15px 40px;
    background: #008ECE;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.triade-filter-submit:hover {
    background: #006BA6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 142, 206, 0.3);
}

/* Esconder título "Venda" ou "Aluguel" */
.page-header .page-title:empty {
    display: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .triade-search-filter {
        padding: 20px;
    }
    
    .triade-filter-fields {
        grid-template-columns: 1fr;
    }
    
    .triade-filter-finalidade {
        flex-direction: column;
    }
    
    .triade-finalidade-btn {
        max-width: 100%;
    }
}

/* ========================================
   RODAPÉ CUSTOMIZADO
   ======================================== */

.triade-custom-footer {
    background: #fff;
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 3px solid #008ECE;
}

.triade-custom-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.triade-custom-footer .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* Coluna Esquerda */
.footer-left-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-left-custom .logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 8px;
}

.footer-left-custom h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.footer-left-custom .slogan {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.footer-left-custom .creci {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Coluna Direita */
.footer-right-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.footer-contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-contact-btn .icon {
    font-size: 20px;
}

.footer-contact-btn.instagram {
    background: linear-gradient(45deg, #833AB4, #FD1D1D, #F77737);
}

.footer-contact-btn.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.3);
}

.footer-contact-btn.email {
    background: #DC3545;
}

.footer-contact-btn.email:hover {
    background: #C82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.footer-contact-btn.whatsapp {
    background: #25D366;
}

.footer-contact-btn.whatsapp:hover {
    background: #1EBE57;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Rodapé Inferior */
.footer-bottom-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.footer-bottom-custom p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.footer-bottom-custom .back-to-top {
    color: #008ECE;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom-custom .back-to-top:hover {
    color: #006BA6;
}

/* Responsivo */
@media (max-width: 768px) {
    .triade-custom-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-left-custom .logo {
        max-width: 180px;
    }
    
    .footer-bottom-custom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Centralizar grid de imóveis nas páginas de arquivo */
.triade-imoveis-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}





/*/* ========================================
   PAGINAÇÃO - ESTILO DA V14 (CORRETO)
   ======================================== */

.pagination {
    margin: 60px 0 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    text-align: center;
    background: transparent;
    color: #555;
    text-decoration: none;
    border: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination a.page-numbers:hover {
    background: #f0f8ff;
    color: #008ECE;
    transform: scale(1.1);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #008ECE 0%, #0066a6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 142, 206, 0.4);
    transform: scale(1.05);
}

.pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
    color: #999;
    min-width: 30px;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    transform: none;
}

.pagination .prev,
.pagination .next {
    font-weight: 700;
    font-size: 14px;
    padding: 0 18px;
    min-width: auto;
    border-radius: 25px;
    background: #f5f5f5;
    color: #333;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #008ECE;
    color: #ffffff;
    transform: scale(1.05);
}nt;
}


/* Ocultar apenas o link "Ir para o topo" do rodapé padrão do tema */
.post-type-archive-imovel footer.site-footer .back-to-top,
.post-type-archive-imovel footer.site-footer a[href="#"],
.tax-finalidade footer.site-footer .back-to-top,
.tax-finalidade footer.site-footer a[href="#"],
.tax-tipo_imovel footer.site-footer .back-to-top,
.tax-cidade footer.site-footer .back-to-top,
.tax-bairro footer.site-footer .back-to-top {
    display: none !important;
}

/* Ocultar texto "Ir para o topo" se estiver solto */
.post-type-archive-imovel footer.site-footer *:not(.triade-custom-footer *),
.tax-finalidade footer.site-footer *:not(.triade-custom-footer *) {
    font-size: 0 !important;
}

/* Garantir que o rodapé customizado apareça normalmente */
.triade-custom-footer,
.triade-custom-footer * {
    font-size: initial !important;
}



/* ========================================
   IMÓVEIS SIMILARES - SWIPER
   ======================================== */

.triade-similar-imoveis-section {
    margin-top: 60px;
    margin-bottom: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid #e9ecef;
}

.triade-similar-imoveis-section h2 {
    text-align: center;
    font-size: 28px;
    color: #1D1D1B;
    margin: 0 0 40px 0;
}

.triade-similar-swiper {
    padding: 0 50px 50px 50px;
    position: relative;
}

.triade-similar-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.triade-similar-swiper .triade-imovel-card {
    width: 100%;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Setas de navegação */
.triade-similar-swiper .swiper-button-next,
.triade-similar-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: #008ECE;
    border-radius: 50%;
    color: white;
}

.triade-similar-swiper .swiper-button-next:after,
.triade-similar-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.triade-similar-swiper .swiper-button-next:hover,
.triade-similar-swiper .swiper-button-prev:hover {
    background: #006BA6;
}

/* Paginação */
.triade-similar-swiper .swiper-pagination {
    bottom: 10px;
}

.triade-similar-swiper .swiper-pagination-bullet {
    background: #008ECE;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.triade-similar-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsivo */
@media (max-width: 768px) {
    .triade-similar-imoveis-section h2 {
        font-size: 24px;
    }
    
    .triade-similar-swiper {
        padding: 0 20px 50px 20px;
    }
    
    .triade-similar-swiper .swiper-button-next,
    .triade-similar-swiper .swiper-button-prev {
        display: none;
    }
}




/* ========================================
   OPÇÕES DE LAZER - NOVO ESTILO CARD
   ======================================== */

.triade-lazer-section {
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.triade-lazer-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.triade-lazer-section .feature-item {
    /* Ajuste para o estilo de card de lazer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
}

.triade-lazer-section .feature-item .icon {
    font-size: 30px; /* Ícone de checkmark maior */
    margin-bottom: 10px;
    color: #008ECE; /* Cor do ícone */
}

.triade-lazer-section .feature-item .label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600; /* Deixar o label mais destacado */
    text-align: center;
}



/* ========================================
   PREÇO A PARTIR DE
   ======================================== */

.triade-card-price .apartir {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #fff;
    margin-bottom: -5px;
    opacity: 0.8;
}

.triade-price-main .apartir {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #fff; /* Alterado para branco */
    margin-bottom: 5px;
}

/* ========================================
   MAPA DE LOCALIZAÇÃO
   ======================================== */

.triade-map-section {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.triade-map-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 15px;
    border-bottom: 2px solid #008ECE;
    padding-bottom: 5px;
    display: inline-block;
}

.triade-map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.triade-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.triade-map-address {
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
}

.triade-map-address .icon {
    margin-right: 5px;
}

/* ========================================
   BOTÃO DE ROTA NO MAPA
   ======================================== */

.triade-map-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #008ECE; /* Cor primária do seu tema */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-directions:hover {
    background-color: #006BA6;
    color: #fff;
    text-decoration: none;
}

.btn-directions .icon {
    margin-right: 8px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .triade-map-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-directions {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}



/* ========================================
   AJUSTE DE TAMANHO DOS CARDS DE CARACTERÍSTICAS E LAZER
   ======================================== */

.triade-features-section .feature-item,
.triade-lazer-section .feature-item {
    padding: 15px 10px; /* Diminuir o padding interno */
}

.triade-features-section .feature-item .label,
.triade-lazer-section .feature-item .label {
    font-size: 11px; /* Diminuir o tamanho da fonte do label */
}

.triade-features-section .feature-item .value,
.triade-lazer-section .feature-item .value {
    font-size: 14px; /* Diminuir o tamanho da fonte do valor */
}

.triade-features-section .feature-item .icon,
.triade-lazer-section .feature-item .icon {
    font-size: 24px; /* Diminuir o tamanho do ícone */
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .triade-features-section .feature-item,
    .triade-lazer-section .feature-item {
        padding: 10px 5px;
    }
}

/* ========================================
   AJUSTES DE LAYOUT SOLICITADOS PELO CLIENTE
   ======================================== */

/* Container Principal do Conteúdo do Imóvel: Transparência e Bordas Arredondadas */
.triade-single-wrapper {
    /* Transparência de 30% (0.7) */
    background-color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

/* Garante que o container interno não tenha fundo branco sólido, revelando a transparência. */
.triade-single-wrapper .container {
    background: none !important;
}

/* Força a cor do botão BUSCAR para o azul primário do plugin (#008ECE) */
.search-form button,
.search-form input[type="submit"] {
    background-color: #008ECE !important; /* Azul Tríade */
    color: #ffffff !important;
    border: none !important;
}


/* Ajustes para Cards de Características e Lazer (Menores e 2 Colunas no Mobile) */

.triade-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.feature-item {
    padding: 8px;
}

.feature-item .label {
    font-size: 11px;
}

.feature-item .value {
    font-size: 14px;
}

@media (max-width: 768px) {
    .triade-features-grid, .triade-lazer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}


/* ========================================
   AJUSTES SOLICITADOS: CARDS MENORES E LAYOUT MOBILE
   ======================================== */

/* Reduz o tamanho mínimo da coluna do grid para caber mais cards */
.triade-features-grid,
.triade-lazer-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px; /* Reduz o espaçamento entre os cards */
}

/* Reduz o padding interno dos cards */
.feature-item {
    padding: 8px;
}

/* Reduz o tamanho da fonte dos rótulos */
.feature-item .label {
    font-size: 11px;
}

/* Reduz o tamanho da fonte dos valores */
.feature-item .value {
    font-size: 14px;
}

/* Layout de 2 colunas no mobile (até 768px) */
@media (max-width: 768px) {
    .triade-features-grid,
    .triade-lazer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px; /* Espaçamento menor no mobile */
    }
    .feature-item {
        padding: 8px;
    }
}
