:root {
    --primary-color: #6C5CE7;
    --primary-hover: #5A4BCC;
    --secondary-color: #00CEC9;
    --dark-bg: #1E272E;
    --light-bg: #F5F6FA;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --manna-gold: #FDCB6E;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 2rem;
}

/* Premium Buttons */
.btn-primary, .btn-primary-small {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1E272E;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Interactive Map Container */
.hero-map-wrapper {
    position: relative;
    height: 80vh;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

#leaflet-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Floating Search Bar over Map */
.floating-search {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    border-radius: 50px;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
}

/* Custom Map Markers */
.custom-map-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-pin {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(108,92,231,0.4);
}

.marker-price {
    margin-top: 4px;
    background: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.marker-price span {
    color: var(--primary-color);
}

/* Custom Leaflet Popup */
.leaflet-popup-content-wrapper {
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.map-popup-card {
    text-align: center;
    padding: 5px;
}

.map-popup-card h5 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.map-popup-card .category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.map-popup-card .manna {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 800;
}
.map-popup-card .manna span {
    color: var(--primary-color);
}

/* Cards */
.listing-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Nav */
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
}
.nav-link:hover {
    color: var(--primary-color);
}