:root {
  font-family: 'DM Sans', sans-serif;
  color: #172b37;
  background: #f5f7f8;
  font-size: 16px;
  --teal: #087d8c;
  --ink: #172b37;
  --line: #dce5e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #fdc14b;
  outline-offset: 3px;
}
header {
  height: 100px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
.brand {
  position: relative;
  font:
    800 34px 'Manrope',
    sans-serif;
  letter-spacing: -1.8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
}
.brand img {
  width: 36px;
  height: 36px;
}
nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  font-weight: 600;
}
nav a.active {
  color: var(--teal);
}
.language {
  border: 0;
  background: #f1f5f6;
  padding: 9px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  border-radius: 7px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}
.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn.danger {
  color: #b93640;
  background: #fff;
  border-color: #eccdd0;
}
.btn.small {
  padding: 8px 12px;
}
.icon-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero {
  background: #eaf3f4;
  padding: 44px max(5vw, 24px) 32px;
  border-bottom: 1px solid #d6e7e9;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
}
h1,
h2,
h3 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.7px;
}
h1 {
  font-size: 38px;
  margin: 8px 0 12px;
  font-weight: 800;
}
h2 {
  font-size: 26px;
  margin: 0 0 20px;
}
h3 {
  font-size: 18px;
  margin: 0;
}
p {
  line-height: 1.65;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero p {
  margin: 0;
  color: #536d79;
}
.small-note {
  color: #536d79;
  font-size: 13px;
  margin: 10px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}
.tab {
  border: 0;
  border-radius: 7px 7px 0 0;
  padding: 12px 24px;
  background: #dcebed;
  color: #3b6169;
  font-weight: 700;
  font-size: 14px;
}
.tab.active {
  background: white;
  color: var(--teal);
}
.searchbox {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 0;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 24px #16333d09;
  border-radius: 0 9px 9px 9px;
}
.searchfield {
  padding: 3px 15px;
  border-right: 1px solid var(--line);
}
.searchfield label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #6c818d;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.searchfield input,
.searchfield select {
  border: 0;
  background: white;
  width: 100%;
  padding: 5px 0;
  outline: none;
  color: var(--ink);
}
.searchbox .btn {
  margin-left: 15px;
  min-width: 130px;
}
.region-nav {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 19px;
}
.chip {
  border: 1px solid #cbdee1;
  border-radius: 30px;
  padding: 7px 13px;
  background: transparent;
  font-size: 13px;
  color: #446871;
}
.chip.selected {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}
.content {
  max-width: 1400px;
  margin: auto;
  padding: 35px max(5vw, 24px) 65px;
}
.results-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
}
.filters {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  height: fit-content;
}
.filters h3 {
  margin-bottom: 20px;
}
.filter-group {
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  margin-top: 20px;
}
.filter-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.filters input,
.filters select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 6px;
  background: #fff;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 9px;
  font-size: 14px !important;
  font-weight: 400 !important;
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.range-inputs input {
  min-width: 0;
  font-size: 14px;
}
.filter-bottom {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.results-head h2 {
  margin: 0;
  font-size: 23px;
}
.muted {
  color: #5c6e78;
  font-size: 14px;
}
.sort {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 10px;
  font-size: 14px;
  max-width: 190px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #0c3c4a0e;
}
.card-photo {
  position: relative;
  height: 230px;
  background: #dbe7e9;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 6px 10px;
  background: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.photo-badge {
  position: absolute;
  top: 15px;
  left: 15px;
}
.heart {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ffffffee;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #45656b;
  display: grid;
  place-items: center;
}
.heart.saved {
  color: #d95765;
}
.heart.saved svg {
  fill: #d95765;
}
.card-body {
  padding: 20px;
}
.location {
  font-size: 13px;
  color: #71838c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card h3 {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.5;
}
.price {
  font-family: 'Manrope';
  font-size: 23px;
  font-weight: 800;
  color: #16333d;
  letter-spacing: -0.6px;
}
.price small {
  font: 400 12px 'DM Sans';
  color: #6c818c;
  letter-spacing: 0;
}
.specs {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  color: #526c77;
  font-size: 13px;
}
.specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-foot {
  border-top: 1px solid #edf1f3;
  margin-top: 17px;
  padding-top: 13px;
  font-size: 12px;
  color: #7b8b93;
  display: flex;
  justify-content: space-between;
}
.text-link {
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 0;
  padding: 0;
}
.empty {
  background: white;
  border: 1px dashed #ccdce1;
  border-radius: 10px;
  padding: 50px;
  text-align: center;
  grid-column: 1/-1;
}
.empty p {
  color: #667e87;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 28px 0 0;
}
.pagination button {
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.pagination button.active {
  background: var(--teal);
  color: white;
}
.banner {
  padding: 16px 20px;
  background: #fff5dd;
  border: 1px solid #f2dfb5;
  border-radius: 8px;
  margin-bottom: 22px;
  color: #7a6128;
  font-size: 14px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #52737d;
  font-size: 14px;
}
.detail-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.detail-title h1 {
  font-size: 32px;
  margin: 4px 0 10px;
}
.detail-actions {
  display: flex;
  gap: 10px;
}
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  height: 410px;
  margin-bottom: 32px;
}
.gallery button {
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #d8e5e8;
  position: relative;
}
.gallery img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.gallery .gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}
.gallery.single {
  grid-template-columns: 1fr;
}
.detail-columns {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}
.panel {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
}
.panel .specs {
  margin: 0;
  gap: 30px;
  font-size: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.detail-description {
  white-space: pre-line;
  color: #536b77;
}
.features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.features span {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 14px;
}
.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eaf3f4;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}
.agent-name {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
}
.field {
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cddbe0;
  border-radius: 6px;
  padding: 11px 12px;
  margin-top: 7px;
  background: #fff;
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #0b849933;
  border-color: var(--teal);
}
.full {
  width: 100%;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.dashboard-head h1 {
  font-size: 32px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
}
.metric strong {
  display: block;
  font: 800 32px 'Manrope';
  margin-top: 8px;
}
.dashboard-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.dashboard-tabs a {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
}
.dashboard-tabs a.active {
  color: var(--teal);
  border-bottom: 3px solid var(--teal);
}
.management-list {
  display: grid;
  gap: 12px;
}
.management-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.management-item img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}
.management-item .info {
  flex: 1;
}
.management-item h3 {
  font-size: 16px;
  margin-bottom: 7px;
}
.management-item .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.status {
  font-size: 12px;
  background: #edf3f5;
  border-radius: 4px;
  padding: 5px 8px;
  display: inline-block;
}
.status.published {
  background: #e7f5ee;
  color: #2b7d54;
}
.status.pending {
  background: #fff2d6;
  color: #9b7024;
}
.status.rejected {
  background: #fbe8eb;
  color: #b14050;
}
.form-page {
  max-width: 850px;
  margin: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.span2 {
  grid-column: 1/-1;
}
.upload-zone {
  border: 2px dashed #cadbe0;
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  background: #f6fafb;
}
.upload-zone input {
  width: 100%;
  margin: 15px 0;
}
.image-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.image-thumbs > div {
  position: relative;
}
.image-thumbs img {
  width: 100px;
  height: 75px;
  border-radius: 5px;
  object-fit: cover;
}
.image-thumbs button {
  position: absolute;
  top: 3px;
  right: 3px;
  border: 0;
  background: white;
  border-radius: 50%;
  width: 23px;
  height: 23px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.inquiry {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 15px;
}
.inquiry h3 {
  margin: 8px 0;
}
.inquiry p {
  white-space: pre-line;
}
.inquiry footer {
  padding: 0;
  border: 0;
  background: transparent;
  justify-content: flex-start;
  gap: 20px;
  font-size: 14px;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 32px;
  max-width: 460px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 80px #15364044;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #142f3c88;
}
dialog h2 {
  margin-right: 30px;
}
dialog .close {
  position: absolute;
  right: 15px;
  top: 15px;
  border: 0;
  background: #f1f5f6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.auth-toggle {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.auth-toggle .btn {
  flex: 1;
}
.error {
  color: #b33a48;
  font-size: 14px;
  margin-bottom: 15px;
}
.photo-modal {
  max-width: 1000px;
  width: 95vw;
  background: #152c38;
  color: white;
  text-align: center;
}
.photo-modal img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.photo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #183b46;
  color: #fff;
  padding: 14px 23px;
  border-radius: 8px;
  max-width: 90vw;
  transition: transform 0.2s;
  z-index: 100;
  font-size: 14px;
  box-shadow: 0 6px 30px #0002;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 30px max(5vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #778a94;
  font-size: 13px;
}
.wordmark {
  font: 800 24px 'Manrope';
  color: var(--teal);
  letter-spacing: -1px;
}
.loading {
  padding: 100px;
  text-align: center;
  color: #54747d;
}
.currency-hint {
  font-size: 12px;
  color: #7c8e98;
  margin-top: 6px;
}
.demo-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #907441;
  background: #fff7e2;
  padding: 4px 7px;
  border-radius: 4px;
}
.detail-map {
  background: #eaf3f4;
  border-radius: 8px;
  padding: 22px;
  margin-top: 20px;
}
.map-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 700;
}
.filter-mobile {
  display: none;
}
@media (min-width: 1600px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-photo {
    height: 220px;
  }
}
@media (max-width: 1050px) {
  header {
    padding: 0 24px;
  }
  nav {
    gap: 14px;
  }
  .results-layout {
    grid-template-columns: 190px 1fr;
    gap: 20px;
  }
  .content {
    padding: 28px 24px 50px;
  }
  .hero {
    padding: 32px 24px;
  }
  .card-photo {
    height: 190px;
  }
  .card-body {
    padding: 16px;
  }
  .specs {
    gap: 10px;
  }
  .detail-columns {
    grid-template-columns: 1fr 300px;
  }
  .gallery {
    height: 330px;
  }
  .nav-label {
    display: none;
  }
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 90px;
    padding: 17px 18px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
  }
  .brand {
    font-size: 30px;
  }
  .brand img {
    width: 31px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }
  nav .btn {
    font-size: 12px;
    padding: 8px 10px;
  }
  .language {
    padding: 7px;
  }
  .hero {
    padding: 27px 18px 24px;
  }
  .hero-top {
    display: block;
  }
  .hero-top .small-note {
    margin-top: 15px;
  }
  h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 14px;
  }
  .tabs {
    margin-top: 22px;
  }
  .searchbox {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-radius: 0 8px 8px 8px;
  }
  .searchfield {
    padding: 2px 5px;
    border: 0;
  }
  .searchfield:first-child {
    grid-column: 1/-1;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }
  .searchbox .btn {
    grid-column: 1/-1;
    margin: 0;
  }
  .content {
    padding: 24px 18px 40px;
  }
  .results-layout {
    display: block;
  }
  .filters {
    display: none;
    margin-bottom: 20px;
  }
  .filters.open {
    display: block;
  }
  .filter-mobile {
    display: inline-flex;
  }
  .results-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .results-head h2 {
    font-size: 21px;
  }
  .grid {
    gap: 17px;
    grid-template-columns: 1fr;
  }
  .card-photo {
    height: 240px;
  }
  .card-body {
    padding: 20px;
  }
  .specs {
    gap: 20px;
  }
  .sort {
    max-width: 170px;
    padding: 9px;
  }
  .hero-top .eyebrow {
    font-size: 11px;
  }
  .detail-title {
    display: block;
  }
  .detail-title h1 {
    font-size: 27px;
  }
  .detail-actions {
    margin-top: 15px;
  }
  .gallery {
    height: 280px;
    grid-template-columns: 1fr;
  }
  .gallery-side {
    display: none !important;
  }
  .detail-columns {
    display: block;
  }
  .panel {
    padding: 22px;
  }
  .panel .specs {
    gap: 18px;
    font-size: 14px;
    flex-wrap: wrap;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 14px;
    font-size: 13px;
  }
  .metric strong {
    font-size: 25px;
  }
  .dashboard-head {
    align-items: flex-start;
  }
  .dashboard-head h1 {
    font-size: 26px;
  }
  .management-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  .management-item .actions {
    width: 100%;
  }
  .management-item img {
    width: 80px;
    height: 70px;
  }
  .form-grid {
    display: block;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .dashboard-tabs {
    gap: 18px;
  }
  .dashboard-tabs a {
    font-size: 13px;
  }
  footer {
    padding: 24px 18px;
    gap: 15px;
    flex-wrap: wrap;
  }
  footer span:nth-child(2) {
    display: none;
  }
  .empty {
    padding: 30px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.view-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: white;
  flex-shrink: 0;
}
.view-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: white;
  color: #45616c;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
}
.view-switch button.active {
  background: #e1f0f2;
  color: var(--teal);
}
.results-head {
  flex-wrap: wrap;
}
.results-head > div:first-child {
  margin-right: auto;
}
.map-results {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(330px, 1.4fr);
  gap: 18px;
  align-items: start;
}
.map-results .grid {
  grid-template-columns: 1fr;
}
.map-results .list-results {
  max-height: 700px;
  overflow: auto;
  padding: 0 4px 12px 0;
  scrollbar-width: thin;
}
.map-results .card-photo {
  height: 175px;
}
.map-results .card-body {
  padding: 14px;
}
.map-results .card h3 {
  font-size: 16px;
  margin-bottom: 9px;
}
.map-results .price {
  font-size: 20px;
}
.map-results .specs {
  gap: 12px;
  font-size: 12px;
}
.map-results .card-foot {
  font-size: 11px;
}
.map-panel {
  position: sticky;
  top: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  overflow: hidden;
  min-width: 0;
}
.property-map {
  height: 610px;
  background: #dbe9ea;
  z-index: 0;
}
.map-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.map-toolbar .btn {
  font-size: 12px;
  padding: 8px 10px;
}
.map-caption {
  margin: 0;
  padding: 11px 14px;
  font-size: 12px;
  color: #627d89;
  background: #f8fafb;
}
.draw-toolbar {
  padding: 12px;
  background: #eaf4f5;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 13px;
  align-items: center;
}
.draw-toolbar span {
  width: 100%;
  line-height: 1.5;
}
.draw-toolbar[hidden],
[hidden] {
  display: none !important;
}
.property-pin-wrap {
  width: auto !important;
  height: auto !important;
  white-space: nowrap;
}
.property-pin {
  display: block;
  transform: translate(-50%, -100%);
  padding: 6px 10px;
  background: white;
  border: 2px solid var(--teal);
  border-radius: 18px;
  box-shadow: 0 2px 8px #15364033;
  font: 800 12px 'DM Sans';
  color: var(--teal);
  min-width: 50px;
  text-align: center;
}
.property-pin::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: calc(50% - 4px);
  width: 7px;
  height: 7px;
  background: white;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
}
.hover-pin .property-pin,
.selected-pin .property-pin {
  background: var(--teal);
  color: white;
}
.hover-pin .property-pin::after,
.selected-pin .property-pin::after {
  background: var(--teal);
}
.pin-cluster {
  background: #087d8c;
  color: #fff;
}
.pin-cluster::after {
  background: #087d8c;
}
.map-selected {
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 3px #087d8c22;
}
.map-popup .popup-home {
  display: block;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.map-popup .popup-home:last-child {
  border: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.map-popup {
  max-height: 370px;
  overflow: auto;
}
.map-popup img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}
.map-popup strong {
  display: block;
  margin: 9px 0 6px;
  font-size: 18px;
  color: var(--ink);
}
.map-popup h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}
.map-popup p {
  font-size: 12px;
  margin: 7px 0;
  color: #68808b;
}
.map-popup small {
  display: block;
  color: #8b723c;
  margin: 8px 0 0;
  font-size: 11px;
}
.map-popup .popup-link {
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
}
.leaflet-popup-content {
  margin: 12px;
}
.leaflet-container {
  font-family: 'DM Sans', sans-serif;
}
.leaflet-container a {
  color: var(--teal);
}
.leaflet-control-attribution {
  font-size: 10px;
}
.drawing-map {
  cursor: crosshair !important;
}
.property-location-map,
.editor-location-map {
  height: 300px;
  border-radius: 9px;
  z-index: 0;
  background: #e0ecee;
}
.map-error {
  margin: 0;
  padding: 12px;
  font-size: 13px;
  background: #fff1d6;
  color: #796028;
}
.map-search .hero {
  padding-top: 20px;
  padding-bottom: 20px;
}
.map-search .hero-top {
  display: none;
}
.map-search .tabs {
  margin-top: 0;
}
.map-search .region-nav {
  margin-top: 12px;
}
.map-search .content {
  max-width: 1700px;
  padding-left: 3vw;
  padding-right: 3vw;
}
.map-mode {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}
.map-mode .filters {
  padding: 18px;
}
.photo-requirements {
  background: #eff7f8;
  border: 1px solid #cddfe4;
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 22px;
}
.photo-requirements h3 {
  margin-bottom: 10px;
}
.photo-requirements ul {
  padding-left: 20px;
  line-height: 1.65;
  font-size: 14px;
  margin: 8px 0;
}
.photo-count {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0;
  color: var(--teal);
}
.photo-count.insufficient {
  color: #b26c29;
}
.photo-count.ready {
  color: #238355;
}
.photo-review-check {
  background: #fff5dd;
  border-radius: 7px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.photo-review-check input {
  accent-color: var(--teal);
}
@media (max-width: 1200px) {
  .map-mode {
    display: block;
  }
  .map-mode .filters {
    display: none;
    margin-bottom: 20px;
  }
  .map-mode .filters.open {
    display: block;
  }
  .map-mode .filter-mobile {
    display: inline-flex;
  }
  .map-results {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .map-search .content {
    padding: 24px;
  }
  .map-search .hero {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 760px) {
  .map-results {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }
  .map-results .map-panel {
    position: static;
    width: 100%;
  }
  .property-map {
    height: 410px;
  }
  .map-results .list-results {
    width: 100%;
    max-height: none;
    overflow: visible;
  }
  .map-results .card-photo {
    height: 230px;
  }
  .map-results .card h3 {
    font-size: 18px;
  }
  .map-results .price {
    font-size: 23px;
  }
  .map-results .specs {
    font-size: 13px;
  }
  .map-results .card-body {
    padding: 20px;
  }
  .map-search .content {
    padding: 22px 18px;
  }
  .map-search .hero {
    padding: 18px;
  }
  .view-switch button {
    padding: 10px 13px;
  }
  .results-head .sort {
    max-width: 160px;
  }
  .map-toolbar .btn {
    font-size: 12px;
  }
  .property-location-map,
  .editor-location-map {
    height: 280px;
  }
  .map-search .results-head h2 {
    font-size: 20px;
  }
}

.image-thumbs .cover-button {
  top: auto;
  bottom: 4px;
  right: 4px;
  left: 4px;
  width: auto;
  height: auto;
  border-radius: 4px;
  font-size: 10px;
  padding: 5px;
  background: white;
  color: #172b37;
}
.photo-requirements {
  margin-bottom: 16px;
  line-height: 1.6;
}

.auth-forgot {
  margin: 14px 0 0;
  text-align: center;
}
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #f6efe2;
  border: 1px solid #e8dcc6;
}
.narrow-page {
  max-width: 460px;
}

/* ---------- Guided photo plan ---------- */
.step-hint {
  margin-top: -6px;
}
.small {
  font-size: 13px;
}
.photo-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  font-size: 14px;
}
.photo-progress .bar,
.guided .bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #e9eef0;
  overflow: hidden;
}
.photo-progress .bar span,
.guided .bar span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 99px;
  transition: width 0.3s;
}
.photo-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.photo-rules summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
}
.photo-rules ul {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
}
.shot-list {
  display: grid;
  gap: 10px;
}
.shot {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.shot.done {
  border-color: #b9dfcb;
  background: #f6fbf8;
}
.shot.warn {
  border-color: #f0cf8e;
  background: #fffaf0;
}
.shot.failed {
  border-color: #eccdd0;
  background: #fdf5f6;
}
.shot-thumb {
  width: 96px;
  height: 64px;
  border-radius: 7px;
  background: #f1f5f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #8aa0aa;
}
.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot.checking .shot-thumb img {
  opacity: 0.5;
}
.shot-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shot-info p {
  margin: 4px 0 0;
}
.shot-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f1f5f6;
  color: #5c707a;
  vertical-align: middle;
}
.shot-badge.req {
  background: #e3f3f5;
  color: var(--teal);
}
.shot-status {
  font-size: 13px;
  font-weight: 600;
  color: #5c707a;
}
.shot-status.ok {
  color: #2b7d54;
}
.shot-status.kept {
  color: #9b7024;
  font-weight: 500;
}
.shot-issues {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #9b5a10;
}
.shot.failed .shot-issues {
  color: #b33a48;
}
.shot-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.shot-actions .btn,
.extra-actions .btn,
.guided-actions .btn {
  cursor: pointer;
}
.text-link.small {
  font-size: 13px;
  cursor: pointer;
}
.danger-link {
  color: #b33a48;
}
.extras-title {
  margin: 28px 0 4px;
}
.extra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.guided-modal {
  max-width: 560px;
}
.guided-step {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.guided .bar {
  display: block;
  margin-bottom: 18px;
}
.guided-preview,
.guided-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  object-fit: cover;
  margin: 8px 0 12px;
}
.guided-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f1f5f6;
  color: #5c707a;
  border: 2px dashed var(--line);
}
.guided-placeholder .icon {
  width: 40px;
  height: 40px;
}
.guided-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.guided-gallery {
  display: inline-block;
  margin-top: 14px;
}
.room-group + .room-group {
  margin-top: 22px;
}
.room-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.room-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.room-photos button {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.room-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.room-photos span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: #152c38cc;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
}
.review-thumb {
  position: relative;
  display: block;
}
.review-thumb.flagged img {
  outline: 3px solid #f0b54a;
}
.review-label,
.review-flags {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}
.review-flags {
  color: #9b5a10;
}
@media (max-width: 640px) {
  .shot {
    grid-template-columns: 72px 1fr;
  }
  .shot-thumb {
    width: 72px;
    height: 48px;
  }
  .shot-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }
  .photo-start .btn {
    width: 100%;
  }
}

.lang-choice {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.lang-choice legend {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.lang-choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}
.lang-choice label:has(input:checked) {
  border-color: var(--teal);
  background: #e9f6f7;
}
.lang-choice p {
  margin: 8px 0 0;
}

.gps-status {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin: 12px 0;
  background: #f1f5f6;
}
.gps-status.ok {
  background: #f6fbf8;
  color: #2b7d54;
  border: 1px solid #b9dfcb;
}
.gps-status.warn,
.gps-status.missing {
  background: #fffaf0;
  color: #9b5a10;
  border: 1px solid #f0cf8e;
}
.gps-status.error {
  background: #fdf5f6;
  color: #b33a48;
  border: 1px solid #eccdd0;
}
.gps-confirm {
  padding: 14px;
  border: 2px solid var(--teal);
  border-radius: 10px;
  margin: 12px 0;
  background: #f4fbfc;
}
.gps-confirm p {
  margin: 4px 0 10px;
}
.gps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.gps-confirm .gps-actions {
  margin: 0;
}

.condition-choice {
  border: 0;
  padding: 0;
  margin: 8px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.condition-choice legend {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.condition-choice label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.condition-choice label:has(input:checked) {
  border-color: var(--teal);
  background: #e9f6f7;
}
.condition-choice span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.condition-choice small {
  color: #5c707a;
}
.reno-badge {
  position: absolute;
  top: 48px;
  left: 15px;
  background: #f6e7c9;
  color: #8a5a10;
}
.ai-pending {
  color: #5c707a;
  font-weight: 500;
}
@media (max-width: 640px) {
  .condition-choice {
    grid-template-columns: 1fr;
  }
}

.field-missing {
  border-color: #b33a48 !important;
  background: #fdf5f6;
}

.recover-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #e9f6f7;
  border: 1px solid #b7dfe3;
}

.is-hidden {
  display: none !important;
}

.dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.warn-banner {
  background: #fffaf0;
  border-color: #f0cf8e;
  color: #7a4d0e;
}
.item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: #5c707a;
}
.item-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.item-stats .icon {
  width: 15px;
  height: 15px;
}
.agent-avatar.photo {
  object-fit: cover;
  padding: 0;
}
.agent-avatar.big {
  width: 64px;
  height: 64px;
}
.contact-card .agent-name {
  margin: 20px 0 12px;
}
.contact-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}
.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  word-break: break-all;
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
#logo-preview img,
.logo-empty {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: #8aa0aa;
}
.team-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.team-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.team-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #eaf3f4;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.team-actions {
  margin-left: auto;
  display: grid;
  gap: 4px;
  justify-items: end;
}
.agency-head {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.agency-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.agency-logo.empty {
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--teal);
}
.agency-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.agency-links a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--teal);
  font-weight: 600;
}

.ai-writer {
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed #9fd2d8;
  background: #f4fbfc;
  margin-bottom: 15px;
}
.ai-writer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
}
.ai-writer p {
  margin: 6px 0 10px;
}
.ai-writer input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}
.ai-writer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-writer-actions select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.other-lang {
  margin-bottom: 15px;
}
.other-lang summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.card-labels {
  position: absolute;
  left: 15px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.label {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fff;
  color: var(--ink);
}
.label-new {
  background: #087d8c;
  color: #fff;
}
.label-reduced {
  background: #e8f5ee;
  color: #2b7d54;
}
.label-offer {
  background: #fff2d6;
  color: #9b7024;
}
.label-sold {
  background: #b33a48;
  color: #fff;
}
.detail-labels {
  display: flex;
  gap: 6px;
  margin: 6px 0 4px;
}
.listing-popularity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 4px;
  color: #5c6e78;
  font-size: 14px;
}
.listing-popularity:empty {
  display: none;
}
.listing-popularity span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.listing-popularity .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.listing-popularity.locked {
  position: relative;
}
.pop-blur {
  display: flex;
  flex-direction: column;
  gap: 6px;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.pop-unlock {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
}
.price-history {
  margin: 8px 0 4px;
  font-size: 14px;
}
.price-history summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
}
.price-history ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.price-history li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.item-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.avail-select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
}

.media-title {
  margin: 10px 0;
}
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
}
.media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.nearby {
  display: grid;
  gap: 8px;
}
.nearby-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cost-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cost-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.cost-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
.cost-table .total td {
  font-weight: 800;
  font-size: 16px;
}
.cost-table .cost-sub {
  padding-top: 18px;
  font-weight: 700;
  color: var(--teal);
  text-align: left !important;
}
.inquiry-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.inquiry-kind label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.inquiry-kind label:has(input:checked) {
  border-color: var(--teal);
  background: #e9f6f7;
}

.lead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.lead-status {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  background: #fff;
}
.inquiry.lead-new {
  border-left: 4px solid var(--teal);
}
.inquiry.lead-closed {
  opacity: 0.7;
}
.viewing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: #e9f6f7;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 8px;
}
.lead-note {
  width: 100%;
  margin-top: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  background: #fbfcfc;
}
.inquiry footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.label-featured {
  background: #172b37;
  color: #fff;
}
.verified {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  background: #e8f5ee;
  color: #2b7d54;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.report-link {
  display: block;
  margin: 12px auto 0;
  color: #5c707a;
}
.import-steps {
  padding-left: 20px;
  line-height: 1.8;
}
.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}
.import-table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
}
.import-table th,
.import-table td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
}
.legal h2 {
  font-size: 18px;
  margin-top: 26px;
}
.legal p {
  max-width: 760px;
  line-height: 1.7;
}
#footer-copy a {
  color: inherit;
  text-decoration: underline;
}
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 12px;
  background: #172b37;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 40px #0004;
  max-width: 760px;
  margin: 0 auto;
}
.cookie-bar a {
  color: #9fd2d8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f5f7f8;
  padding: 8px 0;
}
.steps button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 3px solid var(--line);
  background: none;
  font-size: 12px;
  font-weight: 700;
  color: #5c707a;
  cursor: pointer;
}
.steps button span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9eef0;
  color: #5c707a;
}
.steps button.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.steps button.active span,
.steps button.done span {
  background: var(--teal);
  color: #fff;
}
.step-hidden {
  display: none !important;
}
.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 16px;
}
.step-nav #step-next {
  margin-left: auto;
}
#property-form .form-actions {
  display: none !important;
}
#property-form.on-review .form-actions {
  display: flex !important;
}
.review-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 8px;
}
.review-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.review-list li span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.review-list li.ok span {
  background: #e8f5ee;
  color: #2b7d54;
}
.review-list li.todo {
  background: #fffaf0;
  border-color: #f0cf8e;
}
.review-list li.todo span {
  background: #f0cf8e;
  color: #7a4d0e;
}
.stepper {
  display: flex;
  align-items: stretch;
}
.stepper button {
  width: 46px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
}
.stepper button:first-child {
  border-radius: 8px 0 0 8px;
}
.stepper button:last-child {
  border-radius: 0 8px 8px 0;
}
.stepper input {
  text-align: center;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  flex: 1;
  min-width: 0;
}

.plain-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.login-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f6;
  color: #5c707a;
}
.login-badge.on {
  background: #e8f5ee;
  color: #2b7d54;
}
.login-badge.inv {
  background: #fff2d6;
  color: #9b7024;
}
.review-list li.warn {
  background: #f4f7f8;
}
.review-list li.warn span {
  background: #dce5e9;
  color: #5c707a;
}
.admin-tabs .count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 99px;
  background: #b33a48;
  color: #fff;
  font-size: 11px;
  text-align: center;
}
.admin-h2 {
  font-size: 18px;
  margin: 26px 0 12px;
}
a.admin-tile {
  color: inherit;
  text-decoration: none;
}
a.admin-tile[href]:hover {
  border-color: var(--teal);
}
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.agency-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
  flex: none;
}
.agency-thumb.empty {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--teal);
}
.warn-text {
  color: #9b5a10;
}
.wide-modal {
  max-width: 680px;
}
.facts {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 12px;
  font-size: 14px;
  margin: 12px 0;
}
.facts dt {
  color: #5c707a;
}
.facts dd {
  margin: 0;
  font-weight: 600;
}
.team-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.team-mini div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.team-mini .team-photo {
  width: 48px;
  height: 48px;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.agency-review .agency-head {
  margin-bottom: 8px;
}
.agency-review .agency-logo {
  width: 72px;
  height: 72px;
}
/* Automatic listing checks */
.flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.flag {
  background: #fff4e5;
  color: #8a4b00;
  border: 1px solid #f3d9b1;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}
.status.auto {
  background: #e8f4f6;
  color: #0b6f7c;
}
.settings-grid {
  margin-top: 16px;
}
.price-rent {
  display: block;
  font-size: 0.62em;
  font-weight: 600;
  margin-top: 2px;
}

/* Photo viewer: one fixed frame for every photo, arrows always at the same place */
dialog.photo-modal {
  width: min(1100px, 95vw);
  max-width: none;
  padding: 48px 16px 16px;
  overflow: hidden;
}
.photo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 74vh;
  background: #0e2029;
  border-radius: 8px;
  overflow: hidden;
}
.photo-modal .photo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
}
.photo-arrow {
  position: absolute;
  top: 50%;
  margin-top: -26px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #152c38;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px #0005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
}
.photo-arrow:hover {
  background: #fff;
}
.photo-arrow.prev {
  left: 12px;
}
.photo-arrow.next {
  right: 12px;
}
.photo-caption {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.9;
  min-height: 20px;
}
@media (max-width: 600px) {
  dialog.photo-modal {
    padding: 44px 8px 12px;
  }
  .photo-arrow {
    width: 42px;
    height: 42px;
    margin-top: -21px;
    font-size: 28px;
  }
}

/* Uniform photo frames: every property photo on the site is shown in the same 3:2 frame */
.card-photo,
.map-results .card-photo {
  height: auto;
  aspect-ratio: 3 / 2;
}
.gallery {
  height: auto;
  aspect-ratio: 9 / 4;
}
.gallery.single {
  aspect-ratio: 3 / 2;
  max-width: 900px;
}
.gallery button,
.gallery .gallery-side {
  min-height: 0;
}
.management-item img {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
}
.image-thumbs img {
  width: 105px;
  height: 70px;
}
.map-popup img {
  height: auto;
  aspect-ratio: 3 / 2;
}
@media (max-width: 760px) {
  .gallery,
  .gallery.single {
    aspect-ratio: 3 / 2;
  }
  .management-item img {
    width: 96px;
    height: 64px;
  }
}

/* Installable app */
.install-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #d7e4e7;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}
.install-banner img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  flex-shrink: 0;
}
.install-banner p {
  margin: 4px 0 0;
}
.install-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}
.install-banner .install-btn {
  display: none;
}
.install-banner.can-install .install-btn {
  display: inline-flex;
}
@media (display-mode: standalone) {
  header {
    padding-top: env(safe-area-inset-top);
  }
  footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 600px) {
  .install-banner {
    flex-wrap: wrap;
  }
  .install-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }
}

/* Notifications */
.nav-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.bell-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #c0392b;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.push-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #d7e4e7;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}
.push-card.on {
  background: #eef8f9;
}
.push-card p {
  margin: 4px 0 0;
}
.push-card > button {
  margin-left: auto;
  flex-shrink: 0;
}
.push-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e3f2f4;
  color: #087d8c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.notif {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #e3ecee;
  border-radius: 10px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}
.notif p {
  margin: 2px 0 4px;
}
.notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  background: transparent;
}
.notif.unread {
  border-color: #b9dde2;
}
.notif.unread .notif-dot {
  background: #087d8c;
}
.reason-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 16px;
}
@media (max-width: 600px) {
  .push-card {
    flex-wrap: wrap;
  }
  .push-card > button {
    margin-left: 58px;
  }
}

/* Onboarding checklist */
.onboarding {
  border: 2px solid #b9dde2;
}
.ob-steps {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}
.ob-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f6fafb;
}
.ob-steps li.done {
  opacity: 0.75;
}
.ob-steps li > div {
  flex: 1;
}
.ob-steps li p {
  margin: 2px 0 0;
}
.ob-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #087d8c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  counter-increment: ob;
}
.ob-steps {
  counter-reset: ob;
}
.ob-steps li:not(.done) .ob-num::before {
  content: counter(ob);
  color: #087d8c;
}
.ob-steps li.done .ob-num {
  background: #087d8c;
}
.ob-meanwhile {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e3ecee;
  padding-top: 14px;
}
.ob-meanwhile > div {
  flex: 1;
}
.ob-meanwhile p {
  margin: 2px 0 0;
}
.ai-status {
  background: #eef8f9;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.extras-optional {
  margin: 12px 0 20px;
}
.extras-optional summary {
  cursor: pointer;
  color: #087d8c;
  font-weight: 600;
  margin-bottom: 12px;
}
.check-title {
  margin-top: 24px;
}
#add-me {
  margin-top: 12px;
}
@media (max-width: 600px) {
  .ob-steps li {
    flex-wrap: wrap;
  }
  .ob-steps li > .btn {
    margin-left: 40px;
  }
  .ob-meanwhile {
    flex-wrap: wrap;
  }
}

#property-form.on-review .step-draft {
  display: none;
}
@media (max-width: 600px) {
  .ob-steps li > div {
    flex: 1 1 180px;
  }
  .ob-steps li > .btn {
    margin-left: 40px;
  }
}

/* Video tour and 360° photos */
.media-block {
  border-top: 1px solid #e3ecee;
  margin-top: 24px;
  padding-top: 20px;
}
.media-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}
.how-to {
  margin: 10px 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.media-actions select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d7e4e7;
}
.video-preview,
.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e2029;
  border-radius: 10px;
  display: block;
}
.upload-progress {
  height: 8px;
  border-radius: 99px;
  background: #e3ecee;
  overflow: hidden;
  margin-top: 10px;
}
.upload-progress div {
  height: 100%;
  width: 0;
  background: #087d8c;
  transition: width 0.2s;
}
.pano-list {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}
.pano-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
}
.pano-item img {
  grid-column: 1 / -1;
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}
dialog.recorder-modal {
  width: min(900px, 96vw);
  max-width: none;
  padding: 44px 12px 12px;
  background: #0e2029;
  color: #fff;
}
.rec-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.rec-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-cue {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 125, 140, 0.92);
  padding: 6px 12px;
  border-radius: 99px;
  font-weight: 700;
}
.rec-time {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 10px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.rec-rotate {
  position: absolute;
  inset: auto 0 12px;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 1px 4px #000;
}
.rec-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.rec-controls .text-link {
  color: #cfe7ea;
}
.rec-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #d93025;
  cursor: pointer;
  flex-shrink: 0;
}
.rec-btn.recording {
  border-radius: 14px;
  animation: rec-pulse 1.2s infinite;
}
@keyframes rec-pulse {
  50% {
    opacity: 0.6;
  }
}
.rec-hint {
  color: #cfe7ea !important;
  text-align: center;
  margin: 10px 0 0;
}
.rec-review {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #000;
}
.pano-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.pano-view {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  background-color: #0e2029;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.pano-view:active {
  cursor: grabbing;
}

.wide-tip {
  display: inline-block;
  background: #e3f2f4;
  color: #087d8c;
  border-radius: 99px;
  padding: 1px 8px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}
.wide-tip-box {
  background: #eef8f9;
  border-left: 3px solid #087d8c;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.rec-zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #ffd84a;
  font-weight: 700;
  cursor: pointer;
}

/* Casariba camera */
dialog.cam-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
}
dialog.cam-dialog::backdrop {
  background: #000;
}
.cam-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.cam-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.cam-stage.flash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: cam-flash 0.25s forwards;
}
@keyframes cam-flash {
  to {
    opacity: 0;
  }
}
.cam-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      to right,
      transparent 33.2%,
      rgba(255, 255, 255, 0.35) 33.3%,
      transparent 33.5%,
      transparent 66.5%,
      rgba(255, 255, 255, 0.35) 66.6%,
      transparent 66.8%
    ),
    linear-gradient(
      to bottom,
      transparent 33.2%,
      rgba(255, 255, 255, 0.35) 33.3%,
      transparent 33.5%,
      transparent 66.5%,
      rgba(255, 255, 255, 0.35) 66.6%,
      transparent 66.8%
    );
}
.cam-level {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 0;
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
  pointer-events: none;
}
.cam-level span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #ffd84a;
  box-shadow: 0 0 4px #000;
}
.cam-level.ok span {
  background: #3ddc84;
}
.cam-label {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 76px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 1px 4px #000;
}
.cam-label strong {
  background: rgba(8, 125, 140, 0.92);
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 99px;
  text-shadow: none;
}
.cam-label small {
  font-size: 12px;
  max-width: 520px;
}
.cam-zoom {
  top: auto;
  bottom: 16px;
}
.cam-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: #000;
}
.cam-controls .text-link {
  color: #cfe7ea;
}
.cam-shutter {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: #fff;
  box-shadow: inset 0 0 0 3px #000;
  cursor: pointer;
}
.cam-shutter:active {
  transform: scale(0.94);
}
@media (orientation: landscape) and (max-height: 500px) {
  dialog.cam-dialog {
    flex-direction: row;
  }
  .cam-controls {
    flex-direction: column-reverse;
    padding: 18px calc(14px + env(safe-area-inset-right)) 18px 14px;
  }
}

/* New construction */
.newbuild-block {
  background: #f6fafb;
  border: 1px solid #d7e4e7;
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 18px;
}
.newbuild-block h3 {
  margin: 4px 0 10px;
}
.plan-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
}
.plan-rows {
  display: grid;
  gap: 8px;
}
.plan-row {
  display: grid;
  grid-template-columns: 1.2fr auto 1.6fr auto;
  gap: 8px;
  align-items: center;
}
.plan-row input,
.plan-row select {
  padding: 9px 10px;
  border: 1px solid #d7e4e7;
  border-radius: 8px;
  font: inherit;
  min-width: 0;
}
.plan-row input[data-k='label'] {
  grid-column: 1 / -1;
}
.plan-value {
  display: flex;
  gap: 4px;
}
.plan-value input {
  width: 90px;
}
.plan-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.plan-total {
  font-weight: 700;
  color: #b26a00;
}
.plan-total.ok {
  color: #1e8e4e;
}
.nb-map-hint {
  display: none;
  background: #eef8f9;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}
.nb-location .nb-map-hint {
  display: block;
}
.ai-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(21, 44, 56, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
}
.nb-badge {
  background: #7a4fd6 !important;
  color: #fff !important;
}
.price-from {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--muted, #6b7a85);
}
.nb-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.nb-facts div {
  display: flex;
  flex-direction: column;
  background: #f6fafb;
  border-radius: 10px;
  padding: 10px 12px;
}
.pp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.pp-list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e3ecee;
  border-radius: 10px;
  padding: 10px 12px;
}
.pp-list li div {
  display: flex;
  flex-direction: column;
}
.pp-pct {
  font-size: 20px;
  font-weight: 800;
  color: #087d8c;
}
.pp-amount {
  font-weight: 700;
}
@media (max-width: 600px) {
  .plan-row {
    grid-template-columns: 1fr auto;
  }
  .plan-row input[data-k='when'] {
    grid-column: 1 / -1;
  }
}

.verified-badge {
  background: #1e8e4e !important;
  color: #fff !important;
  top: auto !important;
  bottom: 10px;
}
.label-verified {
  background: #e6f5ec;
  color: #1e7a45;
}
.insight-row,
.roi-out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.insight-row div,
.roi-out div {
  display: flex;
  flex-direction: column;
  background: #f6fafb;
  border-radius: 10px;
  padding: 10px 12px;
}
.insight-verdict {
  font-weight: 600;
  margin: 12px 0 4px;
}
.insight-verdict.high {
  color: #b26a00;
}
.insight-verdict.low {
  color: #1e8e4e;
}
.roi-yield.good strong {
  color: #1e8e4e;
}
.roi-inputs {
  margin-bottom: 12px;
}

.widget-code {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 10px;
  border: 1px solid #d7e4e7;
  border-radius: 8px;
  background: #f6fafb;
  resize: none;
}

.widget-lang {
  max-width: 260px;
  margin-bottom: 4px;
}

.widget-preview {
  width: 100%;
  height: 460px;
  border: 1px solid #d7e4e7;
  border-radius: 8px;
  background: #fff;
}

/* Viewings agenda */
.agenda-day {
  font-size: 17px;
  margin: 24px 0 10px;
  text-transform: capitalize;
}
.agenda-day.today {
  color: #087d8c;
}
.agenda-day.past {
  color: #8aa0aa;
}
.agenda {
  display: grid;
  gap: 8px;
}
.agenda-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e3ecee;
  border-left: 4px solid #f0b54a;
  border-radius: 10px;
  padding: 12px 14px;
}
.agenda-item.confirmed {
  border-left-color: #1e8e4e;
}
.agenda-item.closed {
  opacity: 0.55;
}
.agenda-time {
  font-weight: 700;
  color: #087d8c;
}
.agenda-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.agenda-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .agenda-item {
    grid-template-columns: 70px 1fr;
  }
  .agenda-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.lang-admin {
  display: grid;
  gap: 8px;
}
.lang-admin > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-admin button {
  margin-left: auto;
}

/* Casariba Check badge */
.seal {
  flex: none;
  vertical-align: -3px;
}
.check-badge {
  background: #fff !important;
  color: var(--teal) !important;
  top: auto !important;
  bottom: 10px;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.label-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e5f4f6;
  color: var(--teal);
  font-weight: 700;
}
.std-section .std-head,
.std-box .std-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.std-section .std-head .seal,
.std-box .std-head .seal {
  width: 34px;
  height: 34px;
  color: var(--teal);
}
.std-section h2 {
  margin: 0 0 4px;
}
.std-section .std-head p,
.std-box .std-head p {
  margin: 2px 0 12px;
}
.std-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 18px;
  font-size: 14px;
}
.std-list li {
  color: #2b4654;
}
.std-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #b9e0e5;
  background: #f3fafb;
  border-radius: 14px;
}
.review-list li.opt span {
  background: #fff;
  border: 2px solid #b9cfd6;
  color: #6b8794;
}
.review-list li.auto {
  color: #557080;
  background: #fff;
}
.review-list li.auto span {
  background: #eef3f5;
  color: #557080;
}
.std-mini {
  margin-top: 8px;
  font-size: 13px;
  color: #557080;
}
.std-mini summary,
.std-mini.ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.std-mini.ok {
  color: var(--teal);
  font-weight: 700;
  cursor: default;
}
.std-mini ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.check-filter {
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
}
.check-filter .seal {
  color: var(--teal);
}
.tr-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -6px;
}
.tr-note svg {
  width: 14px;
  height: 14px;
}

/* Office verification */
.office-type {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.office-type legend {
  margin-bottom: 6px;
}
.tax-hint {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #557080;
}
.tax-hint.ok {
  color: #1e7a45;
}
.tax-hint.bad {
  color: #b42318;
}
.tax-hint.warn {
  color: #9a6408;
}
dd .tax-hint {
  display: inline;
}
.doc-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.doc-row.done {
  border-color: #b8dfc9;
  background: #f4fbf7;
}
.doc-state {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #b9cfd6;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex: none;
}
.doc-row.done .doc-state {
  background: #2b7d54;
  border-color: #2b7d54;
}
.doc-main {
  flex: 1;
  min-width: 0;
}
.doc-main p {
  margin: 2px 0 4px;
}
.doc-file {
  font-size: 13px;
  margin-right: 10px;
}
.doc-file a {
  color: var(--teal);
  font-weight: 600;
}
label.busy {
  opacity: 0.5;
  pointer-events: none;
}
.role-badge {
  background: #e5f4f6 !important;
  color: var(--teal) !important;
  margin-left: 6px;
}
.doc-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.doc-chip {
  display: grid;
  gap: 4px;
  width: 120px;
  font-size: 12px;
  text-align: center;
  color: var(--ink);
}
.doc-chip img,
.doc-chip > :first-child:not(span) {
  width: 120px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #f1f5f7;
  font-weight: 700;
}
@media (max-width: 560px) {
  .doc-row {
    flex-wrap: wrap;
  }
}

/* Plans & pricing */
.pricing-hero {
  text-align: center;
  max-width: 680px;
  margin: 10px auto 26px;
}
.pricing-hero h1 {
  margin: 6px 0 10px;
}
.founding-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  margin: 0 0 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b5f6b, var(--teal));
  color: #fff;
}
.founding-box h2 {
  margin: 0 0 6px;
  color: #fff;
}
.founding-box p {
  margin: 0 0 10px;
  color: #e3f4f6;
}
.founding-box .btn {
  background: #fff;
  color: var(--teal);
  border-color: #fff;
  flex: none;
}
.founding-star {
  font-size: 40px;
  color: #ffd66b;
  flex: none;
}
.founding-meter {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  max-width: 360px;
}
.founding-meter span {
  display: block;
  height: 100%;
  background: #ffd66b;
}
.founding-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.founding-note {
  background: #fff9e8;
  border: 1px solid #f1dca0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #6b4a00;
  font-size: 14px;
}
.cycle-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 18px;
  padding: 4px;
  border-radius: 99px;
  background: #e8eff2;
  width: max-content;
}
.cycle-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  color: #557080;
}
.cycle-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.save-pill {
  font-size: 11px;
  background: #e6f5ec;
  color: #1e7a45;
  padding: 2px 6px;
  border-radius: 99px;
  margin-left: 4px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.plan-card.popular {
  border: 2px solid var(--teal);
}
.plan-card.current {
  background: #f3fafb;
}
.plan-tag {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.plan-card h3 {
  margin: 0 0 8px;
}
.plan-price strong {
  font-size: 30px;
  font-family: Manrope, sans-serif;
}
.plan-price span {
  color: #557080;
  margin-left: 2px;
}
.plan-price s {
  color: #8aa0aa;
  margin-right: 4px;
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  flex: 1;
}
.plan-card li::before {
  content: '✓ ';
  color: var(--teal);
  font-weight: 800;
}
.pricing-faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.pricing-faq summary {
  font-weight: 600;
  cursor: pointer;
}
.bill-status {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: center;
}
.bill-status h2 {
  margin: 4px 0;
}
.usage-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}
.usage-bar {
  height: 10px;
  border-radius: 99px;
  background: #e8eff2;
  overflow: hidden;
}
.usage-bar span {
  display: block;
  height: 100%;
  background: var(--teal);
}
.warn-text {
  color: #9a3412;
  font-weight: 600;
}
.pay-box {
  border: 2px solid var(--teal);
}
.pay-info {
  background: #f5f8f9;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
}
.plans-title {
  margin: 26px 0 12px;
}
.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.simple-table th,
.simple-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pay-table tr.requested {
  background: #fffaf0;
}
#pay-info {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  font: inherit;
}
.bill-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
@media (max-width: 700px) {
  .founding-box {
    flex-direction: column;
    text-align: center;
  }
  .founding-meter {
    margin: 0 auto;
  }
  .bill-status {
    grid-template-columns: 1fr;
  }
  .simple-table {
    display: block;
    overflow-x: auto;
  }
}
.free-now {
  font-size: 24px !important;
  color: var(--teal);
}
.free-intro {
  text-align: center;
  font-weight: 600;
  margin: 0 0 18px;
}

/* Existing photos + pin on the map */
.bulk-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin: 12px 0;
  border: 1px dashed #9ccfd6;
  border-radius: 14px;
  background: #f3fafb;
}
.bulk-box p {
  margin: 2px 0 0;
}
.bulk-box .btn {
  flex: none;
}
.buyer-agent-tip {
  margin-top: 16px;
}

.buyer-agent-tip h3 {
  margin: 0 0 6px;
}

.buyer-agent-tip .text-link {
  display: block;
  margin-top: 8px;
}

.ae-photos-row {
  margin: 0 0 12px;
}

.bulk-progress {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 14px;
}
.bulk-progress .bar {
  height: 8px;
  border-radius: 99px;
  background: #e8eff2;
  overflow: hidden;
}
.bulk-progress .bar span {
  display: block;
  height: 100%;
  background: var(--teal);
}
.map-pin-box {
  margin: 14px 0;
  padding: 14px;
  border-radius: 12px;
  background: #f5f8f9;
}
.map-pin-box p {
  margin: 4px 0 10px;
}
.map-pin-box .map-search {
  display: flex;
  gap: 8px;
}
.map-pin-box .map-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.map-hits {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.map-result {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
}
.map-result svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--teal);
}
@media (max-width: 560px) {
  .bulk-box {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Mobile header: one tidy row of controls, no words breaking over two lines. */
nav a,
nav button {
  white-space: nowrap;
}
@media (max-width: 760px) {
  nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }
  nav .btn {
    margin-right: auto;
  }
  /* Signed in there are more controls: wrap onto a second row instead of pushing
     the first ones off the left edge. */
  nav.signed-in {
    justify-content: flex-start;
    row-gap: 12px;
  }
  nav.signed-in .btn {
    margin-right: 0;
  }
  nav.signed-in #account {
    margin-left: auto;
  }
}
@media (max-width: 380px) {
  nav .btn .icon {
    display: none;
  }
}
/* Cookie notice: a slim bar at the bottom edge instead of a block over the listings. */
.cookie-bar {
  flex-wrap: nowrap;
}
/* A photo that fails to load shows the calm grey area, not its alt text. */
.card-photo img,
.gallery img {
  color: transparent;
}
@media (max-width: 760px) {
  .cookie-bar {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    flex-wrap: nowrap;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    font-size: 12.5px;
    line-height: 1.4;
  }
  .cookie-bar .btn {
    flex: none;
  }
}

/* ---------- Floor plans ---------- */
.gallery {
  position: relative;
}
.gallery button.gallery-plan-btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 30px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(14, 32, 41, 0.25);
  overflow: visible;
}
.floorplan-block {
  display: grid;
  gap: 10px;
}
.plan-thumb {
  background: white;
  border: 1px solid var(--line);
}
.plan-thumb img {
  object-fit: contain;
}
.plan-foot {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-bottom: 6px;
}
.plan-help summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
}
.fp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fp-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}
.fp-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.fp-preview img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}
.fp-open-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 30px;
  background: var(--ink);
  color: white;
  font-size: 13px;
}
.fp-open-hint .icon {
  width: 15px;
  height: 15px;
}
.fp-viewer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.fp-viewer-head .fp-tabs {
  margin: 0;
}
.fp-stage {
  position: relative;
  width: 100%;
  height: min(calc(100vh - 230px), 680px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.fp-stage.zoomed {
  cursor: grab;
}
.fp-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
}
.fp-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.fp-controls .icon-btn {
  width: 42px;
  height: 42px;
  font-size: 22px;
  line-height: 1;
}
.fp-hint {
  text-align: center;
  margin: 8px 0 0;
}
@media (max-width: 640px) {
  .fp-stage {
    height: calc(100vh - 330px);
    height: calc(100dvh - 330px);
  }
  .fp-viewer-head {
    gap: 8px 12px;
  }
  .gallery button.gallery-plan-btn {
    left: 10px;
    bottom: 10px;
    padding: 7px 12px;
    font-size: 13px;
  }
}
dialog.fp-modal {
  background: white;
  color: var(--ink);
  text-align: left;
}
.fp-modal .close {
  color: var(--ink);
}
.fp-modal .fp-stage img {
  max-width: none;
  max-height: none;
}

/* Floor plan drawing tool (plan-draw.js) */
.plan-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
dialog.plan-draw-modal {
  width: min(760px, 96vw);
  height: min(820px, 94vh);
  max-width: none;
  max-height: none;
  padding: 18px 18px 16px;
  overflow: hidden;
}
dialog.plan-draw-modal[open] {
  display: flex;
  flex-direction: column;
}
.pd-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-right: 40px;
  font-size: 18px;
  flex: none;
}
.pd-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
  flex: none;
}
.pd-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  overflow: hidden;
}
.pd-picker {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}
.pd-picker[hidden] {
  display: none;
}
.pd-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pd-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}
.pd-picker-grid .chip {
  cursor: pointer;
  padding: 11px 8px;
  justify-content: center;
  text-align: center;
  font-size: 14px;
}
#pd-svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.pd-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  margin: 0;
  pointer-events: none;
}
.pd-empty[hidden] {
  display: none;
}
.pd-grid {
  stroke: #e6eef0;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  fill: none;
}
.pd-room rect {
  fill: #fff;
  stroke: #1d2a33;
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
  cursor: move;
}
.pd-room.out rect {
  fill: #f1f6f7;
  stroke: #8a9aa3;
  stroke-dasharray: 6 4;
  stroke-width: 1.5px;
}
.pd-room.pool rect {
  fill: #cfe8ef;
}
.pd-room.sel rect {
  fill: #e3f4f6;
  stroke: var(--teal);
}
.pd-room text {
  text-anchor: middle;
  font-weight: 700;
  fill: #172b37;
  pointer-events: none;
}
.pd-room text.pd-dim {
  font-weight: 400;
  fill: #5b6b75;
}
.pd-handle {
  fill: var(--teal);
  stroke: #fff;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  cursor: nwse-resize;
}
.pd-panel {
  flex: none;
  min-height: 44px;
  max-height: 38%;
  overflow-y: auto;
  margin-top: 10px;
}
.pd-panel p {
  margin: 4px 0;
}
.pd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}
.pd-row label {
  display: grid;
  gap: 3px;
  font-size: 13px;
  color: #5b6b75;
}
.pd-row input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.pd-name {
  flex: 1;
}
.pd-name input {
  width: 100%;
}
.pd-dims input {
  width: 84px;
}
.pd-x {
  padding-bottom: 10px;
  color: #8a9aa3;
}
.pd-unit {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.pd-unit button {
  border: 0;
  background: #fff;
  padding: 9px 12px;
  font-size: 13px;
  color: #446871;
}
.pd-unit button.on {
  background: var(--teal);
  color: #fff;
}
.pd-tools {
  align-items: center;
}
.pd-show {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}
.pd-stepnote {
  padding-bottom: 10px;
}
dialog.plan-draw-modal .error:empty {
  display: none;
}
.pd-actions {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 640px) {
  dialog.plan-draw-modal {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    padding: 12px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .pd-head {
    font-size: 16px;
  }
  .pd-row {
    gap: 6px;
    margin-bottom: 6px;
  }
  .pd-dims input {
    width: 70px;
  }
  .pd-actions .btn {
    flex: 1;
  }
}
/* Next in the listing editor: "fill in later" and "save under which name" */
.step-ask {
  margin-top: 18px;
  flex-wrap: wrap;
}
.step-ask .btn {
  flex: 1 1 auto;
}

/* Country picker next to the logo (replaces the fixed "DOMINICAN REPUBLIC" line). */
.country {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
}
.country svg {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.country select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536d79' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 11px center / 12px;
  padding: 8px 30px 8px 31px;
  font: 600 14px 'DM Sans', sans-serif;
  color: inherit;
  cursor: pointer;
  border-radius: 99px;
}
.country select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .country {
    margin: 3px 0 0 auto;
  }
  .country svg {
    left: 9px;
    width: 14px;
    height: 14px;
  }
  .country select {
    font-size: 13px;
    padding: 7px 24px 7px 26px;
    background-position: right 8px center;
  }
}

/* ---------- Buyer and agent tools (October 2026) ---------- */
.narrow-page.wide-form {
  max-width: 760px;
}
.lead {
  font-size: 17px;
  max-width: 720px;
}
.card .specs {
  flex-wrap: wrap;
  row-gap: 6px;
}
.price-approx {
  color: #6c818c;
  font-size: 13px;
  margin-top: 3px;
}
.cur-inline {
  margin: 8px 0 4px;
}
.cur-select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--ink);
}
.finance-line {
  display: block;
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
/* Compare */
.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.compare-toggle .icon,
.compare-toggle svg {
  width: 15px;
  height: 15px;
}
.card-compare {
  background: none;
  border: 0;
  padding: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}
.compare-toggle.on {
  color: var(--ink);
}
.btn.compare-toggle.on {
  border-color: var(--teal);
  color: var(--teal);
}
#compare-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px 8px 8px;
  box-shadow: 0 6px 24px #0002;
}
.compare-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.compare-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 640px;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f3;
  text-align: left;
  vertical-align: top;
}
.compare-table th:first-child {
  width: 170px;
}
.compare-table tbody th {
  color: #6c818c;
  font-weight: 500;
  white-space: nowrap;
  width: 160px;
}
.compare-table thead th {
  vertical-align: bottom;
}
.compare-table thead img {
  width: 100%;
  background: #eef3f5;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  margin-bottom: 8px;
}
.compare-table thead strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 6px;
}
/* Recently viewed, last search */
.recent-strip {
  margin: 34px 0 10px;
}
.recent-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.recent-head h3 {
  margin: 0;
}
.recent-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.mini-card {
  flex: 0 0 170px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  font-size: 13px;
}
.mini-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.mini-price,
.mini-place {
  display: block;
  padding: 0 10px;
}
.mini-price {
  font-weight: 700;
  margin-top: 8px;
}
.mini-price .price-rent {
  display: none;
}
.mini-place {
  color: #6c818c;
  margin: 2px 0 10px;
}
.continue-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.continue-search span {
  flex: 1;
  font-weight: 600;
}
.continue-search small {
  display: block;
  color: var(--teal);
  font-weight: 700;
}
.continue-search > svg:last-child {
  transform: rotate(180deg);
}
/* Area box on the search page */
.area-box {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}
.area-box h3 {
  margin: 0 0 8px;
}
.area-box p {
  margin: 0 0 12px;
  line-height: 1.6;
}
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.area-tags .chip {
  cursor: default;
}
.area-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.area-facts strong {
  display: block;
  font: 800 18px 'Manrope';
}
.area-facts span {
  font-size: 12px;
  color: #6c818c;
}
.area-facts a {
  grid-column: 1/-1;
}
/* Tools strip */
.tools-section {
  margin-top: 34px;
}
.tools-section h3 {
  margin: 0 0 12px;
}
.tools-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.market-page .tools-strip {
  margin-top: 10px;
}
.tool-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
}
.tool-card svg {
  flex: 0 0 20px;
  color: var(--teal);
  margin-top: 2px;
}
.tool-card strong {
  display: block;
}
.tool-card small {
  color: #6c818c;
}
.tool-card:hover {
  border-color: var(--teal);
}
/* Saved homes */
.fav-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.note-box {
  display: block;
  font-size: 13px;
  color: #6c818c;
}
.note-box textarea {
  width: 100%;
  min-height: 64px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
  background: white;
}
aside .note-box {
  margin: 14px 0;
}
.fav-alerts {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0 14px;
}
.shared-note {
  font-size: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
}
/* Calculators */
.seg-tabs {
  display: flex;
  gap: 4px;
  background: #eef3f5;
  border-radius: 9px;
  padding: 4px;
  margin: 4px 0 18px;
  overflow-x: auto;
}
.seg-tabs button {
  flex: 1;
  border: 0;
  background: none;
  border-radius: 7px;
  padding: 9px 12px;
  font-weight: 600;
  color: #526c77;
  cursor: pointer;
  white-space: nowrap;
}
.seg-tabs button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #0001;
}
.fin-out {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.fin-out strong {
  display: block;
  font-size: 18px;
}
.fin-out .muted.small {
  display: block;
}
.fin-main {
  grid-column: 1/-1;
}
.fin-main strong {
  font: 800 28px 'Manrope';
}
.fin-pct {
  color: var(--teal);
  font-weight: 700;
}
.fin-inputs input[type='range'] {
  width: 100%;
  accent-color: var(--teal);
}
.calc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}
/* Rental details */
.rent-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.rent-facts strong {
  display: block;
}
.rent-block {
  margin: 4px 0 18px;
}
.rent-block h3 {
  margin: 8px 0 4px;
}
/* Location panel */
.sub-h {
  margin: 26px 0 12px;
  font-size: 17px;
}
.climate-warn {
  background: #fff7e8;
  border: 1px solid #f1dcb0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
/* Guide */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.guide-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-card h3,
.guide-card p {
  margin: 0;
}
.guide-card .text-link {
  margin-top: auto;
}
.guide-card:hover {
  border-color: var(--teal);
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}
.guide-article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  line-height: 1.7;
  max-width: 780px;
}
.guide-article h1 {
  margin-top: 0;
  line-height: 1.2;
}
.guide-article h2 {
  font-size: 20px;
  margin: 30px 0 8px;
}
.guide-article ul {
  padding-left: 20px;
}
.guide-article .btn {
  margin-top: 10px;
}
.guide-side {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.guide-side h3 {
  margin: 0 0 4px;
}
.guide-side a:not(.text-link):hover {
  color: var(--teal);
}
/* Market report */
.market-tiles {
  grid-template-columns: repeat(4, 1fr);
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.bar-track {
  background: #eef3f5;
  border-radius: 5px;
  height: 12px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 5px;
}
.bar-value {
  text-align: right;
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
}
.market-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 14px;
}
.market-table th,
.market-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f3;
  text-align: right;
}
.market-table th:first-child,
.market-table thead th:first-child {
  text-align: left;
}
.market-table thead th {
  color: #6c818c;
  font-weight: 500;
  font-size: 12px;
}
.market-table tbody th a {
  color: var(--teal);
}
/* Valuation */
.val-result {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.val-range {
  font: 800 24px 'Manrope';
  margin: 0 0 6px;
}
#val-form .btn,
#val-form .form-grid {
  margin-top: 16px;
}
/* Highlights */
.hl-on {
  color: #a26a00;
  font-size: 12px;
  font-weight: 700;
}
.hl-left {
  margin: -10px 0 16px;
}
/* Reviews */
.stars {
  color: #e0a100;
  letter-spacing: 1px;
}
.stars-off {
  color: #d4dde1;
}
.rating-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  font-size: 14px;
}
.agency-head .rating-line {
  display: flex;
}
.contact-card .rating-line {
  display: flex;
  font-size: 13px;
}
.reviews-panel {
  margin-top: 30px;
}
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.reviews-head h2 {
  margin: 0;
}
.reviews-head .btn {
  margin-left: auto;
}
.review {
  border-top: 1px solid #edf1f3;
  padding: 16px 0;
}
.review-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.review p {
  margin: 8px 0;
  line-height: 1.6;
}
.review-reply {
  background: #f5f7f8;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0;
  font-size: 14px;
}
.review-reply p {
  margin: 4px 0 0;
}
.review-actions {
  display: flex;
  gap: 16px;
}
.star-pick {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.star-pick legend {
  width: 100%;
  margin-bottom: 6px;
  float: left;
}
.star-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.star-pick label {
  font-size: 32px;
  color: #d4dde1;
  cursor: pointer;
  line-height: 1;
}
.star-pick label:hover,
.star-pick label:hover ~ label,
.star-pick input:checked ~ label {
  color: #e0a100;
}
.star-pick input:focus-visible + label {
  outline: 2px solid var(--teal);
  border-radius: 4px;
}
/* Services */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.provider-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.provider-card.featured {
  border-color: #e7c873;
}
.provider-card h3,
.provider-card p {
  margin: 0;
}
.provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  margin-top: auto;
}
.provider-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-weight: 600;
}
.provider-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #edf1f3;
  padding-top: 10px;
}
.services-page .region-nav {
  margin: 10px 0 0;
}
/* Footer */
#footer-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}
#footer-copy .footer-links a {
  text-decoration: none;
  color: var(--ink);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  align-items: center;
}
.footer-cur {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
@media (max-width: 900px) {
  .area-box,
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .area-facts {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .guide-side {
    position: static;
  }
  .market-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .guide-article {
    padding: 20px;
  }
  .bar-row {
    grid-template-columns: 100px 1fr 80px;
    font-size: 13px;
  }
  .fin-out {
    grid-template-columns: 1fr;
  }
  .area-box {
    padding: 18px;
  }
  #compare-bar {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  footer {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .seg-tabs button {
    padding: 8px 6px;
    font-size: 13px;
    white-space: normal;
  }
}

/* Property page on phones: photo first, price right under it, contact bar at the bottom. */
.mobile-price,
.contact-bar {
  display: none;
}
@media (max-width: 760px) {
  .property-page {
    display: flex;
    flex-direction: column;
  }
  .property-page > * {
    order: 4;
  }
  .property-page > .back {
    order: 0;
    margin-bottom: 14px;
  }
  .property-page > .gallery {
    order: 1;
    margin-bottom: 18px;
  }
  .property-page > .detail-title {
    order: 2;
    margin-bottom: 8px;
  }
  .mobile-price {
    display: block;
    margin: 10px 0 4px;
  }
  .mobile-price .price {
    font-size: 26px;
  }
  .contact-bar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px #0000000d;
  }
  .contact-bar .btn {
    flex: 1;
    padding: 12px 8px;
  }
  body:has(.contact-bar) footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  body:has(.contact-bar) #compare-bar,
  body:has(.contact-bar) .cookie-bar {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .cookie-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 8px 8px 14px;
    font-size: 13px;
    flex-wrap: nowrap;
  }
  .cookie-bar .btn {
    padding: 8px 14px;
  }
}

/* Header menu: on computers the menu items sit in the bar as before; on phones the header is
   one row (logo, country, heart, menu button) and the rest opens as a list under it. */
.nav-menu {
  display: contents;
}
.nav-menu > .nav-browse {
  order: -1;
}
.nav-toggle,
.nav-menu-only {
  display: none;
}
@media (max-width: 760px) {
  header {
    position: relative;
    min-height: 0;
    flex-wrap: nowrap;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
  }
  .brand {
    font-size: 26px;
    letter-spacing: -1.4px;
    gap: 8px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .country {
    margin: 0 auto 0 0;
  }
  nav,
  nav.signed-in {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
  }
  .nav-fav {
    display: inline-flex;
    padding: 8px;
  }
  .nav-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--ink);
  }
  .nav-toggle .icon {
    width: 24px;
    height: 24px;
  }
  .nav-dot {
    position: absolute;
    top: 8px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4493b;
  }
  .nav-menu {
    display: none;
  }
  nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1001;
    padding: 4px 16px 18px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px #0000001a;
  }
  nav.open .nav-menu > a:not(.btn),
  nav.open .nav-menu > #account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    text-align: left;
    margin: 0;
  }
  nav.open .nav-menu-only {
    display: inline;
  }
  nav.open .nav-menu .language {
    align-self: flex-start;
    margin-top: 14px;
  }
  nav.open .nav-menu .btn {
    margin: 14px 0 0;
    font-size: 15px;
    padding: 13px;
  }
  nav.open .nav-menu > #account {
    order: 1;
    border-bottom: 0;
  }
}
.similar-homes {
  margin-top: 36px;
}
.similar-homes h2 {
  margin-bottom: 16px;
}
/* Search page on phones: a compact search block, so the first homes show sooner. */
@media (max-width: 760px) {
  .hero {
    padding: 16px 16px 14px;
  }
  .hero-top .eyebrow,
  .hero-top p {
    display: none;
  }
  .hero h1 {
    font-size: 22px;
    margin: 0;
  }
  .tabs {
    margin-top: 12px;
  }
  .tab {
    padding: 9px 18px;
  }
  .searchbox {
    padding: 10px;
    gap: 8px;
  }
  .searchfield:first-child {
    padding-bottom: 6px;
  }
  .searchfield label {
    margin-bottom: 2px;
  }
  .region-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 12px -16px 0;
    padding: 0 16px 2px;
    scrollbar-width: none;
  }
  .region-nav::-webkit-scrollbar {
    display: none;
  }
  .region-nav .chip {
    flex: none;
  }
}
/* Dashboards on phones: title on top, buttons in a row below it. */
@media (max-width: 760px) {
  .dashboard-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .dashboard-head .dash-actions .btn {
    padding: 9px 12px;
    font-size: 13px;
  }
}
/* Header row on narrow phones: the country name gives way first, nothing runs off the screen. */
@media (max-width: 760px) {
  header {
    padding: 10px 12px 10px 16px;
    gap: 8px;
  }
  .brand,
  nav {
    flex-shrink: 0;
  }
  .country {
    min-width: 0;
    flex-shrink: 1;
  }
  .country select {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-toggle {
    width: 36px;
  }
}
@media (max-width: 370px) {
  .brand {
    font-size: 23px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .nav-fav {
    display: none !important; /* also in the menu */
  }
}
@media (max-width: 760px) {
  .country svg {
    display: none;
  }
  .country select {
    font-size: 12.5px;
    padding: 7px 22px 7px 11px;
    background-position: right 7px center;
  }
  .mobile-price .price {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ink);
  }
}
@media (min-width: 761px) {
  .similar-homes .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Where visitors come from, and what an office gains (plans page) */
.countries-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  margin: 0 0 4px;
}
.countries-panel p {
  margin: 0;
}
.countries-panel .bars {
  margin: 14px 0 10px;
}
.countries-panel .bar-row {
  grid-template-columns: 170px 1fr 52px;
}
.item-flags {
  letter-spacing: 1px;
}
.why-section {
  margin: 0 0 30px;
}
.why-section > h2 {
  text-align: center;
  margin: 0 0 16px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.why-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}
.why-card h3 {
  margin: 10px 0 6px;
  font-size: 16px;
}
.why-card p {
  margin: 0;
  font-size: 14px;
}
.why-icon .icon {
  width: 26px;
  height: 26px;
  color: var(--teal);
}
.why-live {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
}
.why-flags {
  font-size: 18px;
  letter-spacing: 2px;
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .countries-panel .bar-row {
    grid-template-columns: 120px 1fr 44px;
  }
}

/* Install tip for visitors: one compact row under the results. */
.install-banner.visitor {
  padding: 10px 12px;
  gap: 10px;
}
.install-banner.visitor img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.install-banner.visitor strong {
  font-size: 15px;
}

/* Search in plain words: a quiet tip while typing, and what was understood above the results. */
.searchfield .nlq-hint {
  display: none;
  color: var(--muted, #6b7a85);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}
.searchfield.hint-on .nlq-hint {
  display: block;
}
.understood {
  margin: 4px 0 0;
  color: var(--muted, #6b7a85);
}
.understood strong {
  color: inherit;
  font-weight: 600;
}

/* Client board */
.client-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}
.client-chips .chip {
  text-decoration: none;
}
.client-chips .chip-due {
  border-color: #e0a23a;
  color: #8a5a00;
}
.client-list {
  display: grid;
  gap: 10px;
}
.client-item .info {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.client-item.is-due {
  border-color: #e0a23a;
}
.client-item .follow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted, #6b7a85);
}
.client-item .follow.due {
  color: #8a5a00;
  font-weight: 600;
}
.client-item .follow .icon {
  width: 15px;
  height: 15px;
}
.stage-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: 2px;
  background: #e3f1f3;
  color: #087d8c;
}
.stage-pill.stage-won {
  background: #e5f3ea;
  color: #2f7d4f;
}
.stage-pill.stage-lost {
  background: #eef1f3;
  color: #6b7a85;
}
.wish-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wish-row input {
  flex: 1;
  min-width: 0;
}
.client-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.danger-link {
  color: #b4442f;
}
.match-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
}
@media (max-width: 600px) {
  .client-item {
    flex-direction: column;
    align-items: stretch;
  }
}
