/* searches-mobile.css */
.tm-search-edit { display:block; border:0; background:none; padding:0; text-align:start; font-family:inherit; cursor:pointer; }
.tm-search-new-banner { display:flex; justify-content:space-between; align-items:center; width:100%; padding:17px 15px; margin:0 0 12px; border:0; border-radius:12px; background:#ff6200; color:#0b1014; font:800 19px "Manrope",sans-serif; cursor:pointer; }
.tm-recent-market-row { display:flex; align-items:center; gap:8px; margin:4px 0 16px; flex-wrap:wrap; }
.tm-recent-market-row .tm-recent-price-range { margin-bottom:0; flex-wrap:wrap; }
.tm-recent-btn-icon[aria-pressed="true"] { color:#ff5900; background:#fff4eb; }
.tm-recent-btn-icon[aria-pressed="true"] svg { fill:#ff5900; }
.tm-recent-btn:disabled { opacity:.45; cursor:not-allowed; }
.tm-search-card-header > div:first-child { min-width:0; }
.tm-search-card-toggle .tm-switch input { position:absolute; inset:0; width:100%; height:100%; margin:0; z-index:1; cursor:pointer; }
.tm-switch:has(input:focus-visible) { outline:2px solid #ff5900; outline-offset:3px; border-radius:24px; }
.tm-sheet-background { pointer-events:none; }
.tm-search-sheet-open { overflow:hidden; }
.tm-sheet-close { position:absolute; inset-inline-end:16px; top:12px; width:32px; height:32px; border:0; background:none; color:#666; font-size:24px; cursor:pointer; }
.tm-alert-form-sheet { position:relative; box-sizing:border-box; }
[data-sheet-status]:not(:empty) { padding:0; background:none; color:#777; font-size:13px; margin-bottom:12px; }
@media(max-width:760px) {
  .account-page:has([data-view="searches"]), .account-page:has([data-view="recents"]) { background:#f5f4f0; padding:22px 18px 96px; }
  .account-page:has([data-view="searches"]) .account-page-header,
  .account-page:has([data-view="recents"]) .account-page-header { padding-block:0 20px;padding-inline:36px 0; justify-content:flex-start; }
  .account-page:has([data-view="searches"]) .account-page-header h1,
  .account-page:has([data-view="recents"]) .account-page-header h1 { font-size:23px; letter-spacing:-.6px; }
  .account-page-body .tm-searches-header-container { padding:0 0 12px; gap:10px; }
  .tm-searches-header-container .tm-searches-tabs { padding:0; border-color:#d8d8d8; background:transparent; }
  .tm-searches-tabs .tm-searches-tab { font-size:13px; padding:11px 5px; font-family:inherit; }
  .tm-searches-header-container .tm-recent-clear { font-size:12px; white-space:nowrap; padding:0; color:#888; font-weight:400; }
  .account-page-body .tm-searches-list { padding:0; }
  .tm-searches-list .tm-search-card { box-shadow:none; padding:14px; }
  .tm-searches-list .tm-recent-card { padding:0; }
  .tm-search-card .tm-search-card-meta { font-size:13px; margin:2px 0 8px; }
  .tm-search-card .tm-search-card-title { font-size:18px; letter-spacing:-.4px; line-height:1.25; }
  .tm-search-card .tm-search-card-header { gap:10px; }
  .tm-search-card .tm-search-card-pill { padding:4px 10px; font-size:13px; background:#abeda0; }
  .tm-search-card .tm-search-card-pill.empty { background:#eee; }
  .tm-search-card .tm-recent-actions { gap:8px; }
  .account-page-body .tm-search-footer-note { text-align:start; padding:0; font-size:12px; line-height:1.45; }
  [data-view="searches"] .tm-alert-empty { padding:80px 0 0; }
  [data-view="searches"] .tm-alert-icon-bell { width:74px; height:74px; margin:0 auto 20px; color:#999; }
  [data-view="searches"] .tm-alert-empty h2 { margin:0 0 10px; font-size:30px; }
  [data-view="searches"] .tm-alert-empty p { font-size:15px; line-height:1.5; margin:0 14px 22px; }
  [data-view="searches"] .tm-alert-examples { width:240px; max-width:90%; margin:0 auto 24px; gap:8px; }
  [data-view="searches"] .tm-alert-example { border:0; border-radius:16px; padding:12px 6px; box-shadow:none; font-weight:500; }
  [data-view="searches"] .tm-alert-empty .tm-btn-primary, .tm-alert-form-sheet .tm-btn-primary { background:#ff6200; color:#0b1014; border-radius:10px; font:800 17px "Manrope",sans-serif; }
  .tm-alert-form-sheet .tm-alert-country { padding:10px 16px; font-size:14px; font-family:inherit; }
  .tm-alert-form-sheet .tm-alert-freq { padding:10px 6px; font-size:11px; font-family:inherit; }
  .tm-alert-form-sheet .tm-alert-form-title { font-size:26px; letter-spacing:-.6px; }
  .tm-alert-form-sheet .tm-alert-input-group { margin-bottom:18px; }
}
.tm-recent-list-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px 10px; font-size: 13px; color: #777;
}
.tm-recent-list-bar .tm-recent-clear { padding: 0; font-size: 13px; color: #888; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; }
@media(max-width:760px) { .account-page-body .tm-recent-list-bar { padding: 2px 0 10px; } }
.tm-searches-header-container {
  display: flex;
  align-items: center;
  padding: 0 16px 16px;
  gap: 12px;
}

.tm-searches-tabs {
  display: flex;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 4px;
  flex: 1;
}

.tm-searches-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

.tm-searches-tab.active {
  background: #0b0f14;
  color: #fff;
}
/* Unread count next to "Notifications" (three tabs share the row: keep them on one line). */
.tm-searches-tab { white-space: nowrap; min-width: 0; }
.tm-searches-tab-count {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; margin-inline-start: 5px;
  border-radius: 9px; background: #ff5400; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; direction: ltr;
}
.tm-searches-tab-count[hidden] { display: none; }

.tm-searches-clear {
  border: none;
  background: transparent;
  color: #999;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tm-alert-empty { padding: 40px 20px; text-align: center; }
.tm-alert-icon-bell { margin: 0 auto 24px; width: 80px; height: 80px; position: relative; }
.tm-alert-icon-bell svg { width: 100%; height: 100%; color: #999; }
.tm-alert-empty h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; color: #111; }
.tm-alert-empty p { color: #666; font-size: 16px; margin-bottom: 32px; line-height: 1.4; }
.tm-alert-examples { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.tm-alert-example { background: #fff; border-radius: 99px; padding: 16px 20px; font-size: 15px; font-weight: 700; color: #111; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }

.tm-searches-list {
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-search-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  position: relative;
}

.tm-search-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
  gap: 16px;
}

.tm-search-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin: 0;
  line-height: 1.3;
}

.tm-search-card-meta {
  font-size: 14px;
  color: #777;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.tm-search-card-pill {
  display: inline-block;
  background: #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
}

.tm-search-card-pill.empty {
  background: #f3f4f6;
  color: #4b5563;
}

.tm-search-card-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.tm-search-card-toggle .tm-switch .slider {
  background: #ccc;
}

.tm-search-card-toggle .tm-switch input:checked + .slider {
  background: var(--tm-orange);
}

.tm-search-card-toggle-label {
  font-size: 12px;
  color: #777;
}

.tm-search-footer-note {
  font-size: 14px;
  color: #777;
  text-align: center;
  padding: 0 24px;
}

/* Recents — each search is a card with a cover: the photo of its cheapest cached listing,
   or a branded placeholder. One orange primary action, everything else quiet. */
.tm-recent-card { padding: 0; display: flex; flex-direction: column; border: 1px solid #ecebe6; box-shadow: none; overflow: hidden; }
.tm-recent-cover {
  position: relative; aspect-ratio: 16 / 7; min-height: 132px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 12px;
  background: linear-gradient(135deg, #fff1e8 0%, #ffe0cc 60%, #ffd2bd 100%); color: #0b0f14;
}
.tm-recent-cover.trade { background: linear-gradient(135deg, #eef1f5 0%, #dfe5ec 60%, #d3dbe4 100%); }
.tm-recent-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.tm-recent-card.has-photo .tm-recent-cover-img { display: block; }
.tm-recent-card.has-photo .tm-recent-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 55%, rgba(0,0,0,.58) 100%);
}
.tm-recent-cover-fallback {
  position: absolute; left:50%; top: 50%; transform: translate(-50%, -54%); width: 60px; height: 60px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; color: #ff5400; background: rgba(255,255,255,.7);
}
.tm-recent-cover.trade .tm-recent-cover-fallback { color: #0b0f14; }
.tm-recent-card.has-photo .tm-recent-cover-fallback { display: none; }
.tm-recent-cover-top, .tm-recent-cover-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tm-recent-tag {
  margin: 0; background: rgba(255,255,255,.88); color: #0b0f14; border: 0;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}
.tm-recent-when { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #5b6470; }
.tm-recent-card.has-photo .tm-recent-when { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tm-recent-count { font-size: 13px; font-weight: 800; color: #0b0f14; }
.tm-recent-from { font-size: 13px; font-weight: 600; color: #3c434c; }
.tm-recent-from b { font-size: 16px; font-weight: 800; color: #0b0f14; letter-spacing: -.3px; }
.tm-recent-card.has-photo .tm-recent-count, .tm-recent-card.has-photo .tm-recent-from, .tm-recent-card.has-photo .tm-recent-from b { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.tm-recent-body { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 16px; }
.tm-recent-heading { min-width: 0; }
.tm-recent-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.35px; line-height: 1.25; color: #0b0f14; overflow-wrap: anywhere; }
.tm-recent-criteria { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tm-recent-criteria span { font-size: 12px; font-weight: 700; color: #3c434c; background: #f3f2ee; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.tm-recent-criteria .tm-recent-countries { background: transparent; padding: 3px 2px; color: #8a919b; font-weight: 700; letter-spacing: .02em; }
.tm-recent-criteria .tm-flags { display: inline-flex; gap: 6px; padding: 0; background: transparent; }
.tm-recent-criteria .tm-flags .tm-flag { width: 24px; height: 16px; padding: 0; border-radius: 3px; background: #e5e7eb; }
.tm-search-card-meta .tm-flags .tm-flag { width: 21px; height: 14px; }
.tm-recent-facts { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #5b6470; font-weight: 500; }
.tm-recent-fact { display: inline-flex; align-items: center; gap: 5px; }
.tm-recent-fact .ph-svg { color: #8a919b; }
.tm-recent-range { color: #0b0f14; font-weight: 700; }
.tm-recent-range b { color: #0f8a4b; font-weight: 800; margin-inline-start: 2px; }
.tm-recent-actions { display: flex; gap: 8px; }
.tm-recent-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #e3e1da; background: #fff;
  font: inherit; font-weight: 800; font-size: 14px; color: #0b0f14; cursor: pointer;
}
.tm-recent-btn.primary { background: #ff5400; border-color: #ff5400; color: #0b0f14; }
.tm-recent-btn:disabled { color: #a0a5ad; background: #faf9f6; cursor: default; }
.tm-recent-btn-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #e3e1da; background: #fff;
  display: flex; align-items: center; justify-content: center; color: #0b0f14; cursor: pointer;
}
.tm-recent-btn-icon.saved { color: #ff5400; border-color: #ffd2bd; background: #fff7f2; }
@media (min-width: 768px) {
  .tm-searches-list:has(.tm-recent-card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* Alert Form Overlay */
.tm-alert-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tm-alert-form-sheet {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
}

.tm-alert-form-handle {
  width: 40px;
  height: 4px;
  background: #e5e5e5;
  border-radius: 4px;
  margin: 0 auto 24px;
}

.tm-alert-form-title {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin: 0 0 4px;
}

.tm-alert-form-subtitle {
  font-size: 15px;
  color: #777;
  margin: 0 0 24px;
}

.tm-alert-input-group {
  margin-bottom: 24px;
}

.tm-alert-label {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.tm-alert-input-wrap {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.tm-alert-input {
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  width: 100%;
  outline: none;
}

.tm-alert-countries {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tm-alert-country {
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 99px;
  cursor: pointer;
  transition: 0.2s;
}

.tm-alert-country.active {
  background: #0b0f14;
  color: #fff;
  border-color: #0b0f14;
}

.tm-alert-freqs {
  display: flex;
  gap: 8px;
}

.tm-alert-freq {
  flex: 1;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 99px;
  cursor: pointer;
  text-align: center;
}

.tm-alert-freq.active {
  background: #0b0f14;
  color: #fff;
  border-color: #0b0f14;
}

.tm-alert-whatsapp {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tm-alert-wa-icon {
  width: 40px;
  height: 40px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
