/* ===================================
   Página de Detalhes do Imóvel
   =================================== */
.property-detail {
    padding: 40px 0 80px;
    background: var(--sand-white);
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--ocean-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.property-header {
    margin-bottom: 40px;
}

.property-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.property-location-detail {
    font-size: 1.2em;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-location-detail .icon {
    font-size: 1.3em;
}

.property-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* Image Slider */
.property-image-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.slider-main-image {
    width: 100%;
    height: 100%;
}

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

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2.5em;
    color: var(--ocean-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-nav:hover {
    background: var(--ocean-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.property-image-main {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.property-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-item {
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

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

.property-description,
.property-features-detail {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.property-description h2,
.property-features-detail h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--ocean-blue);
    margin-bottom: 20px;
}

.description-content {
    line-height: 1.8;
    color: var(--dark-text);
}

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

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--sand-white);
    border-radius: 12px;
}

.feature-item .icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    color: var(--dark-text);
    margin-bottom: 3px;
}

/* Particularidades */
.particularidades-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.particularidades-list li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--sand-white);
    border-radius: 10px;
    color: var(--dark-text);
}

.particularidades-list li:before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--success-green);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

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

.sidebar-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.price-card {
    text-align: center;
    border: 3px solid var(--ocean-blue);
}

.price-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--ocean-blue);
    margin-bottom: 10px;
}

.price-label {
    font-size: 1.1em;
    color: var(--light-text);
    margin-bottom: 25px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 3em;
    color: var(--ocean-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lightbox-nav:hover {
    background: var(--ocean-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    z-index: 10001;
}

/* Responsive */
@media (max-width: 1024px) {
    .property-content-grid {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .property-header h1 {
        font-size: 1.8em;
    }
    
    .property-image-slider,
    .property-image-main {
        height: 300px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 2em;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .property-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .gallery-item {
        height: 100px;
    }
    
    .price-value {
        font-size: 2em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .particularidades-list {
        grid-template-columns: 1fr;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2.5em;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .property-description,
    .property-features-detail {
        padding: 20px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .close-lightbox {
        right: 20px;
        font-size: 40px;
    }
    
    .slider-counter,
    .lightbox-counter {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}
/* ===================================
   Compartilhamento Social
   =================================== */
.property-share {
    margin-top: 30px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.whatsapp-share:hover {
    background: #20BA5A;
}

.facebook-share {
    background: #1877F2;
    color: white;
}

.facebook-share:hover {
    background: #165FC9;
}

.twitter-share {
    background: #1DA1F2;
    color: white;
}

.twitter-share:hover {
    background: #1A8CD8;
}

.email-share {
    background: #EA4335;
    color: white;
}

.email-share:hover {
    background: #D33426;
}

.link-share {
    background: #64748B;
    color: white;
}

.link-share:hover {
    background: #475569;
}

/* ===================================
   Seção Outros Imóveis
   =================================== */
.other-properties {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.other-properties .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.other-properties .section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.other-properties .section-header p {
    font-size: 1.2em;
    color: var(--light-text);
}

.other-properties .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================
   Estilos para Cards dos Outros Imóveis
   =================================== */
.other-properties .property-card {
    display: flex;
    flex-direction: column;
}

.other-properties .property-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.property-actions .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline {
    background: transparent;
    color: var(--ocean-blue);
    border: 2px solid var(--ocean-blue);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--ocean-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.other-properties .btn-primary {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.other-properties .btn-primary:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Pet-Friendly Box */
.pet-friendly-box {
    background: linear-gradient(135deg, #FFF4E6 0%, #FFE5CC 100%);
    border: 2px solid #FFB347;
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(255, 179, 71, 0.15);
    transition: all 0.3s ease;
}

.pet-friendly-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 179, 71, 0.25);
}

.pet-friendly-box .pet-icon {
    font-size: 3em;
    animation: wiggle 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.pet-friendly-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #D2691E;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pet-friendly-content p {
    color: #8B4513;
    font-size: 1.05em;
    line-height: 1.7;
    margin: 0;
}

.pet-friendly-content strong {
    color: #D2691E;
    font-weight: 600;
}

/* Localização / Map */
.property-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.property-map iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* Responsivo */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pet-friendly-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .pet-friendly-box .pet-icon {
        font-size: 2.5em;
    }
    
    .pet-friendly-content h3 {
        font-size: 1.3em;
        justify-content: center;
    }
    
    .other-properties {
        padding: 60px 0;
    }
    
    .other-properties .section-header h2 {
        font-size: 2em;
    }
    
    .other-properties .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-map iframe {
        height: 300px;
    }
}