

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-main: #f3f4f7;
  --bg-card: #ffffff;
  --bg-card-soft: #f7f7fb;

  --bg-main-dark: #050817;
  --bg-card-dark: #0f1322;
  --bg-card-soft-dark: #171c2f;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-subtle-dark: rgba(148, 163, 184, 0.15);

  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.15);
  --accent-strong: #1d4ed8;

  --text-main: #0f172a;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --text-on-dark: #e5e7eb;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.18);

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --transition-fast: 0.18s ease-out;
  --transition-normal: 0.22s ease-out;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #eef2ff 0, #f3f4f7 42%, #e5e7eb 100%);
  min-height: 100vh;
}



body.theme-dark {
  color: var(--text-on-dark);
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
}



.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  backdrop-filter: blur(18px);
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.86),
      rgba(255, 255, 255, 0.8),
      transparent
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

body.theme-dark .topbar {
  background: linear-gradient(
      to bottom,
      rgba(9, 9, 22, 0.98),
      rgba(9, 9, 22, 0.92),
      rgba(9, 9, 22, 0.86),
      transparent
    );
  border-bottom-color: rgba(51, 65, 85, 0.8);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #60a5fa, #1d4ed8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-soft);
}

body.theme-dark .logo-sub {
  color: #9ca3af;
}



.topbar-nav {
  display: flex;
  gap: 18px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.topbar-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.topbar-auth-btn {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.04);
  color: #111827;
  transition: 0.16s ease;
}

.topbar-auth-btn:hover {
  background: rgba(15, 23, 42, 0.08);
}


.topbar-auth-btn--outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
}


body.theme-dark .topbar-auth-btn {
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
}

body.theme-dark .topbar-auth-btn--outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.8);
}

body.theme-dark .topbar-auth-btn:hover {
  background: rgba(15, 23, 42, 0.95);
}
.nav-link:hover {
  color: var(--text-main);
  background: rgba(148, 163, 184, 0.12);
}

body.theme-dark .nav-link {
  color: #9ca3af;
}

body.theme-dark .nav-link:hover {
  color: var(--text-on-dark);
  background: rgba(148, 163, 184, 0.18);
}

.nav-link--active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 500;
}

body.theme-dark .nav-link--active {
  background: rgba(37, 99, 235, 0.32);
  color: #e5edff;
}



.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}



.chip {
  border-radius: 999px;
  padding: 3px 10px 3px 5px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast), color var(--transition-fast),
    transform 0.12s ease-out;
}

.chip-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #facc15, #f97316);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.35);
}

body.theme-dark .chip {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(51, 65, 85, 0.9);
  color: #e5e7eb;
}

body.theme-dark .chip-dot {
  background: radial-gradient(circle at 20% 20%, #38bdf8, #1d4ed8);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.chip:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

body.theme-dark .chip:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}



.profile-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #f9fafb, #e5e7eb);
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.profile-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

body.theme-dark .profile-btn {
  background: radial-gradient(circle at 20% 0%, #1f2937, #020617);
  border-color: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}



.page {
  padding: 32px 40px 40px;
  max-width: 1220px;
  margin: 0 auto;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr);
  gap: 24px;
}



.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 20px;
  border: 1px solid var(--border-subtle);
}

body.theme-dark .card {
  background: radial-gradient(circle at top left, #111827, #020617);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  border-color: rgba(31, 41, 55, 0.95);
}

.card--search {
  grid-column: 1 / 2;
}

.card--subscription {
  grid-column: 2 / 3;
  align-self: start;
}

.card--results {
  grid-column: 1 / 3;
  margin-top: 4px;
}



.card-title {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}

.card-title-small {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.card-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

body.theme-dark .card-subtitle {
  color: #9ca3af;
}



.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 12px;
  align-items: end;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.field-label {
  color: var(--text-muted);
}

.field-input {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  background: #f9fafb;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.65);
  background: #ffffff;
}

body.theme-dark .field-input {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

body.theme-dark .field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.9);
}

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



.btn-primary,
.btn-outline {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background var(--transition-normal), box-shadow var(--transition-normal),
    transform 0.12s ease-out, color var(--transition-normal), border-color var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1d4ed8);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

body.theme-dark .btn-primary {
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.75);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(148, 163, 184, 0.12);
}

body.theme-dark .btn-outline {
  color: #e5e7eb;
  border-color: rgba(75, 85, 99, 0.95);
}



.hint {
  font-size: 11px;
  color: var(--text-soft);
  margin: 4px 0;
}

body.theme-dark .hint {
  color: #9ca3af;
}

.status-msg {
  margin-top: 4px;
  font-size: 11px;
}



.form-actions {
  grid-column: 4 / 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}



.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.chips-row .chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
  background: rgba(248, 250, 252, 0.95);
}

body.theme-dark .chips-row .chip {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(55, 65, 81, 0.95);
}

.chips-row .chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.chip--active {
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.7);
  color: var(--accent-strong);
}

body.theme-dark .chip--active {
  background: rgba(37, 99, 235, 0.35);
  color: #e5edff;
}



.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.results-count {
  font-size: 12px;
  color: var(--text-soft);
}

body.theme-dark .results-count {
  color: #9ca3af;
}



.apt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apt-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fdfcfb, #f5f3ff);
  border: 1px solid rgba(251, 191, 36, 0.0);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.apt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(251, 191, 36, 0.8);
  background: linear-gradient(135deg, #fff7ed, #f5f3ff);
}

body.theme-dark .apt-card {
  background: linear-gradient(135deg, #020617, #0b1120);
  border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .apt-card:hover {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.85);
}



.apt-thumb {
  width: 110px;
  height: 72px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.apt-size-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.92);
  color: #f9fafb;
}



.apt-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.apt-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.apt-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.apt-owner {
  font-size: 11px;
  color: var(--text-soft);
}

body.theme-dark .apt-meta,
body.theme-dark .apt-owner {
  color: #9ca3af;
}



.apt-price-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  min-width: 110px;
}

.apt-price {
  font-weight: 600;
  font-size: 15px;
}

.apt-period {
  font-size: 11px;
  color: var(--text-soft);
}

.contact-btn {
  font-size: 12px;
  padding: 6px 12px;
}



.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.modal-backdrop.show {
  display: flex;
}

.modal-window {
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
  padding: 18px 20px 20px;
  max-width: 960px;
  width: 92%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.theme-dark .modal-window {
  background: radial-gradient(circle at top left, #111827, #020617);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.98);
}

.modal-window--small {
  max-width: 420px;
}

.modal-window--tariffs {
  max-width: 640px;
}

.modal-window--details {
  max-width: 1180px;
  width: 94%;
  max-height: 92vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  border-radius: 999px;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.2);
}

body.theme-dark .modal-close {
  background: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

.modal-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 2px 0 10px;
}

body.theme-dark .modal-text {
  color: #9ca3af;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}



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

.tariff-card {
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--bg-card-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

body.theme-dark .tariff-card {
  background: var(--bg-card-soft-dark);
  border-color: rgba(55, 65, 81, 0.9);
}

.tariff-card h4 {
  margin: 0 0 4px;
}

.tariff-price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tariff-list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

body.theme-dark .tariff-list {
  color: #9ca3af;
}

.tariff-card--popular {
  position: relative;
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.4);
}

.tariff-tag {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #f9fafb;
}



.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  gap: 18px;
  margin-top: 8px;
  align-items: flex-start;
}

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

.details-main-photo {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  max-height: 360px;
}

.details-thumbs {
  display: flex;
  gap: 6px;
}

.details-thumb {
  width: 56px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  border: 1px solid transparent;
  transition: opacity var(--transition-fast), border-color var(--transition-fast),
    transform 0.12s ease-out;
}

.details-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-thumb:hover,
.details-thumb--active {
  opacity: 1;
  border-color: rgba(37, 99, 235, 0.9);
  transform: translateY(-1px);
}

.details-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.details-meta {
  color: var(--text-muted);
  margin: 0;
}

.details-address {
  margin: 0;
  color: var(--text-soft);
}

.details-subtitle {
  margin: 10px 0 4px;
  font-size: 13px;
}

.details-description {
  margin: 0;
  line-height: 1.5;
}

.details-actions {
  margin-top: 14px;
}



@media (max-width: 980px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card--search,
  .card--subscription,
  .card--results {
    grid-column: 1 / 2;
  }

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

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

  .form-actions {
    grid-column: 1 / 3;
    justify-content: flex-start;
  }

  .details-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-inline: 16px;
  }

  .page {
    padding-inline: 16px;
  }

  .apt-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .apt-price-col {
    align-items: flex-start;
  }
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.nav-profile:hover {
    background: var(--hover-bg);
}


.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.chat-layout {
  max-width: 1120px;
  margin: 32px auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
}


.chat-layout > * {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 24px 24px 20px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
}


body.theme-dark .chat-layout > * {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.9);
}

.chat-input {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.chat-input input[type="text"] {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 10px 16px;
  font-size: 14px;
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
  outline: none;
}


body.theme-dark .chat-input input[type="text"] {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}


.chat-input button {
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  white-space: nowrap;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  opacity: 0.8;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.terms-layout {
  display: flex;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 64px;
}

.terms-card {
  width: 100%;
  max-width: 820px;
  padding: 32px;
}

.site-footer{
  margin-top: 28px;
  padding: 14px 40px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(
    to top,
    rgba(255,255,255,0.92),
    rgba(255,255,255,0.72),
    transparent
  );
}

body.theme-dark .site-footer{
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(
    to top,
    rgba(5,8,23,0.92),
    rgba(5,8,23,0.72),
    transparent
  );
}

.site-footer-inner{
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer-copy{
  font-size: 12px;
  letter-spacing: 0.01em;
  opacity: 0.72;
}

.site-footer-links{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.site-footer-links a{
  text-decoration: none;
  opacity: 0.78;
}

.site-footer-links a:hover{
  opacity: 1;
  text-decoration: underline;
}

.site-footer-sep{
  opacity: 0.35;
}

@media (max-width: 720px){
  .site-footer{
    padding-left: 18px;
    padding-right: 18px;
  }
  .site-footer-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.topbar-inner{
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topnav{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;            
}

.topbar-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;             
}


.topnav-link{
  font-size: 13px;
  text-decoration: none;
  opacity: .82;
}

.topnav-link:hover{
  opacity: 1;
  text-decoration: underline;
}


@media (max-width: 900px){
  .topbar{
    padding-left: 18px;
    padding-right: 18px;
  }
  .topbar-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar-actions{
    width: 100%;
    justify-content: flex-start;
  }
}
.profile-btn.is-guest { opacity: .78; }
.profile-btn.is-guest:hover { opacity: 1; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, #60a5fa, #1d4ed8);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.45);
}

.logo .logo-text{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: inherit;
}

.site-logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform .15s ease, opacity .15s ease;
}

.logo:hover .site-logo{
  transform: scale(1.05);
  opacity: .95;
}



#themeToggle{
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;

  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(148,163,184,.10);
  backdrop-filter: blur(10px);

  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;

  transition: background .15s ease, transform .12s ease, border-color .15s ease;
}

#themeToggle:hover{
  background: rgba(148,163,184,.16);
  border-color: rgba(148,163,184,.38);
}

#themeToggle:active{
  transform: scale(.96);
}

#themeToggle:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(148,163,184,.28);
}


#themeToggle *{
  pointer-events: none;
}


#themeToggle .theme-icon{ display: none; font-size: 18px; line-height: 1; }
body.theme-dark #themeToggle .icon-sun{ display: inline; }
body.theme-light #themeToggle .icon-moon{ display: inline; }


.login-terms{
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;

  display: block !important;
  max-width: 520px;
  margin: 24px auto 0 !important;
  text-align: center !important;

  font-size: 12px;
  opacity: .75;
}

.login-terms a{
  text-decoration: underline;
  opacity: .9;
}
.login-terms a:hover{ opacity: 1; }


.apt-card{ position: relative; }



.details-report-btn{
  margin-left:10px;
  opacity:.85;
}
.details-report-btn:hover{ opacity:1; }



.nb-support-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  cursor: pointer;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
}
.nb-support-fab__icon{ font-size: 20px; }
.nb-support-fab__badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  font-size:11px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.nb-support-panel{
  position: fixed;
  right: 18px;
  bottom: 80px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 440px;
  max-height: calc(100vh - 120px);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  z-index: 9999;
  display:none;
  overflow:hidden;
}
.nb-support-panel.show{ display:flex; flex-direction:column; }

.nb-support-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nb-support-title{ font-weight: 700; }
.nb-support-close{
  border:none;
  background:transparent;
  cursor:pointer;
  width:32px;
  height:32px;
  border-radius:10px;
  opacity:.8;
}
.nb-support-close:hover{ opacity:1; background: rgba(0,0,0,.05); }

.nb-support-body{
  padding: 12px;
  overflow:auto;
  flex:1;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.nb-support-msg{ display:flex; }
.nb-support-msg--user{ justify-content:flex-end; }
.nb-support-msg--support{ justify-content:flex-start; }

.nb-support-bubble{
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.25;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
}
.nb-support-msg--user .nb-support-bubble{
  background: rgba(46,109,255,.12);
  border-color: rgba(46,109,255,.25);
}

.nb-support-compose{
  display:flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.nb-support-input{
  flex:1;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  padding: 10px 12px;
  font-size: 13px;
  outline:none;
}
.nb-support-input:focus{
  border-color: rgba(46,109,255,.45);
}
.nb-support-send{
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 14px;
}
.nb-support-note{
  padding: 0 12px 12px;
  font-size: 11px;
  opacity: .65;
}


.faq {
  margin: 80px auto 120px;
  padding: 0 16px;
}

.faq-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}


body.theme-dark .faq-inner {
  background: rgba(18, 18, 20, 0.72);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.faq h2 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary, #111);
}

body.theme-dark .faq h2 {
  color: #fff;
}

.faq details {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.02);
  transition: background 0.2s ease;
}

body.theme-dark .faq details {
  background: rgba(255, 255, 255, 0.04);
}

.faq details[open] {
  background: rgba(0, 0, 0, 0.04);
}

body.theme-dark .faq details[open] {
  background: rgba(255, 255, 255, 0.08);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary, #111);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.theme-dark .faq summary {
  color: #f5f5f7;
}

.faq summary::after {
  content: "+";
  font-size: 18px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary, #555);
}

body.theme-dark .faq p {
  color: #c7c7cc;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  flex-shrink:0;
}

.brand-logo{
  width:36px;
  height:36px;
  object-fit:contain;
  border-radius:50%;
}

.brand-name{
  font-size:16px;
  font-weight:700;
  color:inherit;
}


@media (max-width: 600px){
  .brand-name{ display:none; }
  .brand-logo{ width:32px; height:32px; }
}


.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.brand img{
  width:28px;
  height:28px;
  object-fit:contain;
}

.brand-name{
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size:16px;
  font-weight:600;
  letter-spacing:0.3px;
  line-height:1;
  background: linear-gradient(90deg, #16d7ff 0%, #2f86ff 45%, #8a4bff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}


.brand{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}


.brand img{
  width: 36px;
  height: 36px;
  object-fit: contain;
  z-index: 2;

  filter:
    drop-shadow(0 6px 16px rgba(80,140,255,.30))
    drop-shadow(0 0 18px rgba(120,170,255,.22));

  transition: transform .2s ease, filter .2s ease;
}


.brand-name{
  position: relative;
  z-index: 2;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;

  background: linear-gradient(
    120deg,
    #eef4ff 0%,
    #a8c8ff 45%,
    #c6b1ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow:
    0 0 10px rgba(120,170,255,.35),
    0 0 22px rgba(140,120,255,.20);
}



.brand::before{
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 44px;
  pointer-events: none;
  z-index: 1;
}



body:not(.theme-light) .brand::before{
  background:
    radial-gradient(circle at 25% 50%,
      rgba(120,170,255,.22),
      transparent 65%),
    radial-gradient(circle at 75% 45%,
      rgba(170,130,255,.18),
      transparent 70%);
  filter: blur(26px);
  opacity: .55;
}



body.theme-light .brand::before{
  background:
    radial-gradient(circle at 30% 50%,
      rgba(60,90,255,.35),
      transparent 65%),
    radial-gradient(circle at 70% 45%,
      rgba(120,70,255,.30),
      transparent 70%);
  filter: blur(18px);        
  opacity: .85;              
}


body.theme-light .brand-name{
  background: linear-gradient(
    120deg,
    #0c1324 0%,
    #1f4fff 45%,
    #6b39ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  
  text-shadow:
    0 6px 16px rgba(40,70,255,.25);
}


.brand:hover img{
  transform: translateY(-1px);
  filter:
    drop-shadow(0 8px 22px rgba(90,150,255,.40))
    drop-shadow(0 0 26px rgba(150,130,255,.28));
}


.details-fees {
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.55);
}

body.theme-dark .details-fees {
  background: rgba(2, 6, 23, 0.4);
  border-color: rgba(148, 163, 184, 0.22);
}

.details-fee-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px;
  font-size: 13px;
}

.details-fee-row + .details-fee-row {
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.details-fee-label {
  opacity: 0.85;
}

.details-fee-value {
  font-weight: 700;
  white-space: nowrap;
}


/* ===== Pagination ===== */
.pagination{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  padding:14px 0 6px;
  flex-wrap:wrap;
}
.pager-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  min-width:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.7);
  text-decoration:none;
  font-size:13px;
  color:inherit;
}
.pager-btn:hover{ background:rgba(255,255,255,.95); }
.pager-btn--active{
  border-color:rgba(37,99,235,.35);
  box-shadow:0 6px 18px rgba(37,99,235,.12);
  font-weight:600;
}
.pager-btn--disabled{
  opacity:.45;
  cursor:not-allowed;
}
.pager-ellipsis{
  opacity:.55;
  padding:0 4px;
}
.apt-city-link{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}


/* ===== LISTING PAGE ===== */

.listing-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:18px 14px 30px;
}
.listing-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media (min-width: 980px){
  .listing-grid{
    grid-template-columns: 2fr 1fr;
    align-items:start;
  }
}
.listing-card{ padding:16px; }
.listing-side{ padding:16px; position:sticky; top:14px; height:fit-content; }
.listing-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.listing-title{
  font-size:20px;
  line-height:1.25;
  margin:0;
}
.listing-meta{
  margin-top:6px;
  font-size:13px;
  color:#6b7280;
}
.listing-price-col{
  text-align:right;
  min-width:160px;
}
.listing-price{
  font-size:18px;
  font-weight:700;
}
.listing-price-note{
  font-size:12px;
  color:#6b7280;
  margin-top:4px;
}
.listing-gallery{
  margin-top:8px;
}
.listing-main-image{
  width:100%;
  height:360px;
  object-fit:cover;
  border-radius:14px;
  background:#e5e7eb;
}
@media (max-width: 520px){
  .listing-main-image{ height:260px; }
}
.listing-thumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.thumb-btn{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:0;
  overflow:hidden;
  width:88px;
  height:62px;
  background:transparent;
  cursor:pointer;
}
.thumb-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.thumb-btn--active{
  outline:2px solid rgba(37,99,235,.6);
  border-color:transparent;
}
.listing-info-grid{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.listing-info-row{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px;
  align-items:start;
}
.listing-info-label{
  font-size:12px;
  color:#6b7280;
}
.listing-info-value{
  font-size:13px;
}
.listing-section-title{
  margin:16px 0 8px;
  font-size:14px;
}
.listing-description{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:#111827;
}
.listing-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.listing-tips{
  margin:10px 0 0;
  padding-left:18px;
  color:#111827;
  font-size:13px;
  line-height:1.5;
}
.listing-side-cta{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.08);
}


/* === Icon navigation (desktop + mobile) === */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.topnav{
  display:flex;
  gap: 10px;
  align-items:center;
}

.topnav-link.nav-icon-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration:none;
}

.topnav-link.nav-icon-link:hover{
  text-decoration:none;
}

.nav-icon{
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* Make brand a bit more prominent */
.brand-logo{
  max-height: 28px;
  width: auto;
}
.brand-name{
  font-weight: 700;
}


/* === Auth header visibility defaults (avoid flashes) === */
#profileBtn{ display:none; }
#authButtons{ display:flex; gap:8px; }


.nb-auth-msg{ color: rgba(255,255,255,.85); }
body.theme-light .nb-auth-msg{ color: rgba(15,23,42,.85); }


/* ===== Profile v2 ===== */
.profile-shell{
  max-width:1120px;
  margin:0 auto;
  padding:32px 16px 64px;
}
.profile-header{margin:0 0 22px;}
.profile-title{font-size:28px;margin:0 0 6px;}
.profile-subtitle{margin:0;font-size:14px;opacity:.75;}
.profile-grid{
  display:grid;
  grid-template-columns: 360px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
@media (max-width: 980px){
  .profile-grid{grid-template-columns:1fr;}
}
.profile-card{
  border-radius:18px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  background: var(--card-bg, rgba(255,255,255,.9));
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}
body.theme-dark .profile-card{
  background: rgba(18,22,34,.72);
  border-color: rgba(255,255,255,.08);
}
.profile-card--left{padding:18px 18px 16px;}
.profile-user{padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:14px;}
.profile-email{font-weight:700;font-size:14px;opacity:.9}
.profile-badges{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap;}
.pf-badge{
  display:inline-flex;align-items:center;gap:6px;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  background: rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.06);
}
body.theme-dark .pf-badge{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}
.pf-badge--ok{
  background: rgba(0, 180, 90, .12);
  border-color: rgba(0, 180, 90, .22);
}
body.theme-dark .pf-badge--ok{
  background: rgba(0, 180, 90, .12);
  border-color: rgba(0, 180, 90, .25);
}
.profile-stats{display:flex;flex-direction:column;gap:6px;margin:14px 0 16px;}
.profile-stat{display:flex;justify-content:space-between;font-size:13px;opacity:.9}
.profile-stat-value{font-weight:700}
.profile-actions{display:flex;flex-direction:column;gap:10px}
.btn-danger-outline{
  border:1px solid rgba(255,80,80,.55);
  color: rgba(255,80,80,.95);
  background: transparent;
}
.btn-danger-outline:hover{background: rgba(255,80,80,.10);}
.profile-hint{margin-top:12px;font-size:12px;opacity:.75;line-height:1.35}

.profile-card--right{padding:18px;}
.profile-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.profile-card-title{margin:0;font-size:22px;}
.my-listings{display:flex;flex-direction:column;gap:10px;}
.my-listings-empty{padding:14px;border-radius:14px;background: rgba(0,0,0,.04);opacity:.8;}
body.theme-dark .my-listings-empty{background: rgba(255,255,255,.05);}

.my-item{
  display:flex;align-items:center;gap:14px;
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,.04);
  position:relative;
}
body.theme-dark .my-item{background: rgba(255,255,255,.05);}
.my-thumb{
  width:54px;height:54px;border-radius:14px;
  background: rgba(0,0,0,.06);
  overflow:hidden;
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
}
body.theme-dark .my-thumb{background: rgba(255,255,255,.06);}
.my-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.my-meta{min-width:0;flex:1;}
.my-title{margin:0;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.my-sub{margin:2px 0 0;font-size:12px;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.my-menu-btn{
  border:0;background:transparent;color:inherit;opacity:.8;
  width:38px;height:38px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
}
.my-menu-btn:hover{background: rgba(0,0,0,.06);opacity:1;}
body.theme-dark .my-menu-btn:hover{background: rgba(255,255,255,.06);}
.my-menu{
  position:absolute;right:10px;top:58px;
  background: rgba(20,24,36,.96);
  color:#fff;
  border-radius:12px;
  padding:8px;
  width:170px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  display:none;
  z-index:20;
}
body:not(.dark) .my-menu{
  background: rgba(255,255,255,.98);
  color:#111;
  border:1px solid rgba(0,0,0,.08);
}
.my-menu a, .my-menu button{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:10px;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-size:13px;
  text-align:left;
}
.my-menu a:hover, .my-menu button:hover{background: rgba(0,0,0,.06);}
body.theme-dark .my-menu a:hover, body.theme-dark .my-menu button:hover{background: rgba(255,255,255,.08);}
.my-menu .danger{color: rgba(255,90,90,.95);}

/* ===== Modal (generic) ===== */
.nb-modal{position:fixed;inset:0;display:none;z-index:9999;}
.nb-modal[aria-hidden="false"]{display:block;}
.nb-modal-backdrop{position:absolute;inset:0;background: rgba(0,0,0,.55);}
.nb-modal-window{
  position:relative;
  max-width:720px;
  margin: 10vh auto 0;
  border-radius:18px;
  padding:18px 18px 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(0,0,0,.08);
}
body.theme-dark .nb-modal-window{
  background: rgba(16,20,32,.92);
  border-color: rgba(255,255,255,.10);
}
.nb-modal-window--narrow{max-width:520px;}
@media (max-width: 640px){
  .nb-modal-window{margin: 6vh 12px 0;max-width:none;}
}
.nb-modal-close{
  position:absolute;right:12px;top:12px;
  width:36px;height:36px;border-radius:12px;
  border:0;background: rgba(0,0,0,.06);
  cursor:pointer;font-size:20px;line-height:1;
}
body.theme-dark .nb-modal-close{background: rgba(255,255,255,.08);color:#fff;}
.nb-modal-title{margin:2px 0 10px;font-size:20px;}
.nb-modal-subtitle{margin:0 0 14px;opacity:.75;font-size:13px;line-height:1.35;}

.nb-form{display:flex;flex-direction:column;gap:12px;}
.nb-field{display:flex;flex-direction:column;gap:6px;font-size:13px;}
.nb-field input,.nb-field textarea{
  border-radius:12px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.9);
  color:inherit;
}
body.theme-dark .nb-field input, body.theme-dark .nb-field textarea{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.nb-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media (max-width: 640px){.nb-form-row{grid-template-columns:1fr;}}
.nb-form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:6px;}
.btn-small{padding:8px 12px;font-size:12px;border-radius:12px;}
.btn-wide{width:100%;}

.nb-photos{margin-top:6px;}
.nb-photos-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.nb-photos-title{font-weight:700;font-size:13px;}
.nb-photos-grid{display:grid;grid-template-columns:repeat(5, minmax(0,1fr));gap:8px;}
@media (max-width: 640px){.nb-photos-grid{grid-template-columns:repeat(3, minmax(0,1fr));}}
.nb-photo{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background: rgba(0,0,0,.06);
  aspect-ratio: 1 / 1;
}
body.theme-dark .nb-photo{background: rgba(255,255,255,.06);}
.nb-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.nb-photo button{
  position:absolute;right:6px;top:6px;
  width:28px;height:28px;border-radius:10px;
  border:0;background: rgba(0,0,0,.55);color:#fff;cursor:pointer;
}
.nb-photo button:hover{background: rgba(0,0,0,.70);}

/* ===== Boost modal ===== */
.nb-boost-pill{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:14px;
  background: rgba(0,0,0,.05);
  margin-bottom:12px;
}
body.theme-dark .nb-boost-pill{background: rgba(255,255,255,.06);}
.nb-boost-pill-badge{
  display:inline-flex;align-items:center;justify-content:center;
  padding:4px 10px;border-radius:999px;
  background: rgba(0, 110, 255, .20);
  color: rgba(0, 110, 255, 1);
  font-weight:800;font-size:12px;
}
body.theme-dark .nb-boost-pill-badge{color:#8ab4ff;background: rgba(0,110,255,.22);}
.nb-boost-options{display:flex;flex-direction:column;gap:10px;margin:10px 0 14px;}
.nb-boost-opt{
  position:relative;
  display:flex;align-items:center;gap:10px;
  padding:12px 12px;border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
}
body.theme-dark .nb-boost-opt{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.nb-boost-opt input{transform:scale(1.05);}
.nb-boost-opt-label{flex:1;font-weight:700;}
.nb-boost-opt-price{font-weight:800;}
.nb-boost-opt-chip{
  position:absolute;right:12px;top:8px;
  font-size:11px;
  padding:4px 8px;border-radius:999px;
  background: rgba(0,110,255,.18);
  color: rgba(0,110,255,1);
  font-weight:800;
}
body.theme-dark .nb-boost-opt-chip{color:#8ab4ff;background: rgba(0,110,255,.22);}
.nb-boost-foot{margin:14px 0 0;padding-left:18px;opacity:.8;font-size:12px;line-height:1.5;}
.nb-boost-hint{margin-top:10px;font-size:12px;opacity:.75}

/* BOOST PAGE (dedicated page like in designs) */
.boost-page main{min-height:calc(100vh - 90px);display:flex;align-items:flex-start;justify-content:center;padding:48px 16px 64px;}
.nb-boost-page-card{width:min(560px, 100%);border-radius:24px;padding:28px 26px;box-shadow:0 24px 70px rgba(0,0,0,.12);background:#fff;}
body.theme-dark .nb-boost-page-card{background:rgba(20,28,45,.78);box-shadow:0 34px 90px rgba(0,0,0,.42);border:1px solid rgba(255,255,255,.08);}

.nb-boost-page-card .nb-modal-title{font-size:34px;line-height:1.05;margin:0 0 6px;}
.nb-boost-page-card .nb-modal-subtitle{margin:0 0 16px;opacity:.75}
body.theme-dark .nb-boost-page-card .nb-modal-subtitle{opacity:.7}

.nb-boost-select-wrap{margin:10px 0 16px;}
.nb-boost-select-label{display:block;font-size:12px;font-weight:700;opacity:.75;margin-bottom:6px;}
.nb-boost-select{width:100%;padding:12px 12px;border-radius:12px;border:1px solid rgba(0,0,0,.12);background:#fff;}
body.theme-dark .nb-boost-select{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.1);color:#e8eefc;}

.nb-boost-listingname{margin:10px 0 0;font-size:12px;opacity:.8}
body.theme-dark .nb-boost-listingname{opacity:.75}

.nb-boost-options{margin-top:14px;}
.nb-boost-opt{position:relative;padding:16px 16px;border-radius:16px;}
.nb-boost-opt input{margin-right:10px;}
.nb-boost-opt-price{font-size:15px;}
.nb-boost-opt:hover{transform:translateY(-1px);}
.nb-boost-opt{transition:transform .12s ease, box-shadow .12s ease;}

.btn.btn-wide{width:100%;margin-top:14px;padding:14px 16px;border-radius:16px;}


/* ===== NajdiByt: Custom Select (consistent dropdown UI) ===== */
.nb-select{
  position: relative;
  width: 100%;
}
.nb-select__native{
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.nb-select__btn{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  /* Match .field-input styling so it stays consistent across themes */
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #f9fafb;
  color: var(--text-main);
  transition: border-color .15s ease, box-shadow .15s ease, transform .02s ease;
}
body.theme-dark .nb-select__btn,
body.dark .nb-select__btn{
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}
.nb-select__btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.55);
}
.nb-select__btn:active{ transform: translateY(1px); }

.nb-select__value{
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nb-select__chev{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  opacity: .9;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  /* Default (dark theme): light chevron */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%23E5E7EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body:not(.theme-dark):not(.dark) .nb-select__chev{
  /* Light: dark chevron */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nb-select__menu{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px); /* IMPORTANT: never cover the button */
  z-index: 9999;
  border-radius: 16px;
  padding: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.98);
  color: var(--text-main);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  max-height: 320px;
  overflow: auto;
  display: none;
}
body.theme-dark .nb-select__menu,
body.dark .nb-select__menu{
  border-color: var(--border-subtle-dark);
  background: rgba(15, 19, 34, 0.98);
  color: var(--text-on-dark);
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
}
.nb-select.open .nb-select__menu{ display:block; }

.nb-select.open-up .nb-select__menu{
  top: auto;
  bottom: calc(100% + 8px); /* open above when near bottom */
}

.nb-select__option{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.nb-select__option:hover{
  background: rgba(37, 99, 235, 0.10);
}
body.theme-dark .nb-select__option:hover,
body.dark .nb-select__option:hover{
  background: rgba(37, 99, 235, 0.18);
}
.nb-select__option[aria-selected="true"]{
  background: rgba(37, 99, 235, 0.18);
}
body.theme-dark .nb-select__option[aria-selected="true"],
body.dark .nb-select__option[aria-selected="true"]{
  background: rgba(37, 99, 235, 0.25);
}

/* Keep native <select> look unchanged on small screens if needed */
@media (max-width: 520px){
  .nb-select__menu{ max-height: 260px; }
}

/* Add-apartment: phone consent checkbox */
.add-phone-consent{ margin-top: 10px; }
.add-checkbox{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.92;
  user-select: none;
}
.add-checkbox input[type="checkbox"]{
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.add-phone-more{
  margin-left: 6px;
  text-decoration: underline;
  opacity: 0.95;
}
.add-phone-more:hover{ opacity: 1; }

