/* ===============================
   Property Detail Page Styles - Updated to Match React
   =============================== */

.property-detail-page {
    background: white;
    min-height: calc(100vh - 200px);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-orange);
}

.back-link i {
    font-size: 16px;
}

/* Property Gallery - LARGER VERSION */
.property-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.gallery-badges {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.badge-for-sale,
.badge-featured {
    padding: 8px 18px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 13px;
}

.badge-for-sale {
    background: var(--primary-orange);
    color: white;
}

.badge-featured {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: 1px solid #E5E7EB;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-prev {
    left: 24px;
}

.gallery-next {
    right: 24px;
}

.gallery-nav i {
    font-size: 26px;
    color: var(--text-dark);
}

.gallery-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
}

/* Property Location */
.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 13px;
}

.property-location i {
    color: var(--text-gray);
    font-size: 16px;
}

/* Facilities Grid - 4 COLUMNS */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.facility-card {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #F3F4F6;
    transition: all 0.3s;
}

.facility-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.facility-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.12));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.facility-icon i {
    font-size: 24px;
    color: var(--primary-orange);
}

.facility-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.facility-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Property Description */
.property-description {
    background: white;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.property-description p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 15px;
}

.property-description p:last-child {
    margin-bottom: 0;
}

/* Amenities */
.property-amenities {
    background: white;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amenity-item i {
    color: var(--primary-orange);
    font-size: 20px;
    flex-shrink: 0;
}

.amenity-item span {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
}

/* Contact Sidebar */
.contact-sidebar {
    position: sticky;
    top: 100px;
}

.property-price-section {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.price-label {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.property-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-orange);
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.form-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.property-contact-form .form-control {
    background: white;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.property-contact-form .form-control::placeholder {
    color: #9CA3AF;
}

.property-contact-form .form-control:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
    border-color: var(--primary-orange);
}

.property-contact-form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
}

.action-buttons .btn-outline-secondary {
    border: 1.5px solid #E5E7EB;
    color: var(--text-dark);
    background: white;
}

.action-buttons .btn-outline-secondary:hover {
    background: #F9FAFB;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Agent Card */
.agent-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.agent-initial {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-orange), #FF8B5A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.agent-info {
    flex: 1;
}

.agent-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 2px;
}

.agent-title {
    font-size: 14px;
    color: var(--text-gray);
}

/* Responsive - Property Detail */
@media (max-width: 992px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-sidebar {
        position: static;
        margin-top: 40px;
    }

    .gallery-image {
        height: 450px;
    }
}

@media (max-width: 576px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 350px;
    }

    .property-price {
        font-size: 28px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}