/* ==========================================================================
   IndianPGs.com — Class Color Design System & Stylesheet
   Executive Palette: Royal Deep Navy, Luxury Amber Gold, Emerald Green, Ivory
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Class Color Tokens */
  --navy-darker: #285ff6;
  --navy-deep: #0a42ec;
  --navy-primary: #0f46ee;
  --navy-light: #2a385b;

  --gold-primary: #d97706;
  --gold-glow: #f59e0b;
  --gold-light: #fef3c7;
  --gold-accent: #b45309;

  --emerald-primary: #059669;
  --emerald-light: #d1fae5;
  --emerald-dark: #047857;

  --ruby-tag: #be123c;
  --ruby-light: #ffe4e6;

  --bg-main: #dbeafe;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;

  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;

  --border-color: #e2e8f0;
  --border-focus: #d97706;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(11, 19, 43, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(11, 19, 43, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(11, 19, 43, 0.15);
  --shadow-glow: 0 0 20px rgba(217, 119, 6, 0.35);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-deep);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Motifs & Accents ---------- */
.decorative-border {
  height: 4px;
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--gold-primary) 35%, var(--emerald-primary) 70%, var(--navy-deep) 100%);
  width: 100%;
}

.indian-motif-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  user-select: none;
}

.indian-motif-bar span {
  width: 14px;
  height: 18px;
  clip-path: polygon(50% 0%, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
}

.indian-motif-bar span:nth-child(3n+1) { background: var(--navy-deep); }
.indian-motif-bar span:nth-child(3n+2) { background: var(--gold-primary); }
.indian-motif-bar span:nth-child(3n) { background: var(--emerald-primary); }

/* ---------- Header & Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-primary));
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-glow);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

.logo-text h1 {
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  color: var(--navy-deep);
}

.logo-text h1 span {
  color: var(--gold-primary);
}

.logo-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Category Switcher (Inspired by function-halls.com) */
.category-switcher {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.25s ease;
}

.switch-btn.active {
  background: var(--navy-deep);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 19, 43, 0.25);
}

.switch-btn.shine-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
  color: #ffffff;
  animation: pulseGlow 2.5s infinite;
}

.switch-btn.shine-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 3s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  50% { box-shadow: 0 0 15px 4px rgba(217, 119, 6, 0.6); }
}

@keyframes shineSweep {
  0% { left: -60%; }
  35%, 100% { left: 130%; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-secondary-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-deep);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
}

.btn-secondary-link:hover {
  background: var(--bg-subtle);
  color: var(--gold-primary);
}

.btn-primary-action {
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.saved-counter-badge {
  background: var(--gold-glow);
  color: var(--navy-darker);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 4px;
}

/* ---------- Hero Section & Search Finder ---------- */
.hero-section {
  background: linear-gradient(165deg, #0b132b 0%, #152244 50%, #1e293b 100%);
  color: #ffffff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: var(--gold-glow);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #fef3c7, var(--gold-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Multi-Filter Search Finder Box */
.search-finder-box {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  color: var(--text-dark);
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.2);
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.finder-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 16px;
  align-items: flex-end;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.search-action-btn {
  width: min(100%, 420px);
  align-self: center;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-action-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-glow);
}

.reset-btn {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  padding: 12px 22px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  white-space: nowrap;
}

.reset-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Quick Filter Badges Row */
.quick-tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.quick-tag-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quick-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-chip:hover, .quick-chip.active {
  background: var(--navy-deep);
  color: #ffffff;
  border-color: var(--navy-deep);
}

/* ---------- City Explorer Bar (All Indian Cities) ---------- */
.city-explorer-section {
  padding: 36px 0 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

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

.section-title {
  font-size: 1.6rem;
  color: var(--navy-deep);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.city-pills-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) var(--bg-subtle);
}

.city-pills-scroll::-webkit-scrollbar {
  height: 5px;
}
.city-pills-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-deep);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.city-pill:hover, .city-pill.active {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-primary));
  color: #ffffff;
  border-color: var(--navy-deep);
  box-shadow: 0 4px 12px rgba(11,19,43,0.18);
}

.city-pill .city-count {
  font-size: 0.72rem;
  background: rgba(0,0,0,0.08);
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 700;
}

.city-pill.active .city-count {
  background: var(--gold-glow);
  color: var(--navy-darker);
}

/* ---------- Main Listings Grid Section ---------- */
.listings-section {
  padding: 40px 0 80px;
}

.results-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.results-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

/* PG Card Item */
.pg-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217, 119, 6, 0.4);
}

.pg-media-area {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--navy-darker);
}

.pg-media-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pg-card:hover .pg-media-area img {
  transform: scale(1.06);
}

.pg-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.badge-verified {
  background: var(--emerald-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-gender {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-gender.boys { background: #2563eb; color: #ffffff; }
.badge-gender.girls { background: #db2777; color: #ffffff; }
.badge-gender.coliving { background: #7c3aed; color: #ffffff; }

.bookmark-toggle-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  z-index: 2;
}

.bookmark-toggle-btn:hover, .bookmark-toggle-btn.saved {
  background: #ffffff;
  color: var(--ruby-tag);
  transform: scale(1.1);
}

.pg-content-area {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pg-location-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-name-heading {
  font-size: 1.2rem;
  color: var(--navy-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pg-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.rating-star-badge {
  background: var(--gold-light);
  color: var(--gold-accent);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.rating-reviews-count {
  color: var(--text-light);
}

.pg-amenities-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.amenity-chip {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-main);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.pg-price-bar {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.price-amount span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-view-details {
  background: var(--navy-deep);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-view-details:hover {
  background: var(--gold-primary);
  transform: translateY(-1px);
}

/* ---------- Feature Highlights / Trust Bar ---------- */
.trust-features-section {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-primary));
  color: #ffffff;
  padding: 60px 0;
  position: relative;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.trust-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.trust-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--gold-glow);
}

.trust-card h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- Modal Overlays ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 11, 25, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 10;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: var(--ruby-light);
  color: var(--ruby-tag);
}

.modal-body {
  padding: 30px;
}

.auth-modal-card {
  max-width: 460px;
}

.auth-heading {
  text-align: center;
  margin-bottom: 24px;
}

.auth-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-heading h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.auth-heading p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form-message {
  min-height: 20px;
  color: var(--ruby-tag);
  font-size: 0.85rem;
  text-align: center;
}

.auth-submit-btn {
  width: 100%;
}

.owner-properties-card {
  max-width: 680px;
}

.owner-properties-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.owner-properties-header h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.owner-properties-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.owner-add-btn {
  width: auto;
  flex: 0 0 auto;
}

.owner-properties-list {
  display: grid;
  gap: 12px;
}

.owner-property-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.owner-property-row h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.owner-property-row p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.owner-property-status {
  color: var(--emerald-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.owner-empty-state {
  color: var(--text-muted);
  padding: 24px 0;
  text-align: center;
}

/* Visitor Stats Modal */
.visit-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.visit-stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  text-align: center;
}

.visit-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ruby-tag, #b91c1c);
}

.visit-stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.visit-chart-title {
  font-size: 1rem;
  margin-bottom: 12px;
}

.visit-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.visit-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 6px;
}

.visit-bar {
  width: 100%;
  max-width: 22px;
  background: var(--ruby-tag, #b91c1c);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}

.visit-bar-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.visit-stats-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* PG Detail Modal Structure */
.modal-header-hero {
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.modal-header-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.room-types-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}

.room-types-table th, .room-types-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.room-types-table th {
  background: var(--bg-main);
  font-weight: 700;
  color: var(--navy-deep);
}

.contact-owner-box {
  background: var(--gold-light);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-top: 24px;
}

.whatsapp-btn {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

/* Footer Section */
footer {
  background: var(--navy-darker);
  color: #ffffff;
  padding: 60px 0 30px;
  border-top: 3px solid var(--gold-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--gold-glow);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .finder-grid { grid-template-columns: repeat(2, 1fr); }
  .finder-grid-secondary { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-container { flex-wrap: wrap; gap: 14px; }
  .category-switcher { order: 3; width: 100%; justify-content: center; }
  .finder-grid, .finder-grid-secondary { grid-template-columns: 1fr; }
  .pg-cards-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
