/* =========================================================
   Arama önerileri + "Keşfet" paneli
   ========================================================= */

/* Öneri listesi hero'nun dışına taşabilsin: kırpma sadece arka plan katmanlarında. */
.hero { overflow: visible; z-index: 5; }

/* ---------- autocomplete ---------- */
/* Giriş animasyonu her hero öğesini ayrı katman yapar; arama ve önerileri en üstte tut. */
.search { position: relative; z-index: 10; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 40;
  max-height: min(400px, 62vh); overflow-y: auto; padding: 8px; text-align: left;
  border-radius: var(--radius); background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: fadeUp .25s var(--ease) both;
}
.suggest__group + .suggest__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.suggest__head { padding: 8px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.suggest__item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 14px; cursor: pointer; transition: background-color .15s;
}
.suggest__item:hover, .suggest__item.is-active { background: var(--surface-2); }
.suggest__item img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.suggest__txt { display: grid; min-width: 0; line-height: 1.3; }
.suggest__txt strong { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__txt mark { background: none; color: var(--primary); font-weight: 700; }
.suggest__txt small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); white-space: nowrap; }
.suggest__tag--outbound { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-600); }
[data-theme="dark"] .suggest__tag--outbound { color: var(--accent); }
.suggest__txt em { font-style: normal; color: var(--primary); }
.suggest__empty { padding: 14px; font-size: 14px; color: var(--muted); }
/* Öneri listesi açıkken sabit WhatsApp butonu listenin üstüne binmesin. */
.suggest-open .wa-float { opacity: 0; pointer-events: none; }
.modal__dialog:focus { outline: none; }
.nowrap { white-space: nowrap; }

/* ---------- spotlight drawer ---------- */
.modal--spot { place-items: stretch end; padding: 0; }
.modal--spot .modal__dialog {
  width: min(760px, 100%); height: 100%; max-height: none; padding: 0; display: flex; flex-direction: column;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg); transform: translateX(48px);
}
.modal--spot .modal__close { z-index: 3; background: rgba(255, 255, 255, .9); color: #0B2E3F; box-shadow: var(--shadow-sm); }
.spot { display: flex; flex-direction: column; flex: 1; }

.spot__hero { position: relative; height: 380px; flex: none; overflow: hidden; border-radius: var(--radius-lg) 0 0 0; background: var(--soft); }
.spot__hero img { width: 100%; height: 100%; object-fit: cover; animation: spotZoom 1.4s var(--ease) both; }
/* Açık renkli fotoğraflarda da yazı okunsun: daha güçlü karartma + hafif gölge. */
.spot__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 46, 63, .15) 0%, rgba(11, 46, 63, .35) 40%, rgba(11, 46, 63, .9) 100%); }
.spot__heading { position: absolute; left: 32px; right: 32px; bottom: 64px; z-index: 1; color: #fff; display: grid; justify-items: start; gap: 6px; text-shadow: 0 1px 12px rgba(11, 46, 63, .45); }
.spot__heading h3 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
.spot__sub { font-size: 15px; }
.spot__tagline { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; max-width: 34ch; }
.spot__mode { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(14, 124, 134, .92); color: #fff; text-shadow: none; }
.spot__mode .ic { width: 14px; height: 14px; }
.spot__mode--outbound { background: rgba(200, 80, 47, .92); }

.spot__stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: -40px 24px 0; }
.spot-stat { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.spot-stat .ic { width: 20px; height: 20px; color: var(--primary); margin-bottom: 4px; }
.spot-stat__now { font-size: 12px; font-weight: 600; color: var(--accent-600); }
[data-theme="dark"] .spot-stat__now { color: var(--accent); }
.spot-stat small { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spot-stat strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.spot-stat strong small { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; }

.spot__desc { margin: 22px 32px 0; font-size: 16px; color: var(--muted); }

.spot__section { padding: 30px 32px 0; }
.spot__section h4 { font-size: 1.45rem; margin-bottom: 16px; }
.spot-hls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* Kartlar dolgusuz, ince çerçeveli: daha çok beyaz alan. */
.spot-hls li { padding: 18px; border-radius: 18px; border: 1px solid var(--border); display: grid; gap: 6px; align-content: start; }
.spot-hl__ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 4px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.spot-hl__ic .ic { width: 22px; height: 22px; }
.spot-hls strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.spot-hls p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.spot-stories { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.spot-story { position: relative; height: 150px; border-radius: 16px; overflow: hidden; text-align: left; color: #fff; background: var(--soft); }
.spot-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.spot-story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(11, 46, 63, .9)); }
.spot-story:hover img { transform: scale(1.05); }
.spot-story span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; line-height: 1.25; }
.spot-story small { font-family: var(--font-head); font-style: italic; font-size: 13px; }
.spot-story strong { font-size: 14.5px; font-weight: 600; }

.spot-rows { display: grid; gap: 10px; }
.spot-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px;
  border-radius: 16px; text-align: left; background: var(--surface-2); transition: background-color .2s, transform .3s var(--ease);
}
.spot-row:hover { background: var(--soft); transform: translateX(3px); }
.spot-row img { width: 72px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.spot-row strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.spot-row small { color: var(--muted); font-size: 13px; }
.spot-row > .ic { color: var(--primary); }

.spot__plain { padding: 48px 32px 0; display: grid; justify-items: start; gap: 12px; }
.spot__plain h3 { font-size: clamp(1.7rem, 4vw, 2.2rem); padding-right: 40px; }
.spot__query { font-size: 14px; color: var(--muted); margin-top: -4px; }

.spot__foot {
  position: sticky; bottom: 0; z-index: 2; margin-top: auto; padding: 16px 32px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
}
.spot__section:last-of-type { padding-bottom: 32px; }
.spot__foot .price, .spot__foot-txt { flex: 1; min-width: 140px; }
.spot__foot-txt { font-size: 14px; color: var(--muted); }
.spot__foot .heart { position: static; box-shadow: none; border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text); }
.spot__foot .btn--ghost .ic { width: 16px; height: 16px; }
.spot__wa { width: 44px; height: 44px; background: #25D366; color: #fff; }
.spot__wa:hover { background: #1fb457; color: #fff; }

@keyframes spotZoom { from { transform: scale(1.06); } to { transform: none; } }

@media (max-width: 720px) {
  .modal--spot .modal__dialog { border-radius: 0; transform: translateY(24px); }
  .spot__hero { height: 300px; border-radius: 0; }
  .spot__heading { left: 20px; right: 20px; bottom: 56px; }
  .spot__stats { grid-template-columns: 1fr 1fr; margin: -36px 16px 0; }
  .spot__desc { margin-left: 20px; margin-right: 20px; }
  .spot__section { padding: 26px 20px 0; }
  .spot-hls { grid-template-columns: 1fr; }
  .spot__plain { padding: 40px 20px 0; }
  .spot__foot { padding: 12px 16px; gap: 8px; flex-wrap: nowrap; }
  .spot__foot .price, .spot__foot-txt { min-width: 0; }
  .spot__foot-txt { font-size: 12.5px; }
  .spot__foot .btn--accent { padding: 12px 18px; }
  /* Telefonda ikincil eylem kaybolmasın: sadece ikon olarak kalır. */
  .spot__alt { width: 44px; height: 44px; padding: 0; }
  .spot__alt span { display: none; }
  /* Etiket yerine küçük renkli nokta (Azerbaycan / Yurt dışı). */
  .suggest__item { grid-template-columns: 44px minmax(0, 1fr) 10px; }
  .suggest__tag { width: 8px; height: 8px; padding: 0; font-size: 0; background: var(--primary); }
  .suggest__tag--outbound { background: var(--accent); }
}
