@font-face {
  font-family: 'Vazirmatn';
  src: url('./assets/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #152C4C;
  --navy-deep: #0E1F38;
  --navy-soft: #1E3A63;
  --cream: #F8F6F1;
  --cream-card: #FFFFFF;
  --cream-muted: #EFEBE2;
  --gold: #C89C4C;
  --gold-light: #E2BE72;
  --gold-soft: rgba(200, 156, 76, 0.14);
  --green: #22A45D;
  --green-dark: #1A844A;
  --text-main: #152C4C;
  --text-body: #334660;
  --text-muted: #66758A;
  --border-subtle: rgba(21, 44, 76, 0.11);
  --border-gold: rgba(200, 156, 76, 0.42);
  --shadow-sm: 0 4px 14px rgba(21, 44, 76, 0.06);
  --shadow-md: 0 10px 28px rgba(21, 44, 76, 0.10);
  --shadow-lg: 0 20px 48px rgba(14, 31, 56, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, system-ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 76px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 44, 76, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 190, 114, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Crisp white/cream pill so dark-navy logo text is 100% legible */
.brand-pill {
  display: inline-flex;
  align-items: center;
  background: #FAF8F4;
  border: 1px solid rgba(226, 190, 114, 0.55);
  border-radius: 14px;
  padding: 5px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.brand-pill:hover {
  transform: translateY(-1px);
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .brand-logo {
    height: 42px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(226, 190, 114, 0.24);
  color: #FFFFFF;
  transition: background var(--transition);
}

.header-phone:hover {
  background: rgba(255, 255, 255, 0.13);
}

@media (min-width: 768px) {
  .header-phone {
    display: inline-flex;
  }
}

.phone-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 164, 93, 0.24);
}

.phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.phone-text small {
  font-size: 0.72rem;
  color: var(--gold-light);
}

.phone-text strong {
  font-size: 0.86rem;
  font-weight: 700;
}

.btn-concierge-nav {
  border: 1px solid var(--gold-light);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-concierge-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(226, 190, 114, 0.35);
}

/* Step 1: Hero Concierge */
.hero-section {
  position: relative;
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 58%, #1C3860 100%);
  color: #FFFFFF;
  padding: 28px 0 38px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 42px 0 48px;
  }
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(226, 190, 114, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(34, 164, 93, 0.10) 0%, transparent 40%),
    linear-gradient(rgba(226, 190, 114, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 190, 114, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 190, 114, 0.35);
  border-radius: 999px;
  padding: 4px 12px 4px 14px;
  font-size: 0.8rem;
  color: #F5E9CE;
  margin-bottom: 14px;
}

.step-tag {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-subtitle {
  margin: 0 0 22px;
  max-width: 680px;
  font-size: 0.94rem;
  color: rgba(248, 246, 241, 0.84);
}

/* 5 Tactile Budget Cards */
.budget-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) and (max-width: 959px) {
  .budget-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .budget-card[data-budget-key="all"] {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .budget-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

.budget-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  gap: 12px;
  min-height: 62px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.budget-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(226, 190, 114, 0.65);
  transform: translateY(-2px);
}

.budget-card.is-active {
  background: var(--cream);
  color: var(--navy-deep);
  border-color: var(--gold-light);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.budget-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: transparent;
}

.budget-card.is-active .budget-check {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF;
}

.budget-range {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

/* Exact Budget Slider */
.exact-budget-wrapper {
  margin-top: 16px;
}

.exact-toggle-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(14, 31, 56, 0.65);
  border: 1px dashed rgba(226, 190, 114, 0.55);
  color: #F8EBD0;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

@media (min-width: 640px) {
  .exact-toggle-btn {
    width: auto;
  }
}

.exact-toggle-btn:hover {
  background: rgba(14, 31, 56, 0.9);
  border-color: var(--gold-light);
}

.toggle-icon {
  display: inline-flex;
  color: var(--gold-light);
}

.exact-toggle-btn .chevron {
  transition: transform var(--transition);
}

.exact-toggle-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.exact-slider-panel {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  color: var(--navy-deep);
  border: 1.5px solid var(--gold);
  box-shadow: var(--shadow-lg);
}

.slider-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.slider-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-value-display {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy);
}

.btn-apply-exact {
  border: none;
  background: var(--navy);
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-apply-exact:hover {
  background: var(--navy-soft);
}

.btn-apply-exact.is-live {
  background: var(--green);
}

.slider-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-bound {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.budget-range-input {
  flex: 1;
  accent-color: var(--gold);
  height: 8px;
  cursor: pointer;
}

.slider-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Step 2: Results Section */
.results-section {
  padding: 32px 0 42px;
}

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

.step-inline-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8E6924;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.55rem;
  }
}

.results-summary-pill {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Filters Card */
.filters-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .filters-grid {
    grid-template-columns: 1.25fr 1.25fr 1fr 0.85fr;
    align-items: end;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  border: 1px solid var(--border-subtle);
  background: var(--cream);
  color: var(--text-body);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.sort-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--cream);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filters-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.active-filters-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-reset-filters {
  border: 1px solid rgba(21, 44, 76, 0.22);
  background: transparent;
  color: var(--navy);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-reset-filters:hover {
  background: var(--cream-muted);
}

/* Project Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 680px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-card);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.availability-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: #146E3C;
  background: rgba(34, 164, 93, 0.13);
  border: 1px solid rgba(34, 164, 93, 0.34);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.card-headline {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.spec-box {
  background: var(--cream);
  border-radius: 10px;
  padding: 9px 8px;
  text-align: center;
  border: 1px solid rgba(21, 44, 76, 0.06);
}

.spec-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spec-value {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy);
}

.financial-panel {
  background: linear-gradient(135deg, #FBF9F4 0%, #F4EFE3 100%);
  border: 1px solid rgba(200, 156, 76, 0.32);
  border-radius: 12px;
  padding: 12px 13px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.financial-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.financial-label {
  font-size: 0.8rem;
  color: var(--text-body);
}

.financial-dp {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--navy);
  text-align: left;
}

.financial-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: #825E1B;
  text-align: left;
}

.file-code-row {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 0 2px;
}

.card-cta-btn {
  margin-top: auto;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
}

.card-cta-btn:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
}

.card-cta-btn .cta-accent {
  color: var(--gold-light);
}

/* Empty State */
.empty-state {
  background: #FFFFFF;
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-primary-gold {
  border: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 11px;
  cursor: pointer;
}

.btn-outline-navy {
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 11px;
  cursor: pointer;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* Step 3: General Gallery */
.gallery-section {
  background: #F2EFE7;
  border-top: 1px solid var(--border-subtle);
  padding: 38px 0 46px;
}

.gallery-header {
  margin-bottom: 20px;
}

.gallery-disclaimer {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--text-body);
  max-width: 720px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gallery-card--photo {
  cursor: pointer;
}

.gallery-card--photo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.gallery-photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.btn-gallery-toggle {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1.5px solid var(--navy);
  background: #FFFFFF;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-gallery-toggle:hover {
  background: var(--navy);
  color: #FFFFFF;
}

.gallery-auto-note code {
  background: rgba(21, 44, 76, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  direction: ltr;
  display: inline-block;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(248, 246, 241, 0.86);
  padding: 24px 0;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-brand strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  opacity: 0.82;
}

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-link {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 190, 114, 0.35);
  font-size: 0.83rem;
  color: #FFFFFF;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 44, 76, 0.97);
  border-top: 1px solid rgba(226, 190, 114, 0.35);
  backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 11px 10px;
  border-radius: 11px;
}

.sticky-consult-btn {
  border: 1px solid var(--gold-light);
  background: var(--gold-light);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 11px 10px;
  border-radius: 11px;
  cursor: pointer;
}

/* Slide-up Bottom Sheet / Modal */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 31, 56, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.sheet-backdrop[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .sheet-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.contact-sheet {
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  padding: 10px 20px 24px;
  animation: slideUp 0.24s ease-out;
}

@media (min-width: 640px) {
  .contact-sheet {
    border-radius: 22px;
    padding: 18px 24px 26px;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sheet-handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(21, 44, 76, 0.18);
  margin: 4px auto 12px;
}

@media (min-width: 640px) {
  .sheet-handle {
    display: none;
  }
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #8E6924;
}

.sheet-title {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.sheet-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--cream);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.sheet-context-card {
  background: var(--cream);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  color: var(--navy);
}

.sheet-context-card strong {
  display: block;
  margin-bottom: 3px;
}

.direct-contact-block {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px;
}

.advisor-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.advisor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.advisor-info strong {
  display: block;
  font-size: 0.96rem;
}

.advisor-info span {
  font-size: 0.78rem;
  color: rgba(248, 246, 241, 0.85);
}

.direct-actions-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.btn-direct-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
  background: #FFFFFF;
  color: var(--navy);
}

.sheet-divider {
  position: relative;
  text-align: center;
  margin: 18px 0 14px;
}

.sheet-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
}

.sheet-divider span {
  position: relative;
  background: #FFFFFF;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Optional Callback Form */
.callback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.required-star {
  color: #C0392B;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background: var(--cream);
  color: var(--navy);
  font-size: 0.92rem;
  transition: border-color var(--transition), background var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: #FFFFFF;
}

.form-input-ltr {
  direction: ltr;
  text-align: left;
}

.form-error {
  font-size: 0.78rem;
  color: #C0392B;
  font-weight: 600;
}

.time-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.time-chip {
  border: 1px solid var(--border-subtle);
  background: var(--cream);
  color: var(--text-body);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.time-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.btn-submit-lead {
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-submit-lead:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-success-card {
  background: rgba(34, 164, 93, 0.08);
  border: 1.5px solid rgba(34, 164, 93, 0.35);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.success-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #FFFFFF;
  font-size: 1.3rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.form-success-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--navy);
}

.form-success-card p {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--text-body);
}

/* --- Photo Lightbox Modal --- */
.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 23, 41, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.lightbox-counter {
  color: var(--gold-light);
  font-size: 0.96rem;
  font-weight: 700;
}

.lightbox-close {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1040px;
  width: 100%;
  margin: 12px auto;
  min-height: 0;
}

.lightbox-img {
  max-width: calc(100% - 120px);
  max-height: 78vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

@media (max-width: 560px) {
  .lightbox-img {
    max-width: calc(100% - 88px);
    max-height: 72vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}
