/* Public experience. Loaded after route-specific styles. */
.ce-public {
  --ce-pine: #183d34;
  --ce-brass: #dfbd88;
  --ce-ease: cubic-bezier(.2, .65, .3, 1);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
}

.ce-public:lang(hi) {
  --font-display: 'Noto Sans Devanagari', sans-serif;
}

.ce-public :focus-visible {
  outline: 3px solid #a36c27;
  outline-offset: 4px;
}
.ce-public .re-wrap { width: 100%; max-width: 1360px; }
.ce-public .re-header-inner { max-width: 1360px; }
.ce-public .re-logo-mark,
.ce-public .footer-logo-mark {
  background: #173a31;
  color: #f3d6a9;
  border: 1px solid #b59262;
  border-radius: 50%;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}
.ce-public .brand { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
.ce-public .re-nav .re-nav-cta,
.ce-public .btn-enquiry,
.ce-public .enquiry-form .btn-enquiry-submit,
.ce-public .biz-btn-view { background: var(--ce-pine); color: #fff; }
.ce-public .mode-pill,
.ce-public .view-toggle a,
.ce-public .filter-select,
.ce-public .section-link { min-height: 44px; }
.ce-public .section-link,
.ce-public .mode-pill,
.ce-public .view-toggle a { display: inline-flex; align-items: center; }
.ce-public .section-title,
.ce-public .page-hero-title,
.ce-public .detail-title,
.ce-public .proj-title { font-family: var(--font-display); }
.ce-public .section-title { font-size: clamp(1.85rem, 3vw, 2.8rem); }
.ce-public .page-hero {
  color: #fff8e9;
  background: radial-gradient(ellipse at 88% 0%, #365e4e, transparent 65%), #132d27;
  border-radius: 1.5rem;
  margin-block: 1.5rem;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
}
.ce-public .page-hero :is(h1, p) { color: inherit; }
.ce-public .page-hero-eyebrow { color: var(--ce-brass); }
.ce-public :is(.re-card, .proj-list-card, .biz-card, .enquiry-box, .form-section) {
  border-radius: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
}
.ce-public :is(.re-card, .proj-list-card, .biz-card) {
  transition: transform 260ms var(--ce-ease), box-shadow 260ms var(--ce-ease);
}
.ce-public :is(.card-img-wrap, .proj-list-img, .biz-cover) img {
  transition: transform 430ms var(--ce-ease);
}
.ce-public .card-title { font-family: var(--font-display); font-size: 1.25rem; }
.ce-public .re-footer { background: #112822; }

.ce-home .hero {
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: clamp(29rem, 49vw, 40rem);
  margin: 1.25rem 0 1.75rem;
  padding: clamp(2rem, 5vw, 5rem);
  border-radius: clamp(1rem, 2.5vw, 2rem);
  background-color: #18382f;
  background-image: linear-gradient(90deg, #102a23 0%, rgb(16 42 35 / 94%) 24%, rgb(16 42 35 / 55%) 58%, rgb(16 42 35 / 8%) 100%), var(--ce-hero-image, radial-gradient(ellipse at 90% 32%, #6f7754, #254b3d 58%, #15332b));
  background-position: center, center 52%;
  background-size: cover;
  box-shadow: 0 18px 45px rgb(19 45 37 / 16%);
}
.ce-home .hero::before { content: none; }
.ce-home .hero-content { margin: 0; max-width: 42rem; text-align: start; }
.ce-home .hero-eyebrow { color: #f4d5a6; background: rgb(19 35 29 / 52%); border: 1px solid rgb(244 213 166 / 48%); }
.ce-home .hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6vw, 5.15rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.035em;
  color: #fff9ee;
}
.ce-home:lang(hi) .hero h1 { font-size: clamp(2.35rem, 5.5vw, 4.5rem); line-height: 1.18; letter-spacing: normal; font-weight: 600; }
.ce-home .hero h1 em { color: #f1cc93; }
.ce-home .hero p { margin-inline: 0; color: #fff8eb; max-width: 34rem; }
.ce-home .search-box { margin: 0; padding: .35rem; border-radius: .9rem; max-width: 37rem; background: #fffefa; }
.ce-home .search-box input { min-width: 0; background: #fffefa; color: #17271f; padding-inline: .85rem; }
.ce-home .search-box button { background: #ddbb85; color: #1a2d24; border-radius: .62rem; flex-shrink: 0; min-height: 44px; }
.ce-home .search-box button:hover { background: #efd3a8; }
.ce-home .hero-stats { justify-content: flex-start; gap: clamp(.75rem, 3vw, 2rem); }
.ce-home .hero-stat { text-align: start; }
.ce-home .hero-stat-number { color: #f1cc93; font-weight: 500; font-variant-numeric: tabular-nums; }
.ce-home .hero-stat-label { color: #fff9ee; opacity: 1; }
.ce-home .filter-bar { border: 1px solid var(--border-medium); border-radius: 1rem; background: var(--bg-card); }
.ce-home .filter-bar :is(.filter-select, .price-range) { background: var(--bg-primary); color: var(--text-primary); border-color: var(--border-medium); }
.ce-home .price-input { color: var(--text-primary); min-width: 0; flex: 1; }
.ce-home .card-footer { gap: .65rem; flex-wrap: wrap; }
.ce-home .re-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ce-map-status { padding: 1rem; background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: 1rem; margin-block: 1rem; }
.ce-map-status a { color: var(--text-primary); text-decoration: underline; }
.ce-filter-apply { padding: .55rem 1rem; min-height: 44px; border: 0; border-radius: .6rem; background: var(--ce-pine); color: #fff; cursor: pointer; }
.ce-mobile-enquiry { display: none; }
#ce-enquiry { scroll-margin-top: 6rem; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ce-public :is(.re-card, .proj-list-card, .biz-card):hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 34px rgb(18 43 35 / 16%);
  }
  .ce-public :is(.re-card, .proj-list-card, .biz-card):hover :is(.card-img-wrap, .proj-list-img, .biz-cover) img { transform: scale(1.045); }
}
@media (prefers-reduced-motion: no-preference) {
  .ce-home .hero-content, .ce-public .page-hero { animation: ce-enter 550ms var(--ce-ease) both; }
  @keyframes ce-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 768px) {
  .ce-home .hero {
    margin-block: .75rem 1.25rem;
    padding: 2rem 1rem;
    min-height: 28rem;
    background-image: linear-gradient(90deg, rgb(16 42 35 / 98%), rgb(16 42 35 / 73%)), var(--ce-hero-image, radial-gradient(ellipse at 90% 32%, #6f7754, #15332b));
    background-position: center, 65% center;
  }
  .ce-home .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ce-home .search-box button { padding-inline: .7rem; font-size: .9rem; }
  .ce-home .filter-group { flex-wrap: wrap; }
  .ce-home .filter-select { flex: 1 1 8rem; max-width: 100%; }
  .ce-home .price-range { flex: 1 1 11rem; width: auto; }
  .ce-public .proj-list-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
  .ce-public:has(.ce-mobile-enquiry) { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .ce-mobile-enquiry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    position: fixed;
    inset: auto 0 0;
    z-index: 950;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    background: var(--bg-card);
    border-top: 1px solid var(--border-medium);
  }
  .ce-mobile-enquiry a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: .45rem;
    border-radius: .65rem;
    background: var(--ce-pine);
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ce-public *, .ce-public *::before, .ce-public *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.ce-home [hidden] { display: none !important; }
.ce-pin-preview {
  display: grid;
  gap: .35rem;
  width: 13rem;
  color: #17342c;
}
.ce-pin-preview img {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  border-radius: .5rem;
}
.ce-pin-preview a { color: #183d34; text-decoration: underline; }

.ce-home { --ce-hero-image: url('../images/city-estates-hero.webp'); }
.ce-home .re-map-container {
  height: auto;
  overflow: visible;
  box-shadow: none;
}
.ce-home #reMap {
  height: clamp(20rem, 60vh, 34rem);
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border-medium);
}
.ce-map-marker {
  background: var(--pin-color, #183d34);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px #192b2570;
}
.ce-location-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-primary);
  text-decoration: underline;
}

.ce-save-form, .ce-saved-lookup {
  padding: 1rem;
  margin-block: 0 1rem;
  border: 1px solid var(--border-medium);
  border-radius: 1rem;
  background: var(--bg-card);
}
.ce-save-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  scroll-margin-top: 6rem;
}
.ce-save-form a { color: var(--text-primary); text-decoration: underline; }
.ce-save-button {
  min-height: 44px;
  border: 1px solid var(--border-medium);
  border-radius: .65rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: .55rem .9rem;
}
.ce-save-button[aria-pressed="true"] { color: #fff; background: var(--ce-pine); }
.ce-saved-lookup summary { cursor: pointer; }
.ce-saved-lookup form { display: flex; gap: .75rem; align-items: center; max-width: 26rem; margin-top: .75rem; }
.ce-error-home { display: inline-block; margin-top: 1.25rem; color: var(--ce-brass); text-decoration: underline; }
.ce-coordinate-inputs { margin-top: .75rem; }
.ce-coordinate-inputs label { min-width: 0; }
.ce-coordinate-inputs input { margin-top: .25rem; }

.ce-home .location-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 1rem;
}
.ce-home .location-tags-title { color: var(--text-secondary); }
.ce-home .location-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .35rem .8rem;
  border: 1px solid var(--border-medium);
  border-radius: 2rem;
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: .875rem;
}
.ce-home .location-tag:is(.active, :hover) {
  color: white;
  background: var(--ce-pine);
}

.ce-plot-view { margin-top: .75rem; }
.ce-plot-caption { margin: .65rem 0; color: var(--text-secondary); font-size: .875rem; }
#plotMapSvg { transform-origin: center 56%; }
.ce-plot-angled #plotMapSvg {
  transform: perspective(850px) rotateX(32deg) scale(.9);
  box-shadow: 0 18px 24px rgb(12 36 30 / 20%);
}
@media (prefers-reduced-motion: no-preference) {
  #plotMapSvg { transition: transform .28s ease, box-shadow .28s ease; }
}
.ce-doc-status { padding-top: 1rem; }
.ce-doc-status p { color: var(--text-secondary); }

.ce-category-shortcuts, .ce-vendor-toolbar, .ce-vendor-toolbar form {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.ce-category-shortcuts { margin-block: .9rem; }
.ce-vendor-toolbar { justify-content: space-between; margin: 1rem 0; }
.ce-vendor-toolbar form { flex: 1 1 21rem; }
.ce-vendor-toolbar .re-input { flex: 1 1 12rem; min-width: 0; }
.ce-vendor-toolbar > a { padding: .65rem 1rem; }
.ce-vendor-register { max-width: 43rem !important; padding-block: 2rem; }
.ce-vendor-register h1 { font: 400 clamp(1.9rem, 4vw, 3rem)/1.2 var(--font-display); margin: .8rem 0; }
.ce-vendor-register form { display: grid; gap: 1rem; padding: clamp(1rem, 4vw, 2rem); margin-top: 1.25rem; }
.ce-vendor-register label { display: grid; gap: .35rem; }
.ce-vendor-register .ce-vendor-consent { grid-template-columns: auto 1fr; align-items: baseline; }
