/* ==============================================
   CITY LANDING PAGE — SPECIFIC STYLES
   Sample content: Chennai. All marked sections
   are dynamic and populated from the backend.
   ============================================== */

/* ------ Hero Override ------ */
.hero-section--chennai {
  background-image:
    linear-gradient(to right, rgba(10,18,40,0.80) 0%, rgba(10,18,40,0.55) 55%, rgba(10,18,40,0.10) 100%),
    url('../images/search-banner.jpg');
  background-size: cover;
  background-position: center 35%;
}

.city-hero-breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}
.city-hero-breadcrumb a {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
}
.city-hero-breadcrumb a:hover { color: #fff; }
.city-hero-breadcrumb i { font-size: 9px; vertical-align: middle; }

/* City search fields inside the search card */
.city-search-fields { padding: 16px 18px 18px; }
.city-search-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.city-search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.city-search-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--rf-text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.city-search-input,
.city-search-select {
  height: 40px;
  border: 1.5px solid var(--rf-border);
  border-radius: var(--rf-r-sm);
  font-size: 13px;
  color: var(--rf-text);
  padding: 0 12px;
  background: #fff;
  transition: border-color var(--rf-t);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.city-search-input { background-image: none; }
.city-search-input::placeholder { color: #9CA3AF; }
.city-search-input:focus,
.city-search-select:focus {
  outline: none;
  border-color: var(--rf-blue);
  box-shadow: 0 0 0 3px rgba(20,85,204,0.10);
}
.city-search-btn {
  height: 40px;
  padding: 0 20px;
  background: var(--rf-blue);
  color: #fff;
  border: none;
  border-radius: var(--rf-r-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background var(--rf-t);
  flex-shrink: 0;
}
.city-search-btn:hover { background: var(--rf-blue-dark); }

@media (max-width: 767px) {
  .city-search-row { flex-wrap: wrap; }
  .city-search-field { flex: 1 1 calc(50% - 5px); }
  .city-search-btn { flex: 1 1 100%; justify-content: center; }
}


/* ------ Stats Strip ------ */
.city-stats-strip {
  padding: 20px 0;
  border-bottom: 1px solid var(--rf-border); background-color:#F5F7FA;
}
.city-stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.city-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-r-md);
  background: #fff;
  box-shadow: var(--rf-shadow-xs);
  min-width: 0;
}
.city-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(20,85,204,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-blue);
  font-size: 18px;
  flex-shrink: 0;
}
.city-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--rf-navy);
  margin: 0;
  line-height: 1.2;
}
.city-stat-label {
  font-size: 11.5px;
  color: var(--rf-text-light);
  margin: 0;
}

@media (max-width: 991px) {
  .city-stats-grid { flex-wrap: wrap; }
  .city-stat-card { flex: 1 1 calc(33% - 8px); }
}
@media (max-width: 575px) {
  .city-stat-card { flex: 1 1 calc(50% - 8px); padding: 12px; }
  .city-stat-icon { width: 34px; height: 34px; font-size: 15px; }
  .city-stat-value { font-size: 15px; }
}


/* ------ Explore City Property Types ------ */
#exploreCity { padding: 48px 0; background: var(--rf-bg-light); }

.prop-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.prop-type-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--rf-r-md);
  overflow: hidden;
  border: 1px solid var(--rf-border);
  background: #fff;
  text-decoration: none;
  color: var(--rf-text);
  box-shadow: var(--rf-shadow-xs);
  transition: box-shadow var(--rf-t), transform var(--rf-t);
}
.prop-type-card:hover {
  box-shadow: var(--rf-shadow-md);
  transform: translateY(-3px);
  color: var(--rf-text);
}
.prop-type-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rf-bg-light);
}
.prop-type-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.prop-type-card:hover .prop-type-img { transform: scale(1.06); }
.prop-type-body {
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prop-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.prop-type-icon--blue   { background: rgba(20,85,204,0.10);  color: #1455CC; }
.prop-type-icon--green  { background: rgba(22,163,74,0.10);  color: #16A34A; }
.prop-type-icon--orange { background: rgba(234,88,12,0.10);  color: #EA580C; }
.prop-type-icon--sky    { background: rgba(14,165,233,0.10); color: #0EA5E9; }
.prop-type-icon--purple { background: rgba(124,58,237,0.10); color: #7C3AED; }
.prop-type-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-navy);
  margin: 0 0 2px;
  line-height: 1.3;
}
.prop-type-count {
  font-size: 11px;
  color: var(--rf-text-light);
  margin: 0;
}

@media (max-width: 991px) {
  .prop-type-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .prop-type-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 12px;
    margin: 0 -12px;
    padding: 0 12px 4px;
  }
  .prop-type-grid::-webkit-scrollbar { display: none; }
  .prop-type-card { flex: 0 0 68vw; max-width: 220px; scroll-snap-align: start; }
}


/* ------ Builder Campaign Banner ------ */
#builderCampaign { padding: 40px 0; }

.builder-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.builder-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rf-text-light);
}
.builder-section-sponsored {
  font-size: 10px;
  font-weight: 600;
  color: #9CA3AF;
  background: #F3F4F6;
  padding: 2px 7px;
  border-radius: 4px;
}

.builder-carousel {
  border-radius: var(--rf-r-lg);
  overflow: hidden;
}
.builder-carousel-inner { border-radius: var(--rf-r-lg); overflow: hidden; }

.builder-banner-img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: var(--rf-r-lg);
}

/* Carousel arrow controls */
.builder-carousel-prev,
.builder-carousel-next {
  width: auto;
  opacity: 1;
  z-index: 5;
}
.builder-carousel-prev { left: 14px; }
.builder-carousel-next { right: 14px; }

.builder-ctrl-icon {
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background var(--rf-t);
}
.builder-carousel-prev:hover .builder-ctrl-icon,
.builder-carousel-next:hover .builder-ctrl-icon {
  background: rgba(0,0,0,0.55);
}

/* Dot indicators */
.builder-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
  margin: 0;
}
.builder-indicators button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--rf-t), width var(--rf-t);
}
.builder-indicators button.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}



/* ------ Project carousel track (reused card but independent scroll) ------ */
.project-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
}
.project-carousel-track:active { cursor: grabbing; }
.project-carousel-track::-webkit-scrollbar { display: none; }
.project-carousel-track .project-slide {
  flex: 0 0 calc(25% - 11px);
  scroll-snap-align: start;
}

@media (max-width: 991px) {
  .project-carousel-track .project-slide { flex: 0 0 calc(50% - 7px); }
}
@media (max-width: 575px) {
  .project-carousel-track .project-slide { flex: 0 0 78vw; max-width: 300px; }
}


/* ------ Section spacing for city page carousels ------ */
#editorsChoice,
#topApartments,
#topPlots,
#trendingProperties { padding: 40px 0; background: var(--rf-bg-light); }


/* ------ City Localities ------ */
#cityLocalities { padding: 40px 0; }
.locality-card--city .locality-icon { background: rgba(20,85,204,0.08); color: var(--rf-blue); }


/* ------ City Insight Section ------ */
#cityInsight { padding: 48px 0; background: var(--rf-bg-light); }

.city-insight-card {
  background: #fff;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-r-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--rf-shadow-xs);
  display: flex;
  flex-direction: column;
}

/* Col 1 */
.city-insight-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}
.city-insight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.city-insight-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,18,40,0.55) 0%, transparent 60%);
}
.city-insight-content { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.city-insight-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rf-navy);
  margin: 0 0 14px;
}
.city-insight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.city-insight-list li {
  font-size: 13px;
  color: var(--rf-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.city-insight-list i { font-size: 14px; flex-shrink: 0; }

/* Col 2 — Market */
.city-insight-card--market { padding: 22px; }
.city-market-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.city-market-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rf-border);
}
.city-market-item:last-child { border-bottom: none; }
.city-market-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(20,85,204,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-blue);
  font-size: 15px;
  flex-shrink: 0;
}
.city-market-label {
  font-size: 11.5px;
  color: var(--rf-text-light);
  margin: 0 0 2px;
}
.city-market-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--rf-navy);
  margin: 0;
}

/* Col 3 — Roofy */
.city-insight-card--roofy {
  padding: 22px;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #EBF2FF 0%, #f8f9fc 100%);
}
.city-roofy-img-wrap { margin: 0 auto 12px; }
.city-roofy-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.city-roofy-content { width: 100%; }
.city-roofy-desc {
  font-size: 13px;
  color: var(--rf-text-light);
  margin: 0 0 14px;
}
.city-roofy-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.city-roofy-features li {
  font-size: 12.5px;
  color: var(--rf-text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.city-roofy-features i { color: var(--rf-blue); font-size: 13px; }

/* Outline button variant */
.btn-outline-primary-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--rf-blue);
  border-radius: var(--rf-r-sm);
  color: var(--rf-blue);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--rf-t), color var(--rf-t);
}
.btn-outline-primary-brand:hover { background: var(--rf-blue); color: #fff; }


/* ------ FAQ Section ------ */
#cityFaq { padding: 48px 0; }

.faq-accordion .faq-item {
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-r-sm) !important;
  margin-bottom: 10px;
}
.faq-accordion .faq-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rf-navy);
  background: #fff;
  padding: 14px 18px;
  box-shadow: none;
}
.faq-accordion .faq-btn:not(.collapsed) {
  color: var(--rf-blue);
  background: rgba(20,85,204,0.04);
}
.faq-accordion .faq-btn::after {
  filter: none;
  opacity: 0.5;
}
.faq-accordion .faq-btn:not(.collapsed)::after { opacity: 1; }
.faq-body {
  font-size: 13px;
  color: var(--rf-text);
  line-height: 1.6;
  padding: 4px 18px 16px;
  background: #fff;
}
