/* TrendLis — Paylaşımlı bileşenler (birden çok sayfada kullanılır). */

/* ---------- Görsel / yer tutucu ---------- */
.ph { position: relative; overflow: hidden; border-radius: var(--r-md); background-size: cover; background-position: center; }
.ph--warm { background: linear-gradient(140deg, var(--t-warm-a), var(--t-warm-b)); }
.ph--mint { background: linear-gradient(140deg, var(--t-mint-a), var(--t-mint-b)); }
.ph--coral { background: linear-gradient(140deg, var(--t-coral-a), var(--t-coral-b)); }
.ph--sand { background: linear-gradient(140deg, var(--t-sand-a), var(--t-sand-b)); }
.ph--sea { background: linear-gradient(140deg, var(--t-sea-a), var(--t-sea-b)); }
.ph--rose { background: linear-gradient(140deg, var(--t-rose-a), var(--t-rose-b)); }
.ph--ink { background: linear-gradient(140deg, var(--t-ink-a), var(--t-ink-b)); }
/* Fotoğraf yokken: yumuşak doku + tabak ikonu */
.ph__stripes {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.55) 0 18%, transparent 19%),
    radial-gradient(circle at 18% 88%, rgba(255,255,255,.25) 0 26%, transparent 27%);
}
.ph__label {
  position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(16,24,40,.55); padding: 3px 8px; border-radius: var(--r-sm); text-transform: capitalize;
}
.ph__img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stars ---------- */
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars svg { width: 12px; height: 12px; }
.stars .num { font-weight: 700; color: var(--ink); margin-left: 4px; font-size: 12px; }

/* ---------- Avatar ---------- */
.avatar {
  position: relative; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: var(--font-ui); overflow: hidden;
}
.avatar--warm { background: linear-gradient(140deg, var(--t-warm-b), #c96a30); }
.avatar--mint { background: linear-gradient(140deg, var(--t-mint-b), #1d8a4f); }
.avatar--coral { background: linear-gradient(140deg, var(--t-coral-b), #b8403a); }
.avatar--sand { background: linear-gradient(140deg, var(--t-sand-b), #9c7424); }
.avatar--sea { background: linear-gradient(140deg, var(--t-sea-b), #2a5fb0); }
.avatar--rose { background: linear-gradient(140deg, var(--t-rose-b), #a23d6c); }
.avatar--ink { background: linear-gradient(140deg, var(--t-ink-b), #3337a8); }
.avatar--ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.avatar__online { position: absolute; bottom: 2px; right: 2px; width: 22%; height: 22%; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }

/* ---------- Chip / sekme hapı ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: #fff; color: var(--ink-soft); border: 1px solid var(--border-3);
}
a.chip:hover, button.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip--active { border-color: var(--ink); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--ink); }
.chip--accent { background: var(--brand-50); color: var(--brand-700); border-color: #bfe8cb; }
.chip--teal { background: var(--blue-50); color: var(--blue); border-color: #cfdaf7; }
.chip .c { font-size: 11px; color: var(--muted); font-weight: 600; }
button.chip { cursor: pointer; }

/* Yatay kaydırma şeridi */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }

/* ---------- Bölüm başlığı ---------- */
.section { margin-top: 40px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section__title { font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--ink); letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.section__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.see-all {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 6px 12px; border: 1px solid var(--border-3); border-radius: var(--r-sm); background: #fff;
  color: var(--ink); font-size: 12px; font-weight: 700;
}
.see-all:hover { border-color: var(--ink); }
.see-all svg { display: none; }

/* ---------- Restoran kartı ---------- */
.r-card {
  display: flex; flex-direction: column; width: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; text-align: left; transition: box-shadow .15s;
}
.r-card:hover { box-shadow: var(--shadow-md); }
.r-card__media { position: relative; }
.r-card__media .ph { border-radius: 0; height: 150px; }
.r-card__media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(transparent, rgba(16,24,40,.45)); pointer-events: none; }
.r-card__place { position: absolute; left: 10px; bottom: 8px; z-index: 1; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.r-card__badge {
  position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 3px;
  background: var(--brand); color: #fff; padding: 3px 8px; border-radius: var(--r-sm); font-size: 11px; font-weight: 800;
}
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 0; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.fav-btn.is-fav svg { fill: var(--danger); stroke: var(--danger); }
.r-card .ph__label { display: none; }
.r-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.r-card__name { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.r-card__meta { font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.r-card__foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--border); }
.r-card__meta + .r-card__foot { margin-top: 10px; }
.r-card__foot .price { color: var(--ink); font-weight: 800; }
.r-card__foot .count { margin-left: auto; color: var(--muted); }

/* ---------- Restoran satırı ---------- */
.r-row {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px;
  transition: box-shadow .15s;
}
.r-row:hover { box-shadow: var(--shadow-sm); }
.r-row__media { width: 82px; min-width: 82px; }
.r-row__media .ph { height: 82px; border-radius: var(--r-sm); }
.r-row__body { flex: 1; min-width: 0; }
.r-row__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.r-row__name { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-row__meta { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.r-row__foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.r-row__foot .price { margin-left: auto; font-size: 12px; color: var(--ink); font-weight: 800; }

/* ---------- Şehir / ilçe kartı (fotoğraflı, altta etiket) ---------- */
.place-card {
  position: relative; display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  transition: box-shadow .15s;
}
.place-card:hover { box-shadow: var(--shadow-md); }
.place-card .ph { height: 130px; border-radius: 0; }
.place-card .ph__label { display: none; }
.place-card__body { padding: 10px 12px; }
.place-card__name { font-size: 14px; font-weight: 800; color: var(--ink); }
.place-card__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Story (yuvarlak ilçe/fenomen) */
.story { display: flex; flex-direction: column; align-items: center; width: 84px; flex-shrink: 0; text-align: center; }
.story__ring { padding: 2px; border-radius: 50%; background: var(--brand); }
.story__ring > span { display: block; padding: 2px; background: #fff; border-radius: 50%; }
.story__name { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.story__sub { font-size: 11px; color: var(--muted); }

/* ---------- Rota kartı ---------- */
.route-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .15s; }
.route-card:hover { box-shadow: var(--shadow-md); }
.route-card__map { position: relative; height: 150px; background: var(--ink); }
.route-card__author { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 700; }
.route-card__pill { position: absolute; top: 10px; right: 10px; background: var(--brand); color: #fff; padding: 3px 8px; border-radius: var(--r-sm); font-size: 11px; font-weight: 800; }
.route-card__body { padding: 12px 14px 14px; }
.route-card__title { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.route-card__desc { font-size: 12px; color: var(--text-soft); margin-top: 4px; line-height: 1.45; }
.route-card__foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; gap: 12px; font-size: 12px; color: var(--muted); align-items: center; }
.route-card__foot .go { margin-left: auto; color: var(--brand-600); font-weight: 800; display: inline-flex; align-items: center; gap: 2px; }

/* Öne çıkan rota (geniş kart) */
.featured { display: block; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; text-align: left; color: var(--ink); }
.featured__map { position: relative; height: 170px; background: var(--ink); }
.featured__body { padding: 18px; }
.featured__title { font-size: 20px; font-weight: 800; color: var(--ink); }
.featured__desc { font-size: 13px; color: var(--text-soft); margin-top: 6px; line-height: 1.5; }
.featured__meta { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.featured__meta .m { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-soft); }
.featured__meta .go { margin-left: auto; color: var(--brand-600); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 3px; }

/* ---------- Yorum kartı ---------- */
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; }
.review__head { display: flex; align-items: center; gap: 10px; }
.review__user { font-size: 13px; font-weight: 800; color: var(--ink); }
.review__badge { font-size: 10px; background: var(--brand-50); color: var(--brand-700); padding: 2px 6px; border-radius: 4px; font-weight: 800; }
.review__date { font-size: 11px; color: var(--muted); }
.review__text { margin-top: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.review__foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; gap: 12px; align-items: center; }
.review__action { background: transparent; border: 0; font-size: 12px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.review__action.is-on { color: var(--brand-600); }

/* Puan özeti */
.rating-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; display: flex; gap: 16px; align-items: center; }
.rating-summary__big { font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1; }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rating-bars .row { display: flex; align-items: center; gap: 6px; }
.rating-bars .row span { font-size: 11px; color: var(--muted); }
.rating-bars .track { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.rating-bars .fill { height: 100%; background: var(--brand); }

/* ---------- Izgaralar ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cards { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sohbet butonu ---------- */
.chat-fab {
  position: fixed; right: 16px; bottom: calc(var(--bottom-nav-h) + 16px); z-index: 44;
  width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff;
  border: 0; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
@media (min-width: 900px) { .chat-fab { bottom: 24px; } }
.chat-fab .dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; background: #fff; border-radius: 50%; border: 2px solid var(--brand); }

/* Boş durum */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: #fff; border: 1px dashed var(--border-3); border-radius: var(--r-md); }
.empty .serif { font-size: 17px; color: var(--ink); display: block; margin-bottom: 4px; }
.empty p { margin: 0; font-size: 13px; }

/* Sayfa başlığı (liste sayfaları) */
.explore-head { padding: 28px 0 4px; }
.explore-title { font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--ink); margin-top: 4px; letter-spacing: -.3px; }
.explore-title em, .place-hero__title em, .map-title em { font-style: normal; color: var(--brand-600); }
@media (min-width: 768px) { .explore-title { font-size: 30px; } }

/* Sayfa üst bandı: başlık bölümleri açık zemin üzerinde */
.page-band { background: var(--blue-50); border-bottom: 1px solid var(--border); }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin: 16px 0; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs span:last-child { color: var(--ink-soft); font-weight: 600; }

/* Kısa bilgi kutuları (ikon + başlık + açıklama) */
.info-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; transition: box-shadow .15s; }
a.info-card:hover { box-shadow: var(--shadow-md); }
.info-card__icon { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.info-card__icon--green { background: var(--brand-50); color: var(--brand-600); }
.info-card__icon--red { background: #fdecee; color: var(--danger); }
.info-card__title { font-size: 14px; font-weight: 800; color: var(--ink); }
.info-card__text { font-size: 12px; color: var(--text-soft); line-height: 1.45; }

/* Sayfa başlık alanları: tam genişlikte açık mavi bant (referanstaki bölüm zemini) */
.explore-head, .place-hero, .inf-hero {
  position: relative; background: var(--blue-50);
  box-shadow: 0 0 0 100vmax var(--blue-50); clip-path: inset(0 -100vmax);
  padding-top: 24px !important; padding-bottom: 24px !important; margin-bottom: 8px;
}
.crumbs { background: var(--blue-50); box-shadow: 0 0 0 100vmax var(--blue-50); clip-path: inset(0 -100vmax); margin: 0; padding: 16px 0 0; }
.crumbs + .place-hero, .crumbs + .explore-head, .crumbs + .inf-hero { padding-top: 12px !important; }

/* ---------- Video kutucuğu (öne çıkan özellik) ---------- */
.video-tile { display: flex; flex-direction: column; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; overflow: hidden; text-align: left; cursor: pointer; transition: box-shadow .15s; font: inherit; color: inherit; }
.video-tile:hover { box-shadow: var(--shadow-md); }
.video-tile:focus-visible { outline: 3px solid rgba(34,178,76,.4); outline-offset: 2px; }
.video-tile__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); }
.video-tile__media img, .video-tile__media .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.video-tile__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s; }
.video-tile__play svg { margin-left: 3px; }
.video-tile:hover .video-tile__play { transform: translate(-50%, -50%) scale(1.08); }
.video-tile__platform { position: absolute; left: 8px; top: 8px; background: rgba(16,24,40,.72); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: var(--r-sm); }
.video-tile__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.video-tile__title { font-size: 13px; font-weight: 800; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-tile__by { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); font-weight: 600; }
.video-tile--lg .video-tile__play { width: 72px; height: 72px; }
.video-tile--lg .video-tile__title { font-size: 16px; }
.video-tile--sm .video-tile__play { width: 40px; height: 40px; }

/* Kartlarda video rozeti */
.r-card__video { position: absolute; top: 8px; left: 58px; z-index: 1; display: inline-flex; align-items: center; gap: 3px; background: rgba(16,24,40,.78); color: #fff; padding: 3px 8px; border-radius: var(--r-sm); font-size: 11px; font-weight: 800; }

/* ---------- Video popup ---------- */
.vmodal { position: fixed; inset: 0; z-index: 80; background: rgba(10,14,20,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.vmodal[hidden] { display: none; }
.vmodal__box { width: min(960px, 100%); }
.vmodal__head { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 10px; }
.vmodal__title { flex: 1; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmodal__close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; line-height: 1; }
.vmodal__close:hover { background: rgba(255,255,255,.28); }
.vmodal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-md); overflow: hidden; }
.vmodal__frame iframe, .vmodal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal.is-vertical .vmodal__box { width: min(420px, 100%); }
.vmodal.is-vertical .vmodal__frame { aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; }

/* ---------- Sayfalama ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; }
.pager__link, .pager__page {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 12px; border: 1px solid var(--border-3); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 700;
}
.pager__link:hover, .pager__page:hover { border-color: var(--brand); color: var(--brand-600); }
.pager__page.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__link.is-disabled { color: var(--muted-2); border-color: var(--border); pointer-events: none; }
.pager__pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pager__gap { padding: 0 4px; color: var(--muted); align-self: center; }
@media (max-width: 520px) { .pager__pages { display: none; } }

/* Link bulutu: ilçe/mekan iç linkleri (ilçe, restoran, site haritası) */
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a { padding: 7px 14px; border: 1px solid var(--border-3); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.link-cloud a:hover { border-color: var(--brand); color: var(--brand-600); }
.link-cloud a.is-active { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand); }
