/* Property Details Page Styles */

/* Property Title Section */
.property-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--secondary);
}

.property-address {
    color: var(--secondary-light);
    font-size: 1.1rem;
}

.property-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.property-id {
    font-size: 0.9rem;
    color: var(--secondary-light);
}

/* Property Gallery */
.main-image-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Property Carousel Styles */
.carousel-image {
    transition: transform 0.3s ease;
}

.carousel:hover .carousel-image {
    transform: scale(1.02);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-dark);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 15px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 3px;
    border: 2px solid white;
    opacity: 0.7;
}

.carousel-indicators button.active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    opacity: 1;
}

.image-counter {
    background-color: rgba(0, 0, 0, 0.7) !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.thumbnail-gallery .thumbnail {
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.8;
}

.thumbnail-gallery .thumbnail:hover,
.thumbnail-gallery .thumbnail.active-thumbnail {
    transform: scale(1.05);
    border-color: var(--primary-dark);
    opacity: 1;
}

/* Property Features */
.property-features {
    background-color: var(--background);
    border-radius: 10px;
    padding: 20px;
}

.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 5px 0;
    color: var(--secondary);
}

.feature-label {
    color: var(--secondary-light);
    font-size: 0.9rem;
}

/* Property Description */
.property-description {
    margin-bottom: 30px;
}

.property-description p {
    color: var(--secondary);
    line-height: 1.7;
}

/* Property Amenities */
.amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amenities-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--secondary);
}

/* Energy Class */
.energy-class-container {
    display: flex;
    align-items: center;
}

.energy-label {
    font-weight: 700;
    border-radius: 5px;
    margin-right: 10px;
}

/* Contact Form Card */
.contact-form-card, .agent-card, .similar-properties {
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-form-card h3, .agent-card h3, .similar-properties h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 10px;
}

.contact-form-card h3::after, .agent-card h3::after, .similar-properties h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-dark);
}

/* Agent Card */
.agent-card .agent-contacts {
    margin-top: 10px;
}

.agent-card .agent-contacts a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.agent-card .agent-contacts a:hover {
    color: var(--primary);
}

/* Similar Property Cards */
.similar-property {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.similar-property:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.similar-property h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.similar-property p {
    font-size: 0.9rem;
    color: var(--secondary-light);
    margin-bottom: 5px;
}

.similar-property a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.similar-property a:hover {
    color: var(--primary);
}

/* Property Share Section */
.property-share {
    background-color: var(--background);
}

/* Back to Results Link */
.back-link a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--primary-dark);
}

/* =============================================
   CTA Contact Card Styles
   ============================================= */
.contact-cta-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.contact-cta-card:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.contact-cta-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Share Card Styles */
.share-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.share-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}

/* =============================================
   CTA Buttons - Contact Agency
   ============================================= */

/* WhatsApp Primary CTA - HERO BUTTON */
.btn-whatsapp {
    background-color: #25D366;
    border: 2px solid #25D366;
    color: white;
    font-weight: 700;
    padding: 18px 32px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

/* Phone Button - Secondary CTA */
.contact-cta-card .btn-outline-secondary {
    border: 1px solid #d0d0d0 !important;
    color: var(--secondary-light) !important;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    gap: 8px;
    background-color: transparent !important;
    text-align: center;
}

.contact-cta-card .btn-outline-secondary:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.25);
}

/* Email Button - Tertiary CTA */
.btn-email {
    background-color: transparent !important;
    border: 1px solid #d0d0d0 !important;
    color: var(--secondary-light) !important;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    gap: 8px;
    text-align: center;
}

.btn-email:hover {
    background-color: var(--secondary-light) !important;
    border-color: var(--secondary-light) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.25);
}

/* =============================================
   Share Buttons - Outline Style
   ============================================= */

/* WhatsApp Share (outline) */
.share-card .btn-outline-success {
    border: 2px solid #25D366;
    color: #25D366;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    gap: 8px;
    background-color: transparent;
}

.share-card .btn-outline-success:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Email Share (outline) */
.share-card .btn-outline-secondary {
    border: 2px solid var(--secondary-light);
    color: var(--secondary-light);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    gap: 8px;
    background-color: transparent;
}

.share-card .btn-outline-secondary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.25);
}

/* Copy Link Button (outline) */
.share-card .btn-outline-dark {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    gap: 8px;
    background-color: transparent;
    cursor: pointer;
}

.share-card .btn-outline-dark:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.25);
}

/* Success state for copy button */
.share-card .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* Icons sizing */
.btn-whatsapp i,
.btn-email i,
.share-card .btn i {
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .property-title {
        font-size: 1.8rem;
    }
    
    .property-price {
        font-size: 1.6rem;
    }
    
    .main-image-container img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .property-title {
        font-size: 1.6rem;
    }

    .property-price {
        font-size: 1.4rem;
        margin-top: 15px;
        text-align: left;
    }

    .property-id {
        text-align: left;
    }

    .main-image-container img {
        max-height: 300px;
    }

    .thumbnail-gallery .thumbnail {
        height: 80px;
    }

    .feature-value {
        font-size: 1.3rem;
    }

    /* CTA Card mobile */
    .contact-cta-card {
        margin-top: 30px;
    }

    .contact-cta-card h3 {
        font-size: 1.2rem;
    }

    /* CTA Buttons mobile */
    .btn-whatsapp,
    .btn-email,
    .contact-cta-card .btn-outline-secondary {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Share buttons mobile */
    .share-card .btn-outline-success,
    .share-card .btn-outline-secondary,
    .share-card .btn-outline-dark {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* CTA Buttons per schermi piccoli - touch friendly */
    .btn-whatsapp,
    .btn-email,
    .contact-cta-card .btn-outline-secondary {
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 52px;
    }

    /* Share buttons per schermi piccoli */
    .share-card .btn-outline-success,
    .share-card .btn-outline-secondary,
    .share-card .btn-outline-dark {
        padding: 14px 20px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .share-card h4 {
        font-size: 1rem;
    }
}