:root {
  --btm-primary: #1fa5cd;
  --btm-primary-dark: #0b6f8f;
  --btm-primary-soft: #e6f7fb;
  --btm-mint: #57c7b0;
  --btm-warm: #f5a04f;
  --btm-success: #46b980;
  --btm-page: #f5fbfc;
  --btm-surface: #ffffff;
  --btm-text: #16333d;
  --btm-muted: #5f7480;
  --btm-border: #d6edf2;
  --btm-shadow: 0 16px 42px rgba(22, 51, 61, 0.08);
}

.btm-site-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--btm-border);
}

.btm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--btm-text) !important;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none !important;
}

.btm-brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--btm-primary), var(--btm-mint));
  border-radius: 8px;
}

.btm-site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btm-site-header nav a {
  padding: 9px 11px;
  color: var(--btm-muted) !important;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none !important;
}

.btm-site-header nav a:hover {
  color: var(--btm-primary-dark) !important;
  background: var(--btm-primary-soft);
}

.btm-site-footer {
  padding: 44px 0 24px;
  color: rgba(255, 255, 255, .82);
  background: #12333d;
}

.btm-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.btm-footer-brand {
  color: #fff !important;
}

.btm-site-footer p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
}

.btm-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.btm-site-footer nav a {
  color: rgba(255, 255, 255, .86) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.btm-site-footer nav a:hover {
  color: #fff !important;
}

.btm-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

.btm-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.btm-section {
  padding: 72px 0;
  background: var(--btm-page);
}

.btm-white {
  background: #fff;
  border-block: 1px solid var(--btm-border);
}

.btm-hero {
  padding: 78px 0 58px;
  background: linear-gradient(135deg, rgba(230, 247, 251, 0.92), rgba(245, 251, 252, 0.76));
  border-bottom: 1px solid var(--btm-border);
}

.btm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 48px;
}

.btm-eyebrow,
.btm-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  color: var(--btm-primary-dark);
  background: var(--btm-primary-soft);
  border: 1px solid rgba(31, 165, 205, .24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.btm-hero h1,
.btm-section h1,
.btm-profile-hero h1 {
  margin: 14px 0 18px;
  color: var(--btm-text);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.btm-section h2 {
  margin: 0 0 22px;
  color: var(--btm-text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 900;
}

.btm-section h3,
.btm-card h3 {
  color: var(--btm-text);
}

.btm-hero p,
.btm-section p,
.btm-card p,
.btm-profile-hero p {
  color: var(--btm-muted);
  font-size: 16px;
}

.btm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btm-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
}

.btm-primary {
  color: #fff !important;
  background: var(--btm-primary);
  box-shadow: 0 10px 24px rgba(31, 165, 205, .22);
}

.btm-primary:hover {
  background: var(--btm-primary-dark);
}

.btm-secondary {
  color: var(--btm-text) !important;
  background: var(--btm-surface);
  border-color: var(--btm-border);
}

.btm-card {
  padding: 22px;
  background: var(--btm-surface);
  border: 1px solid var(--btm-border);
  border-radius: 8px;
  box-shadow: var(--btm-shadow);
}

.btm-card-grid {
  display: grid;
  gap: 18px;
}

.btm-card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btm-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btm-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.btm-choice {
  min-height: 210px;
  display: grid;
  align-content: center;
  color: inherit !important;
  text-decoration: none !important;
}

.btm-price.featured {
  border: 2px solid var(--btm-primary);
}

.btm-price strong {
  display: block;
  margin: 8px 0;
  color: var(--btm-text);
  font-size: 34px;
  line-height: 1;
}

.btm-map-preview,
.btm-map,
.btm-mini-map {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(214, 237, 242, .55) 1px, transparent 1px),
    linear-gradient(rgba(214, 237, 242, .55) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(87, 199, 176, .18), transparent 25%),
    radial-gradient(circle at 70% 45%, rgba(31, 165, 205, .16), transparent 30%),
    #f3fbfd;
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.btm-map-preview {
  min-height: 430px;
  border: 1px solid var(--btm-border);
  border-radius: 8px;
  box-shadow: var(--btm-shadow);
}

.btm-map-preview.small {
  min-height: 220px;
  margin: -22px -22px 22px;
  border: 0;
  border-radius: 8px 8px 0 0;
}

.btm-road {
  position: absolute;
  width: 72%;
  height: 8px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(214, 237, 242, .75);
  border-radius: 999px;
  transform: rotate(-20deg);
}

.btm-road-one { top: 34%; left: -10%; }
.btm-road-two { top: 63%; right: -12%; transform: rotate(18deg); }

.btm-pin,
.btm-cluster {
  position: absolute;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(22, 51, 61, .2);
}

.btm-pin {
  width: 38px;
  height: 38px;
  background: var(--btm-primary-dark);
}

.btm-pin-green { background: var(--btm-mint); }

.btm-cluster {
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--btm-warm);
  font-weight: 900;
}

.btm-preview-card {
  position: absolute;
  top: 22%;
  left: 36%;
  min-width: 250px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--btm-border);
  border-radius: 8px;
  box-shadow: var(--btm-shadow);
}

.btm-preview-card small,
.btm-preview-card span {
  display: inline-block;
  color: var(--btm-muted);
}

.btm-preview-card span {
  margin: 12px 6px 0 0;
  padding: 5px 8px;
  color: var(--btm-primary-dark);
  background: var(--btm-primary-soft);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.btm-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.btm-steps > div {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--btm-border);
  border-radius: 8px;
}

.btm-steps span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--btm-primary);
  border-radius: 999px;
  font-weight: 900;
}

.btm-search-app {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--btm-page);
}

.btm-filter-panel {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border-right: 1px solid var(--btm-border);
  border-bottom: 1px solid var(--btm-border);
}

.btm-filter-panel h1 {
  margin: 0;
  font-size: 26px;
}

.btm-filter-panel label,
.btm-form label {
  display: grid;
  gap: 7px;
  color: var(--btm-text);
  font-size: 13px;
  font-weight: 900;
}

.btm-filter-panel input,
.btm-filter-panel select,
.btm-form input,
.btm-form select,
.btm-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--btm-text);
  background: var(--btm-page);
  border: 1px solid var(--btm-border);
  border-radius: 8px;
}

.btm-form textarea {
  min-height: 130px;
}

.btm-chip-row,
.btm-term-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btm-chip-row label,
.btm-term-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: var(--btm-muted);
  background: #fff;
  border: 1px solid var(--btm-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.btm-chip-row input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.btm-chip-row label.active,
.btm-term-row span {
  color: var(--btm-primary-dark);
  background: var(--btm-primary-soft);
  border-color: var(--btm-primary);
}

.btm-map-shell {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  min-width: 0;
}

.btm-map {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 80px);
}

.btm-mobile-tabs {
  display: none;
}

.btm-results-panel {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--btm-border);
}

.btm-results-count {
  padding: 14px 22px;
  color: var(--btm-muted);
  background: var(--btm-page);
  border-bottom: 1px solid var(--btm-border);
  font-size: 14px;
}

.btm-results {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  overflow: auto;
}

.btm-scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--btm-primary);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(22, 51, 61, .24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.btm-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btm-scroll-top:hover,
.btm-scroll-top:focus-visible {
  background: var(--btm-primary-dark);
}

.btm-scroll-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 761px) {
  .btm-search-app {
    height: calc(100vh - var(--btm-fixed-map-offset, 0px));
    height: calc(100dvh - var(--btm-fixed-map-offset, 0px));
    min-height: 620px;
    overflow: hidden;
  }

  .btm-filter-panel {
    max-height: min(54vh, 440px);
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .btm-results-panel {
    overflow: hidden;
  }

  .btm-map-shell {
    position: sticky;
    top: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .btm-map {
    height: 100%;
    min-height: 0;
  }

  .btm-results {
    overflow: auto;
  }
}

.btm-result-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--btm-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 51, 61, .05);
}

.btm-result-card h3 {
  margin: 0;
}

.btm-result-card .tags,
.btm-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btm-result-card .tags span,
.btm-popup-tags span {
  padding: 4px 7px;
  color: var(--btm-primary-dark);
  background: var(--btm-primary-soft);
  border: 1px solid rgba(31, 165, 205, .24);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.btm-form-wrap {
  max-width: 980px;
}

.btm-form {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--btm-border);
  border-radius: 8px;
  box-shadow: var(--btm-shadow);
}

.btm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.btm-form-grid .full {
  grid-column: 1 / -1;
}

.btm-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btm-checks label,
.btm-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.btm-checks input,
.btm-checkbox input {
  width: auto;
  min-height: 0;
}

.btm-notice {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 8px;
}

.btm-notice.success {
  color: #16643e;
  background: #e8f7ef;
  border: 1px solid #c8ead8;
}

.btm-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
  align-items: start;
  gap: 20px;
  margin-top: 22px;
}

.btm-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.btm-dashboard-hero h2 {
  margin-bottom: 8px;
}

.btm-dashboard-stats {
  margin-bottom: 22px;
}

.btm-dashboard-stats .btm-card span {
  display: block;
  color: var(--btm-muted);
  font-size: 13px;
  font-weight: 800;
}

.btm-dashboard-stats .btm-card strong {
  display: block;
  margin-top: 8px;
  color: var(--btm-text);
  font-size: 22px;
  line-height: 1.15;
}

.btm-highlight-card {
  background: linear-gradient(135deg, #fff, var(--btm-primary-soft));
}

.btm-dashboard .login-username,
.btm-dashboard .login-password,
.btm-dashboard .login-remember,
.btm-dashboard .login-submit {
  margin: 0 0 14px;
}

.btm-dashboard .login-username label,
.btm-dashboard .login-password label {
  display: grid;
  gap: 7px;
  color: var(--btm-text);
  font-size: 13px;
  font-weight: 900;
}

.btm-dashboard .login-username input,
.btm-dashboard .login-password input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--btm-text);
  background: var(--btm-page);
  border: 1px solid var(--btm-border);
  border-radius: 8px;
}

.btm-dashboard .login-submit .button {
  min-height: 44px;
  padding: 11px 16px;
  color: #fff;
  background: var(--btm-primary);
  border: 1px solid var(--btm-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.btm-progress {
  height: 10px;
  overflow: hidden;
  background: #e9f4f7;
  border-radius: 999px;
}

.btm-progress span {
  display: block;
  height: 100%;
  background: var(--btm-primary);
  border-radius: inherit;
}

.btm-checklist {
  display: grid;
  gap: 8px;
  margin: 14px 0 24px;
  padding: 0;
  list-style: none;
}

.btm-checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--btm-muted);
  font-size: 14px;
}

.btm-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 14px;
  height: 14px;
  border: 1px solid var(--btm-border);
  border-radius: 999px;
  background: #fff;
}

.btm-checklist li.done {
  color: var(--btm-text);
  font-weight: 800;
}

.btm-checklist li.done::before {
  background: var(--btm-primary);
  border-color: var(--btm-primary);
  box-shadow: inset 0 0 0 3px #fff;
}

.btm-profile-hero {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--btm-primary-soft), #fff);
  border-bottom: 1px solid var(--btm-border);
}

.btm-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 360px;
  align-items: start;
  gap: 24px;
}

.btm-mini-map {
  min-height: 240px;
  border: 1px solid var(--btm-border);
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .btm-hero-grid,
  .btm-dashboard-layout,
  .btm-profile-layout {
    grid-template-columns: 1fr;
  }
  .btm-card-grid.three,
  .btm-card-grid.four,
  .btm-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .btm-site-header {
    min-height: 62px;
    padding: 10px 14px;
  }
  .btm-site-header nav {
    display: none;
  }
  .btm-footer-grid,
  .btm-footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }
  .btm-site-footer nav {
    justify-content: flex-start;
  }

  .btm-hero {
    padding: 44px 0;
  }
  .btm-card-grid.two,
  .btm-card-grid.three,
  .btm-card-grid.four,
  .btm-steps,
  .btm-form-grid {
    grid-template-columns: 1fr;
  }
  .btm-dashboard-hero {
    display: grid;
  }
  .btm-search-app {
    min-height: calc(100vh - var(--bt-global-header-height, 0px));
    min-height: calc(100dvh - var(--bt-global-header-height, 0px));
    display: flex;
    flex-direction: column;
  }
  .btm-filter-panel {
    position: relative;
    top: auto;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    max-height: none;
    padding: 12px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--btm-border);
    box-shadow: none;
    transform: none;
  }
  .btm-filter-panel h1,
  .btm-filter-panel p,
  .btm-filter-panel > label:first-of-type,
  .btm-filter-panel > div {
    grid-column: 1 / -1;
  }
  .btm-filter-panel h1 {
    font-size: 20px;
    line-height: 1.12;
  }
  .btm-filter-panel p {
    display: none;
  }
  .btm-filter-panel label {
    gap: 5px;
    font-size: 12px;
  }
  .btm-filter-panel input,
  .btm-filter-panel select {
    min-height: 40px;
    padding: 8px 10px;
  }
  .btm-chip-row {
    flex-wrap: nowrap;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .btm-chip-row::-webkit-scrollbar {
    display: none;
  }
  .btm-chip-row label {
    flex: 0 0 auto;
  }
  .btm-filter-panel .btm-button {
    min-height: 40px;
    padding: 9px 10px;
  }
  .btm-mobile-tabs {
    z-index: 3;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    background: #fff;
  }
  .btm-mobile-tabs button {
    min-height: 40px;
    color: var(--btm-text);
    border: 1px solid var(--btm-border);
    border-radius: 8px;
    background: var(--btm-page);
    font-weight: 900;
  }
  .btm-mobile-tabs button.active {
    color: #fff;
    background: var(--btm-primary);
    border-color: var(--btm-primary);
  }
  .btm-sheet-handle {
    display: none;
  }
  .btm-map-shell {
    min-height: 0;
  }
  .btm-map {
    min-height: 520px;
    height: calc(100vh - var(--bt-global-header-height, 0px) - 16px);
    height: calc(100dvh - var(--bt-global-header-height, 0px) - 16px);
  }
  .btm-results-panel {
    display: none;
    min-height: 0;
    border-right: 0;
  }
  .btm-results-count {
    padding: 12px;
  }
  .btm-results {
    padding: 12px;
    overflow: visible;
  }
  .btm-search-app[data-btm-view="list"] .btm-map-shell {
    display: none;
  }
  .btm-search-app[data-btm-view="list"] .btm-results-panel {
    display: flex;
  }
  .btm-search-app[data-btm-view="map"] .btm-map-shell {
    display: block;
  }
}
