/* Ads listings — modern Divar-inspired (RTL) */
:root {
  --ads-ink: #1a1a1a;
  --ads-muted: #6b7280;
  --ads-line: #e8eaed;
  --ads-soft: #f6f7f9;
  --ads-surface: #ffffff;
  --ads-teal: #0d9488;
  --ads-teal-dark: #0f766e;
  --ads-amber: #f59e0b;
  --ads-danger: #dc2626;
  --ads-radius: 14px;
  --ads-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

.ads-page {
  background:
    radial-gradient(1200px 400px at 100% -10%, rgba(13, 148, 136, 0.08), transparent 60%),
    radial-gradient(900px 320px at 0% 0%, rgba(245, 158, 11, 0.06), transparent 55%),
    var(--ads-soft);
  min-height: 70vh;
  padding-bottom: 4rem;
}

.ads-hero {
  padding: 1.75rem 0 1rem;
}

.ads-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.ads-hero h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--ads-ink);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.ads-hero p {
  margin: 0;
  color: var(--ads-muted);
  font-size: 0.95rem;
}

.ads-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ads-ink);
  box-shadow: var(--ads-shadow);
}

.ads-count-pill strong { color: var(--ads-teal); }

.ads-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .ads-layout { grid-template-columns: 1fr; }
  .ads-filters-desktop { display: none !important; }
}

@media (min-width: 992px) {
  .ads-filters-mobile-bar { display: none !important; }
}

.ads-filters {
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: var(--ads-radius);
  padding: 1rem;
  box-shadow: var(--ads-shadow);
  position: sticky;
  top: 120px;
}

.ads-filters h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--ads-ink);
}

.ads-filter-group {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ads-line);
}

.ads-filter-group:last-of-type {
  border-bottom: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
}

.ads-filter-group label.group-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ads-muted);
  margin-bottom: 0.45rem;
  text-transform: none;
}

.ads-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ads-chip {
  appearance: none;
  border: 1px solid var(--ads-line);
  background: #fff;
  color: var(--ads-ink);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.ads-chip:hover {
  border-color: var(--ads-teal);
  color: var(--ads-teal-dark);
}

.ads-chip.is-active {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--ads-teal);
  color: var(--ads-teal-dark);
  font-weight: 700;
}

.ads-filters .form-control,
.ads-filters .form-select {
  border-radius: 10px;
  border-color: var(--ads-line);
  font-size: 0.85rem;
  min-height: 40px;
}

.ads-filters .form-control:focus,
.ads-filters .form-select:focus {
  border-color: var(--ads-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.ads-filter-actions {
  display: flex;
  gap: 0.5rem;
}

.ads-filter-actions .btn {
  flex: 1;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-ads-primary {
  background: var(--ads-teal);
  border-color: var(--ads-teal);
  color: #fff;
}

.btn-ads-primary:hover {
  background: var(--ads-teal-dark);
  border-color: var(--ads-teal-dark);
  color: #fff;
}

.ads-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ads-toolbar .sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ads-muted);
}

.ads-toolbar .form-select {
  width: auto;
  min-width: 140px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.ads-filters-mobile-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.ads-filters-mobile-bar .btn {
  border-radius: 12px;
  font-weight: 700;
}

.ads-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ads-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: var(--ads-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ads-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: adsFadeUp 0.45s ease both;
}

.ads-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  color: inherit;
}

@keyframes adsFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.ads-card-media {
  position: relative;
  background: #eef1f4;
  min-height: 140px;
}

.ads-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}

.ads-card-media .placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 2rem;
  background:
    linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.ads-card-badges {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  z-index: 2;
  max-width: calc(100% - 5.5rem);
  pointer-events: none;
}

.ads-badge {
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ads-badge.urgent {
  background: rgba(220, 38, 38, 0.92);
}

.ads-card-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ads-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ads-teal-dark);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.ads-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ads-ink);
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ads-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--ads-muted);
  font-size: 0.78rem;
  margin-top: auto;
}

.ads-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ads-card-loc {
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.55rem;
}

@media (max-width: 575.98px) {
  .ads-card {
    grid-template-columns: 118px 1fr;
  }
  .ads-card-media img,
  .ads-card-media .placeholder {
    min-height: 118px;
  }
  .ads-card-body { padding: 0.7rem; }
  .ads-card-price { font-size: 0.92rem; }
  .ads-card-title { font-size: 0.85rem; }
}

.ads-empty {
  background: var(--ads-surface);
  border: 1px dashed var(--ads-line);
  border-radius: var(--ads-radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ads-muted);
}

.ads-empty i {
  font-size: 2.5rem;
  color: var(--ads-teal);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.75rem;
}

.ads-empty h3 {
  color: var(--ads-ink);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.ads-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0 0.5rem;
}

.ads-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(13, 148, 136, 0.2);
  border-top-color: var(--ads-teal);
  border-radius: 50%;
  animation: adsSpin 0.7s linear infinite;
}

@keyframes adsSpin {
  to { transform: rotate(360deg); }
}

.ads-end-note {
  text-align: center;
  color: var(--ads-muted);
  font-size: 0.85rem;
  padding: 1rem 0;
}

/* Money / area filter fields */
.ads-money-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.ads-money-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ads-money-tag {
  position: absolute;
  top: 0.72rem;
  inset-inline-start: 0.7rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  pointer-events: none;
}

.ads-money-input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 0.65rem 0.7rem;
  padding-inline-start: 2.6rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
  direction: ltr;
  text-align: left;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: 0.2s ease;
}

.ads-money-input:focus {
  outline: 0;
  border-color: rgba(13, 148, 136, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.ads-money-words {
  min-height: 1.15rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #64748b;
  font-weight: 600;
  padding-inline: 0.15rem;
}

.ads-area-field .ads-money-input {
  padding-inline-end: 2.4rem;
}

.ads-money-unit {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  pointer-events: none;
}

/* Detail */
.detail-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.35rem 0 4rem;
  background:
    radial-gradient(900px 380px at 100% 0%, rgba(13, 148, 136, 0.1), transparent 55%),
    radial-gradient(700px 300px at 0% 10%, rgba(6, 182, 212, 0.08), transparent 50%),
    #f5f9fb;
}

.detail-inner { position: relative; z-index: 1; }

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.detail-breadcrumb a {
  color: #0d9488;
  text-decoration: none;
  font-weight: 700;
}

.detail-breadcrumb i { font-size: 0.7rem; opacity: 0.6; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.78fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { order: -1; }
}

.ads-detail-page {
  background: var(--ads-soft);
  padding: 1.25rem 0 4rem;
}

.ads-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .ads-detail-grid { grid-template-columns: 1fr; }
}

.ads-gallery {
  background: #0f172a;
  border-radius: var(--ads-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 11;
  box-shadow: var(--ads-shadow);
}

.ads-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ads-gallery-nav {
  position: absolute;
  inset-inline: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.ads-gallery-nav button {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ads-ink);
  display: grid;
  place-items: center;
  box-shadow: var(--ads-shadow);
}

.ads-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0 0;
  scrollbar-width: thin;
}

.ads-thumbs button {
  flex: 0 0 72px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #e2e8f0;
}

.ads-thumbs button.is-active {
  border-color: var(--ads-teal);
}

.ads-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ads-panel {
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: var(--ads-radius);
  padding: 1.15rem;
  box-shadow: var(--ads-shadow);
}

.ads-panel + .ads-panel { margin-top: 1rem; }

.ads-detail-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ads-teal-dark);
  margin-bottom: 0.35rem;
}

.ads-detail-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--ads-ink);
}

.ads-detail-loc {
  color: var(--ads-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ads-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.ads-spec {
  background: var(--ads-soft);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}

.ads-spec .k {
  display: block;
  font-size: 0.72rem;
  color: var(--ads-muted);
  margin-bottom: 0.15rem;
}

.ads-spec .v {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ads-ink);
}

.ads-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ads-amenity {
  background: rgba(13, 148, 136, 0.08);
  color: var(--ads-teal-dark);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.ads-contact-box {
  position: sticky;
  top: 120px;
}

.ads-contact-reveal {
  display: none;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.ads-contact-reveal.is-open { display: block; }

.ads-contact-reveal a {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ads-teal-dark);
  text-decoration: none;
  direction: ltr;
  display: inline-block;
}

.ads-contact-note {
  font-size: 0.75rem;
  color: var(--ads-muted);
  margin-top: 0.55rem;
}

.ads-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 767.98px) {
  .ads-related-grid { grid-template-columns: 1fr; }
}

.ads-related-card {
  display: flex;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0.4rem;
}

.ads-related-card img {
  width: 84px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
}

.ads-related-card .t {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ads-related-card .p {
  font-size: 0.78rem;
  color: var(--ads-teal-dark);
  font-weight: 700;
}

.offcanvas.ads-filter-drawer .offcanvas-body {
  padding-bottom: 5rem;
}

.ads-seo-pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0 0.25rem;
  font-size: 0.9rem;
}

.ads-seo-pagination a {
  color: var(--ads-teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.ads-seo-pagination a:hover { text-decoration: underline; }

.ads-seo-blurb {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ads-line);
  border-radius: 12px;
  color: var(--ads-muted);
  font-size: 0.88rem;
  line-height: 1.85;
}

.ads-seo-blurb p { margin: 0; }

/* Card titles are h2 for outline; keep visual weight of former h3 */
.ads-card-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.ads-card-wrap {
  position: relative;
}

.ads-card-actions {
  position: absolute;
  top: 0.5rem;
  /* Inner edge of image column (180px, RTL media on right) — never over badges */
  left: calc(100% - 180px + 0.45rem);
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 3;
}

@media (max-width: 575.98px) {
  .ads-card-actions {
    left: calc(100% - 118px + 0.3rem);
  }
}

.ads-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ads-ink);
  display: grid;
  place-items: center;
  box-shadow: var(--ads-shadow);
  cursor: pointer;
}

.ads-icon-btn.is-saved,
.btn.is-saved {
  color: var(--ads-teal-dark);
}

.ads-viewed-badge {
  position: absolute;
  bottom: 0.55rem;
  inset-inline-start: 0.55rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(240, 253, 250, 0.95);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.15);
}

/* ========== Light Tech / AI Auth & Profile ========== */
.auth-shell,
.profile-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 140px);
  padding: 2.5rem 0 4.5rem;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(13, 148, 136, 0.12), transparent 55%),
    radial-gradient(700px 360px at -5% 20%, rgba(6, 182, 212, 0.1), transparent 50%),
    linear-gradient(180deg, #f7fbff 0%, #f3faf8 45%, #ffffff 100%);
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}

.auth-shine {
  position: absolute;
  inset: 10% 20% auto;
  height: 180px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  filter: blur(28px);
  animation: authShine 7s ease-in-out infinite;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: authFloat 10s ease-in-out infinite;
}

.auth-orb-a {
  width: 280px;
  height: 280px;
  top: -60px;
  right: 8%;
  background: rgba(13, 148, 136, 0.28);
}

.auth-orb-b {
  width: 220px;
  height: 220px;
  bottom: 8%;
  left: 4%;
  background: rgba(6, 182, 212, 0.22);
  animation-delay: -3s;
}

.auth-orb-c {
  width: 160px;
  height: 160px;
  top: 42%;
  left: 42%;
  background: rgba(56, 189, 248, 0.18);
  animation-delay: -5s;
}

@keyframes authFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}

@keyframes authShine {
  0%, 100% { opacity: 0.25; transform: translateX(-8%); }
  50% { opacity: 0.7; transform: translateX(8%); }
}

.auth-shell-inner,
.profile-inner {
  position: relative;
  z-index: 1;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.75rem;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { order: 2; }
  .auth-card { order: 1; }
}

.auth-brand-panel {
  padding: 1.6rem 1.4rem;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(240, 253, 250, 0.9));
  border: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}

.auth-brand-title {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 900;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
}

.auth-brand-title em {
  font-style: normal;
  background: linear-gradient(90deg, #0d9488, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand-copy {
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.auth-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-feature-list i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(6, 182, 212, 0.15));
  color: #0d9488;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 1.55rem 1.4rem 1.35rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  animation: authCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-card-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.18), transparent 70%);
  pointer-events: none;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.auth-avatar-ring {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #0f766e;
  font-size: 1.35rem;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #0d9488, #22d3ee) border-box;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.18);
}

.auth-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0d9488;
  letter-spacing: 0.04em;
}

.auth-card-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 850;
  color: #0f172a;
}

.auth-steps {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.auth-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: 0.25s ease;
}

.auth-step.is-active,
.auth-step.is-done {
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
}

.auth-step-line {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.auth-step-line.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d9488, #22d3ee);
  animation: authLineFill 0.45s ease both;
}

@keyframes authLineFill {
  from { transform: scaleX(0); transform-origin: right; }
  to { transform: scaleX(1); transform-origin: right; }
}

.auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.45rem;
}

.auth-input-shell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.15rem 0.9rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.auth-input-shell:focus-within {
  border-color: rgba(13, 148, 136, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.auth-input-shell i {
  color: #0d9488;
  font-size: 1.1rem;
}

.auth-input-shell input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  min-height: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.04em;
}

.auth-input-otp input {
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: 0.35em;
}

.auth-hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.auth-phone-chip {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-btn {
  margin-top: 1rem;
  width: 100%;
  border: 0;
  border-radius: 16px;
  min-height: 52px;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #0891b2 100%);
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.auth-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 34px rgba(13, 148, 136, 0.34);
}

.auth-btn:disabled {
  opacity: 0.7;
  transform: none;
  cursor: wait;
}

.auth-btn-ghost,
.auth-btn-soft {
  width: auto;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 14px;
  box-shadow: none;
}

.auth-btn-ghost {
  background: #fff;
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.auth-btn-ghost:hover { color: #0f766e; background: #f0fdfa; }

.auth-btn-soft {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.auth-btn-soft:hover { color: #9f1239; filter: none; }

.auth-secondary-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.auth-text-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.2rem;
}

.auth-text-btn:hover { color: #0d9488; }

.auth-alert {
  margin-top: 0.9rem;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  animation: authCardIn 0.3s ease both;
}

.auth-alert-error {
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.auth-alert-ok {
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
}

.auth-footer-note {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.7;
}

.auth-step-panel[hidden] { display: none !important; }

/* Profile */
.profile-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  margin-bottom: 1.1rem;
}

.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #0f766e;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #0d9488, #22d3ee) border-box;
  border: 2px solid transparent;
}

.profile-hero h1 {
  margin: 0.1rem 0;
  font-size: 1.35rem;
  font-weight: 850;
  color: #0f172a;
}

.profile-phone {
  margin: 0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.92rem;
}

.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 575.98px) {
  .profile-stats { grid-template-columns: 1fr; }
}

.profile-stat {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.profile-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 850;
  color: #0d9488;
}

.profile-stat span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-section {
  margin-bottom: 1.25rem;
  padding: 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.profile-section-head h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-section-head i { color: #0d9488; }

.profile-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}

.profile-empty i {
  font-size: 1.8rem;
  color: #0d9488;
  opacity: 0.75;
  display: block;
  margin-bottom: 0.55rem;
}

.profile-empty .auth-btn {
  width: auto;
  margin: 1rem auto 0;
  padding-inline: 1.25rem;
}

/* Modern detail page blocks */
.detail-gallery-card,
.detail-hero-card,
.detail-block,
.detail-contact-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.detail-gallery-card { padding: 0.7rem; margin-bottom: 1rem; }

.detail-gallery {
  border-radius: 18px;
  overflow: hidden;
  background: #e2e8f0;
}

.detail-gallery-tags {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}

.detail-gallery-tags span {
  background: rgba(255, 255, 255, 0.92);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.detail-gallery-tags .is-urgent {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.detail-gallery-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 2.5rem;
}

.detail-hero-card,
.detail-block {
  padding: 1.25rem 1.2rem;
  margin-bottom: 1rem;
}

.detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.detail-price {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 900;
  color: #0f766e;
  letter-spacing: -0.02em;
}

.detail-code {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.detail-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 850;
  color: #0f172a;
  line-height: 1.45;
}

.detail-loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.detail-loc i { color: #0d9488; }

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

@media (max-width: 575.98px) {
  .detail-specs { grid-template-columns: 1fr; }
}

.detail-spec {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fafc, #f0fdfa);
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.detail-spec i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
  font-size: 1.05rem;
}

.detail-spec span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.detail-spec strong {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 800;
}

.detail-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  font-weight: 850;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-block h2 i { color: #0d9488; }

.detail-desc {
  color: #475569;
  white-space: pre-wrap;
  line-height: 1.95;
  font-size: 0.95rem;
}

.detail-aside {
  position: sticky;
  top: 120px;
}

.detail-contact-card {
  padding: 1.2rem;
}

.detail-contact-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.detail-contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(6, 182, 212, 0.16));
  color: #0d9488;
  font-size: 1.2rem;
}

.detail-contact-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 850;
  color: #0f172a;
}

.detail-contact-head p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.7;
}

.detail-agency {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.85rem;
}

.detail-agency span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.detail-agency strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.detail-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.detail-soft-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 750;
  color: #334155;
  transition: 0.2s ease;
}

.detail-soft-btn:hover {
  border-color: rgba(13, 148, 136, 0.35);
  color: #0f766e;
  background: #f0fdfa;
}

.detail-soft-btn.is-saved {
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.35);
  background: #f0fdfa;
}

.detail-contact-cta {
  margin-top: 0;
}

.detail-empty-contact {
  padding: 0.8rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
}

.detail-updated {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: #0d9488;
  font-weight: 750;
  font-size: 0.88rem;
  text-decoration: none;
}

.detail-back-link:hover { color: #0f766e; }

.related-ph {
  width: 84px;
  height: 72px;
  border-radius: 8px;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  color: #94a3b8;
  flex-shrink: 0;
}
