/* ========================================
   PROPERTY DETAIL - MODERN & CLEAN DESIGN
   Inspirado em Zillow, Rightmove, Redfin
   ======================================== */

/* Container Principal */
.property-detail {
    padding: 0;
    background: #f8f9fa;
}

/* Breadcrumb Moderno */
.property-detail .breadcrumb {
    background: linear-gradient(135deg, #2b5876 0%, #1e3a4f 100%);
    padding: 10px 0;
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(43, 88, 118, 0.3);
}

.property-detail .breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.property-detail .breadcrumb a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.property-detail .breadcrumb a:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.property-detail .breadcrumb span {
    color: #fff;
    font-weight: 600;
}

/* Header do Imóvel */
.property-detail .property-header {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 0;
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.property-detail .property-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.property-detail .property-header h1 {
    font-size: 38px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
    line-height: 1.2;
}

.property-detail .property-location {
    font-size: 16px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Galeria Full-Width Moderna */
.property-gallery {
    margin-bottom: 0;
    background: #000;
}

.gallery-main {
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: #000;
}

.gallery-main img {
    width: 100%;
    height: 600px;
    object-fit: contain;
    display: block;
    background: #000;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 20px;
    background: #fff;
}

.gallery-thumbs .thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-thumbs .thumb:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.gallery-thumbs .thumb.active {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Layout de Conteúdo */
.property-detail .property-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.property-main {
    min-width: 0;
}

/* Descrição Moderna */
.property-description {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.property-description h2 {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f8f9fa;
}

.property-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
}

/* Características Modernas com Ícones */
.property-attributes {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.property-attributes h2 {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f8f9fa;
}

.attribute-category {
    margin-bottom: 32px;
}

.attribute-category:last-child {
    margin-bottom: 0;
}

.attribute-category h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attribute-category h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.attribute-item {
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attribute-item:hover {
    background: #fff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.attribute-name {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attribute-value {
    color: #212529;
    font-size: 16px;
    font-weight: 500;
}

/* Mapa de Localização */
.property-location-map {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-top: 24px;
    border: 1px solid #e9ecef;
}

.property-location-map h2 {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

#property-location-map {
    height: 400px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.map-note {
    margin-top: 16px;
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

/* Sidebar Sticky Moderna */
.property-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

/* Price Box Premium */
.price-box {
    background: linear-gradient(135deg, #2980b9 0%, #1e3a4f 100%);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(41, 128, 185, 0.35);
    margin-bottom: 20px;
    border: none;
    color: #fff;
}

.price-box h3 {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.price-main {
    font-size: 42px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-detail {
    font-size: 15px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.price-detail:last-child {
    border-bottom: none;
}

/* Info Box Moderna */
.info-box {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.info-box h3 {
    color: #212529;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 14px 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

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

.info-box li strong {
    color: #6c757d;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Share Box Premium */
.share-box {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.share-box h3 {
    color: #212529;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.share-description {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 20px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.share-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.share-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
}

.share-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c5ec4 100%);
}

.share-facebook:hover {
    background: linear-gradient(135deg, #0c5ec4 0%, #084a9a 100%);
}

.share-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.share-twitter:hover {
    background: linear-gradient(135deg, #0c85d0 0%, #0a6fb8 100%);
}

.share-email {
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
}

.share-email:hover {
    background: linear-gradient(135deg, #c5221f 0%, #a01b1b 100%);
}

.share-copy {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.share-copy:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.copy-message {
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

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

/* Contact Box Premium */
.contact-box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.contact-box h3 {
    color: #212529;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 16px;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.contact-box input:focus,
.contact-box textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-box textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botões Modernos */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    width: 100%;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

/* Mensagens de Formulário */
#formMessage {
    border-radius: 8px;
    font-size: 14px;
    padding: 12px 16px;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 1024px) {
    .property-detail .property-content {
        grid-template-columns: 1fr !important;
        gap: 24px;
        display: block;
    }
    
    .property-sidebar {
        position: static !important;
        width: 100% !important;
        margin-top: 24px;
    }
    
    .property-main {
        width: 100%;
        margin-bottom: 24px;
    }
    
    .gallery-main img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .property-detail .property-content {
        display: flex !important;
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .property-main {
        order: 1;
        width: 100% !important;
    }
    
    .property-sidebar {
        order: 2;
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        margin-top: 20px;
    }
    
    .property-header h1 {
        font-size: 28px;
    }
    
    .gallery-main img {
        height: 300px;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .gallery-thumbs .thumb {
        height: 70px;
    }
    
    .property-description,
    .property-attributes,
    .property-location-map {
        padding: 24px;
    }
    
    .attributes-grid {
        grid-template-columns: 1fr;
    }
    
    .price-main {
        font-size: 32px;
    }
    
    .price-box,
    .info-box,
    .share-box,
    .contact-box {
        padding: 20px;
    }
    
    .share-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .share-btn {
        height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
    }
    
    .property-header h1 {
        font-size: 24px;
    }
    
    .property-location {
        font-size: 14px;
    }
    
    .gallery-main img {
        height: 250px;
    }
    
    .price-main {
        font-size: 28px;
    }
}

/* Animações Suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-description,
.property-attributes,
.property-location-map,
.price-box,
.info-box,
.contact-box {
    animation: fadeIn 0.6s ease-out;
}

/* Sem Imagens */
.no-images {
    background: #f8f9fa;
    padding: 80px 40px;
    text-align: center;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin-bottom: 30px;
}

.no-images p {
    color: #6c757d;
    font-size: 16px;
}

/* Menu de Navegação Rápida Mobile */
.mobile-quick-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 9998;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .mobile-quick-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    /* Adicionar padding na seção para não sobrepor conteúdo */
    .property-detail {
        padding-bottom: 80px;
    }
}

.quick-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 80px;
}

.quick-nav-btn:active {
    transform: scale(0.95);
}

.quick-nav-btn i {
    font-size: 20px;
    color: #2980b9;
    transition: all 0.2s ease;
}

.quick-nav-btn span {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    line-height: 1.2;
}

.quick-nav-btn:hover i,
.quick-nav-btn:active i {
    color: #1e3a4f;
    transform: scale(1.1);
}

.quick-nav-btn:hover span,
.quick-nav-btn:active span {
    color: #212529;
}

/* Cores específicas por botão */
.quick-nav-btn:nth-child(1) i { color: #28a745; } /* Preço - Verde */
.quick-nav-btn:nth-child(2) i { color: #3498db; } /* Detalhes - Azul */
.quick-nav-btn:nth-child(3) i { color: #e74c3c; } /* Mapa - Vermelho */
.quick-nav-btn:nth-child(4) i { color: #9b59b6; } /* Compartilhar - Roxo */
.quick-nav-btn:nth-child(5) i { color: #25d366; } /* Contato WhatsApp - Verde WhatsApp */
