/* --- Base Variables: Pure Black & White --- */
:root {
    --primary-color: #000000; /* Pure Black */
    --accent-color: #000000; /* Pure Black for buttons/accents */
    --accent-hover: #333333; /* Dark Grey for button hover */
    --text-main: #222222; /* Soft Black for easier reading */
    --text-muted: #666666; /* Grey for secondary text */
    --bg-light: #f9fafb; /* Very light grey for background contrast */
    --white: #ffffff; /* Pure White */
    --border-color: #e5e7eb; /* Light grey borders */
}

/* Global Font: Montserrat */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Montserrat', sans-serif; 
}

/* Fixes side gap issue & forces 100% width */
html, body { 
    background-color: var(--bg-light); 
    color: var(--text-main); 
    line-height: 1.6; 
    font-weight: 400; /* Normal text weight */
    overflow-x: hidden; 
    width: 100%;
}

.container { 
    width: 100%;
    max-width: 1500px; 
    margin: 0 auto; 
    padding: 0 5%; 
}

/* --- Typography & Buttons --- */
h1, h2, h3 { color: var(--primary-color); font-weight: 700; } /* Bold headings */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 8px; font-size: 15px; font-weight: 600; /* Semi-bold buttons */
    cursor: pointer; transition: all 0.2s ease; border: none; text-decoration: none;
}
.btn-primary { background: var(--accent-color); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline { background: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }

/* --- Navigation --- */
.navbar { background: var(--white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; width: 100%; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 5%; max-width: 1500px; margin: 0 auto; width: 100%; }

/* Logo made strictly bold (900) and exact casing */
.logo { font-size: 22px; font-weight: 900; color: var(--primary-color); letter-spacing: -0.5px; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s;}
.nav-link:hover { color: var(--primary-color); }
.mobile-toggle { display: none; background: none; border: none; color: var(--primary-color); font-size: 24px; cursor: pointer; }

/* --- Hero & Search Section --- */
.hero { background: var(--primary-color); color: var(--white); padding: 70px 0 80px; text-align: center; position: relative; width: 100%; }
.hero h1 { color: var(--white); font-size: 40px; font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.hero p { font-size: 15px; color: #cccccc; margin-bottom: 24px; font-weight: 400; } /* Reduced margin pulls search box up */

.search-box {
    background: var(--white); 
    border-radius: 12px; 
    padding: 12px;
    width: 90%; 
    max-width: 1000px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: absolute; 
    bottom: -40px; 
    left: 50%; 
    transform: translateX(-50%);
    border: 1px solid var(--border-color);
}

.search-form { display: flex; align-items: center; width: 100%; }
.search-field { flex: 1; display: flex; flex-direction: column; padding: 0 16px; text-align: left; }
.search-field label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.5px;}
.search-field input, .search-field select { border: none; outline: none; font-size: 14px; font-weight: 600; color: var(--primary-color); background: transparent; width: 100%; cursor: pointer;}
.search-divider { width: 1px; height: 30px; background: var(--border-color); }
.search-btn { padding: 12px 28px; font-size: 14px; border-radius: 8px; font-weight: 700; }

/* --- Hero Categories --- */
.hero-categories { 
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; 
    margin-bottom: 24px; 
}
.category-pill { 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 8px 16px; border-radius: 50px; 
    font-size: 13px; font-weight: 600; color: var(--white); 
    cursor: pointer; transition: all 0.2s; 
}
.category-pill:hover, .category-pill.active { 
    background: var(--white); color: var(--primary-color); border-color: var(--white); 
}

/* --- PG Listings --- */
.listings-section { padding: 100px 0 80px; width: 100%; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 24px; letter-spacing: -0.5px; }

/* Changed auto-fit to auto-fill so single cards NEVER stretch horizontally! */
.pg-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 32px; 
    align-items: start; /* Prevents vertical stretching */
}
.pg-card { background: var(--white); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; width: 100%; }
.pg-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); transform: translateY(-4px); border-color: var(--primary-color); }
.pg-image { height: 220px; background-size: cover; background-position: center; position: relative; padding: 16px; width: 100%; }

.pg-badge { background: var(--primary-color); color: var(--white); padding: 4px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; }

.pg-details { padding: 24px; }
.pg-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pg-header h3 { font-size: 18px; font-weight: 700; line-height: 1.3; } /* Slightly smaller, bold title */
.pg-price { font-size: 20px; font-weight: 800; color: var(--primary-color); text-align: right; }
.pg-price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.pg-location { color: var(--text-muted); font-size: 14px; font-weight: 400; margin-bottom: 16px; } /* Normal text for location */

.pg-amenities { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.pg-amenities span { background: var(--white); border: 1px solid var(--border-color); padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--primary-color); text-transform: uppercase; border-radius: 4px;}

.pg-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 16px; }

.beds-available { font-size: 14px; font-weight: 700; color: var(--primary-color); }
.text-orange { color: var(--primary-color); font-weight: 700; }

/* --- Footer --- */
.footer { background: var(--primary-color); padding: 80px 0 40px; text-align: left; width: 100%; color: var(--white); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid #333333; color: #888888; font-size: 14px; font-weight: 400; text-align: center; }

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .search-box { 
        position: relative; 
        bottom: 0; 
        left: 0; 
        transform: none; 
        width: 100%; 
        margin-top: 40px; 
        box-shadow: none; 
        border: 1px solid var(--border-color); 
    }
    .search-form { flex-direction: column; gap: 16px; }
    .search-field { width: 100%; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
    .search-divider { display: none; }
    .search-btn { width: 100%; margin-top: 8px; }
    .hero { padding: 80px 0; }
    .listings-section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--white); 
        padding: 24px; 
        border-bottom: 1px solid var(--border-color); 
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); 
    }
    .nav-links.active { display: flex; }
    .nav-links a { width: 100%; text-align: center; font-weight: 600; }
    .hero h1 { font-size: 36px; }
}