/*
Theme Name: ApnaGhar Real Estate
Theme URI: https://example.com/apnaghar
Author: ApnaGhar
Description: A complete Indian real-estate portal theme (like a mini 99acres / MagicBricks). Property listings with city & locality landing pages, search filters (budget, BHK, type, furnishing, possession), shortlist, EMI calculator, OpenStreetMap maps, enquiry forms, WhatsApp click-to-chat, front-end property submission for owners/agents/builders, and one-click demo data. Converted from the standalone PHP ApnaGhar app.
Version: 3.6.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apnaghar
Tags: real-estate, custom-menu, featured-images, translation-ready, two-columns
*/

/* ============ ApnaGhar custom styles (on top of Bootstrap 5) ============ */
:root {
  --brand: #14213f;        /* deep navy */
  --brand-dark: #0b1429;   /* midnight */
  --brand-soft: #f6f0e1;   /* champagne */
  --accent: #c9a24b;       /* antique gold */
  --accent-dark: #a9822e;
  --ink: #1b2236;
  --line: #e9e1cc;
}

body { background: #faf8f4; color: var(--ink); font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2, h3, .section-title, .navbar-brand { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }

.main-nav { background: var(--brand-dark); }
.main-nav .nav-link { color: rgba(255,255,255,.85); font-weight: 500; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: #fff; }
.navbar-brand { color: #fff !important; letter-spacing: .3px; }
.btn-accent { background: var(--accent); border: none; color: #1a1405; font-weight: 600; }
.btn-accent:hover { background: #d8b45f; color: #1a1405; }
.btn-brand { background: var(--brand); border: none; color: #fff; font-weight: 600; }
.btn-brand:hover { background: #22345e; color: #fff; }

/* ---------- Hero search ---------- */
.search-hero {
  position: relative; overflow: hidden; background: #0b1429;
  min-height: 82vh; display: flex; align-items: center;
  padding: 6rem 0 5rem;
}
.search-hero > .container { width: 100%; }
.search-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,14,32,.66) 0%, rgba(8,14,32,.42) 45%, rgba(8,14,32,.8) 100%); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; }
.search-hero h1, .search-hero p.lead { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.search-hero h1 { color: #fff; font-weight: 800; }
.search-hero p.lead { color: rgba(255,255,255,.85); }

/* ---------- Property card ---------- */
.prop-card { border: 0; border-radius: 12px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; background:#fff; }
.prop-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16,60,45,.14); }
.prop-img-wrap { display: block; position: relative; }
.prop-img-wrap img { width: 100%; height: 210px; object-fit: cover; display: block; background:#ece6d6; }
.prop-price { font-size: 1.18rem; font-weight: 800; color: var(--brand-dark); }
.prop-title { font-weight: 600; color: var(--ink); text-decoration: none; }
.prop-title:hover { color: var(--brand); }
.prop-facts { color: #4b5563; }
.featured-overlay { position: absolute; top: 10px; left: 10px; background: var(--accent); color:#3d2b00; font-size: .74rem; font-weight:700; padding: 3px 9px; border-radius: 5px; }
.sold-overlay { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.82); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 5px; letter-spacing: 1px; }

.badge-verified { background: var(--brand-soft); color: var(--brand); font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }

/* ---------- Wishlist heart ---------- */
.wishlist-btn {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: #6b7280; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .12s ease;
}
.wishlist-btn:hover { transform: scale(1.1); color: #dc2626; }
.wishlist-btn.active { color: #dc2626; }

/* ---------- City cards ---------- */
.city-card {
  display: block; text-decoration: none; color: #fff; border-radius: 12px;
  background: linear-gradient(135deg, #0b1429, #22345e);
  padding: 1.4rem 1.2rem; height: 100%; transition: transform .15s ease;
}
.city-card:hover { transform: translateY(-3px); color: #fff; }
.city-card .count { color: rgba(255,255,255,.75); font-size: .85rem; }

/* ---------- Detail page ---------- */
.detail-gallery-main { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; background:#ece6d6; }
.gallery-thumb { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .75; border: 2px solid transparent; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--brand); }
@media (max-width: 575.98px) { .detail-gallery-main { height: 250px; } }

.fact-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: .9rem 1rem; height: 100%; }
.fact-box .k { font-size: .74rem; text-transform: uppercase; color: #6b7280; letter-spacing: .4px; }
.fact-box .v { font-weight: 700; }

.amenity-chip { display: inline-block; background: #fff; border: 1px solid #e9e1cc; border-radius: 999px; padding: 5px 13px; font-size: .85rem; margin: 0 6px 8px 0; }
.amenity-chip i { color: var(--brand); margin-right: 5px; }

.sticky-price { position: sticky; top: 84px; }
@media (max-width: 991.98px) { .sticky-price { position: static; } }

.map-wrap { height: 340px; border-radius: 12px; overflow: hidden; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); text-decoration: none;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1429; color: #b9c1d6; }
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer a { color: #b9c1d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { background: #060b1a; color: #8b94ac; }

/* ---------- Admin (Master Panel) ---------- */
.admin-body { background: #f3efe6; }
.admin-nav { background: #0b1429; }
.admin-sidebar {
  background: #fff; border-radius: 12px; padding: .8rem;
  border: 1px solid #e5e7eb;
}
.admin-link {
  display: block; padding: .55rem .75rem; border-radius: 8px;
  color: #374151; text-decoration: none; font-weight: 500; white-space: nowrap;
}
.admin-link:hover { background: var(--brand-soft); }
.admin-link.active { background: var(--brand); color: #fff; }
.stat-card { border: 0; border-radius: 12px; }
.stat-card .num { font-size: 1.6rem; font-weight: 800; }

/* ---------- 3-Panel system: Owner Panel & User Panel ---------- */
.panel-body { background: #f3efe6; }
.panel-nav.owner-nav { background: #1b2b57; }   /* deep brand green  */
.panel-nav.user-nav  { background: #2b3a67; }   /* calm indigo navy  */
.panel-sidebar {
  background: #fff; border-radius: 12px; padding: .8rem;
  border: 1px solid #e5e7eb;
}
.owner-sidebar { border-top: 4px solid var(--brand); }
.user-sidebar  { border-top: 4px solid #2b3a67; }
.panel-link {
  display: block; padding: .55rem .75rem; border-radius: 8px;
  color: #374151; text-decoration: none; font-weight: 500; white-space: nowrap;
}
.owner-link:hover { background: var(--brand-soft); }
.owner-link.active { background: var(--brand); color: #fff; }
.user-link:hover  { background: #e8ebf7; }
.user-link.active { background: #2b3a67; color: #fff; }
.panel-identity { line-height: 1.3; }
.otp-box {
  font-size: 2rem; letter-spacing: .5rem; font-weight: 800;
  background: #fff8e6; border: 2px dashed #e0a800; border-radius: 12px;
  padding: .6rem 1rem; display: inline-block; color: #6b4e00;
}
.verify-step { border-left: 4px solid var(--brand); }

/* ---------- Misc ---------- */
.page-hero { background: var(--brand-soft); padding: 2.2rem 0; border-bottom: 1px solid #e9e1cc; }
.section-title { font-weight: 700; position: relative; padding-bottom: .55rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px; background: var(--accent); border-radius: 2px; }
.table > :not(caption) > * > * { vertical-align: middle; }
.locality-chip { display:inline-block; background:#fff; border:1px solid #e9e1cc; border-radius:999px; padding:6px 16px; margin:0 8px 10px 0; text-decoration:none; color:var(--ink); }
.locality-chip:hover { border-color: var(--brand); color: var(--brand); }


/* ============ WordPress additions ============ */
body.admin-bar .main-nav.sticky-top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .main-nav.sticky-top { top: 46px; } }
body.admin-bar .sticky-price { top: 116px; }
.main-nav .navbar-nav .menu-item { list-style: none; }
.main-nav .current-menu-item > .nav-link { color: #fff; }
.screen-reader-text { position:absolute!important; clip:rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { max-width: 100%; height: auto; }
.pagination .page-numbers { display:inline-block; padding:.45rem .85rem; margin:0 3px 6px 0; border:1px solid #e9e1cc; border-radius:8px; background:#fff; color:var(--ink); text-decoration:none; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--brand); border-color: var(--brand); color:#fff; }
.prop-img-wrap img.is-placeholder { object-fit: contain; padding: 2rem; }
.photo-edit { position: relative; display:inline-block; margin: 0 8px 8px 0; }
.photo-edit img { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; }
.photo-edit label { position:absolute; left:4px; bottom:4px; background:rgba(0,0,0,.7); color:#fff; font-size:.7rem; padding:2px 6px; border-radius:5px; }
#mapPick { height: 300px; border-radius: 12px; }
.panel-stat { border:0; border-radius:12px; }
.panel-stat .num { font-size:1.6rem; font-weight:800; }
.widget { margin-bottom: 1.5rem; }

/* ---------- Projects / builders ---------- */
.status-overlay { position:absolute; bottom:10px; left:10px; background:rgba(11,20,41,.88); color:#fff; font-size:.72rem; font-weight:600; padding:3px 9px; border-radius:5px; }
.stat-pill { background:#fff; border:1px solid #e9e1cc; border-radius:12px; padding:1rem; text-align:center; }
.stat-pill .n { font-size:1.7rem; font-weight:800; color:var(--brand-dark); }
.hero-tabs .nav-link { color:rgba(255,255,255,.85); border-radius:999px; padding:.3rem .9rem; font-weight:600; }
.hero-tabs .nav-link.active { background:#fff; color:var(--brand-dark); }
.accordion-button:not(.collapsed) { background:var(--brand-soft); color:var(--brand-dark); }

/* ============ v3.2 additions: hero tabs, builder strip, stats ============ */
.hero-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.hero-tabs .btn { border-radius: 999px; }
.hero-tabs .btn-check:checked + .btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.builder-strip { display: flex; flex-wrap: wrap; gap: .75rem; }
.builder-chip { display: flex; align-items: center; justify-content: center; min-width: 140px; height: 70px; padding: .5rem 1rem; background: #fff; border: 1px solid #e3ebe7; border-radius: 12px; color: var(--ink); text-decoration: none; transition: box-shadow .15s ease; }
.builder-chip:hover { box-shadow: 0 6px 18px rgba(16,60,45,.12); }
.builder-chip img { max-height: 48px; max-width: 120px; object-fit: contain; }
.stats-band { background: linear-gradient(135deg, #0b1429, #14213f); }
.stats-band .display-6 { color: var(--accent); font-family: 'Playfair Display', Georgia, serif; }


/* ============ v3.4 premium look (navy + gold), Chandigarh hero search ============ */
.main-nav { background: var(--brand-dark); border-bottom: 2px solid var(--accent); }
.navbar-brand i { color: var(--accent); }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--accent); }
.page-hero { background: linear-gradient(180deg, #f6f0e1, #faf6ea); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-weight: 700; }
.prop-card { box-shadow: 0 2px 12px rgba(20,33,63,.07); border: 1px solid #f0e9d6; }
.prop-card:hover { box-shadow: 0 14px 34px rgba(20,33,63,.16); }
.prop-price { color: var(--brand); font-family: 'Playfair Display', Georgia, serif; }
.city-card { border-bottom: 3px solid var(--accent); }
.badge-verified { background: #fbf3dc; color: var(--accent-dark); }
.featured-overlay { background: var(--accent); color: #1a1405; }
.amenity-chip i { color: var(--accent-dark); }
.site-footer { border-top: 3px solid var(--accent); }
.site-footer h5, .site-footer h6 { color: var(--accent); }
.builder-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 700; font-size: 1.4rem; flex: none; font-family: 'Playfair Display', Georgia, serif; }
.builder-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
a { color: var(--brand); } a:hover { color: var(--accent-dark); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Bootstrap "success" utilities -> premium palette (status badges stay green) */
.btn-success { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #1a1405; --bs-btn-hover-bg: #d8b45f; --bs-btn-hover-border-color: #d8b45f; --bs-btn-hover-color: #1a1405; --bs-btn-active-bg: #b98f36; --bs-btn-active-color: #1a1405; }
.btn-outline-success { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--brand); --bs-btn-active-color: #fff; }
.nav-link.text-success { color: var(--brand) !important; }
.nav-pills .nav-link.bg-success, .nav-pills .nav-link.active.bg-success { background-color: var(--brand) !important; color: #fff !important; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom: 2px solid var(--accent); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(201,162,75,.2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.btn-outline-secondary { --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); }

/* ---------- Hero search (tabs + one search bar) ---------- */
.search-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: .2px; }
.hero-search { text-align: center; }
.hero-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .35rem; }
.hero-tab { cursor: pointer; padding: .45rem 1.05rem; border-radius: 999px; color: rgba(255,255,255,.88); font-weight: 500; font-size: .95rem; border: 1px solid transparent; transition: all .15s ease; }
.hero-tab:hover { color: #fff; background: rgba(255,255,255,.12); }
.hero-tabs .btn-check:checked + .hero-tab { background: var(--accent); color: #1a1405; font-weight: 700; }
.hero-bar { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: .4rem .45rem .4rem 1.3rem; box-shadow: 0 14px 44px rgba(0,0,0,.35); }
.hero-bar-icon { color: #8a93a8; font-size: 1.15rem; }
.hero-bar-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .8rem .9rem; font-size: 1.02rem; color: var(--ink); }
.hero-bar-btn { border: 0; background: var(--brand); color: #fff; font-weight: 700; letter-spacing: 1.2px; border-radius: 999px; padding: .85rem 2.1rem; transition: background .15s ease; }
.hero-bar-btn:hover { background: var(--accent); color: #1a1405; }
.hero-trending { margin-top: 1.1rem; color: rgba(255,255,255,.8); font-size: .9rem; }
.hero-trending a { display: inline-block; margin: .15rem .2rem; padding: .22rem .85rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; text-decoration: none; background: rgba(255,255,255,.08); }
.hero-trending a:hover { background: var(--accent); border-color: var(--accent); color: #1a1405; }
@media (max-width: 575px) { .hero-bar { border-radius: 18px; flex-wrap: wrap; padding: .6rem; } .hero-bar-icon { display: none; } .hero-bar-input { flex: 1 1 100%; padding: .6rem .7rem; } .hero-bar-btn { width: 100%; } }

/* ---------- Notification bell ---------- */
.ag-bell-badge { position: absolute; top: 2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.ag-bell-menu { width: 340px; max-width: 92vw; max-height: 70vh; overflow-y: auto; }
.ag-notif { display: flex; gap: .7rem; padding: .7rem 1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid #f0ead9; font-size: .85rem; }
.ag-notif:hover { background: #faf6ea; color: var(--ink); }
.ag-notif.unread { background: #fbf4de; }
.ag-notif > i { color: var(--accent-dark); font-size: 1.15rem; margin-top: .1rem; }
