/*
 * RoomSarthi Home Page Styles
 * Extracted from index.html inline <style> block for HTTP caching & parallel delivery.
 */

/* ===== RS-HERO SECTION ===== */
.rs-hero {
  text-align: center;
  padding: 96px 24px 72px;
  background: #ffffff;
}
.rs-hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.15;
  margin: 0 auto 20px;
  max-width: 720px;
  letter-spacing: -0.5px;
}
.rs-brand-blue { color: #2563EB; }
.rs-hero-sub {
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.75;
  margin: 0 auto 40px;
  max-width: 520px;
}

/* ===== SEARCH BAR ===== */
.rs-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 780px;
  width: 100%;
  margin: 0 auto 24px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 5px 5px 5px 20px;
  height: 60px;
  box-sizing: border-box;
}
.rs-search:focus-within {
  border-color: #2563EB;
  box-shadow: 0 10px 35px rgba(37,99,235,0.18);
}
.rs-search-loc {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
.rs-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0F172A;
  padding: 0;
  box-shadow: none;
}
.rs-search-input::placeholder { color: #475569; }

/* ===== AUTOCOMPLETE ===== */
.rs-autocomplete-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.08);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1100;
  margin-top: 10px;
  padding: 8px 0;
  display: none;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  text-align: left;
}
html.dark .rs-autocomplete-container {
  background: #1C1F28;
  border-color: #2D3140;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.rs-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}
html.dark .rs-autocomplete-item { color: #CBD5E1; }
.rs-autocomplete-item:hover { background: #EFF6FF; color: #2563EB; }
html.dark .rs-autocomplete-item:hover { background: #252833; color: #6B9BFF; }
.rs-autocomplete-item svg { color: #94A3B8; flex-shrink: 0; transition: color 0.15s ease; }
.rs-autocomplete-item:hover svg { color: #2563EB; }
html.dark .rs-autocomplete-item:hover svg { color: #6B9BFF; }
.rs-autocomplete-item.active-item { background: #EFF6FF !important; color: #2563EB !important; }
html.dark .rs-autocomplete-item.active-item { background: #252833 !important; color: #6B9BFF !important; }
.rs-autocomplete-item.active-item svg { color: #2563EB !important; }
html.dark .rs-autocomplete-item.active-item svg { color: #6B9BFF !important; }

/* ===== AREA STATS PANEL ===== */
.rs-area-stats-container {
  display: none;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(226,232,240,0.8);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(37,99,235,0.08);
  padding: 16px 20px;
  margin: 16px auto 0;
  max-width: 780px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  animation: fadeInSlideUp 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}
html.dark .rs-area-stats-container {
  background: rgba(30,34,48,0.94);
  border-color: rgba(51,65,85,0.8);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.rs-area-stats-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 12px;
}
.rs-area-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.rs-area-stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(241,245,249,0.6);
  transition: background 0.2s, transform 0.2s;
}
html.dark .rs-area-stats-item { background: rgba(15,23,42,0.4); }
.rs-area-stats-item:hover { background: #EFF6FF; transform: translateY(-2px); }
html.dark .rs-area-stats-item:hover { background: rgba(37,99,235,0.15); }
.rs-area-stats-value { font-size: 1.1rem; font-weight: 800; color: var(--text); }
html.dark .rs-area-stats-value { color: #fff; }
.rs-area-stats-label { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }

/* ===== SEARCH BAR DIVIDER & TYPE ===== */
.rs-search-sep { flex-shrink: 0; width: 1px; height: 26px; background: #CBD5E1; margin: 0 14px; }
.rs-search-type { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.rs-search-select {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.rs-search-select option { background: #fff; color: #1E293B; }
.rs-search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  background: #2563EB;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 0 28px;
  height: 48px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
}
.rs-search-btn:hover { background: #1D4ED8; }

/* ===== HERO CTA BUTTONS ===== */
.rs-hero-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.rs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563EB;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28);
  transition: background 0.2s, transform 0.2s;
}
.rs-btn-primary:hover { background: #1D4ED8; transform: translateY(-2px); }
.rs-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #2563EB;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 100px;
  border: 2px solid #2563EB;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.rs-btn-outline:hover { background: rgba(37,99,235,0.06); transform: translateY(-2px); }

/* Dark mode hero search */
html.dark .rs-search .rs-search-input,
html.dark .rs-search .rs-search-select {
  background: transparent !important;
  background-color: transparent !important;
  color: #0F172A !important;
  border: none !important;
  box-shadow: none !important;
}
html.dark .rs-search .rs-search-input::placeholder { color: #475569 !important; }
@media (max-width: 768px) {
  html.dark .rs-search-loc { border-bottom-color: #334155 !important; }
}

/* ===== RESPONSIVE: HERO ===== */
@media (max-width: 768px) {
  .rs-hero { padding: 56px 20px 44px; }
  .rs-hero-title { font-size: 2.2rem; }
  .rs-hero-sub { font-size: 0.875rem; line-height: 1.6; margin-bottom: 32px; }
  .rs-search { flex-direction: row; height: 56px; padding: 4px 4px 4px 12px; border-radius: 100px; gap: 0; align-items: center; max-width: 480px; }
  .rs-search-loc { flex: 1 1 auto; min-width: 0; gap: 6px; }
  .rs-search-type { display: none !important; }
  .rs-search-input { font-size: 0.95rem; font-weight: 600; padding: 0; width: 100%; }
  .rs-search-sep { display: none !important; }
  .rs-search-btn { padding: 0 18px; height: 46px; font-size: 0.88rem; font-weight: 700; border-radius: 100px; margin-left: 6px; margin-top: 0; width: auto; }
  .rs-hero-btns { flex-direction: row; width: 100%; max-width: 340px; margin: 0 auto; gap: 12px; }
  .rs-btn-primary, .rs-btn-outline { width: auto; flex: 1; justify-content: center; padding: 12px 10px; font-size: 0.8rem; }
}
@media (max-width: 576px) {
  .rs-hero-sub { font-size: 0.8rem; line-height: 1.55; }
  .rs-hero-title { font-size: 1.65rem; }
}
@media (max-width: 380px) {
  .rs-hero-sub { font-size: 0.75rem; }
}

/* ===== WHY CHOOSE ROOMSARTHI ===== */
.choose-section { background-color: #ffffff; padding: 80px 24px; }
.choose-container { max-width: 1200px; margin: 0 auto; }
.choose-header { text-align: center; margin-bottom: 50px; }
.choose-title { font-size: 2.25rem; font-weight: 800; color: #1E3A8A; margin-bottom: 12px; letter-spacing: -0.5px; }
.choose-subtitle { font-size: 1.1rem; color: #4B5563; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.choose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.choose-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.choose-card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px -3px rgba(37,99,235,0.12), 0 4px 8px -2px rgba(37,99,235,0.06); border-color: #BFDBFE; }
.choose-icon-wrap { width: 48px; height: 48px; border-radius: 12px; background-color: #EFF6FF; color: #2563EB; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.choose-card-title { font-size: 1.25rem; font-weight: 700; color: #1E293B; margin-bottom: 10px; margin-top: 0; }
.choose-card-desc { font-size: 0.95rem; color: #64748B; line-height: 1.5; margin: 0; }
html.dark .choose-section { background-color: #0F172A; }
html.dark .choose-title { color: #60A5FA; }
html.dark .choose-subtitle { color: #94A3B8; }
html.dark .choose-card { background-color: #1E293B; border-color: #334155; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2); }
html.dark .choose-card:hover { border-color: #3B82F6; box-shadow: 0 12px 20px -3px rgba(0,0,0,0.4); }
html.dark .choose-icon-wrap { background-color: rgba(37,99,235,0.15); color: #3B82F6; }
html.dark .choose-card-title { color: #F8FAFC; }
html.dark .choose-card-desc { color: #94A3B8; }
@media (max-width: 1024px) { .choose-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px) {
  .choose-grid { grid-template-columns: 1fr; gap: 20px; }
  .choose-section { padding: 60px 20px; }
  .choose-title { font-size: 1.85rem; }
  .choose-subtitle { font-size: 1rem; }
  .choose-card { padding: 24px 20px; }
}

/* ===== REACH / STATS SECTION ===== */
.reach-section { background-color: #ffffff; padding: 40px 24px 0; text-align: center; }
.reach-badge { display: inline-flex; align-items: center; gap: 6px; background-color: #EFF6FF; color: #3B82F6; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 20px; }
.reach-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background-color: #3B82F6; }
.reach-title { font-size: 2.5rem; font-weight: 800; color: #0F172A; margin-top: 0; margin-bottom: 16px; letter-spacing: -0.5px; }
.reach-subtitle { font-size: 1.1rem; color: #4B5563; max-width: 600px; margin: 0 auto 56px; line-height: 1.6; }
.reach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.reach-card { background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 16px; padding: 30px; text-align: left; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.reach-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.reach-icon-wrap { width: 42px; height: 42px; border-radius: 50%; background-color: #EFF6FF; color: #2563EB; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.reach-number { font-size: 2.5rem; font-weight: 800; color: #2563EB; line-height: 1; margin-bottom: 10px; }
.reach-card-title { font-size: 1rem; font-weight: 700; color: #1E293B; margin-bottom: 6px; }
.reach-card-desc { font-size: 0.85rem; color: #64748B; margin: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid #E2E8F0; width: 100%; display: block; }
.reach-cta-banner { max-width: 1200px; margin: 0 auto; background: #2563EB; border-radius: 16px; padding: 35px 40px; display: flex; align-items: center; justify-content: space-between; text-align: left; color: #ffffff; box-shadow: 0 10px 25px -5px rgba(37,99,235,0.3); }
.reach-cta-content h3 { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; }
.reach-cta-content p { margin: 0; font-size: 0.95rem; opacity: 0.9; }
.reach-cta-actions { display: flex; gap: 12px; }
.reach-cta-btn-white { background: #ffffff; color: #2563EB; font-weight: 700; font-size: 0.9rem; padding: 12px 24px; border-radius: 8px; text-decoration: none; transition: background-color 0.2s; }
.reach-cta-btn-white:hover { background: #F1F5F9; }
.reach-cta-btn-outline { background: transparent; color: #ffffff; border: 1.5px solid #ffffff; font-weight: 700; font-size: 0.9rem; padding: 10px 24px; border-radius: 8px; text-decoration: none; transition: background-color 0.2s; }
.reach-cta-btn-outline:hover { background: rgba(255,255,255,0.1); }
html.dark .reach-section { background-color: #0F172A; }
html.dark .reach-badge { background-color: rgba(37,99,235,0.15); color: #60A5FA; }
html.dark .reach-badge::before { background-color: #60A5FA; }
html.dark .reach-title { color: #F8FAFC; }
html.dark .reach-subtitle { color: #94A3B8; }
html.dark .reach-card { background-color: #1E293B; border-color: #334155; }
html.dark .reach-card-title { color: #F8FAFC; }
html.dark .reach-card-desc { color: #94A3B8; border-top-color: #334155; }
html.dark .reach-icon-wrap { background-color: rgba(37,99,235,0.15); color: #60A5FA; }
html.dark .reach-number { color: #60A5FA; }
.map-section { padding-top: 45px !important; padding-bottom: 45px !important; }
@media (max-width: 1024px) {
  .reach-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .reach-cta-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 24px; padding: 30px; }
  .reach-cta-actions { justify-content: center; }
}
@media (max-width: 640px) {
  .reach-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
  .reach-section { padding: 30px 16px 0; }
  .map-section { padding-top: 30px !important; padding-bottom: 30px !important; }
  .reach-title { font-size: 1.85rem; }
  .reach-subtitle { margin-bottom: 30px; font-size: 0.95rem; }
  .reach-card { padding: 16px 12px; border-radius: 12px; }
  .reach-icon-wrap { width: 32px; height: 32px; margin-bottom: 12px; }
  .reach-icon-wrap svg { width: 16px; height: 16px; }
  .reach-number { font-size: 1.6rem; margin-bottom: 6px; }
  .reach-card-title { font-size: 0.82rem; margin-bottom: 4px; line-height: 1.25; }
  .reach-card-desc { font-size: 0.72rem; }
  .reach-cta-actions { flex-direction: column; gap: 10px; }
  .reach-cta-btn-white, .reach-cta-btn-outline { width: 100%; text-align: center; box-sizing: border-box; }
}
