﻿/* assets/css/base.css — SareProperty | Phase 2 split */
/* ============================================================
   SareProperty Design System â€” Blue / Black / Grey
   Swiggy-style professional UI
   ============================================================ */
:root {
    /* Primary Brand Blue */
    --primary: #1A6FF4;
    --primary-dark: #1558C9;
    --primary-light: #EBF2FF;
    --accent: #3B82F6;

    /* Typography */
    --text-main: #111827;
    --text-sub: #6B7280;
    --text-muted: #9CA3AF;

    /* Backgrounds â€” Swiggy-style grey app */
    --bg-main: #FFFFFF;
    --bg-secondary: #F0F2F5;
    --bg-card: #FFFFFF;
    --bg-dark: #1C1C1E;

    /* Borders */
    --border: #D1D5DB;
    --border-strong: #D1D5DB;

    /* Radius */
    --card-radius: 16px;
    --input-radius: 12px;
    --pill-radius: 50px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 3px 8px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
 background: var(--bg-secondary);}

body {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    display: flex;
    justify-content: center;
 background: var(--bg-secondary);}

/* Mobile Application Container */
.app-container {
    width: 100%;
    margin: 0 auto;
    background-color: var(--bg-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header Section */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 12px 16px;
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.location-picker {
    cursor: pointer;
}

.location-top {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.25rem;
    font-weight: 800;
}

.location-top i {
    font-size: 1.2rem;
}

.location-bottom {
    margin-top: 2px;
}

.location-address {
    font-size: 0.85rem;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    display: block;
}

/* Brand Logo for Home Page */
.brand-logo {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.brand-bold {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.brand-light {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-sub);
}

/* Header Search Bar â€” pill-shaped Swiggy style */
.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--pill-radius);
    padding: 9px 16px;
    flex: 1;
    max-width: 400px;
    transition: border-color 0.2s, background 0.2s;
}

.header-search:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,111,244,0.10);
}

.header-search i {
    color: var(--text-muted);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: var(--text-main);
    width: 100%;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.user-profile {
    cursor: pointer;
}

.profile-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-content {
    padding: 20px;
    flex: 1;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
}

.large-profile {
    border-radius: 50%;
    margin-bottom: 10px;
}

.activity-links {
    list-style: none;
}

.activity-links li {
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.activity-links li:hover {
    color: var(--primary);
}

.activity-links li i {
    font-size: 1.2rem;
    color: var(--text-sub);
}

.activity-links .logout {
    color: var(--primary);
    margin-top: 20px;
    border: none;
}

.activity-links .logout i {
    color: var(--primary);
}

/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slider Section */
.hero-slider {
    padding: 16px 20px 0 20px;
}

.swiper {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Dots container sits BELOW the swiper box */
.hero-slider-wrap {
    padding: 0 20px;
}

.propertySwiper + .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 10px;
    text-align: center;
}

.slide-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* Pagination dots visible just below slider */
.propertySwiper .swiper-pagination {
    bottom: 8px;
}

.propertySwiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: all 0.3s;
}

.propertySwiper .swiper-pagination-bullet-active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

.slide-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.slide-overlay h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.slide-overlay p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    width: max-content;
    cursor: pointer;
}

/* Swiper navigation tweaks */
.desktop-only {
    display: none;
    /* Hide arrows by default on mobile (swipe is enough) */
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex;
    }

    .swiper-button-next,
    .swiper-button-prev {
        color: white;
        transform: scale(0.7);
    }
}

.swiper-pagination-bullet-active {
    background: white;
}

/* Categories Section */
.categories-section {
    padding: 10px 20px 20px 20px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 1.4rem;
    font-weight: 800;
}

.section-heading p {
    color: var(--text-sub);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Grid Layout â€” strict 2Ã—2 */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cat-card {
    position: relative;
    border-radius: 16px;
    padding: 18px;
    height: 140px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cat-text {
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.cat-card img {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 55%;
    max-height: 65%;
    object-fit: contain;
    z-index: 1;
}

/* Card Colors â€” refined blue/grey palette */
.card-purple {
    background: #EFF3FF;
    border: 1px solid #C7D2FE;
}

.card-pink {
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
}

.card-blue {
    background: #EBF5FF;
    border: 1px solid #BFDBFE;
}

.card-green {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
}

.card-gold {
    background: #F0F4FF;
    border: 1px solid #C7D2FE;
}

/* ============================================================