@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap");

/* ── Hero ── */
.dbx-hero {
  position: relative;
  height: 340px;
  background: url("/static/images/developments_hero_v2.jpg") center center /
    cover no-repeat;
  display: flex;
  align-items: center;
}
.dbx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.dbx-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dbx-hero-text {
}
.dbx-breadcrumb {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(55, 65, 81, 0.72);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dbx-breadcrumb a {
  color: rgba(55, 65, 81, 0.72);
  text-decoration: none;
}
.dbx-breadcrumb a:hover {
  color: #003b39;
}
.dbx-breadcrumb i {
  font-size: 0.6rem;
  opacity: 0.55;
}
.dbx-hero-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.4rem, 5vw, 5.2rem);
  font-weight: 500;
  color: #003b39;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.03em;
}
.dbx-hero-sub {
  font-family: "Inter", sans-serif;
  font-size: 1.12rem;
  color: #4b5563;
  font-weight: 500;
  margin: 18px 0 0;
  line-height: 1.7;
  max-width: 640px;
}
.dbx-hero-action {
  flex-shrink: 0;
}
.dbx-saved-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 79, 77, 0.08);
  color: #004f4d;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 16px;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.dbx-saved-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.13);
}

/* ── Filter Panel ── */
.dbx-fp-wrap {
  position: relative;
  z-index: 20;
  max-width: min(1380px, calc(100% - 48px));
  margin: -42px auto 0;
}
.dbx-fp {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 79, 77, 0.05);
  padding: 22px 26px 20px;
}
.dbx-fp-row1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.dbx-fp-search {
  flex: 1;
  position: relative;
}
.dbx-fp-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.95rem;
  pointer-events: none;
}
.dbx-fp-search .tsf-chip-input {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 5px 16px 5px 44px;
  background: #fafafa;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.dbx-fp-search .tsf-chip-input:focus-within {
  border-color: #004f4d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 79, 77, 0.08);
}
.dbx-fp-search .tsf-chip-input .tsf-input {
  border: none;
  background: transparent;
  height: 36px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #374151;
  outline: none;
  padding: 0;
  min-width: 120px;
  box-shadow: none;
}
.dbx-fp-search .tsf-chip-input .tsf-input::placeholder {
  color: #b1b9c3;
}
.dbx-fp-search .tsf-location-panel {
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 0;
}
.dbx-mapview-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 18px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
}
.dbx-mapview-btn:hover {
  background: #e9eaec;
  border-color: #d1d5db;
}
.dbx-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(135deg, #007c78 0%, #004f4d 65%, #003b39 100%);
  border: none;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 79, 77, 0.28);
  transition:
    opacity 0.15s,
    box-shadow 0.15s;
  flex-shrink: 0;
}
.dbx-update-btn:hover {
  opacity: 0.88;
  box-shadow: 0 8px 22px rgba(0, 79, 77, 0.36);
}
.dbx-fp-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* ── Custom teal dropdowns ── */
.dbx-dd {
  position: relative;
  display: inline-block;
}
.dbx-dd__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  user-select: none;
}
.dbx-dd__trigger:hover {
  border-color: #004f4d;
  background: #f0faf9;
}
.dbx-dd--open .dbx-dd__trigger {
  border-color: #004f4d;
  background: #f0faf9;
  box-shadow: 0 0 0 3px rgba(0, 79, 77, 0.1);
}
.dbx-dd--active .dbx-dd__trigger {
  border-color: #004f4d;
  background: #004f4d;
  color: #fff;
}
.dbx-dd--active .dbx-dd__chevron {
  color: rgba(255, 255, 255, 0.8);
}
.dbx-dd__chevron {
  font-size: 0.6rem;
  color: #6b7280;
  transition: transform 0.18s;
}
.dbx-dd--open .dbx-dd__chevron {
  transform: rotate(180deg);
}
.dbx-dd__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(0, 79, 77, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.11);
  z-index: 500;
  overflow: hidden;
  padding: 6px;
}
.dbx-dd--open .dbx-dd__menu {
  display: block;
}
.dbx-dd__opt {
  padding: 9px 14px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
  white-space: nowrap;
}
.dbx-dd__opt:hover {
  background: #f0faf9;
  color: #004f4d;
}
.dbx-dd__opt--selected {
  background: #004f4d;
  color: #fff;
  border-radius: 8px;
}
.dbx-dd__opt--selected:hover {
  background: #003b39;
  color: #fff;
}
.dbx-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  background: transparent;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
  margin-left: auto;
}
.dbx-more-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* ── Page body ── */
.dbx-body {
  max-width: min(1228px, calc(100% - 48px));
  margin: 36px auto 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.dbx-map-col {
  display: none !important;
}

/* ── Results column ── */
.dbx-results {
}
.dbx-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 12px;
  flex-wrap: wrap;
}
.dbx-count-txt {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  color: #374151;
}
.dbx-count-txt strong {
  color: #004f4d;
  font-weight: 700;
}
.dbx-count-clear {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: #004f4d;
  text-decoration: none;
  font-weight: 500;
}
.dbx-count-clear:hover {
  text-decoration: underline;
}
.dbx-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: #9ca3af;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.dbx-sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #d1fae5;
  border-radius: 999px;
  background: #fff;
  padding: 6px 14px 6px 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #004f4d;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  user-select: none;
}
.dbx-sort-btn:hover,
.dbx-sort-btn.open {
  border-color: #004f4d;
  box-shadow: 0 0 0 3px rgba(0, 79, 77, 0.08);
}
.dbx-sort-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.dbx-sort-btn.open svg {
  transform: rotate(180deg);
}
.dbx-sort-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1.5px solid #d1fae5;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 79, 77, 0.12);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  padding: 4px 0;
}
.dbx-sort-dropdown.open {
  display: block;
}
.dbx-sort-option {
  display: block;
  width: 100%;
  padding: 10px 18px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}
.dbx-sort-option:hover {
  background: #f0fdf9;
  color: #004f4d;
}
.dbx-sort-option.active {
  background: #004f4d;
  color: #fff;
  font-weight: 600;
}

/* ── Status group ── */
.dbx-group {
  margin-bottom: 36px;
}
.dbx-group-hdr {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.dbx-group-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dbx-group-title {
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
.dbx-group-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: #004f4d;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.dbx-badge--pre {
  background: #004f4d;
}
.dbx-badge--under {
  background: #1e3a5f;
}
.dbx-badge--presale {
  background: #3b82f6;
}
.dbx-badge--done {
  background: #059669;
}
.dbx-badge--land {
  background: #6b7280;
}
.dbx-group-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.dbx-group-viewall {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #004f4d;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}
.dbx-group-viewall:hover {
  text-decoration: underline;
}
/* Card status pill — used on the dev cards, not the group header */
.dbx-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  backdrop-filter: blur(4px);
}
.dbx-status-pill i {
  font-size: 0.42rem;
}
.dbx-pill--pre {
  background: rgba(0, 79, 77, 0.86);
}
.dbx-pill--under {
  background: #1e3a5f;
}
.dbx-pill--presale {
  background: rgba(124, 58, 237, 0.86);
}
.dbx-pill--done {
  background: rgba(5, 150, 105, 0.86);
}
.dbx-pill--land {
  background: rgba(107, 114, 128, 0.86);
}
.dbx-pill--other {
  background: rgba(55, 65, 81, 0.86);
}

/* ── Horizontal dev card ── */
/* ── Development Card — Premium 3-column ── */
.development-card {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr) minmax(
      180px,
      230px
    );
  gap: 28px;
  align-items: center;
  width: 100%;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 26px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.development-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 79, 77, 0.12);
}
.development-card:last-child {
  margin-bottom: 0;
}

.development-image-column {
  position: relative;
  width: 100%;
}
.development-image-column img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  filter: none !important;
  opacity: 1 !important;
}
.dev-img-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 20px;
  background: linear-gradient(135deg, #004f4d 0%, #188f8b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dev-status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(4px);
}
.dev-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
  cursor: pointer;
  transition: color 0.15s;
  border: none;
}
.dev-heart-btn:hover {
  color: #ff6b6b;
}
.dev-heart-btn.active {
  color: #ff6b6b;
}

.development-info-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dev-price {
  font-family: "Inter", sans-serif;
  font-size: 15.7px;
  font-weight: 700;
  color: #006c67;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.dev-name {
  font-family: "Inter", sans-serif;
  font-size: clamp(23.4px, 2.25vw, 36px);
  font-weight: 400;
  color: #111827;
  line-height: 1.05;
  margin: 0;
}
.dev-location {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.dev-location i {
  color: #004f4d;
  font-size: 13px;
}
.dev-features {
  display: flex;
  gap: 0;
  margin: 4px 0;
}
.dev-feature {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border-right: 1px solid #e5e7eb;
  text-align: center;
}
.dev-feature:last-child {
  border-right: none;
}
.dev-feature i {
  font-size: 14px;
  color: #004f4d;
}
.dev-feature span {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}
.dev-summary {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 520px;
  margin: 0;
}
.dev-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #006c67;
  margin-top: 2px;
  transition: gap 0.15s;
}
.development-card:hover .dev-cta-link {
  gap: 12px;
}

.development-action-column {
  height: 100%;
  min-width: 0;
  border-left: 1px solid #e5e7eb;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  text-align: center;
}
.development-logo {
  max-width: 165px;
  max-height: 70px;
  object-fit: contain;
  display: block;
}
.development-developer-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}
.development-developer-name {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #004f4d;
  font-weight: 700;
}
.development-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 13px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  background: #ffffff;
  color: #004f4d;
  border: 1.5px solid #004f4d;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  box-sizing: border-box;
}
.development-primary-btn:hover {
  background: #f0faf9;
}
.development-compare-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 46px;
  border-radius: 13px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  background: #ffffff;
  color: #004f4d;
  border: 1.5px solid #004f4d;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
}
.development-compare-btn:hover {
  background: #f0faf9;
}
.development-compare-btn input[type="checkbox"] {
  accent-color: #004f4d;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .development-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .development-image-column img,
  .dev-img-placeholder {
    height: 240px;
  }
  .development-action-column {
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding-left: 0;
    padding-top: 18px;
    align-self: auto;
  }
  .development-logo {
    align-self: center;
  }
  .dev-name {
    font-size: 28px;
  }
}

/* ── Pagination ── */
.dbx-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}
.dbx-pg-btn {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.dbx-pg-btn:hover {
  color: #004f4d;
}
.dbx-pg-btn--active {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #007c78 0%, #004f4d 60%, #003b39 100%);
  color: #fff !important;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 79, 77, 0.24);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dbx-pg-ellipsis {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #9ca3af;
}

/* ── Empty state ── */
.dbx-empty {
  text-align: center;
  padding: 80px 24px;
  color: #6b7280;
  font-family: "Inter", sans-serif;
}
.dbx-empty i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
  display: block;
}
.dbx-empty h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: #374151;
  margin: 0 0 8px;
}
.dbx-empty p {
  font-size: 0.9rem;
}
.dbx-empty a {
  color: #004f4d;
}

/* ── Map column ── */
.dbx-map-col {
  position: sticky;
  top: 110px;
}
.dbx-map-card {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(0, 79, 77, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}
/* Floating "Search as I move" pill inside map */
.dbx-map-movepill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  border: none;
  user-select: none;
}
.dbx-map-movepill input[type="checkbox"] {
  accent-color: #004f4d;
  cursor: pointer;
  width: 15px;
  height: 15px;
}
/* Map wrapper needs relative positioning for the pill overlay */
.dbx-map-wrap {
  position: relative;
}
#dbxMap {
  width: 100%;
  height: 720px;
}
/* Tuned for #00B3DC water — strong saturation, deeper cyan shift */
.leaflet-tile-pane {
  filter: saturate(1.55) brightness(1.04) hue-rotate(-8deg);
}
.leaflet-container {
  background: #f5f2eb !important;
}
.leaflet-tile {
  outline: none !important;
}
/* Premium Leaflet zoom controls */
.leaflet-control-zoom {
  border: 1px solid rgba(0, 79, 77, 0.08) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background: #fff !important;
  color: #004f4d !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 32px !important;
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  border-bottom: 1px solid rgba(0, 79, 77, 0.06) !important;
  transition: background 0.15s ease;
}
.leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}
.leaflet-control-zoom a:hover {
  background: #f0faf9 !important;
}
/* Premium map popup */
.dbx-map-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 79, 77, 0.08);
  padding: 0;
}
.dbx-map-popup .leaflet-popup-content {
  margin: 14px 16px;
}
.dbx-map-popup .leaflet-popup-tip {
  background: #fff;
}
.dbx-map-legend {
  padding: 28px;
  border-top: 1px solid #f3f4f6;
}
.dbx-map-legend-title {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #8b95a1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.dbx-legend-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dbx-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  color: #374151;
}
.dbx-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dbx-dot--pre {
  background: #7daa65;
}
.dbx-dot--under {
  background: #1e3a5f;
}
.dbx-dot--presale {
  background: #5b8def;
}
.dbx-dot--done {
  background: #007c78;
}
.dbx-dot--land {
  background: #6b7280;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .dbx-body {
    grid-template-columns: 1fr;
  }
  #dbxMap {
    height: 620px;
  }
}
@media (max-width: 700px) {
  .dbx-hero {
    height: 260px;
  }
  .dbx-hero-inner {
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }
  .dbx-hero-action {
    align-self: flex-start;
  }
  .dbx-fp-wrap {
    margin-top: -42px;
    max-width: calc(100% - 32px);
  }
  .dbx-fp {
    padding: 16px 16px 14px;
  }
  .dbx-fp-row1 {
    flex-wrap: wrap;
  }
  .dbx-fp-search {
    flex: 1 1 100%;
  }
  .dbx-mapview-btn {
    display: none;
  }
  .dbx-fp-row2 {
    gap: 8px;
  }
  .dbx-fp-sel {
    font-size: 0.85rem;
  }
  .dbx-hcard {
    grid-template-columns: 1fr;
  }
  .dbx-hcard__img {
    width: 100%;
    height: 180px;
    position: relative;
    border-radius: 10px;
    margin: 8px 8px 0 8px;
  }
  .dbx-group-desc {
    display: none;
  }
  #dbxMap {
    height: 500px;
  }
}
@media (max-width: 480px) {
  .dbx-body {
    max-width: calc(100% - 32px);
  }
  .dbx-hero-heading {
    font-size: 2.2rem;
  }
}
.acct-type-btn {
  background: white;
  border: 2px solid #c4cdd6;
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
  min-height: 112px;
  box-sizing: border-box;
}
.acct-type-btn:hover {
  border-color: rgba(0, 79, 77, 0.35);
  background: #f0fdf4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.acct-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 79, 77, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #004f4d;
  margin-bottom: 0.5rem;
}
.acct-type-label {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.acct-type-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}
#accountTypeModal .auth-modal-body > p:first-child {
  margin-bottom: 0.7rem !important;
}
#accountTypeModal .auth-modal-body > div:nth-child(2) {
  margin-bottom: 0.9rem !important;
}
#accountTypeModal .auth-modal-close {
  top: 18px;
  opacity: 0.7;
}

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.auth-modal-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
.auth-modal-header h3,
.auth-modal-header h2 {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  color: #004f4d;
  font-size: 1.5rem;
  pointer-events: none;
}
.auth-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal-close:hover {
  color: #333;
}
.auth-modal-body {
  padding: 20px;
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #1a1a1a;
  font-weight: 600;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none;
  border-color: #004f4d;
  box-shadow: 0 0 0 3px rgba(0, 79, 77, 0.1);
}
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  cursor: pointer;
}
.form-group select:focus {
  outline: none;
  border-color: #004f4d;
}
.auth-btn-primary {
  width: 100%;
  padding: 12px;
  background: #004f4d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}
.auth-btn-primary:hover {
  background: #003a37;
}
.auth-btn-secondary {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #004f4d;
  border: 2px solid #004f4d;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.auth-btn-secondary:hover {
  background: #004f4d;
  color: white;
}
.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}
.auth-divider span {
  background: white;
  padding: 0 15px;
  color: #666;
  font-size: 14px;
}
