:root {
  --bg: #eef3f8;
  --panel: rgba(255, 255, 255, 0.95);
  --ink: #102033;
  --muted: #607086;
  --border: #c8d3df;
  --accent: #1864d9;
  --accent-soft: rgba(24, 100, 217, 0.12);
  --selected: #d53b2f;
  --shadow: 0 18px 50px rgba(12, 24, 38, 0.12);
  --sidebar-width: 420px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(24, 100, 217, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(213, 59, 47, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
}

button {
  font: inherit;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  align-items: start;
}

.sidebar {
  padding: 18px;
  border-right: 1px solid rgba(200, 211, 223, 0.85);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: auto;
  height: 100vh;
  position: sticky;
  top: 0;
}

.brand {
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.lede {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.stat {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(24, 100, 217, 0.16);
  background: linear-gradient(180deg, rgba(24, 100, 217, 0.08), #fff);
}

.stat__value {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
}

.stat__label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(12, 24, 38, 0.05);
}

.panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.hint {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.district-search {
  margin: 10px 0 8px;
}

.district-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.district-search input::placeholder {
  color: #8a98ab;
}

.district-search input:focus {
  outline: none;
  border-color: rgba(24, 100, 217, 0.42);
  box-shadow: 0 0 0 4px rgba(24, 100, 217, 0.1);
}

.district-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.district-empty {
  padding: 12px 14px;
  border: 1px dashed rgba(128, 144, 165, 0.55);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(248, 251, 255, 0.72);
}

.taluk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.district-item,
.taluk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.taluk-item {
  min-height: 76px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.district-item:hover,
.district-item:focus-visible,
.taluk-item:hover,
.taluk-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(24, 100, 217, 0.24);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(12, 24, 38, 0.06);
  outline: none;
}

.district-item.is-active,
.taluk-item.is-active {
  border-color: rgba(213, 59, 47, 0.52);
  background: linear-gradient(135deg, rgba(213, 59, 47, 0.16), rgba(213, 59, 47, 0.08));
  color: #9c261d;
}

.district-item small,
.taluk-item small {
  color: var(--muted);
}

.taluk-item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.taluk-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.taluk-group + .taluk-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 211, 223, 0.75);
}

.taluk-group h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--accent);
}

.selection p {
  margin: 10px 0 0;
  color: var(--muted);
}

.selection span {
  color: var(--ink);
  font-weight: 700;
}

.map-panel {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  background:
    radial-gradient(circle at top right, rgba(24, 100, 217, 0.08), transparent 24%),
    linear-gradient(180deg, #eef4fb 0%, #dde8f3 100%);
}

.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.map-card {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 500;
  max-width: 430px;
  padding: 16px 18px;
  border: 1px solid rgba(200, 211, 223, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(12, 24, 38, 0.08);
  backdrop-filter: blur(12px);
}

.map-card h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
}

.map-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

#map {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  background: linear-gradient(180deg, #f8fbff 0%, #e5edf7 100%);
  cursor: default;
}

.taluk-map-label {
  background: transparent;
  border: 0;
}

.taluk-map-label__text {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 79, 179, 0.18);
  color: #173155;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(12, 24, 38, 0.08);
}

.taluk-map-label__text.is-selected {
  background: rgba(255, 236, 233, 0.98);
  border-color: rgba(213, 59, 47, 0.35);
  color: #9b291e;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 14, 24, 0.42);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 460px);
  padding: 24px;
  border: 1px solid rgba(200, 211, 223, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 70px rgba(12, 24, 38, 0.24);
}

.modal-card h2 {
  margin: 4px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--ink);
}

.sell-property-cta {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(24, 100, 217, 0.2);
  background: linear-gradient(135deg, #1864d9, #4d8df0);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(24, 100, 217, 0.22);
}

.property-page {
  background:
    radial-gradient(circle at top left, rgba(24, 100, 217, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(213, 59, 47, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
}

.property-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.property-card {
  width: min(100%, 980px);
  padding: 28px;
  border: 1px solid rgba(200, 211, 223, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.property-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.property-header h1 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.property-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.property-back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.property-tile {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(24, 100, 217, 0.16);
  background: linear-gradient(180deg, rgba(24, 100, 217, 0.06), #fff);
}

.property-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.property-link:hover,
.property-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(24, 100, 217, 0.34);
  box-shadow: 0 14px 28px rgba(12, 24, 38, 0.08);
  outline: none;
}

.property-tile h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.property-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.property-detail {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(24, 100, 217, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(213, 59, 47, 0.08), transparent 24%),
  linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
}

.property-detail--rich {
  place-items: start center;
}

.property-detail-card {
  width: min(100%, 760px);
  padding: 28px;
  border: 1px solid rgba(200, 211, 223, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.property-detail-card h1 {
  margin: 6px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.property-detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.property-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb__sep {
  color: #8ea0b6;
}

.listing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(24, 100, 217, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(213, 59, 47, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
}

.listing-shell {
  min-height: 100vh;
  padding: 28px;
}

.listing-card-shell {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(200, 211, 223, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.listing-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.listing-hero h1 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.listing-summary,
.listing-context {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.listing-context {
  margin-top: 10px;
}

.listing-count {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(24, 100, 217, 0.16);
  background: linear-gradient(180deg, rgba(24, 100, 217, 0.08), #fff);
  text-align: center;
}

.listing-count__value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.listing-count__label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}

.filter-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.listing-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 100, 217, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(12, 24, 38, 0.08);
}

.listing-card.is-favorite-target {
  box-shadow: 0 0 0 4px rgba(213, 59, 47, 0.16), 0 12px 30px rgba(12, 24, 38, 0.08);
}

.listing-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dbe6f3;
}

.listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.listing-card:hover .listing-card__image img {
  transform: scale(1.03);
}

.listing-card__body {
  padding: 18px;
}

.favorite-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(24, 100, 217, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #9aa8bb;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(12, 24, 38, 0.12);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.favorite-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.favorite-toggle:hover,
.favorite-toggle:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(24, 100, 217, 0.24);
  box-shadow: 0 10px 22px rgba(12, 24, 38, 0.14);
}

.favorite-toggle.is-favorited {
  background: rgba(213, 59, 47, 0.12);
  color: #d53b2f;
  border-color: rgba(213, 59, 47, 0.22);
}

.favorite-toggle.is-favorited svg {
  fill: #d53b2f;
}

.listing-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.listing-card__price {
  color: #9b291e;
  font-size: 1.1rem;
  font-weight: 800;
}

.listing-card__chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(24, 100, 217, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.listing-card__chip--seller {
  background: rgba(213, 59, 47, 0.12);
  color: #9b291e;
}

.listing-card__body h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.listing-card__location {
  margin: 0 0 12px;
  color: var(--muted);
}

.listing-card__seller {
  margin: -6px 0 12px;
  color: #9b291e;
  font-size: 0.88rem;
  font-weight: 700;
}

.listing-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.listing-card__stats span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 100, 217, 0.08);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.listing-card__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.listing-card__footer {
  margin-top: 16px;
}

.listing-card__button {
  width: 100%;
}

.listing-card__footer--stacked {
  display: grid;
  gap: 10px;
}

.listing-card--manage .listing-card__button {
  min-width: 0;
}

.btn-danger {
  background: #b9352a;
  color: #fff;
}

.listing-delete-form {
  margin: 0;
}

.listing-empty {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed rgba(128, 144, 165, 0.55);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(248, 251, 255, 0.72);
}

.listing-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.listing-alert {
  margin-bottom: 18px;
}

.property-detail-shell {
  width: min(100%, 1260px);
  margin: 0 auto;
}

.property-detail-card--rich {
  width: 100%;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
}

.detail-image-card {
  border-radius: 24px;
  overflow: hidden;
  background: #dbe6f3;
  border: 1px solid rgba(200, 211, 223, 0.8);
}

.detail-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-summary h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.detail-summary__price {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: #9b291e;
}

.detail-summary__location {
  margin: 8px 0 0;
  color: var(--muted);
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-chips span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24, 100, 217, 0.08);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-summary__description {
  color: var(--muted);
  line-height: 1.65;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-info-grid article {
  padding: 14px 16px;
  border: 1px solid rgba(200, 211, 223, 0.9);
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.82);
}

.detail-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-info-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.detail-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.detail-panels section {
  padding: 18px;
  border: 1px solid rgba(200, 211, 223, 0.9);
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.82);
}

.detail-panels h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.65;
}

.seller-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(24, 100, 217, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(213, 59, 47, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
}

.seller-shell {
  min-height: 100vh;
  padding: 28px;
}

.seller-card {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(200, 211, 223, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.seller-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.seller-header h1 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.seller-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.seller-alert {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  margin-bottom: 18px;
}

.seller-alert p {
  margin: 0;
  line-height: 1.55;
}

.seller-alert--error {
  border-color: rgba(213, 59, 47, 0.2);
  background: rgba(213, 59, 47, 0.08);
  color: #9b291e;
}

.seller-alert--success {
  border-color: rgba(27, 153, 84, 0.2);
  background: rgba(27, 153, 84, 0.08);
  color: #13693a;
}

.seller-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.seller-choice {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(24, 100, 217, 0.16);
  background: linear-gradient(180deg, rgba(24, 100, 217, 0.06), #fff);
  color: inherit;
  text-decoration: none;
}

.seller-choice h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.seller-choice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.seller-active-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.seller-change-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.seller-form {
  display: grid;
  gap: 18px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input[readonly] {
  background: rgba(248, 251, 255, 0.9);
  color: #3a4a60;
}

.photo-uploader {
  display: grid;
  gap: 10px;
}

.existing-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.existing-photo {
  display: grid;
  gap: 8px;
}

.existing-gallery img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(200, 211, 223, 0.9);
}

.photo-remove--inline {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.84rem;
}

.photo-uploader__list {
  display: grid;
  gap: 10px;
}

.photo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.photo-row input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.photo-remove,
.photo-add {
  border: 1px solid rgba(24, 100, 217, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 100, 217, 0.08), #fff);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.photo-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  width: 100%;
}

.photo-add span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(24, 100, 217, 0.12);
  font-size: 1.2rem;
  line-height: 1;
}

.photo-add em {
  font-style: normal;
}

.photo-remove {
  padding: 11px 14px;
  color: #9b291e;
  border-color: rgba(213, 59, 47, 0.2);
  background: linear-gradient(180deg, rgba(213, 59, 47, 0.08), #fff);
}

.photo-remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.photo-add:hover,
.photo-add:focus-visible,
.photo-remove:hover,
.photo-remove:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 24, 38, 0.08);
  outline: none;
}

.photo-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.seller-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.top-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5000;
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}

.top-action--menu {
  display: none;
}

.top-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(24, 100, 217, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(12, 24, 38, 0.08);
}

.top-action--profile {
  color: var(--ink);
}

.top-action--icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(27, 153, 84, 0.14), rgba(27, 153, 84, 0.06));
  border-color: rgba(27, 153, 84, 0.22);
  overflow: hidden;
  line-height: 0;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(27, 153, 84, 0.12);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  overflow: hidden;
}

.profile-avatar svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.profile-avatar--large {
  width: 44px;
  height: 44px;
  background-size: 84%;
  flex: 0 0 44px;
}

.profile-avatar--button {
  background-size: 86%;
}

.profile-avatar--button img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.profile-avatar--large img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.profile-menu {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 5001;
  width: min(320px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(27, 153, 84, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(12, 24, 38, 0.16);
}

.profile-menu__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 211, 223, 0.7);
  margin-bottom: 12px;
}

.profile-menu__header strong {
  display: block;
  font-size: 0.98rem;
}

.profile-menu__header-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-menu__header-copy {
  flex: 1;
  min-width: 0;
}

.profile-menu__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(27, 153, 84, 0.1);
  color: #1b9954;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.profile-menu__list {
  display: grid;
  gap: 8px;
}

.profile-menu__item {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(24, 100, 217, 0.12);
  background: #f8fbff;
  color: var(--ink);
}

.profile-menu__item span {
  font-weight: 700;
}

.profile-menu__item small {
  color: var(--muted);
}

.profile-menu__item:hover,
.profile-menu__item:focus-visible {
  border-color: rgba(27, 153, 84, 0.24);
  background: rgba(27, 153, 84, 0.06);
  outline: none;
}

.top-action--sell {
  background: linear-gradient(135deg, var(--accent), #4a89f0);
  color: #fff;
  border-color: transparent;
}

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4600;
  border: 0;
  background: rgba(8, 14, 24, 0.34);
}

.mobile-backdrop[hidden] {
  display: none;
}

body.sidebar-open {
  overflow: hidden;
}

.flash-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1300;
  max-width: min(92vw, 520px);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(20, 125, 75, 0.96);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(12, 24, 38, 0.18);
  transform: translateX(-50%);
  animation: toast-in 0.25s ease-out, toast-out 0.45s ease 3.1s forwards;
}

.auth-card--wide {
  width: min(100%, 760px);
}

.seller-auth-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 22px;
}

.seller-auth-grid--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seller-auth-stack {
  display: grid;
  gap: 10px;
}

.seller-auth-card {
  display: block;
  padding: 18px;
  border: 1px solid rgba(24, 100, 217, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(24, 100, 217, 0.06), #fff);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(12, 24, 38, 0.04);
}

.seller-auth-card h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
}

.seller-auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.seller-auth-card--primary {
  border-color: rgba(24, 100, 217, 0.24);
  background: linear-gradient(135deg, rgba(24, 100, 217, 0.12), rgba(255, 255, 255, 0.98));
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 16px;
}

.auth-tab {
  border: 1px solid rgba(24, 100, 217, 0.16);
  background: #f8fbff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.is-active {
  background: linear-gradient(135deg, rgba(24, 100, 217, 0.12), rgba(255, 255, 255, 0.98));
  color: var(--accent);
  border-color: rgba(24, 100, 217, 0.28);
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
}

.auth-links--stacked {
  display: grid;
  gap: 8px;
}

.seller-auth-note {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  padding-left: 4px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.profile-item {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(24, 100, 217, 0.16);
  background: linear-gradient(180deg, rgba(24, 100, 217, 0.06), #fff);
}

.profile-item span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.profile-item strong {
  font-size: 1rem;
}

.auth-links--center {
  justify-content: center;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    visibility: hidden;
  }
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(24, 100, 217, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(213, 59, 47, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 560px);
  padding: 28px;
  border: 1px solid rgba(200, 211, 223, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-copy h1 {
  margin: 6px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.auth-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(24, 100, 217, 0.42);
  box-shadow: 0 0 0 4px rgba(24, 100, 217, 0.1);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.auth-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.auth-links a:hover,
.auth-links a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 4700;
    top: 12px;
    left: 12px;
    bottom: 12px;
    width: min(88vw, 380px);
    max-width: 380px;
    height: auto;
    border: 1px solid rgba(200, 211, 223, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(12, 24, 38, 0.18);
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.24s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  #map {
    height: 100%;
  }

  .map-panel {
    padding: 0;
    position: relative;
    top: auto;
    min-height: 100dvh;
  }

  .map-stage {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
  }

  .taluk-grid {
    grid-template-columns: 1fr;
  }

  .map-card {
    display: none;
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .map-pan-controls {
    display: none;
  }

  .mobile-backdrop {
    display: block;
  }

  .property-header {
    flex-direction: column;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .listing-shell {
    padding: 18px;
  }

  .listing-card-shell {
    padding: 20px;
  }

  .listing-hero,
  .detail-hero {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .filter-row {
    grid-template-columns: 1fr;
  }

  .detail-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .listing-page {
    overflow-x: hidden;
  }

  .listing-shell {
    padding: 0;
  }

  .listing-card-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 14px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .listing-hero {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
  }

  .listing-hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  .listing-count {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .listing-count__value {
    font-size: 1.9rem;
  }

  .listing-count__label {
    margin-top: 0;
  }

  .filter-row {
    gap: 10px;
    margin: 14px 0 18px;
  }

  .filter-row label {
    gap: 6px;
  }

  .listing-grid {
    gap: 14px;
  }

  .listing-card {
    border-radius: 22px;
  }

  .listing-card__body {
    padding: 14px;
  }

  .favorite-toggle {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .listing-card__top {
    margin-bottom: 8px;
  }

  .listing-card__body h2 {
    font-size: 1.2rem;
  }

  .listing-card__location {
    margin-bottom: 10px;
  }

  .listing-card__stats {
    gap: 7px;
    margin-bottom: 10px;
  }

  .listing-card__stats span {
    padding: 5px 9px;
    font-size: 0.78rem;
  }

  .listing-card__footer {
    margin-top: 14px;
  }

  .property-detail {
    padding: 0;
    place-items: start stretch;
  }

  .property-detail--rich {
    place-items: start stretch;
  }

  .property-detail-shell {
    width: 100%;
  }

  .property-detail-card,
  .property-detail-card--rich {
    width: 100%;
    max-width: none;
    padding: 16px 14px 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .breadcrumb {
    margin: 2px 0 14px;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .detail-hero {
    gap: 14px;
  }

  .detail-image-card {
    border-radius: 22px;
    box-shadow: 0 12px 24px rgba(12, 24, 38, 0.08);
  }

  .detail-summary h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .detail-summary__price {
    font-size: 1.45rem;
  }

  .detail-chips {
    gap: 8px;
    margin: 14px 0 16px;
  }

  .detail-chips span {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .detail-actions {
    margin-top: 16px;
  }

  .detail-actions .btn,
  .property-detail-actions .btn {
    width: 100%;
  }

  .detail-info-grid {
    gap: 10px;
    margin-top: 18px;
  }

  .detail-info-grid article,
  .detail-panels section {
    padding: 14px 14px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(12, 24, 38, 0.06);
  }

  .detail-panels {
    gap: 12px;
    margin-top: 18px;
  }

  .detail-panels h2 {
    margin-bottom: 10px;
  }

  .property-detail-actions {
    flex-direction: column;
    margin-top: 18px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

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

  .listing-actions,
  .detail-actions {
    flex-direction: column;
  }

  .sell-property-cta {
    top: 12px;
    right: 12px;
    padding: 10px 14px;
  }

  .seller-shell {
    padding: 18px;
  }

  .seller-card {
    padding: 20px;
  }

  .seller-header {
    flex-direction: column;
  }

  .seller-choice-grid,
  .seller-form-grid {
    grid-template-columns: 1fr;
  }

  .seller-auth-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .top-actions {
    top: 12px;
    right: 12px;
    left: 12px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    width: auto;
  }

  .top-action--menu {
    display: inline-flex;
  }

  .top-action--sell {
    margin-left: auto;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .top-action--icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .top-action--menu {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .profile-avatar--button img {
    width: 30px;
    height: 30px;
  }

  .flash-toast {
    top: 12px;
  }

  .auth-card {
    padding: 20px;
  }

  .photo-row {
    grid-template-columns: 1fr;
  }

  .photo-remove {
    width: 100%;
  }
}
