/* ═══════════════════════════════════════════════════
   PlotGuide — Earthy India Design System
   Palette: Warm parchment · Terracotta · Deep mahogany
   ═══════════════════════════════════════════════════ */

:root {
  --bg-a: #faf8f4;
  --bg-b: #f5ede1;
  --panel: #fffefb;
  --ink: #1c1008;
  --muted: #7a6658;
  --brand: #c85a22;
  --brand-strong: #9e3f14;
  --brand-soft: rgba(200,90,34,0.10);
  --navy: #2d1a0e;
  --navy-mid: #7c3a20;
  --border: rgba(120,70,40,0.13);
  --shadow-sm: 0 2px 8px rgba(90,40,20,0.07);
  --shadow-md: 0 6px 20px rgba(90,40,20,0.11);
  --shadow-lg: 0 12px 40px rgba(90,40,20,0.16);
  --radius: 14px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 100% 0%, rgba(200,90,34,0.08), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(160,100,55,0.06), transparent 30%),
    linear-gradient(150deg, var(--bg-a) 0%, var(--bg-b) 100%);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pg-fadein 0.35s ease backwards;
}

a {
  transition: all 0.2s ease;
}

/* ── Navbar ── */
.navbar {
  background: #1a0905 !important;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease !important;
}
.navbar.navbar-scrolled {
  background: rgba(24,9,5,0.82) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 4px 28px rgba(0,0,0,0.38) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
.navbar .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  opacity: 0.88;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.navbar .nav-link:hover {
  background: rgba(255,255,255,0.08);
  opacity: 1;
  color: #fff;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}
.navbar-brand span {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.navbar-logo {
  height: 26px;
  width: 34px;
  object-fit: contain;
  animation: logoPulse 3s ease-in-out infinite;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ── Section headings ── */
.pg-section {
  margin-bottom: 2rem;
}
.pg-section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
}
.pg-section-eyebrow::before {
  content: '●';
  font-size: 0.45rem;
  margin-right: 0.4rem;
  vertical-align: middle;
  opacity: 0.7;
  animation: orbPulse 2s ease-in-out infinite;
  display: inline-block;
}
.pg-section-title {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
@supports (-webkit-background-clip: text) {
  .pg-section-title {
    background: linear-gradient(120deg, #1c1008 0%, #7c3a20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}
.pg-section-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ── Hero ── */
.hero-panel {
  color: #fdf5ee;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #180805, #2d1208, #3d1a0a, #1f0d06) !important;
  background-size: 400% 400% !important;
  animation: heroShift 14s ease infinite;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(200,90,34,0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite !important;
}
.hero-panel::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 40%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(160,100,55,0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out 3s infinite !important;
}
.hero-headline {
  font-family: 'Playfair Display', 'Georgia', serif;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-weight: 800;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  color: #f5c8a0;
  background: linear-gradient(
    90deg,
    rgba(200,90,34,0.10) 0%,
    rgba(200,90,34,0.42) 40%,
    rgba(200,90,34,0.10) 80%
  ) !important;
  background-size: 200% auto !important;
  border: 1px solid rgba(200,90,34,0.38);
  animation: badgeShimmer 2.8s linear infinite;
}
.hero-stat-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  padding: 0.85rem 1.6rem;
  text-align: center;
  min-width: 150px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation-fill-mode: both;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}
.hero-stat-pill:nth-child(1) { animation: floatPill 3.4s ease-in-out infinite; }
.hero-stat-pill:nth-child(2) { animation: floatPill 3.4s ease-in-out 0.7s infinite; }
.hero-stat-pill:nth-child(3) { animation: floatPill 3.4s ease-in-out 1.4s infinite; }
.hero-stat-pill:hover {
  animation-play-state: paused;
  background: rgba(255,255,255,0.12);
  border-color: rgba(200,90,34,0.4);
  transform: translateY(-3px);
}
.hero-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-panel .form-select {
  background-color: rgba(255,255,255,0.95);
  color: var(--ink);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-panel .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200,90,34,0.22);
}

/* ── Metric / Stat cards ── */
.metric-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.card {
  background: var(--panel);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.card:not(.no-hover):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}

/* ── Insight Cards ── */
.insight-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand) !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.insight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,90,34,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.insight-header {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.insight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.38rem 0.25rem;
  border-bottom: 1px solid rgba(120,70,40,0.08);
  border-radius: 6px;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.insight-row:last-child { border-bottom: none; }
.insight-row:hover {
  background: rgba(200,90,34,0.05);
  padding-left: 0.5rem;
}
.insight-city {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.insight-val {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── Tool Cards ── */
.tool-card {
  background: var(--panel);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tool-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.07) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  pointer-events: none;
}
.tool-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 40px rgba(200,90,34,0.20),
              0 2px 8px rgba(200,90,34,0.10) !important;
  border-color: rgba(200,90,34,0.5) !important;
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover::after { animation: cardShimmer 0.65s ease; }
.tool-card:hover .tool-icon { animation: pg-bounce 0.4s ease; }
.tool-icon {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  display: block;
}
.tool-name {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.tool-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Confidence Index ── */
.confidence-city {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.confidence-track {
  height: 20px;
  background: rgba(120,70,40,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.confidence-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  width: 0% !important;
  transition: width 0.9s cubic-bezier(.4,0,.2,1) !important;
}
.pg-bars-animated .confidence-fill {
  width: var(--bar-target) !important;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
}

/* ── CTA Panel ── */
.cta-panel {
  background: linear-gradient(-45deg, #180805, #7c3a20, #3d1a0a, #2a1206) !important;
  background-size: 400% 400% !important;
  animation: ctaShift 9s ease infinite;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(200,90,34,0.18) 0%, transparent 60%);
  pointer-events: none;
  animation: orbPulse 5s ease-in-out 1s infinite !important;
}

/* ── Filter Bar ── */
.filter-bar {
  background: var(--panel);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

/* ── Tables ── */
.table > :not(caption) > * > * {
  border-bottom-color: rgba(120,70,40,0.08);
}
.table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(250,248,244,0.9);
  border-bottom-width: 1px;
}
.table tbody tr {
  transition: background 0.15s ease, transform 0.15s ease !important;
}
.table tbody tr:hover {
  background: rgba(200,90,34,0.04) !important;
  transform: translateX(3px);
}

/* ── Government Rates badges ── */
.gov-badge {
  display: inline-block;
  padding: 0.2em 0.55em;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.gov-badge-residential {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.gov-badge-commercial {
  background: rgba(200,90,34,0.12);
  color: var(--brand-strong);
}

/* ── Buttons ── */
.btn {
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease !important;
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}
.btn:active:not(:disabled) {
  transform: translateY(0px) scale(0.98);
  box-shadow: none;
}
.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-strong);
  --bs-btn-hover-border-color: var(--brand-strong);
  --bs-btn-focus-shadow-rgb: 200,90,34;
}
.btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-strong);
  --bs-btn-hover-border-color: var(--brand-strong);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-strong);
  --bs-btn-active-color: #fff;
}
.btn-outline-primary {
  --bs-btn-color: var(--navy-mid);
  --bs-btn-border-color: var(--navy-mid);
  --bs-btn-hover-bg: var(--navy-mid);
  --bs-btn-hover-color: #fff;
}
.btn-warning:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(200,90,34,0.38);
}

/* ── Compare Page ── */
.compare-form-card {
  background: var(--panel);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.compare-vs-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-mid);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.compare-city-card {
  background: var(--panel);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.compare-city-card:hover {
  box-shadow: var(--shadow-md);
}
.compare-city-header {
  background: linear-gradient(135deg, #180805, #2d1208);
  color: #fff;
  padding: 1.25rem 1.5rem;
  position: relative;
  transition: filter 0.2s ease;
}
.compare-city-card:hover .compare-city-header {
  filter: brightness(1.1);
}
.compare-city-header.winner {
  background: linear-gradient(135deg, #14532d, #166534);
}
.compare-city-name {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}
.compare-city-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}
.compare-winner-badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: #22c55e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}
.compare-metric {
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(120,70,40,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.compare-metric:last-child { border-bottom: none; }
.compare-metric-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.compare-metric-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.compare-metric-value.positive { color: #16a34a; }
.compare-metric-value.high-rate { color: var(--navy-mid); }
.compare-risk-pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.compare-bar-track {
  height: 6px;
  background: rgba(120,70,40,0.1);
  border-radius: 4px;
  margin-top: 0.3rem;
  overflow: hidden;
}
.compare-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0% !important;
  transition: width 0.9s cubic-bezier(.4,0,.2,1) !important;
}
.pg-bars-animated .compare-bar-fill {
  width: var(--bar-target) !important;
}

/* ── Property Listing Cards ── */
.property-card {
  background: var(--panel);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.property-card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5ede1, #ecddd0);
  flex-shrink: 0;
}
.property-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1) !important;
}
.property-card:hover .property-card-img-wrap img {
  transform: scale(1.06) !important;
}
.property-price-badge {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  background: rgba(24,8,5,0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  letter-spacing: -0.01em;
}
.property-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #faf8f4, #f5ede1);
  color: #9c8070;
}
.property-no-img-icon {
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
  opacity: 0.45;
}
.property-card-body {
  padding: 1.1rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.property-card-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.property-card-location {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.property-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.property-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(250,248,244,0.9);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
}
.property-risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
}
.property-card-cta {
  margin-top: auto;
}
.property-card-cta .btn {
  border-radius: 9px;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* ── Footer ── */
.pg-footer-wrap {
  background: #120805;
  color: #d4c4b8;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.pg-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.75rem 0 1.75rem;
}
@media (min-width: 768px) {
  .pg-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.pg-footer-brand {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}
.pg-footer-about {
  font-size: 0.83rem;
  color: #9c8878;
  margin-top: 0.75rem;
  line-height: 1.65;
}
.pg-footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pg-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pg-footer-list li {
  margin-bottom: 0.5rem;
}
.pg-footer-list a {
  color: #9c8878;
  text-decoration: none;
  font-size: 0.83rem;
  position: relative;
  padding-left: 0;
  transition: color 0.15s ease, padding-left 0.15s ease !important;
}
.pg-footer-list a:hover {
  color: #fff;
  padding-left: 6px;
}
.pg-footer-contact {
  font-size: 0.83rem;
  color: #9c8878;
  margin-bottom: 0.35rem;
}
.pg-footer-divider {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 1.5rem 0;
}
.pg-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.75rem;
}
.pg-footer-copy {
  font-size: 0.78rem;
  color: #6b5548;
}
.pg-footer-powered {
  font-size: 0.78rem;
  color: #6b5548;
}
.pg-footer-powered span {
  color: var(--brand);
  font-weight: 600;
}

/* ── Text utilities ── */
.text-secondary { color: var(--muted) !important; }

/* ── Form inputs ── */
.form-control,
.form-select {
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(200,90,34,0.18) !important;
}

/* ── Page progress bar ── */
#pg-topbar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--brand) 0%, #e8a060 50%, var(--brand) 100%);
  background-size: 200% auto;
  animation: badgeShimmer 1.8s linear infinite;
  box-shadow: 0 0 10px rgba(200,90,34,0.6);
  transition: width 0.15s ease;
}

/* ── Scroll-to-top button ── */
#scroll-top-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(200,90,34,0.45);
  opacity: 0;
  transform: translateY(14px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  z-index: 1050;
}
#scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#scroll-top-btn:hover {
  transform: translateY(-3px) scale(1.07) !important;
  box-shadow: 0 8px 24px rgba(200,90,34,0.55);
}

/* ── Internal link card arrow slide ── */
a.card .ms-auto,
a[class*="card"] .ms-auto {
  transition: transform 0.2s ease;
}
a.card:hover .ms-auto,
a[class*="card"]:hover .ms-auto {
  transform: translateX(5px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Hero */
  .hero-fullbleed { padding: 2.5rem 0 2rem; }
  .hero-headline { font-size: clamp(1.8rem, 7vw, 2.6rem) !important; line-height: 1.12 !important; }

  /* Hero floating stat pills */
  .hero-stat-pill { min-width: 110px; padding: 0.65rem 1rem; }
  .hero-stat-val { font-size: 1.2rem; }

  /* Stats strip — prevent overflow, flex-wrap into even columns */
  .stats-strip { gap: 0.5rem; }
  .stat-strip-pill { min-width: 0; flex: 1 1 calc(33% - 0.5rem); padding: 0.75rem 1rem; }
  .stat-strip-val { font-size: 1.3rem; }

  /* Heatmap — reduce height on mobile */
  #heatmap { height: 300px !important; }

  /* Section titles */
  .pg-section-title { font-size: clamp(1.5rem, 5vw, 2rem) !important; }

  /* Tables — prevent full-page horizontal scroll */
  .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { font-size: 0.8rem; }
  .table td, .table th { white-space: nowrap; }

  /* Compare */
  .compare-metric { padding: 0.75rem 1rem; }
  .compare-city-header { padding: 1rem 1.1rem; }

  /* Filter bar */
  .filter-bar { padding: 1rem 1.1rem; }

  /* Page hero sub-pages */
  .pg-page-hero { padding: 2rem 0 1.75rem; }

  /* Footer */
  .pg-footer-bottom { flex-direction: column; text-align: center; }

  /* Confidence index */
  .confidence-city { min-width: 100px; font-size: 0.82rem; }

  /* Ticker — shrink label so it doesn't eat too much track width */
  .pg-ticker-label { padding: 0 0.75rem; font-size: 0.55rem; }
  .pg-ticker-track { padding-left: 78px; }

  /* Scroll-to-top button */
  #scroll-top-btn { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; font-size: 1.1rem; }

  /* Hero city search form — stack select + button vertically */
  .hero-search-form { flex-direction: column !important; max-width: 100% !important; }
  .hero-search-form .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-fullbleed { padding: 2rem 0 1.5rem; }
  .hero-headline { font-size: clamp(1.6rem, 8vw, 2rem) !important; }
  .stat-strip-val { font-size: 1.1rem; }
  .stat-strip-label { font-size: 0.65rem; }
  .stat-strip-pill { padding: 0.6rem 0.75rem; }
  .btn-lg { padding-left: 1.25rem !important; padding-right: 1.25rem !important; font-size: 0.9rem; }
  .pg-section-title { font-size: clamp(1.3rem, 6vw, 1.8rem) !important; }
  .pg-ticker { height: 34px; }
  .pg-dark-card.p-4, .pg-dark-card.p-md-5 { padding: 1.25rem !important; }
}

/* ═══════════════════════════════════════════
   ANIMATION SYSTEM
   ═══════════════════════════════════════════ */

@keyframes pg-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.pg-loaded { animation: none; }
body.pg-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

@keyframes heroShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ctaShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%       { opacity: 0.24; transform: scale(1.1); }
}
@keyframes badgeShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes floatPill {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(200,90,34,0)); }
  50%       { filter: drop-shadow(0 0 6px rgba(200,90,34,0.55)); }
}
@keyframes pg-bounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-7px); }
  70%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
@keyframes cardShimmer {
  0%   { left: -100%; }
  100% { left:  200%; }
}

/* ── Scroll Reveal ── */
.pg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.pg-reveal.pg-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
.pg-reveal-group > * {
  transition-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}
.pg-reveal-group .pg-reveal:nth-child(1) { transition-delay: 0.00s; }
.pg-reveal-group .pg-reveal:nth-child(2) { transition-delay: 0.08s; }
.pg-reveal-group .pg-reveal:nth-child(3) { transition-delay: 0.16s; }
.pg-reveal-group .pg-reveal:nth-child(4) { transition-delay: 0.24s; }
.pg-reveal-group .pg-reveal:nth-child(5) { transition-delay: 0.32s; }
.pg-reveal-group .pg-reveal:nth-child(6) { transition-delay: 0.40s; }
.pg-reveal--left { transform: translateX(-28px); }
.pg-reveal--left.pg-reveal--visible { transform: translateX(0); }
.pg-reveal--scale { transform: translateY(16px) scale(0.97); }
.pg-reveal--scale.pg-reveal--visible { transform: translateY(0) scale(1); }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .pg-reveal { opacity: 1 !important; transform: none !important; }
  .hero-fullbleed, .cta-panel { animation: none !important; background-size: auto !important; }
  .hero-badge, .hero-fullbleed::before, .hero-fullbleed::after,
  .cta-panel::before, .pg-section-eyebrow::before,
  .navbar-logo, #pg-topbar { animation: none !important; }
  .hero-stat-pill { animation: none !important; }
  .tool-card::after, .card.border-0.shadow-sm::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM LAYER — Editorial Layout & India Identity
   ═══════════════════════════════════════════════════════════ */

/* ── Live Ticker Strip ── */
.pg-ticker {
  background: #130702;
  border-bottom: 1px solid rgba(200,90,34,0.28);
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}
.pg-ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  padding: 0 1rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  white-space: nowrap;
}
.pg-ticker-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  animation: orbPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.pg-ticker-track {
  padding-left: 90px;
  overflow: hidden;
  width: 100%;
}
.pg-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  animation: tickerScroll 55s linear infinite;
  white-space: nowrap;
}
.pg-ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.pg-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 0.72rem;
  border-right: 1px solid rgba(200,90,34,0.2);
}
.pg-ticker-city  { font-weight: 700; color: rgba(255,255,255,0.9); }
.pg-ticker-price { color: #f5c8a0; font-weight: 600; }
.pg-ticker-up    { color: #4ade80; font-weight: 700; }
.pg-ticker-down  { color: #f87171; font-weight: 700; }

/* ── Full-bleed Hero ── */
.hero-fullbleed {
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #180805, #2d1208, #3d1a0a, #1f0d06) !important;
  background-size: 400% 400% !important;
  animation: heroShift 14s ease infinite;
  color: #fdf5ee;
  padding: 4.5rem 0 4rem;
}
.hero-fullbleed::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 50%; height: 180%;
  background: radial-gradient(ellipse, rgba(200,90,34,0.22) 0%, transparent 65%);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}
.hero-fullbleed::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 35%; height: 140%;
  background: radial-gradient(ellipse, rgba(160,100,55,0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out 3s infinite;
}

/* ── Hero Split Grid ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 991px) {
  .hero-split { grid-template-columns: 1fr; }
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 5.5vw, 4rem) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08 !important;
}

/* ── Hero Live Data Panel (right column) ── */
.hero-data-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero-data-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-data-header::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: orbPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-data-row {
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}
.hero-data-row:last-child { border-bottom: none; }
.hero-data-row:hover { background: rgba(255,255,255,0.05); }
.hero-data-city {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}
.hero-data-zone {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
  margin-top: 0.05rem;
}
.hero-data-right { text-align: right; }
.hero-data-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f5c8a0;
  font-variant-numeric: tabular-nums;
}
.hero-data-growth {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4ade80;
}

/* ── Tool Cards — icon box, left-aligned ── */
.tool-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--brand-soft);
  border: 1px solid rgba(200,90,34,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tool-card:hover .tool-icon-box {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: scale(1.08) rotate(-3deg);
}
.tool-card { text-align: left !important; }
.tool-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tool-card-arrow {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.2s ease;
  opacity: 0.7;
}
.tool-card:hover .tool-card-arrow { gap: 0.6rem; opacity: 1; }

/* ── Section titles — editorial scale ── */
.pg-section-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  background: none !important;
  -webkit-text-fill-color: var(--ink) !important;
  color: var(--ink) !important;
}

/* ── Jali dot-grid pattern ── */
.jali-section {
  position: relative;
}
.jali-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200,90,34,0.12) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.jali-section > * { position: relative; z-index: 1; }

/* ── Dark mahogany card (inverted section) ── */
.pg-dark-card {
  background: #1a0905;
  color: #fdf5ee;
  border: 1px solid rgba(200,90,34,0.18) !important;
}
.pg-dark-card .pg-section-title {
  -webkit-text-fill-color: #fdf5ee !important;
  color: #fdf5ee !important;
}
.pg-dark-card .pg-section-eyebrow { color: #f5c8a0; }
.pg-dark-card .pg-section-desc { color: rgba(253,245,238,0.55); }
.pg-dark-card .insight-card {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.1) !important;
  border-left-color: var(--brand) !important;
  box-shadow: none !important;
}
.pg-dark-card .insight-card::after { display: none; }
.pg-dark-card .insight-city { color: rgba(255,255,255,0.9); }
.pg-dark-card .insight-row {
  border-bottom-color: rgba(255,255,255,0.07) !important;
}
.pg-dark-card .insight-row:hover { background: rgba(200,90,34,0.12); }
.pg-dark-card .insight-header { color: rgba(255,255,255,0.4); }

/* ── Hero stat pills (stats strip below hero) ── */
.stats-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  margin-top: -1px;
}
.stat-strip-pill {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 12px 12px;
  padding: 1rem 1.75rem;
  min-width: 160px;
  box-shadow: var(--shadow-sm);
}
.stat-strip-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  font-family: 'Playfair Display', Georgia, serif;
}
.stat-strip-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ── Page Hero (sub-pages) ── */
.pg-page-hero {
  background: linear-gradient(-45deg, #180805, #2d1208, #3d1a0a, #1f0d06) !important;
  background-size: 400% 400% !important;
  animation: heroShift 14s ease infinite;
  color: #fdf5ee;
  padding: 2.75rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.pg-page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 50%; height: 180%;
  background: radial-gradient(ellipse, rgba(200,90,34,0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}
.pg-page-hero > .container { position: relative; z-index: 1; }
.pg-page-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fdf5ee;
  margin-bottom: 0.5rem;
}
.pg-page-hero-desc {
  color: rgba(253,245,238,0.62);
  font-size: 0.95rem;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 0;
}
.pg-page-hero .hero-badge { margin-bottom: 0.9rem; display: inline-flex; }
.pg-page-hero .pg-page-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ── Razorpay modal z-index fix ── */
.razorpay-container { z-index: 2147483647 !important; }
