/* LilamHomes Phase 4 — map toolbar */
.lh-map-tool {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}
.lh-map-tool:hover { background: #fff; border-color: #006AFF; color: #006AFF; }
.lh-map-tool--active { background: #006AFF; color: #fff; border-color: #006AFF; }
.lh-map-tool--muted { color: #64748b; }
.lh-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  z-index: 800;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
}
.lh-insights-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 600;
}

.lh-map-tool-select {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

/* LilamHomes Phase 1 — homepage, hero, carousels, compare bar */

.lh-home-sections { margin-bottom: 1.5rem; }
.lh-home-section { margin-bottom: 2rem; padding: 0 0.25rem; }
.lh-section-title { font-size: 1.25rem; font-weight: 700; color: #0f172a; }

.lh-carousel-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch;
}
.lh-carousel-item { scroll-snap-align: start; }
.lh-carousel-track .ah-prop-card { height: 100%; }

.lh-category-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
}
@media (min-width: 640px) { .lh-category-grid { grid-template-columns: repeat(4, 1fr); } }
.lh-category-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 1rem 0.5rem; border-radius: 1rem; border: 1px solid #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  text-decoration: none; color: inherit; transition: box-shadow 0.15s, transform 0.15s;
}
.lh-category-card:hover { box-shadow: 0 4px 14px rgba(180, 83, 9, 0.12); transform: translateY(-2px); }
.lh-category-icon { font-size: 1.75rem; line-height: 1; }
.lh-category-label { font-size: 0.8125rem; font-weight: 600; color: #1e293b; text-align: center; }
.lh-category-count { font-size: 0.75rem; color: #64748b; }

.lh-province-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
}
@media (min-width: 768px) { .lh-province-grid { grid-template-columns: repeat(4, 1fr); } }
.lh-province-card {
  padding: 1rem; border-radius: 0.875rem; border: 1px solid #e2e8f0; background: #fff;
  text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.lh-province-card:hover { border-color: #b45309; }
.lh-province-name { display: block; font-weight: 700; color: #0f172a; }
.lh-province-count { font-size: 0.75rem; color: #64748b; margin-top: 0.25rem; display: block; }

.lh-stats-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
}
@media (min-width: 768px) { .lh-stats-grid { grid-template-columns: repeat(3, 1fr); } }
.lh-stat-card {
  text-align: center; padding: 1.25rem 1rem; border-radius: 1rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%); border: 1px solid #fed7aa;
}
.lh-stat-value { font-size: 1.5rem; font-weight: 800; color: #b45309; }
.lh-stat-label { font-size: 0.8125rem; color: #475569; margin-top: 0.25rem; }

.lh-why-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .lh-why-grid { grid-template-columns: repeat(2, 1fr); } }
.lh-why-card { padding: 1.25rem; border-radius: 1rem; border: 1px solid #e2e8f0; background: #fff; }

.lh-testimonial-wrap { padding: 1.5rem; border-radius: 1rem; background: #fff; border: 1px solid #e2e8f0; min-height: 140px; }
.lh-testimonial-slide { display: none; }
.lh-testimonial-slide--active { display: block; }
.lh-testimonial-nav {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid #cbd5e1;
  background: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer;
}

.lh-cta-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .lh-cta-grid { grid-template-columns: repeat(3, 1fr); } }
.lh-cta-card {
  display: flex; align-items: center; justify-content: center; min-height: 4.5rem;
  padding: 1rem; border-radius: 1rem; font-weight: 700; text-decoration: none;
  background: #b45309; color: #fff; box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}
.lh-cta-card:hover { background: #92400e; color: #fff; }

.lh-hero-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.lh-hero-tab {
  padding: 0.5rem 1rem; border-radius: 9999px; border: 1px solid #fcd34d;
  background: #fff; font-size: 0.875rem; font-weight: 600; color: #78350f; cursor: pointer;
}
.lh-hero-tab--active { background: #b45309; color: #fff; border-color: #b45309; }
.lh-hero-fields {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 640px) { .lh-hero-fields { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lh-hero-fields { grid-template-columns: repeat(4, 1fr); } }
.lh-hero-field label { display: block; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #92400e; margin-bottom: 0.25rem; }
.lh-hero-field select, .lh-hero-field input {
  width: 100%; border: 1px solid #fde68a; border-radius: 0.625rem; padding: 0.625rem 0.75rem;
  font-size: 0.875rem; background: #fff;
}
.lh-hero-cta {
  margin-top: 1rem; width: 100%; padding: 0.875rem 1.25rem; border-radius: 0.75rem;
  background: #b45309; color: #fff; font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.3);
}
.lh-hero-cta:hover { background: #92400e; }
@media (min-width: 640px) { .lh-hero-cta { width: auto; min-width: 16rem; } }

.ah-prop-verified-badge {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 3;
  background: #059669; color: #fff; font-size: 0.625rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 9999px; text-transform: uppercase;
}
.ah-prop-card-contact-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.ah-prop-mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
  padding: 0.35rem 0.6rem; border-radius: 0.5rem; font-size: 0.6875rem; font-weight: 600;
  border: 1px solid #e2e8f0; background: #fff; color: #334155; text-decoration: none; cursor: pointer;
}
.ah-prop-mini-btn--wa { background: #22c55e; color: #fff; border-color: #22c55e; }
.ah-prop-mini-btn--call { background: #006AFF; color: #fff; border-color: #006AFF; }
.ah-prop-mini-btn--compare.ah-prop-mini-btn--on { background: #fef3c7; border-color: #b45309; color: #92400e; }

#lh-compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
  padding: 0.75rem 1rem;
}
.lh-compare-bar-inner {
  max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 0.75rem;
}
.lh-compare-bar-btn {
  padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600;
  border: 1px solid #cbd5e1; background: #fff; cursor: pointer;
}
.lh-compare-bar-btn--primary { background: #b45309; color: #fff; border-color: #b45309; text-decoration: none; }

.lh-detail-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000;
  display: flex; gap: 0.5rem; padding: 0.75rem 1rem; background: #fff;
  border-top: 1px solid #e2e8f0; box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.1);
}
@media (min-width: 1024px) { .lh-detail-sticky-cta { display: none; } }
.lh-detail-sticky-cta a, .lh-detail-sticky-cta button {
  flex: 1; text-align: center; padding: 0.75rem; border-radius: 0.625rem;
  font-weight: 700; font-size: 0.875rem; text-decoration: none; border: none; cursor: pointer;
}
.lh-detail-sticky-wa { background: #22c55e; color: #fff; }
.lh-detail-sticky-call { background: #006AFF; color: #fff; }

.lh-agent-card { padding: 1.25rem; border-radius: 1rem; border: 1px solid #e2e8f0; background: #fff; }
.lh-report-modal-backdrop {
  position: fixed; inset: 0; z-index: 9500; background: rgba(15, 23, 42, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.lh-report-modal { background: #fff; border-radius: 1rem; padding: 1.5rem; max-width: 28rem; width: 100%; }

/* Property detail — overview tiles, details rows, features, description */
.ah-prop-ic { width: 1.5rem; height: 1.5rem; color: #006AFF; flex-shrink: 0; }
.ah-prop-ic--detail { width: 1.75rem; height: 1.75rem; }
.ah-prop-ic--feature { width: 1.125rem; height: 1.125rem; color: #059669; }
.ah-prop-overview-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0.875rem 0.5rem; border-radius: 0.75rem; border: 1px solid #e2e8f0; background: #f8fafc;
}
.ah-prop-overview-tile__icon { margin-bottom: 0.375rem; }
.ah-prop-overview-tile__label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #64748b; }
.ah-prop-overview-tile__value { font-size: 0.9375rem; font-weight: 700; color: #0f172a; margin-top: 0.125rem; }
.ah-prop-detail-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 0.75rem 0; font-size: 0.875rem;
}
.ah-prop-detail-row__label { color: #64748b; flex-shrink: 0; }
.ah-prop-detail-row__value { font-weight: 600; color: #0f172a; text-align: right; }
.ah-prop-features-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .ah-prop-features-list { grid-template-columns: repeat(2, 1fr); } }
.ah-prop-features-list__item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: #334155; }
.ah-prop-desc-wrap--collapsed .ah-prop-desc-body {
  max-height: 9rem; overflow: hidden; position: relative;
}
.ah-prop-desc-wrap--collapsed .ah-prop-desc-body::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3rem;
  background: linear-gradient(to bottom, transparent, #fff);
}
.ah-prop-read-more { cursor: pointer; background: none; border: none; padding: 0; }
