* {
  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: 1fr 36px;
  padding: 14px;
}

.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;
}

.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-fit, minmax(260px, 1fr));
}

.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-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);
}

.property-card img {
  aspect-ratio: 1.45;
  display: block;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 14px;
}

.card-topline {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.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: auto;
}

.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: 16px;
    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;
  }

  .detail-topbar {
    grid-template-columns: 1fr auto;
  }

  .detail-page-logo {
    display: none;
  }

  .detail-hero-grid,
  .detail-page-content,
  .sidebar,
  .results,
  .detail-body {
    padding: 16px;
  }

  .detail-hero-main {
    height: 360px;
  }

  .detail-summary h1 {
    font-size: 30px;
  }
}
