/*
Theme Name: Hanamkonda Bricks
Theme URI: https://example.com/hanamkonda-bricks
Author: Your Name
Author URI: https://example.com
Description: A premium real estate theme for Hanamkonda City, suitable for MagicBricks-like functionality.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hanamkondabricks
Tags: real-estate, custom-theme, responsive
*/

/* Paste the original CSS below */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #0f2557;
    /* Deep Navy */
    --primary-dark: #091a40;
    --accent: #f7b731;
    /* Golden Yellow */
    --accent-hover: #e5a720;
    --red-highlight: #eb3b5a;
    /* For 'New' or 'Urgent' tags */

    /* Neutrals */
    --bg-body: #f4f6f8;
    --surface: #ffffff;
    --text-main: #2d3436;
    --text-body: #636e72;
    --border-light: #dfe6e9;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 37, 87, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: #ffeaa7;
    color: #d35400;
}

.badge-featured {
    background: var(--primary);
    color: white;
}

/* --- Header --- */
.main-header {
    background: var(--surface);
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(15, 37, 87, 0.8), rgba(15, 37, 87, 0.6)), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 40px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Search Bar Component */
.search-widget {
    background: white;
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-light);
}

.search-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s;
}

.search-tab.active {
    background: var(--primary);
    color: white;
}

.search-inputs {
    display: flex;
    padding: 16px;
    gap: 16px;
}

.input-group {
    flex: 1;
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    display: flex;
    align-items: center;
}

.input-group select,
.input-group input {
    border: none;
    width: 100%;
    font-size: 16px;
    outline: none;
    color: var(--text-main);
    background: transparent;
}

.search-btn {
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 30px;
}

/* --- Sections --- */
.section-padding {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-body);
}

/* --- Card Grid --- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.property-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card-image {
    height: 220px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-tags {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
}

.card-price {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--surface);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-location {
    color: var(--text-body);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-features {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    color: var(--text-body);
    font-size: 14px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Localities --- */
.locality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.locality-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: 0.3s;
}

.locality-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.locality-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
}

.locality-stats {
    color: var(--text-body);
    font-size: 14px;
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-brand p {
    opacity: 0.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--accent);
}

.footer-col ul li {
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-col ul li:hover {
    opacity: 1;
    color: var(--accent);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .search-inputs {
        flex-direction: column;
    }

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