:root {
    --primary-gold: #d4af37;
    --primary-black: #1a1a1a;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0;
    /* Reduced even more */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Global variables or consistent max-width */
.container {
    max-width: 1200px;
    /* SITE WIDE MAX WIDTH */
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

/* Nav styles handled by Media Query above now */
/* Center Navigation Link Styles */
.nav-center ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-center a {
    font-weight: 500;
    color: var(--primary-black);
    font-size: 1.05rem;
}

.nav-center a:hover {
    color: var(--primary-gold);
}

.nav-right a {
    font-weight: 500;
    color: var(--primary-black);
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-area {
    background-color: var(--primary-gold);
    color: var(--primary-black) !important;
    /* Standard black text */
    padding: 0.5rem 1.5rem;
    /* Wider for pill shape */
    border-radius: 30px;
    /* Pill shape */
    font-weight: 500;
    /* Medium weight */
    text-transform: none;
    /* Normal case */
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}

.btn-area:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-black);
    padding: 0.5rem;
}

/* 
   DESKTOP HEADER LAYOUT 
   Using Grid for perfect centering of the middle element 
*/
@media (min-width: 769px) {
    .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        /* Remove flex properties */
        justify-content: unset;
    }

    /* Logo stays left */
    .logo {
        justify-self: start;
    }

    /* Wrapper becomes ghost container */
    .nav-wrapper {
        display: contents;
    }

    /* Nav Center goes to middle column */
    .nav-center {
        justify-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Nav Right goes to right column */
    .nav-right {
        justify-self: end;
        position: static;
        margin: 0;
    }

    .nav-right ul {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        white-space: nowrap;
        /* Ensure user info stays on one line */
    }
}

/* Main Content Area - Placeholder */
main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1444723121867-bddbc718606e?q=80&w=2500&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 2rem 10rem 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 0;
    /* Removed spacing to connect sections */
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Search Container */
.search-container {
    background: transparent;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    /* background: rgba(255,255,255,0.1); */
    padding: 10px;
    border-radius: 8px;
}

.search-input {
    flex: 2;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.search-select {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    background: white;
    cursor: pointer;
}

.search-btn {
    flex: 0.5;
    padding: 1rem 2rem;
    background-color: var(--primary-gold);
    color: var(--primary-black);
    border: none;
    border-radius: 30px;
    /* Pill shape */
    font-size: 1rem;
    font-weight: 500;
    /* Medium weight */
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
}

/* Floating Features Bar */
.features-bar {
    position: absolute;
    bottom: -4rem;
    /* Half height overlap */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: #e9ecef;
    /* Light greyish background */
    border-radius: 12px;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.feature-item {
    flex: 1;
    display: flex;
    gap: 1rem;
    /* border-right: 1px solid #ddd; */
    padding: 0 1rem;
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
    font-weight: 700;
}

.feature-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }

    .features-bar {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }

    .hero-section {
        margin-bottom: 0;
        padding-bottom: 2rem;
    }
}

/* Footer */
footer {
    background-color: #111;
    color: #ccc;
    padding-top: 1.5rem;
    /* Reduced slightly more */
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.footer-logo {
    height: 80px;
    /* Adjusted size */
    width: auto;
    margin-bottom: 1rem;
    margin-top: 0;
    /* filter: brightness(0) invert(1); REMOVED to show original logo colors */
    display: block;
}

.footer-about p {
    margin-bottom: 0.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-gold);
    /* padding-left: 5px; Removed to avoid jumping with icon */
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-contact a {
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary-gold);
}

.footer-contact li a {
    overflow-wrap: anywhere;
    /* Ensures email breaks if too long */
}

.icon {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-links li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-links a {
    display: inline-block;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.copyright {
    background-color: #000;
    padding: 1.5rem 0;
    /* text-align: center; REMOVED to allow flex space-between */
    font-size: 0.85rem;
    color: #888;
}

/* Explicitly force layout for copyright container */
.copyright .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Ensure it fills the 1200px max-width */
}

.copyright p {
    margin: 0;
    /* Remove vertical margins so they align perfectly */
}

.copyright a {
    color: var(--primary-gold);
    font-weight: 600;
}

/* Responsive */

/* Responsive */

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .container {
        /* Keep row for Logo + Hamburger */
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-wrapper {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
        background-color: white;
        border-top: 1px solid #eee;
        padding-top: 1rem;
        gap: 1rem;
        /* Reduced from 1.5rem */
    }

    .nav-wrapper.active {
        display: flex;
        /* Show when active */
    }

    .nav-center ul,
    .nav-right ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-right {
        margin-top: 0;
        margin-bottom: 1rem;
        position: static;
        /* Ensure static on mobile too */
    }

    .user-greeting {
        flex-direction: column;
        gap: 0.5rem;
        /* Reduced from 1rem */
    }

    .user-greeting .separator {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        margin: 0 auto 1.5rem auto;
    }

    .footer-links li,
    .social-links li,
    .footer-contact li {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto 1rem auto;
    }

    /* Copyright specific mobile adjustment */
    .copyright .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Admin Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    /* box-shadow handled by wrapper */
    border-radius: 8px;
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: white;
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 5px;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #333 !important;
    /* Standard dark gray/black */
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table th:last-child,
.data-table td:last-child {
    padding-right: 30px;
    /* Extra space for scrollbar */
}


/* Shared Admin Button Style */
.btn-admin {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 30px;
    /* Pill shape */
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    /* Fixed height for consistency */
    background-color: var(--primary-gold);
    color: var(--primary-black);
    font-weight: 500;
    line-height: normal;
    transition: background 0.3s, transform 0.2s;
}

.btn-admin:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
}

/* Featured Properties Section */
/* Featured Properties Section */
/* Featured Properties Section */
.featured-section {
    background-color: #f0f2f5;
    /* Light grey background similar to image */
    padding: 8rem 0 5rem 0;
    /* Increased top padding for overlap */
    margin-bottom: 3rem;
    overflow: hidden;
    /* Prevent horizontal scroll on body */
    position: relative;
    z-index: 1;
}

.feature-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.header-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-black);
    /* Or grey as per image */
}

/* Carousel Buttons */
.carousel-nav-buttons {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s;
    border-radius: 50%;
    /* Circular */
}

.carousel-btn:hover {
    background-color: var(--primary-gold);
}

/* Carousel Wrapper */
/* Carousel Wrapper Full Width Container */
/* Carousel Wrapper Full Width Container */
.carousel-full-width {
    width: 100%;
    max-width: 1200px;
    /* Match standard container */
    margin: 0 auto;
    /* Center it */
    padding: 0 2rem;
    /* Match container padding */
    display: flex;
    justify-content: center;
    /* Center the wrapper */
}

.carousel-wrapper {
    display: flex;
    gap: 2rem;
    /* 32px gap */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;

    /* WIDTH CALCULATION for 3 items:
       3 Cards * 350px = 1050px
       2 Gaps * 32px (2rem) = 64px
       Total visible width = 1114px
       Add some padding logic if needed, but max-width works best.
    */
    width: calc(350px * 3 + 4rem);
    max-width: 100%;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

/* Property Card */
/* Property Card */
.property-card {
    /* Fixed Dimensions as requested */
    width: 350px;
    min-width: 350px;
    /* Force rigid width */
    height: 500px;
    /* Adjusted height for balance */

    background: white;
    border-radius: 8px;
    /* Slightly softer corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Stronger visible shadow */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

/* ... (skip to card content) ... */

.card-content {
    padding: 1rem;
    /* Reduced padding from 1.5rem */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-code {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
    /* Tighter */
}

.property-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 2px;
    /* Tighter */
    white-space: nowrap;
    /* Force one line */
    overflow: hidden;
    /* Hide overflow */
    text-overflow: ellipsis;
    /* Add ... */
}

.property-address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    min-height: auto;
    /* Allow auto height now that we are squeezing */
}

/* Combined Details Row */
.property-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    /* Reduced margin */
    flex-wrap: nowrap;
    /* Force single line */
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    /* Even stronger on hover */
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

/* Property Card */
.property-card {
    min-width: 350px;
    background: white;
    border-radius: 4px;
    /* Slightly squared corners matching image */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
}

.card-image-container {
    position: relative;
    height: 300px;
    /* Increased height for better visual balance */
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    /* Prevent shrinking when content is long */
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    /* Force crop */
    object-position: center;
    /* Center focus */
    transition: transform 0.5s;
    display: block;
    /* Remove inline gap */
}

.property-card:hover .card-img {
    transform: scale(1.05);
}

.badge-destaque {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.card-content {
    padding: 1rem;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-code {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0;
    /* Removed margin */
}

.property-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 0;
    /* Removed margin */
    white-space: nowrap;
    /* Force one line */
    overflow: hidden;
    /* Hide overflow */
    text-overflow: ellipsis;
    /* Add ... */
}

.property-address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    /* Reduced margin */
    min-height: auto;
    /* Remove rigid height constraint */
}

/* Combined Details Row */
.property-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    /* Reduced margin */
    flex-wrap: nowrap;
    /* Force single line */
}

.property-price {
    font-size: 1.2rem;
    color: var(--primary-black);
    font-weight: 800;
    /* Bold */
}

.features-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.feat-icon {
    color: var(--primary-gold);
}

.btn-details {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-gold);
    /* Yellow/Gold button */
    color: var(--primary-black);
    /* Dark text on gold */
    padding: 12px 0;
    border-radius: 30px;
    /* Rounded pill shape */
    font-weight: 500;
    /* Not bold (was 700) */
    text-transform: none;
    /* "Ver detalhes" is normal case in image */
    transition: background 0.3s, transform 0.2s;
    margin-top: auto;
    /* Push to bottom */
}

.btn-details:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
}

/* Responsive Card */
@media (max-width: 768px) {
    .feature-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .carousel-nav-buttons {
        align-self: flex-end;
        /* Put buttons on right */
    }
}

/* Property Details Page Styles */
.page-details {
    background-color: #fff;
    padding-bottom: 2rem;
}

/* Gallery styles */
.gallery-section {
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    background: #000;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    /* For centering content if needed */
    flex-direction: column;
    justify-content: center;
}

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
    width: 100%;
    /* justify-content: center; // Remove this if it breaks sliding logic */
}

.gallery-item {
    min-width: 33.333%;
    /* Show 3 items by default */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    border-right: 1px solid white;
    /* Separator */
    box-sizing: border-box;
    /* Important for carousel sliding */
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.gallery-nav:hover {
    background: var(--primary-gold);
}

.gallery-nav.prev {
    left: 0;
}

.gallery-nav.next {
    right: 0;
}

.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

/* Property Grid Layout (imoveis.php) */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    gap: 2rem;
    padding: 2rem 0;
}

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

@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
        /* 1 column mobile */
    }
}

/* Advanced Filter Container */
.advanced-filter-container {
    background-color: #f8f9fa;
    /* Light grey background */
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    gap: 1rem;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 15rem;
    /* Ensure inputs don't get too small */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-left: 0.2rem;
}

.filter-input {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly rounded */
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.3s;
}

.filter-input:focus {
    border-color: var(--primary-gold);
}

.price-row {
    display: flex;
    gap: 0.5rem;
}

.btn-filter {
    background-color: var(--primary-gold);
    color: var(--primary-black);
    font-weight: 700;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    height: 46px;
    /* Match input height approx */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    /* Align with inputs */
    min-width: 120px;
}

.btn-filter:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(181, 151, 35, 0.3);
}

.clear-filters {
    color: #666;
    font-size: 0.9rem;
    text-decoration: underline;
    margin-top: 0.5rem;
    display: inline-block;
    cursor: pointer;
}

/* Details Content */
.details-content {
    padding-top: 2rem;
    color: var(--primary-black);
    display: block;
    /* Override global .container flex */
}

.details-tags {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #666;
    flex-wrap: wrap;
}

.tag-item strong {
    color: var(--primary-black);
}

.tag-item {
    color: var(--primary-gold);
    font-weight: 500;
}

.details-price {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #555;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-black);
}

.ref-code {
    font-size: 0.9rem;
    color: #999;
}

.details-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.details-address {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.details-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.feat-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: #444;
}

.feat-box svg {
    color: var(--primary-gold);
}

.details-description h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 5px;
}

.desc-text {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

/* WhatsApp Button */
.btn-whatsapp-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #25D366;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

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

@media (max-width: 768px) {
    .gallery-container {
        height: 40vh;
    }

    .gallery-item {
        min-width: 100%;
        /* 1 item on mobile */
    }

    .details-title {
        font-size: 1.8rem;
    }

    .btn-whatsapp-large {
        width: 100%;
    }
}