/* TrendLis — Restoran detay (yalnızca mekan sayfasında). */

.rd__hero { position: relative; height: 300px; }
.rd__hero-img { height: 300px; border-radius: 0; }
.rd__back { position: absolute; top: 16px; left: 16px; background: rgba(253,252,249,.9); backdrop-filter: blur(8px); }
.rd__count {
  position: absolute; bottom: 16px; right: 16px; background: rgba(26,22,37,.7); color: var(--canvas);
  padding: 5px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600;
}
@media (min-width: 768px) { .rd__hero, .rd__hero-img { height: 420px; } }

.rd__sheet {
  position: relative; margin-top: -20px; background: var(--canvas);
  border-top-left-radius: 24px; border-top-right-radius: 24px; padding-top: 18px;
}
.rd__sheet::before { content: ''; display: block; width: 40px; height: 4px; background: var(--border-3); border-radius: 4px; margin: 0 auto 18px; }

.rd__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rd__name { font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--ink); margin: 4px 0 0; }
.rd__rating { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.rd__open { display: inline-flex; align-items: center; gap: 4px; background: var(--success-bg); color: var(--success); padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.rd__open-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rd__open.is-closed { background: #fef2f2; color: var(--danger); }

.rd__tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

.rd__actions { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rd__action {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 8px;
  font-size: 11px; font-weight: 600; color: var(--ink);
}
.rd__action svg { color: var(--indigo-600); }
.rd__action.is-fav svg { fill: var(--indigo-600); }

.rd__info { margin-top: 20px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 12px; }
.rd__info-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.rd__info-row > svg { flex-shrink: 0; }

/* Öneren fenomenler */
.rd__inf { margin-top: 16px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 10px; }
.rd__inf-title { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.rd__inf-row { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.rd__inf-row:hover strong { text-decoration: underline; }
.rd__inf-text { display: flex; flex-direction: column; min-width: 0; }
.rd__inf-text strong { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd__inf-source { font-size: 12px; font-weight: 700; color: var(--indigo); margin: -4px 0 2px 50px; }
.rd__inf-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rd__tabs { margin-top: 24px; border-bottom: 1px solid var(--border); display: flex; position: sticky; top: var(--header-h); background: var(--canvas); z-index: 5; overflow-x: auto; scrollbar-width: none; }
.rd__tabs::-webkit-scrollbar { display: none; }
.rd__tab { background: transparent; border: 0; padding: 14px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.rd__tab.is-active { color: var(--ink); border-bottom-color: var(--indigo); }

.rd__panel { padding: 20px 0 100px; }

/* Menü */
.menu-sec { margin-bottom: 22px; }
.menu-sec__title { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.menu-item { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--border-2); }
.menu-item:last-child { border-bottom: 0; }
.menu-item__name { font-size: 14px; font-weight: 500; color: var(--ink); }
.menu-item__tag { margin-left: 8px; font-size: 9px; font-family: var(--font-mono); background: var(--surface); color: var(--indigo-600); padding: 2px 5px; border-radius: 3px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.menu-item__dots { flex: 1; border-bottom: 1px dotted var(--muted-2); transform: translateY(-3px); min-width: 16px; }
.menu-item__price { font-size: 14px; font-weight: 600; color: var(--ink); }

/* S&C */
.qna { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; margin-bottom: 14px; }
.qna__q, .qna__a { display: flex; gap: 8px; font-size: 13px; color: var(--ink); }
.qna__a { margin-top: 8px; color: var(--ink-soft); }
.qna__mark { font-family: var(--font-display); font-size: 22px; line-height: .8; flex-shrink: 0; }

/* Videolar */
.video-tile { position: relative; border-radius: var(--r-md); overflow: hidden; display: block; }
.video-tile__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* Sticky rezervasyon barı */
.rd__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: rgba(253,252,249,.95); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.rd__bar-inner { display: flex; gap: 10px; align-items: center; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .rd__bar { display: none; } }

/* Desktop: iki kolon hissi */
@media (min-width: 900px) {
  .rd__sheet { max-width: 760px; }
  .rd__panel { padding-bottom: 40px; }
}

/* Rotaya ekle menüsü */
.rd__addroute { position: relative; }
.rd__addroute > summary { list-style: none; cursor: pointer; }
.rd__addroute > summary::-webkit-details-marker { display: none; }
.rd__addroute-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 6px; display: grid; }
.rd__addroute-menu form { margin: 0; }
.rd__addroute-menu button, .rd__addroute-menu a { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.rd__addroute-menu button:hover, .rd__addroute-menu a:hover { background: var(--surface); }
.rd__addroute-menu a { color: var(--indigo-600); font-weight: 600; }

/* Yorum / soru formları */
.rd-form { margin-top: 14px; }
.rd-form > summary { list-style: none; display: inline-flex; cursor: pointer; }
.rd-form > summary::-webkit-details-marker { display: none; }
.rd-form .auth-form { margin-top: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.rd-form--inline .auth-form { margin-top: 18px; }
.rd-form__note { margin-top: 12px; font-size: 13px; color: var(--text-soft); }
.rd-form__note a { color: var(--indigo-600); font-weight: 600; }
.rd-subratings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .rd-subratings { grid-template-columns: repeat(4, 1fr); } }
.rd-stars { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rd-stars legend { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; width: 100%; }
.rd-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rd-stars label { font-size: 28px; line-height: 1; color: var(--border-3); cursor: pointer; transition: color .1s; }
.rd-stars input:checked ~ label, .rd-stars label:hover, .rd-stars label:hover ~ label { color: #f59e0b; }
.rd-stars input:focus-visible + label { outline: 2px solid var(--indigo); border-radius: 4px; }

/* ---------- Düzen: mobilde tek akış, masaüstünde içerik + yan kart ---------- */
.rd__layout { display: flex; flex-direction: column; }
.rd__main { display: contents; }
.rd__title { order: 1; } .rd__tags { order: 2; } .rd__videos { order: 3; } .rd__side { order: 4; }
.rd__tabs { order: 5; } .rd__panel { order: 6; }
@media (min-width: 1024px) {
  .rd__hero { max-width: var(--maxw); margin: 16px auto 0; padding: 0 16px; }
  .rd__hero-img { border-radius: var(--r-md); height: 400px; }
  .rd__back { left: 32px; }
  .rd__count { right: 32px; }
  .rd__sheet { max-width: var(--maxw) !important; margin-top: 0; border-radius: 0; padding-top: 24px; }
  .rd__sheet::before { display: none; }
  .rd__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .rd__main { display: block; }
  .rd__side { position: sticky; top: calc(var(--header-h) + 16px); }
  .rd__side .rd__actions { margin-top: 0; }
  .rd__tabs { top: var(--header-h); }
  .rd__panel { padding-bottom: 32px; }
}
.rd__tab.is-active { color: var(--brand-600); border-bottom-color: var(--brand); }
.rd__action { font-size: 12px; font-weight: 700; border-radius: var(--r-md); }
.rd__action:hover { border-color: var(--brand); }
.menu-sec__title { font-size: 16px !important; font-weight: 800; }
.menu-item__tag { font-family: var(--font-ui); background: var(--brand-50); color: var(--brand-700); font-weight: 800; }
.rd__reserve { display: none; margin-top: 10px; padding: 13px; }
@media (min-width: 768px) { .rd__reserve { display: flex; } }
.menu-item__link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-3); text-underline-offset: 3px; }
.menu-item__link:hover { color: var(--brand-600); text-decoration-color: var(--brand); }
.menu-item__desc { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ---------- Videolar (öne çıkan özellik) ---------- */
.rd__videos { margin-top: 20px; padding: 16px; background: var(--blue-50); border: 1px solid var(--border); border-radius: var(--r-md); }
.rd__videos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rd__videos-icon { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; align-items: center; justify-content: center; }
.rd__videos-grid { display: grid; gap: 12px; }
.rd__videos-rest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; }
@media (min-width: 768px) {
  .rd__videos-grid:not(.is-single) { grid-template-columns: 3fr 2fr; }
  .rd__videos-rest { grid-template-columns: 1fr; }
  .rd__videos-rest .video-tile { flex-direction: row; }
  .rd__videos-rest .video-tile__media { width: 45%; flex-shrink: 0; }
}
.rd__hero-video { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 0; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; box-shadow: var(--shadow-md); cursor: pointer; }
.rd__hero-video-play { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.rd__hero-video-count { color: var(--muted); font-weight: 700; }
@media (min-width: 1024px) { .rd__hero-video { left: 32px; bottom: 20px; } }

/* ---------- Yan kolonda kısa yorumlar ---------- */
.rd__rv { margin-top: 16px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); scroll-margin-top: calc(var(--header-h) + 12px); }
.rd__rv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rd__rv-title { font-size: 15px; font-weight: 800; }
.rd__rv-score { font-size: 14px; font-weight: 800; color: var(--ink); }
.rd__rv-score .muted { font-weight: 600; font-size: 12px; }
.rd__rv-item { padding: 10px 0; border-top: 1px dashed var(--border); }
.rd__rv-user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rd__rv-user strong { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd__rv-stars { margin-left: auto; color: var(--amber); font-size: 12px; letter-spacing: 1px; flex-shrink: 0; }
.rd__rv-text { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd__rv-empty { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.rd__rv-actions { display: flex; gap: 8px; margin-top: 10px; }
.rd__rv-actions .btn { flex: 1; }
/* Yapışkan yan kolon ekrandan uzunsa kendi içinde kaysın */
@media (min-width: 1024px) {
  .rd__side { max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 4px; }
}

/* ---------- Tüm yorumlar popup'ı ---------- */
.rv-modal { width: min(720px, calc(100% - 24px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); color: var(--ink); overflow: hidden; }
.rv-modal[open] { display: flex; flex-direction: column; }
.rv-modal::backdrop { background: rgba(10,14,20,.6); }
.rv-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.rv-modal__head h2 { font-size: 17px; font-weight: 800; }
.rv-modal__close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); font-size: 22px; line-height: 1; color: var(--ink); }
.rv-modal__close:hover { background: var(--surface-2); }
.rv-modal__body { padding: 16px 18px 20px; overflow-y: auto; }
.rv-modal__list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.rd__sheet .crumbs { background: none; box-shadow: none; clip-path: none; margin: 0 0 4px; padding: 0; }
.rd__photo-credit { position: absolute; right: 16px; bottom: 40px; z-index: 2; margin: 0; font-size: 10px; color: rgba(255,255,255,.75); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.rd__photo-credit a { text-decoration: underline; }
.rd__source a { color: var(--brand-600); font-weight: 600; }
/* Mekân açıklaması */
.rd__about { order: 2; margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.rd__about p { margin: 0; }
.rd__about a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(34,178,76,.35); text-underline-offset: 3px; }
