.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  font-weight: 560;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--nestora-accent);
  color: #fff;
  box-shadow: 0 10px 24px var(--nestora-accent-ring);
}

.btn-primary:hover {
  background: var(--nestora-accent-hover);
}

.btn-secondary {
  background: var(--nestora-surface);
  color: var(--nestora-text);
  border: 1px solid var(--nestora-border);
}

.btn-ghost {
  background: transparent;
  color: var(--nestora-text-secondary);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.card {
  background: var(--nestora-surface);
  border: 1px solid var(--nestora-border);
  border-radius: var(--nestora-radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--nestora-surface);
  border-radius: 0.875rem;
  padding: 0.55rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-size: 0.875rem;
  font-weight: 500;
}

.field {
  width: 100%;
  background: var(--nestora-surface-muted);
  border: 1px solid transparent;
  border-radius: 0.875rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}

.field:focus {
  background: var(--nestora-surface);
  border-color: var(--nestora-accent);
  box-shadow: 0 0 0 4px var(--nestora-accent-soft);
}

.field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nestora-text-muted);
  margin-bottom: 0.45rem;
}

.stat-tile {
  background: var(--nestora-surface-muted);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 7rem;
}

.stat-tile__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--nestora-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nestora-text-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toast-host {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(92vw, 360px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--nestora-surface);
  color: var(--nestora-text);
  border: 1px solid var(--nestora-border);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  box-shadow: var(--nestora-shadow);
  animation: toast-in 0.25s ease;
}

.toast.is-success {
  border-color: var(--nestora-accent);
}

.toast.is-error {
  border-color: var(--nestora-danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-root[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--nestora-overlay);
  backdrop-filter: blur(4px);
  z-index: 80;
}

.modal-panel {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 42rem);
  max-height: 88dvh;
  overflow: auto;
  background: var(--nestora-surface);
  border-radius: var(--nestora-radius-lg);
  border: 1px solid var(--nestora-border);
  box-shadow: var(--nestora-shadow);
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-height: 85dvh;
  overflow: auto;
  background: var(--nestora-surface);
  border-radius: 1.5rem 1.5rem 0 0;
  border: 1px solid var(--nestora-border);
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: var(--nestora-shadow);
}

.sheet[hidden],
.sheet-root[hidden] {
  display: none !important;
}

.sheet-handle {
  width: 2.5rem;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--nestora-border);
  margin: 0 auto 1rem;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--nestora-surface-muted) 25%,
    color-mix(in srgb, var(--nestora-surface-muted) 60%, #fff) 50%,
    var(--nestora-surface-muted) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 0.75rem;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--nestora-text-secondary);
}

.empty-state h3 {
  margin: 0.75rem 0 0.35rem;
  color: var(--nestora-text);
}

.property-card {
  background: var(--nestora-surface);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--nestora-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.property-card__img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.property-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  background: var(--nestora-accent-soft);
  color: var(--nestora-accent);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.map-bubble {
  display: flex;
  align-items: stretch;
  gap: 2px;
  filter: drop-shadow(0 12px 24px rgba(16, 184, 128, 0.35));
}

.map-bubble__part {
  background: var(--nestora-accent);
  color: #fff;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
}

.map-bubble__part:first-child {
  border-radius: 1rem 0.35rem 0.35rem 1rem;
}

.map-bubble__part:nth-child(2) {
  border-radius: 0.35rem;
  min-width: 8rem;
}

.map-bubble__part:last-child {
  border-radius: 0.35rem 1rem 1rem 0.35rem;
}

.map-bubble__value {
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.map-bubble__label {
  font-size: 0.62rem;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.pulse-dot {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.pulse-dot::before {
  content: "";
  position: absolute;
  inset: -0.35rem;
  border-radius: 999px;
  background: var(--nestora-accent);
  opacity: 0.35;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--nestora-accent);
  border: 2px solid #fff;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.page-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.chip {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--nestora-surface);
  border: 1px solid var(--nestora-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--nestora-text-secondary);
}

.chip.is-active {
  background: var(--nestora-accent);
  border-color: var(--nestora-accent);
  color: #fff;
}

.grid-props {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-props {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .grid-props {
    grid-template-columns: repeat(3, 1fr);
  }
}

.auth-card {
  width: min(92vw, 420px);
  margin: 2rem auto;
  padding: 1.75rem;
}

.divider {
  height: 1px;
  background: var(--nestora-border);
  margin: 1.25rem 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nestora-text-muted);
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--nestora-surface-muted);
  color: var(--nestora-text);
}

.icon-btn.is-liked {
  color: #fb923c;
}
