/* 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-top: 1rem; 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; } }

/* LilamHomes — premium search hero (desktop + mobile mockup) */

.lh-search-hero {
  --lh-brown: #a65632;
  --lh-brown-hover: #8f4829;
  --lh-cream: #f9f7f2;
  --lh-beige: #f2ebe4;
  --lh-card: #ffffff;
  --lh-muted: #64748b;
  --lh-text: #1c1917;
  margin-bottom: 1.25rem;
}
.lh-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lh-search-back {
  font-size: 0.9375rem; font-weight: 500; color: #44403c; text-decoration: none;
}
.lh-search-back:hover { color: var(--lh-brown); }
.lh-search-hero__header { margin-bottom: 1rem; }
.lh-search-hero__eyebrow {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lh-brown); margin-bottom: 0.35rem;
}
.lh-search-hero__title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 5vw, 2.35rem); font-weight: 700; line-height: 1.15;
  color: var(--lh-text); margin: 0;
}
.lh-search-card {
  background: var(--lh-card); border: 1px solid #e7e5e4; border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.06); padding: 1rem;
}
@media (min-width: 640px) { .lh-search-card { padding: 1.25rem 1.5rem; border-radius: 1.125rem; } }
.lh-search-card .lh-hero-tabs { gap: 0.45rem; margin-bottom: 1rem; }
.lh-search-card .lh-hero-tab {
  padding: 0.45rem 0.95rem; border-radius: 0.625rem; border: 1px solid #d6d3d1;
  background: #fff; color: #44403c; font-size: 0.8125rem; font-weight: 600;
}
.lh-search-card .lh-hero-tab--active {
  background: var(--lh-brown); border-color: var(--lh-brown); color: #fff;
}
.lh-search-form { display: grid; gap: 1rem; }
.lh-search-bar-wrap { position: relative; }
.lh-search-bar.store-search-bar {
  border: 1px solid #e7e5e4; border-radius: 0.75rem; background: #fafaf9;
  box-shadow: none; padding: 0.25rem 0.35rem 0.25rem 0.65rem;
}
.lh-search-bar.store-search-bar:focus-within {
  border-color: #d6d3d1; box-shadow: 0 0 0 3px rgba(166, 86, 50, 0.08);
}
.lh-search-bar .store-search-bar__submit,
.lh-search-bar__submit {
  background: var(--lh-brown) !important; border-radius: 0.625rem !important;
  min-height: 42px; padding-inline: 1rem !important;
}
.lh-search-bar .store-search-bar__submit:hover,
.lh-search-bar__submit:hover { background: var(--lh-brown-hover) !important; }
@media (max-width: 639px) {
  .lh-search-bar.store-search-bar { flex-wrap: wrap; padding: 0.45rem; gap: 0.45rem; }
  .lh-search-bar .store-search-bar__field { flex: 1 1 100%; min-width: 0; }
  .lh-search-bar .store-search-bar__submit,
  .lh-search-bar__submit { flex: 1 1 100%; width: 100%; }
}
.lh-search-section { display: grid; gap: 0.45rem; }
.lh-search-label {
  display: block; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--lh-muted);
}
.lh-search-location-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.55rem;
}
@media (min-width: 480px) and (max-width: 639px) {
  .lh-search-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lh-search-select--full { grid-column: 1 / -1; }
}
@media (min-width: 640px) {
  .lh-search-location-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lh-search-select--full { grid-column: auto; }
}
.lh-search-select,
.lh-search-input {
  width: 100%; border: 1px solid #e7e5e4; border-radius: 0.625rem;
  background: #fafaf9; color: #292524; font-size: 0.875rem; font-weight: 500;
  padding: 0.65rem 0.75rem; min-height: 44px; box-sizing: border-box;
}
.lh-search-input { outline: none; }
.lh-search-select:focus,
.lh-search-input:focus {
  border-color: #d6d3d1; box-shadow: 0 0 0 3px rgba(166, 86, 50, 0.08);
}
.lh-search-quick-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem;
}
@media (min-width: 768px) {
  .lh-search-quick-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lh-search-quick-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.55rem 0.75rem; border-radius: 9999px;
  border: 1px solid #e7e5e4; background: #fff; color: #44403c;
  font-size: 0.8125rem; font-weight: 600; cursor: pointer; text-align: center;
}
.lh-search-quick-pill:hover { border-color: #d6d3d1; background: #fafaf9; }
.lh-search-quick-pill--more {
  background: var(--lh-beige); border-color: #eadfd4; color: var(--lh-brown);
}
.lh-search-quick-pill__icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.lh-search-detail-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 640px) {
  .lh-search-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lh-search-detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lh-search-field { display: grid; gap: 0.35rem; align-content: start; }
.lh-search-price-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.35rem; align-items: center;
}
.lh-search-price-dash { color: #a8a29e; font-weight: 600; }
.lh-search-more-panel {
  border-top: 1px solid #f5f5f4; padding-top: 1rem;
}
.lh-search-more-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 640px) {
  .lh-search-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lh-search-more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lh-search-more-check { display: flex; align-items: center; gap: 0.5rem; }
.lh-search-more-amenities { grid-column: 1 / -1; }
.lh-search-footer {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding-top: 0.25rem; border-top: 1px solid #f5f5f4;
}
@media (min-width: 768px) {
  .lh-search-footer {
    flex-direction: row; align-items: center; justify-content: space-between;
  }
}
.lh-search-clear {
  border: 0; background: none; padding: 0; color: var(--lh-muted);
  font-size: 0.875rem; font-weight: 600; cursor: pointer; text-align: left;
}
.lh-search-clear:hover { color: #44403c; }
.lh-search-footer-actions {
  display: grid; gap: 0.55rem; width: 100%;
}
@media (min-width: 640px) {
  .lh-search-footer-actions {
    width: auto; grid-template-columns: auto auto; justify-content: end;
  }
}
.lh-search-smart-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 44px; padding: 0.65rem 1rem; border-radius: 0.75rem;
  border: 1px solid #d6d3d1; background: #fff; color: #44403c;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.lh-search-smart-btn svg { width: 1rem; height: 1rem; }
.lh-search-smart-btn:hover { background: #fafaf9; }
.lh-search-card .lh-hero-cta {
  margin-top: 0; width: 100%; min-width: 0; border-radius: 0.75rem;
  background: var(--lh-brown); box-shadow: none; font-size: 0.9375rem;
  padding: 0.75rem 1.25rem; min-height: 44px;
}
@media (max-width: 639px) {
  .lh-search-footer-actions { grid-template-columns: 1fr; }
  .lh-search-card .lh-hero-cta { width: 100%; }
}
.lh-search-agencies-link {
  display: block; text-align: center; margin: 1rem 0 0.85rem;
  color: var(--lh-brown); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}
.lh-search-agencies-link:hover { text-decoration: underline; }
.lh-search-results-bar {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .lh-search-results-bar {
    flex-direction: row; align-items: flex-start; justify-content: space-between;
  }
}
.lh-search-results-count {
  font-size: 1rem; font-weight: 700; color: var(--lh-text); margin: 0;
}
.lh-search-map-hint {
  display: flex; align-items: flex-start; gap: 0.35rem; margin: 0.35rem 0 0;
  font-size: 0.75rem; color: var(--lh-muted); line-height: 1.4;
}
.lh-search-map-hint svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; margin-top: 0.05rem; }
.lh-view-toggle {
  display: inline-flex; align-self: flex-start; border: 1px solid #e7e5e4;
  border-radius: 0.625rem; overflow: hidden; background: #fff;
}
.lh-view-toggle__btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.85rem; border: 0; background: #fff; color: #44403c;
  font-size: 0.8125rem; font-weight: 600; cursor: pointer; min-height: 40px;
}
.lh-view-toggle__btn svg { width: 0.95rem; height: 0.95rem; }
.lh-view-toggle__btn--active {
  background: #1c1917; color: #fff;
}
.lh-view-toggle__btn + .lh-view-toggle__btn { border-left: 1px solid #e7e5e4; }

.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; }
