/* ============================================================
   BLUE HORIZON REALTY — pages.css
   Inner Page Styles — Page Banners, Layouts, Unique Components
   ============================================================ */

/* ── Page Hero Banner ───────────────────────────────────── */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(15,13,26,0.78) 0%,
    rgba(46,32,88,0.6) 50%,
    rgba(24,85,101,0.45) 100%
  );
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb span { color: var(--accent-gold); }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.68);
  max-width: 560px;
  font-weight: 300;
}

/* ── Inner Page Layout ──────────────────────────────────── */
.page-section {
  padding: 80px 0;
  background: var(--main-white);
}
.page-section.alt {
  background: var(--secondary-white);
}
.page-section.dark {
  background: var(--dark-ink);
}
.page-section.primary {
  background: var(--primary-color);
}

/* ── Listings Page Layout (with sidebar) ────────────────── */
.listings-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 60px 0;
}

/* Sidebar Filters */
.filter-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.filter-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  border-top: 3px solid var(--secondary-color);
}
.filter-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.filter-group {
  margin-bottom: 20px;
}
.filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: block;
}
.filter-select,
.filter-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark-ink);
  background: var(--main-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232e2058' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color 0.2s;
}
.filter-select:focus,
.filter-input:focus { outline: none; border-color: var(--secondary-color); }
.price-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filter-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 8px;
}
.filter-btn:hover { background: var(--secondary-color); }
.filter-reset {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  cursor: pointer;
  transition: color 0.2s;
}
.filter-reset:hover { color: var(--primary-color); }

/* Results bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.results-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
}
.results-count strong { color: var(--primary-color); }
.sort-select {
  padding: 8px 32px 8px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232e2058' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  color: var(--text-body);
}

/* ── Sell / Process Steps ───────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.process-step {
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
}
.process-step::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--border-subtle);
}
.process-step:last-child::after { display: none; }
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-elevated); }
.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Valuation Form ─────────────────────────────────────── */
.valuation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.form-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  padding: 40px 44px;
  border-top: 4px solid var(--secondary-color);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark-ink);
  background: var(--main-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s;
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--secondary-color); }
.form-control.select-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232e2058' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  -webkit-appearance: none;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.form-submit:hover { background: var(--secondary-color); }

/* ── Team Grid ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); }
.team-photo {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,32,88,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  gap: 10px;
}
.team-card:hover .team-overlay { opacity: 1; }
.team-body {
  padding: 22px 24px;
  border-top: 3px solid var(--secondary-color);
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-ink);
  margin-bottom: 4px;
}
.team-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 12px;
}
.team-bio {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.team-stats-row {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.team-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.team-stat-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}
.team-stat-key {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── History Timeline ───────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 60px;
  align-items: center;
}
.timeline-item:nth-child(even) .timeline-content { order: 3; text-align: left; }
.timeline-item:nth-child(even) .timeline-spacer  { order: 2; }
.timeline-item:nth-child(even) .timeline-empty   { order: 1; }
.timeline-content {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  text-align: right;
  transition: var(--transition-smooth);
}
.timeline-content:hover { box-shadow: var(--shadow-elevated); transform: translateY(-3px); }
.timeline-item:nth-child(even) .timeline-content { text-align: left; }
.timeline-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 6px;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.timeline-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.timeline-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--main-white);
  box-shadow: 0 0 0 2px var(--primary-color);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.timeline-empty { }

/* ── Developments Grid ──────────────────────────────────── */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 56px;
}
.dev-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.dev-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-elevated); }
.dev-card-img {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.dev-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.dev-card:hover .dev-card-img img { transform: scale(1.06); }
.dev-status-pill {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.pill-presale  { background: var(--accent-gold); color: var(--dark-ink); }
.pill-underway { background: var(--secondary-color); color: #fff; }
.pill-complete { background: #4CAF50; color: #fff; }
.dev-card-body { padding: 28px 30px; border-top: 3px solid var(--secondary-color); }
.dev-card-location {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 8px;
}
.dev-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.dev-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.dev-card-meta {
  display: flex;
  gap: 24px;
}
.dev-meta-item { }
.dev-meta-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.dev-meta-value { font-size: 14px; font-weight: 700; color: var(--primary-color); }

/* ── Region Page ─────────────────────────────────────────── */
.region-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}
.region-stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.region-stat-card {
  background: var(--secondary-white);
  border-radius: 6px;
  padding: 20px;
  border-left: 3px solid var(--secondary-color);
}
.region-stat-card-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
}
.region-stat-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.region-image-stack {
  position: relative;
}
.region-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
}
.region-img-accent {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 44%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  border: 5px solid var(--main-white);
  box-shadow: var(--shadow-elevated);
}

/* ── Testimonials Full Grid ──────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.testi-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 36px;
  transition: var(--transition-smooth);
}
.testi-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
}
.testi-stars { color: var(--accent-gold); font-size: 16px; margin-bottom: 16px; }
.testi-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin-bottom: 24px;
}
.testi-client-row { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--secondary-color); }
.testi-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: #fff; }
.testi-detail { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ── HQ / Office Page ────────────────────────────────────── */
.hq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}
.hq-amenity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.hq-amenity {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--secondary-white);
  border-radius: 6px;
  border-left: 2px solid var(--secondary-color);
}
.hq-amenity-icon { font-size: 20px; flex-shrink: 0; }
.hq-amenity-title { font-size: 13px; font-weight: 700; color: var(--primary-color); margin-bottom: 2px; }
.hq-amenity-desc  { font-size: 12px; color: var(--text-muted); }

/* ── Contact Page ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info { }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--secondary-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.contact-item-title { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary-color); margin-bottom: 4px; }
.contact-item-val   { font-size: 14px; color: var(--text-body); line-height: 1.6; }
.contact-item-val a { color: var(--secondary-color); }
.map-placeholder {
  width: 100%;
  height: 280px;
  background: var(--secondary-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  border: 1.5px solid var(--border-subtle);
  margin-top: 28px;
  overflow: hidden;
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Seller's Guide Content ──────────────────────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.guide-card {
  padding: 32px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--secondary-color);
  transition: var(--transition-smooth);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.guide-card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 4px;
}
.guide-card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }
.guide-card-text  { font-size: 13px; color: var(--text-muted); line-height: 1.75; }

/* ── About Page ──────────────────────────────────────────── */
.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-stats-band {
  background: var(--primary-color);
  padding: 60px 0;
}
.about-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.about-stat { padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.15); }
.about-stat:last-child { border: none; }
.about-stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--accent-gold); }
.about-stat-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ── Responsive Pages ────────────────────────────────────── */
@media (max-width: 1024px) {
  .listings-layout   { grid-template-columns: 1fr; }
  .filter-sidebar    { position: static; }
  .process-steps     { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .valuation-layout  { grid-template-columns: 1fr; }
  .team-grid         { grid-template-columns: repeat(2, 1fr); }
  .dev-grid          { grid-template-columns: 1fr; }
  .region-intro-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hq-grid           { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; }
  .guide-grid        { grid-template-columns: 1fr; }
  .about-mission-grid{ grid-template-columns: 1fr; }
  .about-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-stat        { border: none; }
  .timeline::before  { left: 30px; }
  .timeline-item     { grid-template-columns: 30px 1fr; grid-template-rows: auto; }
  .timeline-item .timeline-empty  { display: none; }
  .timeline-item .timeline-content { text-align: left; order: 2; }
  .timeline-item .timeline-node   { order: 1; margin: 0; }
  .timeline-item:nth-child(even) .timeline-content { order: 2; }
  .timeline-item:nth-child(even) .timeline-node    { order: 1; }
}

@media (max-width: 640px) {
  .page-hero         { height: 45vh; min-height: 300px; padding-bottom: 40px; }
  .page-hero-inner   { padding: 0 18px; }
  .page-hero-title   { font-size: 2rem; }
  .process-steps     { grid-template-columns: 1fr; }
  .team-grid         { grid-template-columns: 1fr; }
  .region-stat-cards { grid-template-columns: 1fr 1fr; }
  .region-img-accent { display: none; }
  .hq-amenity-list   { grid-template-columns: 1fr; }
  .about-stats-inner { grid-template-columns: 1fr 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .dev-card-meta     { flex-wrap: wrap; gap: 14px; }
}
