/* ==========================================================
   ULTRA-LUXURY PROPERTY CARDS SECTION - PROPBUCKS THEME
   ========================================================== */

/* --- 1. Section & Container Layout --- */
.properties-section {
    background: #07140f; /* Signature Dark Green */
    padding: 100px 5%;
    position: relative;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
}

.properties-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* --- 2. Premium Section Heading --- */
.section-heading {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-heading p {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.section-heading p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d7a84f; /* Signature Gold */
    border-radius: 2px;
}

/* --- 3. The Structural Grid (The Fix for Stretching) --- */
.properties-grid {
    display: grid !important;
    /* This ensures cards are exactly 380px wide. If there's extra space, it centers them. */
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important;
    gap: 40px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-items: center; /* Forces the cards to not stretch beyond their max-width */
}

/* --- 4. The Luxury Card Architecture --- */
.property-card {
    position: relative;
    width: 100% !important;
    max-width: 400px !important; /* Prevents the "Banner" stretch effect */
    background: linear-gradient(145deg, rgba(20, 35, 28, 0.9), rgba(7, 20, 15, 0.95));
    border: 1px solid rgba(215, 168, 79, 0.2);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Entrance Animation (Triggered by JS delay) */
    opacity: 0;
    transform: translateY(40px);
    animation: luxuryFadeUp 0.8s forwards;
}

@keyframes luxuryFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Card Hover State */
.property-card:hover {
    transform: translateY(-10px);
    border-color: rgba(215, 168, 79, 0.8);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(215, 168, 79, 0.1);
}

/* Glass Shine Sweep Effect */
.property-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.7s ease-in-out;
    z-index: 5;
    pointer-events: none;
}
.property-card:hover::before { left: 150%; }

/* --- 5. Image Wrapper & Badge --- */
.property-image-wrapper {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card:hover .property-image-wrapper img {
    transform: scale(1.08); /* Slower, smoother zoom */
}

.image-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(7, 20, 15, 1), transparent);
    z-index: 1;
}

.category-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(7, 20, 15, 0.85);
    border: 1px solid #d7a84f;
    color: #d7a84f;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* --- 6. Content Section --- */
.property-content {
    padding: 25px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 3;
    background: rgba(7, 20, 15, 1); /* Solid dark green base */
}

.property-content h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.property-card:hover .property-content h3 {
    color: #d7a84f;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8c9c96;
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 500;
}

/* --- 7. Call to Action Buttons --- */
.property-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn-details, .btn-enquiry {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-details {
    background: transparent;
    color: #b7c8c0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: #d7a84f;
}

.btn-enquiry {
    background: linear-gradient(135deg, #d7a84f, #c29135);
    color: #07140f;
    border: none;
}

.btn-enquiry span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-enquiry:hover {
    box-shadow: 0 10px 25px rgba(215, 168, 79, 0.3);
    transform: translateY(-2px);
}

.btn-enquiry:hover span {
    transform: translateX(6px);
}

/* --- 8. Responsive Design --- */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .properties-section { padding: 60px 20px; }
    .properties-grid {
        grid-template-columns: 1fr !important; /* Stack vertically on phones */
    }
    .property-card { max-width: 100% !important; }
    .property-content h3 { font-size: 22px; }
    .property-actions { flex-direction: column; }
    .btn-details, .btn-enquiry { width: 100%; padding: 16px; }
}