* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f2ea;
  color: #1d2733;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(420px, 1fr);
  min-height: 100vh;
  padding-top: 88px;
}

.sidebar,
.results,
.detail {
  min-width: 0;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid #e2d8cc;
  padding: 24px;
}

.brand {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.brand-logo {
  cursor: pointer;
  display: block;
  height: auto;
  object-fit: contain;
  object-position: left center;
  width: 256px;
}

.brand p,
.section-heading h2,
.section-heading p {
  margin: 0;
}

.brand p,
.section-heading p,
.address,
.contact p,
.property-card p,
.publish-panel p {
  color: #667085;
}

.search {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.search span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 68px;
}

.search input {
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 14px;
}

.map-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 60px;
  position: relative;
}

.map-button.active {
  background: #e5f4ee;
  border-color: #0b6b5e;
  box-shadow: 0 0 0 3px rgba(11, 107, 94, 0.22);
}

.map-globe {
  font-size: 34px;
  line-height: 1;
}

.map-lens {
  font-size: 24px;
  font-weight: 900;
  position: absolute;
  right: 5px;
  top: 2px;
}

.filters {
  background: #efe8df;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
}

.advanced-toggle {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #0b6b5e;
  font-weight: 900;
  margin-top: 10px;
  min-height: 42px;
  width: 100%;
}

.advanced-filters {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
}

.filter-group {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.filter-group legend {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 2px;
  padding: 0;
}

.filter-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.advanced-filters label {
  color: #667085;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
}

.advanced-filters select,
.advanced-filters input {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #1d2733;
  min-height: 40px;
  padding: 0 10px;
}

.advanced-filters .check-filter {
  align-items: center;
  background: #f7f2ea;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #1d2733;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  min-height: 42px;
  padding: 10px;
}

.advanced-filters .check-filter input {
  accent-color: #0b6b5e;
  height: 18px;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.compact-checks {
  gap: 8px;
}

.filters button,
.outline,
.publish-panel button,
.contact button {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  min-height: 42px;
}

.filters button {
  background: transparent;
  color: #1d2733;
}

.filters .active,
.publish-panel button,
.contact button {
  background: #0b6b5e;
  color: #ffffff;
}

.stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  margin: 20px 0;
}

.stats div {
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  padding: 12px;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 22px;
}

.stats span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.publish-panel {
  background: #f8dfd2;
  border-radius: 8px;
  margin-top: 24px;
  padding: 18px;
}

.publish-panel p {
  line-height: 1.45;
}

.home-icon {
  align-items: center;
  background: #0b6b5e;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  margin-right: 6px;
  vertical-align: middle;
  width: 28px;
}

.publish-panel h2,
.auth-panel h2,
.auth-dropdown h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.publish-panel button,
.auth-dropdown button,
.secondary-action {
  margin-top: 12px;
  width: 100%;
}

.publish-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.auth-panel {
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  padding: 16px;
}

.top-auth {
  position: fixed;
  right: 24px;
  top: 16px;
  z-index: 10;
}

.auth-panel.top-auth {
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(29, 39, 51, 0.1);
  min-width: 300px;
}

.user-auth {
  align-items: flex-end;
  display: grid;
  justify-items: end;
}

.user-auth-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.top-icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(29, 39, 51, 0.12);
  color: #06182b;
  display: flex;
  font-size: 19px;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
}

.top-icon-button strong {
  align-items: center;
  background: #b42318;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 5px;
  position: absolute;
  right: -5px;
  top: -5px;
}

.avatar-button {
  align-items: center;
  background: #06182b;
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(29, 39, 51, 0.2);
  color: #ffffff;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.avatar-button img,
.avatar-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-menu {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  box-shadow: 0 18px 30px rgba(29, 39, 51, 0.14);
  margin-top: 10px;
  padding: 16px;
  width: 330px;
}

.profile-menu-head {
  align-items: center;
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
}

.avatar-preview {
  align-items: center;
  background: #06182b;
  border-radius: 999px;
  color: #ffffff;
  display: flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  overflow: hidden;
  width: 46px;
}

.profile-menu h2,
.profile-menu p {
  margin: 0;
}

.profile-menu p {
  color: #667085;
  font-size: 14px;
}

.profile-menu button,
.profile-form button,
.profile-form input {
  border-radius: 8px;
  min-height: 42px;
  width: 100%;
}

.profile-menu button {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  color: #1d2733;
  font-weight: 900;
  margin-top: 8px;
}

.profile-menu .danger-action {
  border-color: #b42318;
  color: #b42318;
}

.profile-menu .moderator-mode {
  border-color: #0b6b5e;
  color: #0b6b5e;
}

.profile-menu .moderator-mode.active {
  background: #0b6b5e;
  color: #ffffff;
}

.profile-form,
.profile-form label {
  display: grid;
  gap: 8px;
}

.profile-form label {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.profile-form input {
  border: 1px solid #e2d8cc;
  padding: 0 12px;
}

.profile-form input[type="file"],
.create-form input[type="file"] {
  align-items: center;
  background: #f7f2ea;
  border-style: dashed;
  cursor: pointer;
  padding: 11px 12px;
}

.image-picker {
  display: grid;
  gap: 10px;
}

.image-preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}

.image-preview-grid img,
.image-add-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  min-height: 118px;
  width: 100%;
}

.image-preview-grid img {
  border: 1px solid #e2d8cc;
  object-fit: cover;
}

.image-add-tile {
  align-items: center;
  background: #f7f2ea;
  border: 2px dashed #cbbcad;
  color: #0b6b5e;
  display: flex;
  font-size: 46px;
  font-weight: 800;
  justify-content: center;
}

.profile-form button {
  background: #0b6b5e;
  border: 0;
  color: #ffffff;
  font-weight: 900;
}

.password-form {
  margin-top: 18px;
}

.profile-page,
.create-page,
.moderation-page,
.submitted-page {
  min-height: 100vh;
  padding-top: 88px;
}

.submitted-page {
  align-items: center;
  display: grid;
  padding: 120px 24px 48px;
}

.submitted-panel {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  justify-self: center;
  max-width: 760px;
  padding: 42px;
  text-align: center;
}

.submitted-logo {
  height: 72px;
  object-fit: contain;
}

.submitted-icon {
  align-items: center;
  background: #0b6b5e;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 34px;
  font-weight: 900;
  height: 76px;
  justify-content: center;
  margin: 24px auto 16px;
  width: 76px;
}

.submitted-panel span {
  color: #0b6b5e;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.submitted-panel h1 {
  font-size: 34px;
  margin: 8px 0 0;
}

.submitted-panel p {
  color: #667085;
  font-size: 17px;
  line-height: 1.55;
  margin: 14px auto 0;
  max-width: 610px;
}

.submitted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.submitted-actions button {
  background: #0b6b5e;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  min-height: 46px;
  padding: 0 18px;
}

.submitted-actions .outline {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  color: #0b6b5e;
}

.profile-topbar {
  align-items: center;
  background: transparent;
  border-bottom: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, auto) 1fr;
  padding: 26px 24px 18px;
  z-index: 2;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notifications-topbar {
  grid-template-columns: minmax(260px, auto) 1fr;
  padding: 26px 24px 18px;
}

.profile-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 340px minmax(420px, 1fr);
  padding: 28px;
}

.profile-card-large,
.profile-editor-page,
.activity-grid div {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
}

.profile-card-large {
  align-self: start;
  padding: 28px;
  text-align: center;
}

.profile-avatar-wrap {
  display: inline-grid;
  margin-bottom: 18px;
  position: relative;
}

.profile-avatar-large {
  align-items: center;
  background: #06182b;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 32px;
  font-weight: 900;
  height: 132px;
  justify-content: center;
  overflow: hidden;
  width: 132px;
}

.avatar-edit-button {
  align-items: center;
  background: #0b6b5e;
  border: 3px solid #ffffff;
  border-radius: 999px;
  bottom: 4px;
  box-shadow: 0 10px 18px rgba(29, 39, 51, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 0;
  width: 42px;
}

.profile-avatar-message {
  font-size: 13px;
  margin-top: 12px;
}

.profile-avatar-large img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-card-large h1,
.profile-card-large p {
  margin: 0;
}

.profile-card-large p {
  color: #667085;
  margin-top: 6px;
}

.profile-main {
  display: grid;
  gap: 20px;
}

.activity-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.activity-grid div {
  padding: 18px;
}

.activity-grid strong,
.activity-grid span {
  display: block;
}

.activity-grid strong {
  font-size: 30px;
}

.activity-grid span {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-editor-page {
  padding: 24px;
}

.profile-editor-page h2 {
  margin: 0 0 16px;
}

.profile-editor-page h3 {
  border-top: 1px solid #e2d8cc;
  font-size: 18px;
  margin: 18px 0 2px;
  padding-top: 18px;
}

.profile-quick-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.profile-quick-grid button {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #0b6b5e;
  font-weight: 900;
  min-height: 46px;
}

.profile-quick-grid span {
  background: #b42318;
  border-radius: 999px;
  color: #ffffff;
  margin-left: 6px;
  padding: 2px 7px;
}

.create-layout {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.moderation-layout {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.messages-layout {
  display: grid;
  gap: 16px;
  padding: 20px 28px 28px;
}

.messages-layout h1 {
  font-size: 30px;
  margin: 0;
}

.moderation-list {
  display: grid;
  gap: 16px;
}

.moderation-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.moderation-summary div {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  padding: 16px;
}

.moderation-summary strong,
.moderation-summary span {
  display: block;
}

.moderation-summary strong {
  font-size: 28px;
}

.moderation-summary span,
.moderation-section-title {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.moderation-section-title {
  margin: 8px 0 -6px;
}

.moderation-card,
.empty-state {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
}

.moderation-card {
  display: grid;
  gap: 18px;
  grid-template-columns: 280px 1fr;
  padding: 16px;
}

.moderation-card > img {
  aspect-ratio: 1.35;
  border-radius: 6px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.moderation-card h2,
.moderation-card p {
  margin: 8px 0 0;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.compact-actions {
  margin-top: 12px;
}

.moderation-actions button {
  background: #0b6b5e;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  min-height: 42px;
  padding: 0 14px;
}

.moderation-actions .danger-action {
  background: #b42318;
}

.moderation-actions .delete-action {
  background: #1d2733;
}

.moderation-actions .moderator-delete-action {
  background: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.16);
}

.moderation-actions .promote-action {
  background: #b7791f;
}

.moderation-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.promotion-state {
  color: #8a5a13;
  font-weight: 900;
}

.promote-dialog {
  max-width: 620px;
}

.promotion-plans {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.payment-provider-badge {
  background: #635bff;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-top: 10px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.promotion-plans button {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #0b1f33;
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 14px;
  text-align: left;
}

.promotion-plans strong {
  color: #0b6b5e;
  font-size: 20px;
}

.promotion-plans span {
  font-size: 24px;
  font-weight: 900;
}

.promotion-plans small {
  color: #667085;
  line-height: 1.35;
}

.detail-moderation-actions {
  margin-top: 24px;
}

.status-pill {
  background: #f7f2ea;
  border: 1px solid #e2d8cc;
  border-radius: 999px;
  color: #0b6b5e;
  font-weight: 900;
  justify-self: end;
  padding: 8px 12px;
}

.review-changes {
  background: #f7f2ea;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
}

.review-changes h3 {
  margin: 0;
}

.review-changes p {
  display: grid;
  gap: 8px;
  grid-template-columns: 130px 1fr 1fr;
  margin: 0;
}

.review-changes span {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 6px;
  padding: 8px;
}

.empty-state {
  color: #667085;
  font-weight: 900;
  padding: 24px;
}

.notification-list,
.message-list {
  display: grid;
  gap: 12px;
}

.chat-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 320px minmax(0, 1fr);
}

.conversation-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.conversation-card {
  align-items: start;
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #0b1f33;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 36px;
  padding: 14px;
  min-width: 0;
}

.conversation-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.conversation-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
}

.conversation-badge {
  background: #0b6b5e;
  border-radius: 12px 12px 12px 4px;
  color: #ffffff;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  white-space: nowrap;
}

.conversation-card.active {
  border-color: #0b6b5e;
  box-shadow: 0 0 0 2px rgba(11, 107, 94, 0.12);
}

.conversation-open {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
  min-width: 0;
}

.conversation-open strong {
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-open strong,
.conversation-open p,
.conversation-open span {
  display: block;
  margin: 0;
}

.conversation-open p,
.conversation-open span {
  color: #667085;
  margin-top: 6px;
}

.conversation-open .conversation-unread-dot {
  align-items: center;
  color: #b42318;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  margin-top: 6px;
}

.conversation-open .conversation-unread-dot::before {
  background: #b42318;
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 8px;
  width: 8px;
}

.conversation-delete {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #b42318;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.chat-panel {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  display: grid;
  min-height: 520px;
}

.chat-panel header {
  align-items: center;
  border-bottom: 1px solid #e2d8cc;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.chat-panel header h2,
.chat-panel header span {
  margin: 0;
}

.chat-panel header span {
  color: #0b6b5e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-thread {
  align-content: end;
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 16px;
}

.chat-message {
  border-radius: 8px;
  max-width: min(74%, 560px);
  padding: 10px 12px;
}

.chat-message.mine {
  background: #0b6b5e;
  color: #ffffff;
  justify-self: end;
}

.chat-message.theirs {
  background: #f7f2ea;
  justify-self: start;
}

.chat-message p,
.chat-message span,
.empty-chat {
  margin: 0;
}

.chat-message span {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  opacity: 0.78;
}

.chat-form {
  border-top: 1px solid #e2d8cc;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 16px;
}

.chat-form input {
  border: 1px solid #d8ccbf;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 12px;
}

.chat-form button {
  background: #0b6b5e;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  min-width: 120px;
}

.notification-card {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  padding: 16px;
}

.notification-card.unread {
  border-color: #0b6b5e;
  box-shadow: 0 0 0 2px rgba(11, 107, 94, 0.12);
}

.notification-card strong,
.notification-card p,
.notification-card span {
  display: block;
  margin: 0;
}

.notification-card p {
  color: #1d2733;
  margin-top: 6px;
}

.notification-card span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
}

.rejection-reason {
  background: #fef3f2;
  border-radius: 8px;
  color: #b42318;
  padding: 10px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(6, 24, 43, 0.48);
  display: grid;
  inset: 0;
  padding: 20px;
  position: fixed;
  z-index: 20;
}

.reject-dialog {
  background: #ffffff;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  justify-self: center;
  max-width: 560px;
  padding: 24px;
  width: min(100%, 560px);
}

.reject-dialog h2,
.reject-dialog p {
  margin: 0;
}

.reject-dialog label {
  color: #667085;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
}

.reject-dialog select,
.reject-dialog textarea {
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  font: inherit;
  min-height: 44px;
  padding: 10px;
}

.reject-dialog textarea {
  min-height: 110px;
  resize: vertical;
}

.price-change {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-change del {
  color: #667085;
  font-weight: 900;
}

.price-change strong {
  color: #06182b;
  font-size: inherit;
}

.price-change span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.price-down {
  background: #ecfdf3;
  color: #027a48;
}

.price-up {
  background: #fef3f2;
  color: #b42318;
}

.create-heading {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  padding: 24px;
}

.create-heading span {
  color: #0b6b5e;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.create-heading h1,
.create-heading p {
  margin: 0;
}

.create-heading h1 {
  font-size: 34px;
  margin-top: 6px;
}

.create-heading p {
  color: #667085;
  margin-top: 8px;
}

.create-form {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.create-form label {
  color: #667085;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
}

.create-form input,
.create-form select,
.create-form textarea {
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #1d2733;
  font: inherit;
  min-height: 46px;
  padding: 0 12px;
}

.create-form textarea {
  min-height: 130px;
  padding-top: 12px;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.form-grid.four {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-checks label {
  align-items: center;
  background: #f7f2ea;
  border-radius: 8px;
  color: #1d2733;
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 10px 12px;
}

.form-checks input {
  min-height: auto;
}

.create-submit {
  background: #0b6b5e;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  min-height: 52px;
}

.form-message {
  color: #667085;
  font-weight: 900;
  margin: 0;
}

.form-message.error {
  color: #b42318;
}

.form-message.success {
  color: #0b6b5e;
}

.form-message.warning {
  color: #9a6700;
}

.field-help {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.required-mark {
  background: #fef3f2;
  border-radius: 999px;
  color: #b42318;
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  margin-left: 6px;
  padding: 2px 7px;
}

.auth-panel p {
  color: #667085;
  margin: 0;
}

.auth-actions {
  background: #efe8df;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  width: 260px;
}

.auth-actions button {
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  color: #1d2733;
  font-weight: 900;
  min-height: 44px;
}

.auth-actions .active {
  background: #0b6b5e;
  color: #ffffff;
}

.auth-dropdown {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  box-shadow: 0 18px 30px rgba(29, 39, 51, 0.14);
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  width: 310px;
}

.auth-dropdown h2 {
  margin: 0;
}

.auth-dropdown input {
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 12px;
}

.auth-error {
  color: #b42318 !important;
  font-size: 13px;
  font-weight: 800;
}

.secondary-action {
  background: #ffffff;
  border: 1px solid #0b6b5e;
  border-radius: 8px;
  color: #0b6b5e;
  font-weight: 900;
  min-height: 42px;
}

.results {
  padding: 24px;
}

.section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 24px;
}

.outline {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  color: #0b6b5e;
  padding: 0 16px;
}

.listing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  justify-content: start;
}

.favorites-listing-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
}

.map-panel {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  margin-bottom: 18px;
  overflow: hidden;
}

.map-toolbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e2d8cc;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.map-toolbar strong {
  color: #1d2733;
}

.map-toolbar div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.map-toolbar button {
  background: #f7f2ea;
  border: 1px solid #e2d8cc;
  border-radius: 6px;
  color: #0b6b5e;
  font-weight: 900;
  min-height: 34px;
  min-width: 36px;
  padding: 0 10px;
}

.map-toolbar .draw-active {
  background: #0b6b5e;
  color: #ffffff;
}

.map-viewport {
  background: #b9d6e8;
  height: 520px;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

#real-spain-map {
  height: 100%;
  width: 100%;
  z-index: 1;
}

#real-spain-map.draw-mode,
.leaflet-container {
  font-family: inherit;
}

.leaflet-container {
  background: #b9d6e8;
}

.admin-region {
  fill: #dfe8dd;
  fill-opacity: 0.42;
  stroke: #587f55;
  stroke-opacity: 0.95;
  stroke-width: 2;
}

.admin-province {
  fill: #e7eee5;
  fill-opacity: 0.34;
  stroke: #477248;
  stroke-opacity: 0.9;
  stroke-width: 1;
}

.admin-label {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d5c8ba;
  border-radius: 6px;
  box-shadow: none;
  color: #1d2733;
  font-weight: 900;
  padding: 2px 6px;
}

.region-label {
  font-size: 13px;
}

.province-label {
  font-size: 11px;
}

.leaflet-price-pin {
  background: #0b6b5e;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(29, 39, 51, 0.26);
  color: #ffffff;
  font-weight: 900;
  height: auto !important;
  min-height: 34px;
  min-width: 74px;
  padding: 7px 12px;
  text-align: center;
  white-space: nowrap;
  width: auto !important;
}

.leaflet-price-pin::after {
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #0b6b5e;
  bottom: -8px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.leaflet-price-pin.promoted {
  background: #b7791f;
}

.leaflet-price-pin.promoted::after {
  border-top-color: #b7791f;
}

.leaflet-price-pin.current {
  background: #06182b;
  box-shadow: 0 0 0 3px rgba(11, 107, 94, 0.35), 0 10px 20px rgba(29, 39, 51, 0.3);
}

.leaflet-price-pin.current::after {
  border-top-color: #06182b;
}

.leaflet-property-tooltip {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.leaflet-property-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  box-shadow: 0 18px 30px rgba(29, 39, 51, 0.18);
  display: grid;
  gap: 10px;
  grid-template-columns: 96px 1fr;
  max-width: 320px;
  padding: 10px;
  width: 300px;
}

.leaflet-property-card img {
  border-radius: 6px;
  height: 72px;
  object-fit: cover;
  width: 96px;
}

.leaflet-property-card strong,
.leaflet-property-card p {
  display: block;
  margin: 0;
}

.leaflet-property-card p {
  color: #667085;
  font-size: 14px;
  margin-top: 4px;
}

.leaflet-draw-line {
  fill: none;
  stroke: #0b6b5e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.leaflet-draw-polygon {
  fill: rgba(11, 107, 94, 0.2);
  stroke: #0b6b5e;
  stroke-dasharray: 10 7;
  stroke-linejoin: round;
  stroke-width: 3;
}

.draw-hint {
  background: rgba(6, 24, 43, 0.88);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  left: 16px;
  padding: 10px 12px;
  position: absolute;
  top: 16px;
  z-index: 5;
}

.draw-layer {
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 4;
}

.draw-line {
  fill: none;
  stroke: #0b6b5e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.draw-polygon {
  fill: rgba(11, 107, 94, 0.18);
  stroke: #0b6b5e;
  stroke-dasharray: 10 7;
  stroke-linejoin: round;
  stroke-width: 3;
}

.spain-map {
  height: 620px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform-origin: center;
  transition: transform 180ms ease;
  translate: -50% -50%;
  width: 900px;
}

.spain-svg {
  height: 100%;
  width: 100%;
}

.sea-shape {
  fill: #b9d6e8;
}

.spain-shape {
  fill: #dfe8dd;
  filter: drop-shadow(0 10px 18px rgba(29, 39, 51, 0.14));
  stroke: #6f9369;
  stroke-linejoin: round;
  stroke-width: 5;
}

.portugal-shape {
  fill: #cbd8c8;
  stroke: #8fa78a;
  stroke-linejoin: round;
  stroke-width: 3;
}

.island-shape {
  fill: #dfe8dd;
  stroke: #7a9b76;
  stroke-linejoin: round;
  stroke-width: 3;
}

.spain-coast-detail {
  fill: none;
  opacity: 0.35;
  stroke: #5d805a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.region-line {
  fill: none;
  opacity: 0.45;
  stroke: #ffffff;
  stroke-width: 10;
  stroke-linecap: round;
}

.map-label {
  fill: rgba(29, 39, 51, 0.18);
  font-size: 46px;
  font-weight: 900;
  text-anchor: middle;
}

.map-small-label {
  fill: rgba(29, 39, 51, 0.22);
  font-size: 22px;
  font-weight: 900;
  text-anchor: middle;
}

.price-pin {
  background: #0b6b5e;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(29, 39, 51, 0.24);
  color: #ffffff;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
  position: absolute;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  z-index: 2;
}

.price-pin::after {
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #0b6b5e;
  bottom: -8px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.map-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  box-shadow: 0 18px 30px rgba(29, 39, 51, 0.18);
  display: grid;
  gap: 10px;
  grid-template-columns: 96px 1fr;
  padding: 10px;
  position: absolute;
  width: 300px;
  z-index: 3;
}

.map-card img {
  border-radius: 6px;
  height: 72px;
  object-fit: cover;
  width: 96px;
}

.map-card strong,
.map-card p {
  display: block;
  margin: 0;
}

.map-card p {
  color: #667085;
  font-size: 14px;
  margin-top: 4px;
}

.property-card {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  overflow: hidden;
}

.property-card.selected {
  border-color: #0b6b5e;
  box-shadow: 0 0 0 2px rgba(11, 107, 94, 0.16);
}

.property-card.promoted {
  border-color: #f3c76a;
  background: linear-gradient(180deg, #fff6df 0%, #fdeecb 100%);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.35), 0 8px 22px rgba(212, 160, 23, 0.18);
}

.property-card.promoted .card-body {
  background: transparent;
}

.property-card.promoted.selected {
  border-color: #0b6b5e;
  box-shadow: 0 0 0 2px rgba(11, 107, 94, 0.16), 0 8px 22px rgba(212, 160, 23, 0.18);
}

.card-media {
  position: relative;
}

.promoted-chip {
  background: linear-gradient(135deg, #f6c452, #d49a17);
  color: #3a2606;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 5px 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.card-image {
  position: relative;
}

.property-card img {
  aspect-ratio: 1.45;
  display: block;
  object-fit: cover;
  width: 100%;
}

.card-heart {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(29, 39, 51, 0.22);
  color: #1d2733;
  display: flex;
  font-size: 22px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  z-index: 2;
}
.card-heart.saved { color: #b42318; }

.card-body {
  padding: 14px;
}

.card-topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-topline span,
.mode-label {
  color: #0b6b5e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.seller-chip,
.seller-badge {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.promoted-badge {
  background: #fff3cd;
  border: 1px solid #f3c76a;
  border-radius: 999px;
  color: #8a5a13;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.seller-chip {
  margin-left: 0;
}

.seller-chip.professional,
.seller-badge.professional {
  background: #e5f4ee;
  color: #0b6b5e;
}

.seller-chip.private,
.seller-badge.private {
  background: #f8dfd2;
  color: #9a3412;
}

.seller-badge {
  display: inline-flex;
  margin-left: 8px;
  vertical-align: middle;
}

.heart,
.hero-heart {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 999px;
  color: #1d2733;
  font-size: 22px;
  height: 36px;
  line-height: 1;
  width: 36px;
}

.saved {
  color: #b42318;
}

.property-card h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 8px 0;
}

.property-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.features,
.detail-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.features span,
.detail-features span {
  background: #efe8df;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 8px;
}

.detail {
  background: #ffffff;
  border-left: 1px solid #e2d8cc;
  max-height: 100vh;
  overflow: auto;
}

.detail-page {
  min-height: 100vh;
  padding-top: 88px;
}

.detail-topbar {
  align-items: center;
  background: transparent;
  border-bottom: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, auto) 1fr minmax(44px, auto);
  padding: 26px 24px 18px;
  z-index: 2;
}

.detail-page-logo {
  cursor: pointer;
  height: 118px;
  justify-self: center;
  object-fit: contain;
}

.submitted-logo {
  cursor: pointer;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(360px, 0.85fr);
  gap: 28px;
  padding: 28px;
}

.detail-hero-main {
  border-radius: 8px;
  display: block;
  height: min(68vh, 620px);
  object-fit: cover;
  width: 100%;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.detail-gallery-thumbs button {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  height: 82px;
  overflow: hidden;
  padding: 0;
}

.detail-gallery-thumbs button.active {
  border-color: #0b6b5e;
}

.detail-gallery-thumbs img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.detail-summary {
  align-self: center;
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  padding: 28px;
}

.detail-summary h1 {
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 10px 0 14px;
}

.detail-page-price {
  display: block;
  font-size: 38px;
  margin-bottom: 12px;
}

.detail-page-content {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(420px, 1fr) 360px;
  padding: 0 28px 36px;
}

.description-panel,
.detail-contact {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  padding: 24px;
}

.description-panel h2 {
  margin: 0 0 12px;
}

.description-panel p {
  font-size: 18px;
  line-height: 1.7;
}

.hero {
  position: relative;
}

.hero img {
  aspect-ratio: 1.35;
  display: block;
  object-fit: cover;
  width: 100%;
}

.hero-heart {
  position: absolute;
  right: 16px;
  top: 16px;
}

.detail-body {
  padding: 24px;
}

.detail-body h2 {
  font-size: 30px;
  line-height: 1.12;
  margin: 8px 0 12px;
}

.detail-price {
  display: block;
  font-size: 30px;
  margin-bottom: 8px;
}

.detail-body section {
  border-top: 1px solid #e2d8cc;
  margin-top: 24px;
  padding-top: 20px;
}

.detail-body section h3 {
  margin: 0 0 8px;
}

.detail-body section p {
  line-height: 1.6;
}

.contact {
  display: grid;
  gap: 10px;
}

.contact h3,
.contact p {
  margin: 0;
}

.contact .secondary {
  background: #ffffff;
  border: 1px solid #0b6b5e;
  color: #0b6b5e;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 300px 1fr;
  }

  .detail-hero-grid,
  .detail-page-content,
  .chat-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .top-auth {
    left: auto;
    min-width: 0;
    right: 16px;
    top: 12px;
  }

  .app-shell,
  .detail-page,
  .profile-page,
  .create-page {
    padding-top: 190px;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .form-grid.two,
  .form-grid.four {
    grid-template-columns: 1fr;
  }

  /* Keep the logo visible on mobile so users can tap it to go home. */
  .detail-topbar,
  .profile-topbar,
  .notifications-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .detail-page-logo {
    display: block;
    height: 44px;
    justify-self: auto;
    margin-left: auto;
  }

  .detail-hero-grid,
  .detail-page-content,
  .sidebar,
  .results,
  .detail-body {
    padding: 16px;
  }

  .detail-hero-main {
    height: 360px;
  }

  .detail-summary h1 {
    font-size: 30px;
  }
}

/* === Legal / Info page === */
.legal-page {
  padding: 16px 24px 48px;
  max-width: 960px;
  margin: 0 auto;
}
.legal-content h1 {
  margin: 12px 0 4px;
}
.legal-content h2 {
  margin: 28px 0 4px;
  font-size: 22px;
  border-top: 1px solid #e2d8cc;
  padding-top: 24px;
}
.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal-content h3 {
  margin: 16px 0 6px;
  font-size: 16px;
}
.legal-meta {
  color: #7a6a55;
  font-size: 13px;
  margin: 0 0 12px;
}
.legal-card {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.legal-card ul {
  padding-left: 20px;
  margin: 8px 0;
}
.legal-card li { margin-bottom: 6px; }
.legal-card p { margin: 6px 0; line-height: 1.5; }

.text-link {
  background: none;
  border: none;
  padding: 0;
  color: #0b6b5e;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.text-link:hover { color: #084c44; }

.legal-disclaimer {
  font-size: 12px;
  color: #5a4d3a;
}


.promotion-plan {
  background: #ffffff;
  border: 2px solid #e2d8cc;
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.promotion-plan.selected {
  border-color: #0b6b5e;
  background: #e5f4ee;
  box-shadow: 0 0 0 3px rgba(11, 107, 94, 0.18);
}
#promote-pay {
  background: #0b6b5e;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 900;
  padding: 12px 18px;
  min-height: 44px;
}
#promote-pay:disabled {
  background: #b6b1a9;
  cursor: not-allowed;
}


.expiration-state {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #3730a3;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin: 4px 0;
  padding: 4px 10px;
}
.expiration-state.warning {
  background: #fff4e6;
  border-color: #f5b974;
  color: #8a4b00;
}


.phone-action {
  cursor: pointer;
}
.phone-action:hover { filter: brightness(0.92); }

.casastock-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  background: #06182b;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}
.casastock-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.profile-danger-zone {
  background: #fff5f5;
  border: 1px solid #f3c4c0;
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 16px;
}
.profile-danger-zone h2 {
  color: #b42318;
  margin: 0 0 6px;
  font-size: 18px;
}
.profile-danger-zone p {
  color: #7a3a36;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.profile-danger-zone .danger-action {
  background: #b42318;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
}
.profile-danger-zone .danger-action:hover { background: #951a12; }


.report-action {
  background: transparent;
  border: 1px solid #b42318;
  border-radius: 8px;
  color: #b42318;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  min-height: 40px;
  margin-top: 6px;
  padding: 0 12px;
  text-align: center;
}
.report-action:hover { background: #fff5f5; }


.email-verify-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffefc7;
  border-bottom: 1px solid #f5b974;
  color: #6b3a00;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  z-index: 50;
}
.email-verify-banner button {
  background: #b86e00;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 6px 14px;
}
.email-verify-banner button:hover { background: #8e5500; }


.conversation-user {
  background: #efe8df;
  border: none;
  border-radius: 999px;
  color: #0b6b5e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  margin-bottom: 6px;
  display: inline-block;
  text-align: left;
}
.conversation-user:hover { background: #e2d8cc; }

.user-profile-page {
  padding: 16px 24px 48px;
  max-width: 960px;
  margin: 0 auto;
}
.user-profile-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  margin: 16px 0;
}
.user-profile-avatar {
  align-items: center;
  background: #06182b;
  border-radius: 999px;
  color: #ffffff;
  display: flex;
  font-size: 28px;
  font-weight: 900;
  height: 96px;
  justify-content: center;
  overflow: hidden;
  width: 96px;
}
.user-profile-avatar img { height: 100%; object-fit: cover; width: 100%; }


/* === Mobile fixes === */
@media (max-width: 720px) {
  .top-auth {
    right: 10px;
    top: 10px;
  }
  /* Smaller Registro / Acceso so they clear the left download buttons. */
  .auth-actions {
    width: 150px;
    gap: 3px;
    padding: 3px;
    margin-left: auto;
  }
  .auth-dropdown {
    width: min(290px, calc(100vw - 24px));
    margin-left: auto;
  }
  .auth-actions button {
    font-size: 11px;
    min-height: 34px;
    padding: 0 4px;
  }
  .user-auth-actions {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
  }
  .top-icon-button {
    height: 38px;
    width: 38px;
    font-size: 16px;
  }
  .top-icon-button strong {
    font-size: 10px;
    height: 16px;
    min-width: 16px;
    right: -3px;
    top: -3px;
    padding: 0 3px;
    border-width: 1px;
  }
  .avatar-button {
    height: 44px;
    width: 44px;
    border-width: 2px;
    font-size: 13px;
  }
  .profile-menu {
    width: min(320px, calc(100vw - 24px));
  }
  .email-verify-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
    padding: 8px 12px;
  }
  .email-verify-banner button {
    width: 100%;
  }
  .app-shell {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }
  .sidebar {
    border-right: 0;
    padding: 16px;
  }
  .messages-layout {
    padding: 16px 14px 20px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .conversation-list {
    width: 100%;
  }
  .conversation-card {
    padding: 12px;
    width: 100%;
  }
  .conversation-user {
    font-size: 11px;
    padding: 3px 8px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .conversation-open strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
  }
  .conversation-open p {
    font-size: 13px;
    word-break: break-word;
  }
  .conversation-open span {
    font-size: 11px;
  }
}

.price-tone {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}
.price-tone-low { background: #d8f5e3; color: #166534; }
.price-tone-neutral { background: #ffe6c7; color: #9a5b13; }
.price-tone-high { background: #fde2e0; color: #b42318; }

.published-chip {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}

.search-input-wrap {
  position: relative;
  min-width: 0;
}
.search-input-wrap input { width: 100%; }

.search-suggestions {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(29, 39, 51, 0.12);
  left: 0;
  list-style: none;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
}
.search-suggestions li { list-style: none; }
.search-suggestions button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #1d2733;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
}
.search-suggestions button:hover { background: #efe8df; }

.detail-minimap-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.detail-minimap {
  border: 1px solid #e2d8cc;
  border-radius: 12px;
  height: 220px;
  overflow: hidden;
  width: 100%;
  z-index: 1;
}
.detail-minimap-caption {
  color: #667085;
  font-size: 12px;
  margin: 0;
}
@media (max-width: 720px) {
  .detail-minimap { height: 180px; }
}


.header-downloads {
  align-items: center;
  display: flex;
  gap: 8px;
  left: 24px;
  position: fixed;
  top: 22px;
  z-index: 11;
}
.header-downloads-label {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}
.header-download-btn {
  align-items: center;
  background: #06182b;
  border: 1px solid #06182b;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  padding: 7px 13px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.header-download-btn:hover { background: #0b6b5e; border-color: #0b6b5e; }
.header-download-emoji { font-size: 15px; line-height: 1; }
@media (max-width: 900px) {
  .header-downloads-label { display: none; }
}
@media (max-width: 640px) {
  /* Stack the two download pills vertically (narrow column) on the left so they
     never collide with the right-side Registro/Acceso buttons. Labels stay. */
  .header-downloads {
    align-items: flex-start;
    flex-direction: column;
    left: 10px;
    top: 10px;
    gap: 5px;
  }
  .header-download-btn {
    font-size: 10px;
    gap: 4px;
    padding: 5px 9px;
  }
  .header-download-emoji { font-size: 13px; }
}

.download-hero {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.download-cta {
  background: #0b6b5e;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  padding: 13px 20px;
  text-decoration: none;
  white-space: nowrap;
}
.download-cta:hover { background: #06564b; }
.download-steps,
.download-content ol { line-height: 1.7; padding-left: 20px; }
.download-note { color: #667085; font-size: 13px; }
.download-checksum,
.download-cmd {
  background: #0b1f33;
  border-radius: 8px;
  color: #d9f2ea;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  margin: 8px 0;
  overflow-x: auto;
  padding: 10px 12px;
  word-break: break-all;
}
.download-copy {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #0b6b5e;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
}

.price-range-quick {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.price-range-title {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.price-range-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto 1fr;
}
.price-range-row input {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  color: #1d2733;
  min-height: 42px;
  padding: 0 10px;
  width: 100%;
}
.price-range-sep { color: #667085; font-weight: 900; }

.ad-metrics {
  display: flex;
  gap: 10px;
  margin: 8px 0 2px;
}
.ad-metric {
  align-items: center;
  background: #f7f2ea;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  display: flex;
  flex: 1;
  gap: 6px;
  padding: 8px 10px;
}
.ad-metric-icon { font-size: 16px; line-height: 1; }
.ad-metric strong { font-size: 18px; font-weight: 900; }
.ad-metric span:last-child {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.street-autocomplete {
  position: relative;
}
.street-suggestions {
  background: #ffffff;
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(29, 39, 51, 0.14);
  left: 0;
  list-style: none;
  margin: 4px 0 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 40;
}
.street-suggestions li { list-style: none; }
.street-suggestions button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #1d2733;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
  text-align: left;
  width: 100%;
}
.street-suggestions button:hover { background: #efe8df; }

.form-grid.street-grid {
  /* Keep Número right next to Calle instead of floating to the far edge of a
     wide desktop form. Only this row is width-capped; the rest stays full width. */
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: start;
  max-width: 680px;
}
@media (max-width: 560px) {
  .form-grid.street-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.visibility-toggle {
  align-items: center;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  font-weight: 700;
  color: #1d2733;
}
.visibility-toggle input {
  accent-color: #0b6b5e;
  height: 18px;
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}
.user-profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}
.user-contact-item {
  background: #eef6f3;
  border: 1px solid #cfe6df;
  border-radius: 999px;
  color: #0b6b5e;
  font-weight: 800;
  padding: 8px 14px;
  text-decoration: none;
}
.user-contact-item:hover { background: #dcefe8; }

.phone-action.request-phone {
  background: #06182b;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  min-height: 44px;
  width: 100%;
}
.phone-action.request-phone:hover { background: #0b6b5e; }
.phone-action[disabled] {
  background: #efe8df;
  color: #5a4d3a;
  cursor: default;
}
.phone-request-card { border-left: 4px solid #0b6b5e; }
.phone-request-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.phone-request-actions button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  min-height: 40px;
  padding: 0 16px;
}
.phone-request-actions .confirm-action { background: #0b6b5e; color: #ffffff; }
.phone-request-actions .reject-action { background: #fde2e0; color: #b42318; }
.phone-visibility { margin-top: 6px; }

.account-type-fieldset {
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin: 4px 0;
  padding: 10px 12px;
}
.account-type-fieldset legend {
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  padding: 0 4px;
  text-transform: uppercase;
}
.account-type-option {
  align-items: center;
  display: flex;
  gap: 8px;
  font-weight: 700;
}
.account-type-option input { accent-color: #0b6b5e; height: 16px; width: 16px; }
.account-type-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.account-type-pill {
  background: #efe8df;
  border-radius: 999px;
  color: #5a4d3a;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 12px;
}
.account-type-pill.pro { background: #06182b; color: #ffffff; }
.account-type-pill.verified { background: #0b6b5e; color: #ffffff; }

.pro-dialog .pro-plan-card {
  background: #06182b;
  border-radius: 12px;
  color: #ffffff;
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 16px;
  text-align: center;
}
.pro-dialog .pro-price {
  font-size: 26px;
  font-weight: 900;
}
.pro-dialog .pro-plan-card small { color: #d9e3ec; }
.pro-active-note {
  background: #e5f4ee;
  border-radius: 10px;
  color: #0b6b5e;
  font-weight: 700;
  padding: 14px;
}
#promote-pro-subscribe {
  background: #0b6b5e;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  min-height: 44px;
  padding: 0 18px;
}

/* Cookie consent banner (RGPD) */
.cookie-banner {
  align-items: center;
  background: #06182b;
  border-radius: 12px;
  bottom: 16px;
  box-shadow: 0 16px 40px rgba(6, 24, 43, 0.35);
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  left: 16px;
  max-width: 720px;
  padding: 14px 18px;
  position: fixed;
  right: 16px;
  margin: 0 auto;
  z-index: 90;
}
.cookie-banner p { font-size: 13px; line-height: 1.5; margin: 0; flex: 1 1 280px; }
.cookie-link {
  background: none;
  border: 0;
  color: #7fd1bd;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
}
.cookie-actions { display: flex; gap: 8px; }
.cookie-reject, .cookie-accept {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 0 16px;
}
.cookie-reject { background: transparent; border: 1px solid #41566a; color: #d9e3ec; }
.cookie-accept { background: #0b6b5e; color: #ffffff; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 8px; left: 8px; right: 8px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-reject, .cookie-accept { flex: 1; }
}

/* Image shimmer while loading (no JS, CSP-safe) */
.card-image {
  background: linear-gradient(100deg, #ece3d8 30%, #f6f0e8 50%, #ece3d8 70%);
  background-size: 200% 100%;
  animation: cs-shimmer 1.3s ease-in-out infinite;
}
.card-image img { position: relative; z-index: 1; }
@keyframes cs-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
