/* ==========================================================================
   SUKHOBAS REALTY - ROYAL PURPLE LUXURY DESIGN SYSTEM (V2.2)
   Universal Reset, Swiper Sliders, FAQ Accordion, Blog Grid & Dashboard
   ========================================================================== */

/* Universal Layout & Box Sizing Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.sb-cards-grid, #mb-shortlist-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin: 24px 0;
}

/* 1. Hero Swiper Slider & Floating Search */
.mb-hero-wrapper {
  position: relative;
  margin-bottom: 90px;
}

.mb-hero-swiper {
  width: 100%;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
}

.mb-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 110px;
  color: #ffffff;
}

.mb-slide-caption {
  max-width: 850px;
  animation: mb-fade-up 0.8s ease;
}

.mb-slide-tag {
  background: rgba(124, 58, 237, 0.95);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.mb-slide-caption h2 {
  font-size: 3.2rem;
  font-weight: 900;
  margin: 0 0 16px 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.mb-slide-caption p {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin: 0;
}

.mb-floating-search-box {
  position: relative;
  margin-top: -80px;
  z-index: 10;
  padding: 0 20px;
}

/* 2. Search Engine Bar */
.mb-search-container {
  max-width: 1040px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 28px 28px;
  box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(0,0,0,0.04);
  text-align: left;
}

.mb-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #f4f2fb;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.mb-tab-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 800;
  color: #64608c;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mb-tab-btn:hover { color: #0f0a1e; background: #f8f7fc; }
.mb-tab-btn.active {
  color: #ffffff;
  background: var(--sb-primary);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.mb-search-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 14px;
  align-items: flex-end;
}

.mb-search-col label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mb-select-clean {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #e4e2f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
  background: #f8f7fc;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.mb-select-clean:focus {
  border-color: var(--sb-primary);
  background: #ffffff;
}

.mb-search-submit-btn {
  background: var(--sb-primary);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  height: 50px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.mb-search-submit-btn:hover {
  background: var(--sb-primary-hover);
  transform: translateY(-2px);
}

.mb-bhk-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e4e2f0;
}

.mb-pills-label { font-size: 13px; font-weight: 800; color: #64608c; }
.mb-bhk-pill {
  font-size: 12px;
  font-weight: 700;
  color: #1e1b4b;
  background: #f4f2fb;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.mb-bhk-pill input { display: none; }
.mb-bhk-pill:hover, .mb-bhk-pill.active {
  background: var(--sb-primary);
  color: #ffffff;
}

/* 3. Stats Counter Bar */
.sb-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  background: #0f0a1e;
  border-radius: 20px;
  padding: 38px 30px;
  margin: 40px 0 60px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.12);
}

.sb-stat-num {
  font-size: 2.3rem;
  font-weight: 900;
  color: #a78bfa;
  letter-spacing: -0.02em;
}

.sb-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: #9590bc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* 4. Builder Marquee */
.sb-marquee-wrapper {
  background: #ffffff;
  border: 1px solid #e4e2f0;
  border-radius: 16px;
  padding: 26px;
  margin: 40px 0;
  text-align: center;
}

.sb-marquee-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.sb-builder-pill {
  background: #f8f7fc;
  border: 1px solid #e4e2f0;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  color: #1e1b4b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 5. Swiper Featured Projects Carousel */
.mb-carousel-section { position: relative; padding: 10px 0 30px; }
.mb-projects-swiper { padding: 10px 4px 20px; }
.mb-nav-btn {
  color: var(--sb-primary) !important;
  background: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.mb-nav-btn::after { font-size: 16px !important; font-weight: bold; }

/* 6. Property Card */
.mb-property-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e4e2f0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.mb-property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 35px -10px rgba(124, 58, 237, 0.16);
}

.mb-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #e2e8f0;
}

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

.mb-property-card:hover .mb-card-media img { transform: scale(1.08); }

.mb-media-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.mb-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mb-badge-verified { background: #16a34a; color: #ffffff; }
.mb-badge-featured { background: #0f0a1e; color: #ffffff; }

.mb-shortlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.mb-shortlist-btn:hover { background: #ffffff; transform: scale(1.15); }
.mb-shortlist-btn.active svg { fill: #7c3aed; stroke: #7c3aed; }

.mb-card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.mb-price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mb-price { font-size: 1.45rem; font-weight: 900; color: #0f0a1e; }
.mb-psqft { font-size: 12px; font-weight: 700; color: #64608c; }
.mb-card-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px 0; line-height: 1.4; }
.mb-card-title a { color: #1e1b4b; }
.mb-card-title a:hover { color: var(--sb-primary); }
.mb-card-address { font-size: 13px; color: #64608c; margin: 0 0 14px 0; display: flex; align-items: center; gap: 4px; }
.mb-specs-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; padding: 10px 0; border-top: 1px solid #f4f2fb; border-bottom: 1px solid #f4f2fb; font-size: 12px; font-weight: 700; color: #475569; }
.mb-specs-bar span { display: inline-flex; align-items: center; gap: 4px; }
.mb-card-actions { display: flex; gap: 8px; margin-top: auto; }
.mb-btn-view { flex-grow: 1; text-align: center; background: #f8f7fc; border: 1px solid #e4e2f0; color: #1e1b4b; font-size: 13px; font-weight: 800; padding: 11px; border-radius: 8px; transition: all 0.2s ease; text-decoration:none; }
.mb-btn-view:hover { background: var(--sb-primary); border-color: var(--sb-primary); color: #ffffff; }
.mb-btn-whatsapp { background: #25d366; color: #ffffff; width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none; }

/* 7. Blog Section & Article Cards */
.sb-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin: 30px 0;
}

.sb-blog-card {
  background: #ffffff;
  border: 1px solid #e4e2f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sb-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(124, 58, 237, 0.14);
}

.sb-blog-media {
  height: 200px;
  overflow: hidden;
  background: #f4f2fb;
}

.sb-blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sb-blog-card:hover .sb-blog-media img { transform: scale(1.06); }

.sb-blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sb-blog-meta {
  font-size: 12px;
  color: #7c3aed;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sb-blog-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f0a1e;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.sb-blog-title a { color: #0f0a1e; }
.sb-blog-title a:hover { color: #7c3aed; }
.sb-blog-excerpt { font-size: 14px; color: #64608c; line-height: 1.7; margin-bottom: 16px; flex-grow: 1; }
.sb-blog-link { font-size: 13px; font-weight: 800; color: #7c3aed; display: inline-flex; align-items: center; gap: 4px; }

/* 8. Luxury Confirmation Card */
.sb-luxury-confirm-card {
  background: #ffffff;
  border: 2px solid #7c3aed;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.15);
  animation: mb-fade-up 0.5s ease;
}

.sb-confirm-icon-wrap { margin-bottom: 12px; }
.sb-checkmark-svg { width: 52px; height: 52px; display: block; margin: 0 auto; stroke: #7c3aed; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sb-confirm-ref { background: #f4f2fb; color: #7c3aed; font-size: 12px; font-weight: 900; padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }
.sb-confirm-title { font-size: 1.25rem; font-weight: 900; color: #0f0a1e; margin: 6px 0; }
.sb-confirm-desc { font-size: 13px; color: #475569; line-height: 1.6; margin-bottom: 18px; }
.sb-confirm-wa-btn { display: inline-block; background: #25d366; color: #ffffff; font-weight: 800; font-size: 14px; padding: 10px 22px; border-radius: 8px; text-decoration: none; }

/* 9. Interactive EMI Calculator */
.mb-emi-box {
  background: #ffffff;
  border: 1px solid #e4e2f0;
  border-radius: 20px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  margin: 40px 0;
}

.mb-slider-group { margin-bottom: 24px; }
.mb-slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mb-slider-header label { font-size: 14px; font-weight: 700; color: #1e1b4b; }
.mb-val-display { font-size: 15px; font-weight: 900; color: var(--sb-primary); background: #f4f2fb; padding: 4px 12px; border-radius: 6px; }
.mb-range-slider { width: 100%; height: 8px; border-radius: 4px; background: #e4e2f0; outline: none; -webkit-appearance: none; }
.mb-range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sb-primary); cursor: pointer; }
.mb-emi-result-card { background: linear-gradient(135deg, #0f0a1e 0%, #1e1b4b 100%); border-radius: 16px; padding: 32px; color: #ffffff; text-align: center; }
.mb-emi-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: #a5a1c8; }
.mb-emi-amount { font-size: 2.5rem; font-weight: 900; color: #a78bfa; margin: 8px 0 24px 0; }
.mb-emi-breakdown { text-align: left; background: rgba(255,255,255,0.06); padding: 16px; border-radius: 10px; margin-bottom: 20px; font-size: 13px; }
.mb-bd-item { display: flex; justify-content: space-between; margin-bottom: 6px; }
.mb-emi-apply-btn { display: block; background: var(--sb-primary); color: #ffffff; font-weight: 800; font-size: 14px; padding: 13px; border-radius: 8px; text-decoration: none; }

/* 10. Real Estate FAQ Accordion */
.sb-faq-container { margin: 30px 0; display: flex; flex-direction: column; gap: 14px; }
.sb-faq-item { background: #ffffff; border: 1px solid #e4e2f0; border-radius: 14px; overflow: hidden; transition: all 0.2s ease; }
.sb-faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-size: 16px; font-weight: 800; color: #0f0a1e; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.sb-faq-icon { transition: transform 0.25s ease; stroke: #7c3aed; }
.sb-faq-item.active .sb-faq-icon { transform: rotate(180deg); }
.sb-faq-answer { display: none; padding: 0 24px 22px; font-size: 14px; line-height: 1.8; color: #475569; }
.sb-faq-item.active .sb-faq-answer { display: block; }

/* 11. Locality Cards */
.mb-localities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 30px 0; }
.mb-loc-card { height: 240px; background-size: cover; background-position: center; border-radius: 16px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 20px; box-sizing: border-box; transition: transform 0.3s ease; }
.mb-loc-card:hover { transform: translateY(-5px); }
.mb-loc-content { color: #ffffff; }
.mb-loc-count { font-size: 11px; font-weight: 800; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); padding: 4px 8px; border-radius: 6px; }
.mb-loc-title { font-size: 1.3rem; font-weight: 900; margin: 8px 0 2px 0; }
.mb-loc-state { font-size: 13px; color: #cbd5e1; margin: 0 0 6px 0; }
.mb-loc-price { font-size: 13px; font-weight: 700; color: #a78bfa; }

/* 12. Services Grid */
.mb-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 30px 0; }
.mb-service-card { background: #ffffff; border: 1px solid #e4e2f0; border-radius: 14px; padding: 26px; text-align: center; transition: transform 0.2s ease; }
.mb-service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(124,58,237,0.08); }
.mb-service-icon { margin-bottom: 14px; }
.mb-service-title { font-size: 16px; font-weight: 800; color: #0f0a1e; margin: 0 0 6px 0; }
.mb-service-desc { font-size: 13px; color: #64608c; margin: 0; line-height: 1.6; }

/* 13. Dashboard */
.mb-dash-wrapper { max-width: 1000px; margin: 40px auto; }
.mb-dash-header { background: #ffffff; border: 1px solid #e4e2f0; border-radius: 16px; padding: 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mb-dash-avatar { width: 54px; height: 54px; border-radius: 50%; background: #7c3aed; color: #ffffff; font-size: 22px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.mb-dash-logout-btn { background: #f4f2fb; color: #1e1b4b; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 8px; text-decoration: none; }
.mb-dash-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #e4e2f0; padding-bottom: 10px; }
.mb-dash-tab { background: transparent; border: none; font-size: 15px; font-weight: 800; color: #64608c; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.mb-dash-tab.active { background: #0f0a1e; color: #ffffff; }
.mb-dash-pane { display: none; }
.mb-dash-pane.active { display: block; }

@keyframes mb-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .mb-search-row { grid-template-columns: 1fr; }
  .mb-emi-box { grid-template-columns: 1fr; }
  .mb-hero-swiper { height: 440px; }
  .mb-slide-caption h2 { font-size: 2rem; }
}
