* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #f97316;
  --color-primary-dark: #ea580c;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: #ffffff;
  padding-bottom: 64px; /* keep content clear of the fixed footer menu */
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-header {
  padding: 16px;
  background-color: var(--color-primary);
}

.search-bar {
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 22px;
  background-color: #ffffff;
  overflow: hidden;
}

.search-bar__input {
  flex: 1;
  height: 100%;
  padding: 0 16px;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
}

.search-bar__input::placeholder {
  color: var(--color-muted);
}

.search-bar__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 100%;
  border: none;
  cursor: pointer;
  color: #ffffff;
  background-color: var(--color-primary-dark);
}

.search-bar__button:hover {
  background-color: #c2410c;
}

.search-bar__button svg {
  width: 20px;
  height: 20px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: none;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #374151;
  font-size: 13px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip:hover {
  background-color: #ffffff;
}

.filter-chip svg {
  width: 14px;
  height: 14px;
}

.filter-more {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  cursor: pointer;
}

.filter-more:hover {
  background-color: #ffffff;
}

.filter-more--active {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.filter-more--active:hover {
  background-color: #c2410c;
  color: #ffffff;
}

.more-filter-actions {
  margin-top: 16px;
}

.filter-more svg {
  width: 20px;
  height: 20px;
}

.region-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.region-bar::-webkit-scrollbar {
  display: none;
}

.region-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background-color: #ffffff;
  color: #374151;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.region-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.region-chip--active {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #ffffff;
}

.region-chip--active:hover {
  color: #ffffff;
}

.listings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 16px 16px;
}

.listing-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
}

.listing-card__image {
  position: relative;
}

.listing-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.listing-card__badge--full {
  background-color: var(--color-primary);
}

.listing-card__badge--partial {
  background-color: #78716c;
}

.listing-card__badge--unfurnished {
  background-color: #ffffff;
  color: #374151;
  border: 1px solid var(--color-border);
}

.listing-card__badge--right {
  left: auto;
  right: 8px;
}

.listing-card__badge--zero {
  background-color: #16a34a;
}

.listing-card__badge--deposit {
  background-color: #9333ea;
}

.fav-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  color: #6b7280;
  cursor: pointer;
}

.fav-btn:hover {
  color: #ef4444;
}

.fav-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
}

.fav-btn--active {
  color: #ef4444;
}

.fav-btn--active svg {
  fill: currentColor;
}

.listing-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.card-gallery::-webkit-scrollbar {
  display: none;
}

.card-gallery img {
  flex-shrink: 0;
  scroll-snap-align: center;
}

.card-gallery__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.3);
}

.card-gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
}

.card-gallery__dot--active {
  background-color: #ffffff;
}

.listing-card__body {
  padding: 12px 14px 14px;
}

.listing-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.listing-card__price {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.listing-card__price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
}

.listing-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  list-style: none;
}

.listing-card__specs li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-muted);
}

.listing-card__specs svg {
  width: 15px;
  height: 15px;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--color-primary);
  color: #ffffff;
}

.page-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
}

.page-header__back svg {
  width: 22px;
  height: 22px;
}

.page-header__title {
  font-size: 18px;
  font-weight: 600;
}

.form-page {
  padding: 16px;
}

.form-section {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.form-hint {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.form-counter {
  margin-top: 4px;
  text-align: right;
  font-size: 12px;
  color: var(--color-muted);
}

.form-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.form-input-group:focus-within {
  border-color: var(--color-primary);
}

.form-input-group .form-input {
  flex: 1;
  border: none;
  border-radius: 0;
}

.form-input-group__prefix,
.form-input-group__suffix {
  padding: 0 14px;
  font-size: 14px;
  color: var(--color-muted);
}

.form-input-group__prefix {
  border-right: 1px solid var(--color-border);
  background-color: #f9fafb;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1;
  border: 1.5px dashed var(--color-border);
  border-radius: 10px;
  background-color: #f9fafb;
  color: var(--color-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.photo-add:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.photo-add svg {
  width: 24px;
  height: 24px;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.stepper__btn {
  width: 44px;
  height: 44px;
  border: none;
  background-color: #f9fafb;
  color: #374151;
  font-size: 20px;
  cursor: pointer;
}

.stepper__btn:hover {
  background-color: #ffedd5;
  color: var(--color-primary-dark);
}

.stepper__value {
  width: 64px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  -moz-appearance: textfield;
}

.stepper__value::-webkit-outer-spin-button,
.stepper__value::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.amenity-group {
  margin-top: 4px;
}

.amenity-group + .amenity-group {
  margin-top: 16px;
}

.amenity-group__title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.amenity-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-chip {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background-color: #ffffff;
  color: #374151;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.amenity-chip::before {
  content: "+ ";
  color: var(--color-muted);
}

.amenity-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.amenity-chip--selected {
  border-color: var(--color-primary);
  background-color: #ffedd5;
  color: var(--color-primary-dark);
  font-weight: 500;
}

.amenity-chip--selected::before {
  content: "✓ ";
  color: var(--color-primary-dark);
}

.choice-chip {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background-color: #ffffff;
  color: #374151;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.choice-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.choice-chip--selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #ffffff;
}

.choice-chip--selected:hover {
  color: #ffffff;
}

.map {
  position: relative;
  z-index: 0; /* keep Leaflet's internal panes under the sticky header/footer */
  height: 220px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 13px;
  background-color: #f9fafb;
}

.map-coords {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-muted);
}

.nearby-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.nearby-form__type {
  grid-column: 1 / -1;
}

.nearby-form__btn {
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.nearby-form__btn:hover {
  background-color: var(--color-primary-dark);
}

.nearby-list {
  list-style: none;
  margin-top: 10px;
}

.nearby-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
}

.nearby-list__item + .nearby-list__item {
  border-top: 1px solid #f3f4f6;
}

.nearby-list__type {
  padding: 2px 8px;
  border-radius: 10px;
  background-color: #ffedd5;
  color: var(--color-primary-dark);
  font-size: 11px;
}

.nearby-list__remove {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.nearby-list__remove:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.utility-row + .utility-row {
  border-top: 1px solid #f3f4f6;
}

.utility-row__name {
  font-size: 14px;
  color: #374151;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
}

.segmented__btn {
  min-width: 56px;
  padding: 7px 14px;
  border: none;
  background-color: #ffffff;
  color: var(--color-muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.segmented__btn:hover {
  color: var(--color-primary);
}

.segmented__btn--active {
  background-color: var(--color-primary);
  color: #ffffff;
}

.segmented__btn--active:hover {
  color: #ffffff;
}

.form-submit {
  width: 100%;
  padding: 14px;
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.form-submit:hover {
  background-color: var(--color-primary-dark);
}

.listing-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.card-btn svg {
  width: 16px;
  height: 16px;
}

.card-btn--share {
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  color: #374151;
}

.card-btn--share:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.card-btn--chat {
  flex: 1;
  border: none;
  background-color: var(--color-primary);
  color: #ffffff;
}

.card-btn--chat:hover {
  background-color: var(--color-primary-dark);
}

.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  padding: 8px 0 16px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  font-size: 12px;
  font-family: inherit;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
}

.share-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.share-option__icon svg {
  width: 22px;
  height: 22px;
}

.share-option__icon--whatsapp { background-color: #25d366; }
.share-option__icon--facebook { background-color: #1877f2; }
.share-option__icon--x { background-color: #111111; }
.share-option__icon--telegram { background-color: #229ed9; }
.share-option__icon--copy { background-color: #6b7280; }

.gallery-wrap {
  position: relative;
}

.gallery__counter {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.gallery__dots {
  bottom: 10px;
}

.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  scroll-snap-align: center;
}

.detail {
  padding: 16px 16px 88px; /* room for the fixed action bar */
}

.detail-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.detail-pill--full {
  background-color: var(--color-primary);
}

.detail-pill--partial {
  background-color: #78716c;
}

.detail-pill--deposit {
  background-color: #9333ea;
}

.detail-pill--zero {
  background-color: #16a34a;
}

.detail-pill--region {
  background-color: #ffffff;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
}

.detail__title {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 700;
  color: #111827;
}

.detail__price {
  font-size: 20px;
}

.deposit-amount {
  margin-top: 10px;
}

.detail__specs {
  margin-top: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.detail__specs li {
  font-size: 13px;
}

.detail__specs svg {
  width: 17px;
  height: 17px;
}

.detail-section {
  margin-top: 18px;
}

.detail-heading {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.detail-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  white-space: pre-line; /* keep the paragraphs/line breaks typed in the form */
}

.detail-subgroup {
  margin-top: 12px;
}

.tag {
  padding: 7px 13px;
  border-radius: 16px;
  background-color: #ffedd5;
  color: var(--color-primary-dark);
  font-size: 13px;
}

.action-bar--stacked {
  flex-direction: column;
  gap: 10px;
}

.action-bar__buttons {
  display: flex;
  gap: 8px;
}

.action-bar__owner-heading {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.owner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: #fff7ed;
}

.owner-card__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #ffedd5;
  color: var(--color-primary-dark);
  overflow: hidden;
}

.owner-card__avatar svg {
  width: 28px;
  height: 28px;
}

.owner-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-card__info {
  flex: 1;
  min-width: 0;
}

.owner-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-card__role {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-muted);
}

.owner-card__wa {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: #25d366;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.owner-card__wa:hover {
  background-color: #1eb857;
}

.owner-card__wa svg {
  width: 16px;
  height: 16px;
}

.owner-card__wa--locked {
  background-color: #ffffff;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
}

.owner-card__wa--locked:hover {
  background-color: #fff7ed;
}

.utility-value {
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.utility-value--yes {
  background-color: #dcfce7;
  color: #15803d;
}

.utility-value--no {
  background-color: #f3f4f6;
  color: var(--color-muted);
}

.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
}

.listing-card[data-href] {
  cursor: pointer;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.tabs__btn {
  flex: 1;
  padding: 13px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.tabs__btn--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-panel .listings {
  padding-top: 16px;
}

.chat-list {
  display: flex;
  flex-direction: column;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.chat-item:hover {
  background-color: #fff7ed;
}

.chat-item__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffedd5;
  color: var(--color-primary-dark);
  font-size: 17px;
  font-weight: 700;
  overflow: hidden;
}

.chat-item__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.chat-item__name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.chat-item__time {
  font-size: 11px;
  color: var(--color-muted);
}

.chat-item__listing {
  font-size: 11px;
  color: var(--color-primary-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item__preview {
  font-size: 13px;
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item__preview--unread {
  color: #111827;
  font-weight: 600;
}

.chat-item__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.profile-card__email {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-muted);
}

.profile-card__login {
  margin-left: 8px;
  background-color: var(--color-primary);
  color: #ffffff;
}

.profile-card__login:hover {
  background-color: var(--color-primary-dark);
}

.thread-listing {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.thread-typing {
  font-size: 11px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.typing-dot {
  animation: typing-blink 1.2s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-blink {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}

.thread-listing-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: #fff7ed;
  text-decoration: none;
  cursor: pointer;
}

.thread-listing-card--gone {
  background-color: #f9fafb;
  cursor: default;
}

.thread-listing-card__thumb {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: #ffedd5;
  color: var(--color-primary-dark);
  overflow: hidden;
}

.thread-listing-card__thumb svg {
  width: 22px;
  height: 22px;
}

.thread-listing-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-listing-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thread-listing-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-listing-card__price {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.thread-listing-card--gone .thread-listing-card__price {
  color: var(--color-muted);
  font-weight: 400;
}

.thread-listing-card__btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.thread {
  padding: 16px 16px 84px;
  overflow-y: auto;
  min-height: calc(100vh - 140px);
}

.thread-loading {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.msg--mine {
  flex-direction: row-reverse;
}

.msg__content {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.msg--mine .msg__content {
  align-items: flex-end;
}

.msg--theirs .msg__content {
  align-items: flex-start;
}

.msg__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ffedd5;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

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

.thread-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  overflow: hidden;
}

.thread-avatar svg {
  width: 20px;
  height: 20px;
}

.thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg__bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.msg--mine .msg__bubble {
  background-color: var(--color-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.msg--theirs .msg__bubble {
  background-color: #f3f4f6;
  color: #111827;
  border-bottom-left-radius: 4px;
}

.msg__time {
  margin-top: 3px;
  font-size: 10px;
  color: var(--color-muted);
}

.thread-input {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
}

.thread-input__field {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.thread-input__field:focus {
  border-color: var(--color-primary);
}

.thread-input__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  cursor: pointer;
}

.thread-input__send:hover {
  background-color: var(--color-primary-dark);
}

.thread-input__send svg {
  width: 20px;
  height: 20px;
}

.migrate-log {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background-color: #f9fafb;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #374151;
  min-height: 60px;
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--color-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: #d1d5db;
}

.empty-state__title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.empty-state__text {
  margin-top: 4px;
  font-size: 13px;
}

.empty-state__btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.empty-state__btn:hover {
  background-color: var(--color-primary-dark);
}

.card-btn--edit {
  flex: 1;
  border: 1px solid var(--color-primary);
  background-color: #ffffff;
  color: var(--color-primary-dark);
}

.card-btn--edit:hover {
  background-color: #fff7ed;
}

.card-btn--remove {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  background-color: #ffffff;
  color: #dc2626;
}

.card-btn--remove:hover {
  background-color: #fee2e2;
}

.card-btn--delete {
  flex: 1;
  border: 1px solid #fecaca;
  background-color: #ffffff;
  color: #dc2626;
}

.card-btn--delete:hover {
  background-color: #fee2e2;
}

.account {
  padding: 16px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: #ffffff;
}

.profile-card__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #ffedd5;
  color: var(--color-primary-dark);
}

.profile-card__avatar svg {
  width: 34px;
  height: 34px;
}

.profile-card__name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.profile-card__edit {
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 16px;
  background-color: #ffffff;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.profile-card__edit:hover {
  background-color: #fff7ed;
}

.profile-card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.edit-avatar {
  position: relative;
  width: 96px;
  margin: 8px auto 20px;
}

.edit-avatar__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #ffedd5;
  color: var(--color-primary-dark);
  overflow: hidden;
}

.edit-avatar__circle svg {
  width: 48px;
  height: 48px;
}

.edit-avatar__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-avatar__upload {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  cursor: pointer;
}

.edit-avatar__upload:hover {
  background-color: var(--color-primary-dark);
}

.edit-avatar__upload svg {
  width: 16px;
  height: 16px;
}

.account-actions-title {
  margin-top: 24px;
}

.support-section {
  margin-top: 20px;
}

.support-section__title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-list {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: #ffffff;
  overflow: hidden;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: none;
  color: #374151;
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.support-item + .support-item {
  border-top: 1px solid #f3f4f6;
}

a.support-item {
  text-decoration: none;
}

.support-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
  color: #111827;
}

.support-item__detail {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
}

.support-item__icon--whatsapp {
  background-color: #dcfce7;
  color: #16a34a;
}

.support-item--static {
  cursor: default;
}

.support-item--static:hover {
  background-color: transparent;
}

.terms {
  padding: 16px 16px 32px;
}

.terms__effective {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.terms h2 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.terms p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.terms ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.terms li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

.terms a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.feedback-intro {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.feedback-note {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  color: var(--color-muted);
}

.auth-forgot {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--color-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: #ffffff;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.google-btn:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.google-btn svg {
  width: 20px;
  height: 20px;
}

.help-hero {
  padding: 24px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: #fff7ed;
  text-align: center;
}

.help-hero__title {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
}

.help-hero__subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.help-hero__hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-muted);
}

.help-hero__hours svg {
  width: 14px;
  height: 14px;
}

.support-item:hover {
  background-color: #fff7ed;
}

.support-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: #ffedd5;
  color: var(--color-primary-dark);
}

.support-item__icon svg {
  width: 18px;
  height: 18px;
}

.support-item__chevron {
  margin-left: auto;
  color: #d1d5db;
}

.support-item__chevron svg {
  width: 16px;
  height: 16px;
}

.support-item--logout {
  color: #dc2626;
  font-weight: 600;
}

.support-item--logout:hover {
  background-color: #fee2e2;
}

.support-item--logout .support-item__icon {
  background-color: #fee2e2;
  color: #dc2626;
}

.app-meta {
  margin-top: 24px;
  text-align: center;
}

.app-meta__version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-muted);
}

.beta-pill {
  padding: 2px 8px;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.app-meta__credit {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-muted);
}

.app-meta__credit a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.app-meta__credit a:hover {
  text-decoration: underline;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background-color: #ffffff;
  border-radius: 16px 16px 0 0;
  padding: 8px 16px 24px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  visibility: hidden;
}

.drawer--open {
  transform: translateY(0);
  visibility: visible;
}

.drawer__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 2px;
  background-color: var(--color-border);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.drawer__title {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: var(--color-muted);
  cursor: pointer;
}

.drawer__close svg {
  width: 16px;
  height: 16px;
}

.drawer__body {
  min-height: 160px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.price-inputs .form-input-group {
  flex: 1;
}

.price-dash {
  color: var(--color-muted);
}

.price-presets {
  padding-bottom: 16px;
}

.drawer-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
}

.drawer-reset {
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background-color: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.drawer-reset:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.drawer-apply {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.drawer-apply:hover {
  background-color: var(--color-primary-dark);
}

.filter-chip--active {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.filter-chip--active:hover {
  background-color: #c2410c;
}

.filter-no-results {
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);
}

.drawer__placeholder {
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
  padding: 48px 0;
}

.footer-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 64px;
  display: flex;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
}

.footer-menu__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--color-muted);
  font-size: 12px;
}

.footer-menu__item svg {
  width: 24px;
  height: 24px;
}

.footer-menu__item--active,
.footer-menu__item:hover {
  color: var(--color-primary);
}

.footer-menu__post-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -24px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}

.footer-menu__item--post {
  gap: 2px;
}

.footer-menu__item--post:hover {
  color: var(--color-primary);
}

.footer-menu__post-icon svg {
  width: 22px;
  height: 22px;
}
