:root {
    --gold: #c5a059;
    --dark: #111111;
    --grey: #777777;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --card-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
/* Remove default blue link styling everywhere */
a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent; /* Fixes the grey box on mobile tap */
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--light-bg); 
    color: var(--dark); 
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR */
.navbar { 
    background: var(--white); 
    padding: 15px 0; 
    border-bottom: 1px solid #e0e0e0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--dark); text-decoration: none; }
.logo span { color: var(--gold); }
.tagline { font-size: 0.75rem; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; }

/* HERO SECTION */
.hero-minimal { padding: 80px 0 40px; text-align: left; }
.hero-minimal h1 { font-size: 3rem; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
.hero-minimal p { font-size: 1.2rem; color: var(--grey); max-width: 600px; }

/* PROJECT GRID */
.project-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 35px; 
    padding-bottom: 100px; 
}

/* PROJECT CARD */
.project-card { 
    background: var(--white); 
    border-radius: 24px; 
    overflow: hidden; 
    box-shadow: var(--card-shadow); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.project-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
}

.card-image { 
    height: 250px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}

/* Badges on Image */
.card-badges { position: absolute; top: 20px; left: 20px; display: flex; gap: 8px; }
.badge-tenure, .badge-type { 
    background: rgba(255,255,255,0.95); 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 0.7rem; 
    font-weight: 800; 
    color: var(--dark); 
    text-transform: uppercase;
}

.card-content { padding: 30px; flex-grow: 1; }
.area-tag { color: var(--gold); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 8px; display: block; }
.card-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; color: var(--dark); }

/* Card Footer */
.card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: 20px; 
    border-top: 1px solid #f0f0f0; 
}

.price-box .label { font-size: 0.7rem; color: var(--grey); text-transform: uppercase; display: block; }
.price-value { font-size: 1.2rem; font-weight: 800; color: var(--dark); }

.view-btn { 
    background: var(--dark); 
    color: var(--white); 
    padding: 12px 24px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: 0.3s; 
}
.view-btn:hover { background: var(--gold); }

/* Error/Empty States */
.error-msg, .empty-state { 
    padding: 40px; 
    background: #fff; 
    border-radius: 15px; 
    text-align: center; 
    grid-column: 1 / -1; 
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-minimal h1 { font-size: 2.2rem; }
    .project-grid { grid-template-columns: 1fr; }
}

/* DETAIL PAGE STYLES */
.detail-wrapper { 
    display: grid; 
    grid-template-columns: 1.5fr 0.5fr; 
    gap: 40px; 
    padding: 40px 20px; 
}

.detail-hero { 
    height: 450px; 
    background-size: cover; 
    background-position: center; 
    border-radius: 24px; 
    position: relative;
    margin-bottom: 30px;
}

.hero-labels { position: absolute; bottom: 20px; left: 20px; display: flex; gap: 10px; }
.hero-labels .badge { background: #fff; padding: 8px 15px; border-radius: 8px; font-weight: 800; font-size: 0.7rem; color: #111; }

.intro-section { margin-bottom: 40px; }
.area-label { color: var(--gold); font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.intro-section h1 { font-size: 3rem; font-weight: 800; margin: 10px 0; }
.tagline { font-style: italic; color: #666; font-size: 1.2rem; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.info-card { background: #fff; padding: 20px; border-radius: 15px; border: 1px solid #eee; text-align: center; }
.info-card h4 { font-size: 0.7rem; text-transform: uppercase; color: #999; margin-bottom: 5px; }
.info-card p { font-weight: 700; font-size: 1.1rem; }

.usp-list { margin: 20px 0 40px; }
.usp-item { background: #fff; padding: 20px; border-radius: 12px; margin-bottom: 10px; border-left: 4px solid var(--gold); font-weight: 500; }

.sidebar { position: relative; }
.sticky-card { 
    position: sticky; top: 100px; 
    background: #111; color: #fff; 
    padding: 35px; border-radius: 24px; 
}
.sticky-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.sticky-card p { opacity: 0.8; margin-bottom: 25px; font-size: 0.95rem; }

.agent-info { border-top: 1px solid #333; padding-top: 20px; margin-bottom: 25px; }
.agent-name { font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.agent-title { font-size: 0.8rem; opacity: 0.6; }

.whatsapp-cta { 
    display: block; background: #25d366; color: #fff; 
    text-align: center; padding: 18px; border-radius: 12px; 
    text-decoration: none; font-weight: 800; transition: 0.3s;
}
.whatsapp-cta:hover { transform: scale(1.02); background: #1eb954; }

/* Responsive Detail */
@media (max-width: 992px) {
    .detail-wrapper { grid-template-columns: 1fr; }
    .sidebar { order: -1; } /* Sidebar goes to top on mobile */
    .sticky-card { position: static; }
}

/* Mobile Filter Bar Styling */
.mobile-filter-bar {
    position: sticky;
    top: 60px; /* Adjust based on navbar height */
    background: #fff;
    padding: 15px 0;
    z-index: 99;
    border-bottom: 1px solid #eee;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-family: inherit;
    font-size: 16px; /* Prevents auto-zoom on iPhone */
}

.pill-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
}

.pill-container::-webkit-scrollbar { display: none; }

.pill {
    padding: 8px 18px;
    background: #f0f0f0;
    border: none;
    border-radius: 50px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
}

.pill.active { background: #c5a059; color: white; }

/* Conversion Bottom Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

.btn-whatsapp-full {
    display: block;
    background: #25d366;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

/* Card Improvements for Mobile */
.project-card { margin-bottom: 20px; }
.card-content h3 { font-size: 1.2rem; margin: 5px 0; }
.area-label { font-size: 0.75rem; color: #c5a059; font-weight: 700; text-transform: uppercase; }
.card-price { font-weight: 800; font-size: 1.1rem; }

/* Add bottom padding to main so bottom nav doesn't cover content */
main { padding-bottom: 100px; }

/* Modern Search Bar UI */
.mobile-filter-bar {
    position: sticky;
    top: 60px;
    background: #ffffff;
    padding: 15px 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.search-icon {
    position: absolute;
    left: 18px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

#areaSearch {
    width: 100%;
    height: 56px; /* Big enough for any thumb */
    padding: 0 20px 0 52px;
    background: #f1f1f1;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 16px; /* Critical: Stops iOS from zooming in */
    font-weight: 600;
    color: #111;
    transition: all 0.3s ease;
}

#areaSearch:focus {
    background: #fff;
    border-color: #c5a059;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
    outline: none;
}

/* Make pills look like high-end app buttons */
.pill {
    padding: 10px 22px;
    background: #f1f1f1;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    transition: 0.2s;
}

.pill.active {
    background: #111;
    color: #fff;
}