/* Evet Kiralık — portal düzeni. Marka: koyu yeşil + turuncu. Beyaz zemin, ince çerçeve, düz köşeler. */
:root {
  --brand: #0e5a43;
  --brand-dark: #0a4433;
  --brand-tint: #e8f1ee;
  --accent: #f39200;
  --accent-dark: #d97f00;
  --text: #1f2a26;
  --text-2: #4b5753;
  --text-3: #7a8582;
  --line: #d7dddb;
  --line-2: #e6eae8;
  --bg: #ffffff;
  --bg-2: #f3f5f4;
  --link: #0e5a43;
  --red: #c0392b;
  --swap: #b45309;
  --lend: #1f5f8b;
  --r: 3px;
  --font: "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Üst bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--brand); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.logo-mark { width: 28px; height: 28px; border-radius: 4px; background: var(--accent); display: grid; place-items: center; }
.logo-mark svg { width: 17px; height: 17px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo b { color: var(--accent); font-weight: 800; }
.mainnav { display: flex; gap: 22px; font-size: 15px; }
.mainnav a { color: #e3eeea; padding: 6px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a.on { color: #fff; border-bottom-color: var(--accent); }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.top-nav a.lnk { font-size: 15px; color: #e3eeea; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.top-nav a.lnk:hover { color: #fff; }
.dot { position: absolute; top: -3px; right: -7px; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none; }
.top .avatar { background: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-danger { background: #fff; border-color: #e3b5ae; color: var(--red); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }

/* ---------- Ana sayfa arama bandı ---------- */
.hero { background: var(--brand-dark); color: #fff; padding: 44px 0 0; }
.hero h1 { font-size: 34px; text-align: center; }
.hero .lead { text-align: center; color: #cfe1da; margin: 8px auto 0; max-width: 60ch; font-size: 16px; }
.searchbox { background: var(--brand); margin: 30px auto 0; max-width: 1000px; padding: 22px 24px 20px; position: relative; top: 34px; }
.modes { display: flex; gap: 2px; margin-bottom: 16px; }
.mode { padding: 9px 16px; font-weight: 700; font-size: 15px; color: #fff; cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode:has(input:checked) { background: rgba(255, 255, 255, .16); }
.search-row { display: grid; grid-template-columns: 1fr 260px 120px; gap: 10px; }
.field-inline { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--text); padding: 0 14px; height: 46px; }
.field-inline input, .field-inline select { border: 0; outline: 0; background: none; width: 100%; font-size: 15px; appearance: none; }
.search-row .btn { height: 46px; border-radius: 0; }
.hero-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 54px auto 0; padding: 0 24px; }
.hero-link { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); padding: 18px 22px; color: var(--link); font-size: 15px; background: #fff; }
.hero-link:hover { border-color: var(--brand); }

/* ---------- Bölümler ---------- */
.section { padding: 40px 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2 { font-size: 26px; }
.section-head p { color: var(--text-3); margin-top: 4px; }
.link-more { font-weight: 600; color: var(--link); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.cat { display: flex; align-items: center; gap: 12px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cat:hover { background: var(--brand-tint); }
.cat-ico { color: var(--brand); flex: none; }
.cat strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--text); }
.cat span { font-size: 13px; color: var(--text-3); }

/* ---------- İlan kartları ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.card { position: relative; display: block; }
.card-img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.card-tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 2px; font-size: 12px; font-weight: 700; background: #fff; color: var(--text); }
.tag-kirala { background: var(--brand); color: #fff; }
.tag-takas { background: var(--accent); color: #fff; }
.tag-odunc { background: var(--lend); color: #fff; }
.fav { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--brand); }
.fav.on .ico { fill: var(--accent); stroke: var(--accent); }
.card-body { display: block; padding: 10px 0 0; }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--link); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { text-decoration: underline; }
.card-meta { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.card-price { margin-top: 6px; font-size: 16px; }
.card-price b { font-weight: 700; }
.card-price .alt { font-weight: 700; color: var(--swap); }

/* Liste görünümü (arama sonuçları) */
.rows { display: grid; }
.row-item { display: grid; grid-template-columns: 300px 1fr auto; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); position: relative; }
.row-item:first-child { border-top: 0; padding-top: 0; }
.row-item .card-img { aspect-ratio: 3 / 2; }
.row-item h3 { font-size: 19px; color: var(--link); line-height: 1.3; }
.row-item h3 a:hover { text-decoration: underline; }
.row-item .sub2 { color: var(--text-2); margin-top: 4px; }
.row-item .price { font-size: 18px; font-weight: 700; margin-top: 12px; }
.row-item .price .alt { color: var(--swap); }
.row-item .owner-l { color: var(--link); margin-top: 12px; display: inline-block; font-size: 14.5px; }
.row-item .fav { position: static; background: none; width: 32px; height: 32px; }

.empty { text-align: center; padding: 44px 20px; border: 1px solid var(--line); background: #fff; }
.empty h3 { font-size: 20px; margin: 10px 0 6px; }
.empty p { color: var(--text-2); max-width: 50ch; margin: 0 auto 18px; }
.empty .ico-lg { margin: 0 auto; color: var(--brand); }

/* Üç seçenek */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.way { border: 1px solid var(--line); background: #fff; padding: 24px; display: block; }
.way:hover { border-color: var(--brand); }
.way h3 { font-size: 18px; margin: 12px 0 6px; color: var(--link); }
.way p { color: var(--text-2); font-size: 14.5px; }
.way .ex { display: block; margin-top: 12px; font-size: 13.5px; color: var(--text-3); }
.way .badge-ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); border-radius: 2px; }
.way-swap .badge-ico { background: #fdf0dc; color: var(--swap); }
.way-lend .badge-ico { background: #e5eef5; color: var(--lend); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step b { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--text-2); font-size: 14.5px; }

.cta { background: var(--brand); color: #fff; padding: 30px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: 22px; }
.cta p { color: #cfe1da; margin-top: 4px; }

/* ---------- Footer ---------- */
.foot { margin-top: 48px; background: #13231e; color: #b9c6c1; padding: 40px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 10px; font-size: 14px; color: #fff; }
.foot a { display: block; padding: 3px 0; }
.foot a:hover { color: #fff; }
.foot-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid #2a3b35; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #8a9893; font-size: 13px; }

.tabbar, .mbar { display: none; }

/* ---------- Formlar ---------- */
.page { padding: 28px 0 40px; }
.page-title { font-size: 28px; margin-bottom: 4px; }
.panel { background: #fff; border: 1px solid var(--line); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 19px; margin-bottom: 4px; }
.panel .sub { color: var(--text-3); font-size: 14px; margin-bottom: 16px; }
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
label.lbl, .lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.lbl small { font-weight: 400; color: var(--text-3); }
.inp { min-width: 0; width: 100%; height: 46px; border: 1px solid #c4ccc9; border-radius: var(--r); background: #fff; padding: 0 12px; font-size: 15px; outline: 0; }
textarea.inp { height: auto; min-height: 130px; padding: 10px 12px; resize: vertical; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e5a43' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint); }
.inp-money { position: relative; }
.inp-money .inp { padding-right: 36px; }
.inp-money::after { content: "TL"; position: absolute; right: 12px; top: 13px; color: var(--text-3); font-size: 13px; }
.err { color: var(--red); font-size: 13px; margin-top: 5px; }
.hint { color: var(--text-3); font-size: 13px; margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; display: block; border: 1px solid #c4ccc9; border-radius: var(--r); padding: 14px; cursor: pointer; background: #fff; }
.choice input { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; accent-color: var(--brand); }
.choice strong { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.choice span { display: block; font-size: 13px; color: var(--text-3); margin-top: 4px; padding-right: 20px; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-tint); }
.reveal { display: none; }
.reveal.show { display: grid; }
.photos-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-2); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile label { position: absolute; inset: auto 6px 6px 6px; background: #fff; font-size: 12.5px; padding: 3px 6px; display: flex; gap: 5px; align-items: center; cursor: pointer; }
.drop { display: grid; place-items: center; text-align: center; gap: 4px; border: 1px dashed #aab5b1; padding: 24px; cursor: pointer; background: var(--bg-2); color: var(--text-2); }
.drop:hover { border-color: var(--brand); }
.drop input { display: none; }

.flash { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid; font-weight: 600; display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.flash-ok { background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand); }
.flash-err { background: #fbeceb; color: var(--red); border-color: var(--red); }

.auth { max-width: 440px; margin: 36px auto; }
.auth .panel { padding: 28px; }
.auth h1 { font-size: 24px; margin-bottom: 4px; }
.auth .alt { text-align: center; margin-top: 16px; color: var(--text-2); font-size: 14.5px; }
.auth .alt a { color: var(--link); font-weight: 700; }
.hp { position: absolute; left: -9999px; }

/* ---------- Arama ---------- */
.searchbar { background: var(--bg-2); padding: 12px 0; border-bottom: 1px solid var(--line); }
.searchbar form { display: grid; grid-template-columns: 1fr 240px 52px; }
.searchbar .inp { border-radius: 0; height: 50px; }
.searchbar .inp + .inp { border-left: 0; }
.searchbar button { border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search-layout { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; }
.filters { display: grid; gap: 20px; }
.filters .grp { display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid #c4ccc9; }
.seg label { text-align: center; padding: 10px 4px; font-size: 14px; cursor: pointer; color: var(--link); border-left: 1px solid #c4ccc9; }
.seg label:first-child { border-left: 0; }
.seg label:has(input:checked) { background: var(--brand-tint); font-weight: 700; }
.seg input { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--link); cursor: pointer; border-radius: var(--r); }
.chip.on { background: var(--brand-tint); border-color: var(--brand); font-weight: 700; }
.result-bar { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.result-bar h1 { font-size: 22px; }
.filter-toggle { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); padding: 0 12px; font-size: 14px; color: var(--link); }
.pager .cur { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- İlan detay ---------- */
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--link); }
.crumbs a:hover { text-decoration: underline; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 440px; }
.gallery a { position: relative; background: var(--bg-2); display: block; overflow: hidden; }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery.one { grid-template-columns: 1fr; }
.gallery .more { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; font-weight: 700; }
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 40px; margin-top: 26px; align-items: start; }
.detail h1 { font-size: 28px; margin: 10px 0 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-size: 14.5px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.block { padding: 24px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 19px; margin-bottom: 12px; }
.desc { white-space: pre-line; color: var(--text); }
.price-table { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.price-cell { padding: 14px 16px; border-left: 1px solid var(--line); }
.price-cell:first-child { border-left: 0; }
.price-cell span { font-size: 13px; color: var(--text-3); }
.price-cell b { display: block; font-size: 19px; }
.swap-box { border: 1px solid #f1d3a6; background: #fdf6eb; padding: 14px 16px; display: flex; gap: 12px; color: #6b3d06; }
.owner { display: flex; gap: 14px; align-items: center; }
.owner h3 { font-size: 17px; color: var(--link); }
.owner-stats { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.owner-stats span { display: inline-flex; gap: 6px; align-items: center; }

.cal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cal h4 { margin: 0 0 8px; font-size: 14.5px; text-transform: capitalize; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; text-align: center; }
.cal th { color: var(--text-3); font-weight: 600; padding-bottom: 6px; font-size: 12px; }
.cal td { border: 1px solid var(--line-2); padding: 0; }
.cal td:empty { border: 0; }
.cal td span { display: grid; place-items: center; height: 34px; }
.cal .busy span { background: #eceeed; color: #a3aba8; text-decoration: line-through; }
.cal .past span { color: #c3c9c7; }
.cal .today span { font-weight: 800; color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.cal .sel span { background: var(--brand); color: #fff; }
.legend { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.legend i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line); }

.book { position: sticky; top: 76px; border: 1px solid var(--line); padding: 22px; background: #fff; }
.book-price { font-size: 14.5px; color: var(--text-2); }
.book-price b { font-size: 26px; color: var(--text); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid #c4ccc9; margin: 16px 0; }
.tabs label { text-align: center; padding: 9px 4px; font-size: 14px; color: var(--link); cursor: pointer; border-left: 1px solid #c4ccc9; }
.tabs label:first-child { border-left: 0; }
.tabs label:has(input:checked) { background: var(--brand); color: #fff; font-weight: 700; }
.tabs input { display: none; }
.pane { display: none; gap: 12px; }
.pane.show { display: grid; }
.sum { background: var(--bg-2); padding: 12px 14px; font-size: 14px; display: grid; gap: 6px; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }
.note { font-size: 13px; color: var(--text-3); display: flex; gap: 8px; margin-top: 12px; }

/* ---------- Mesajlar ---------- */
.threads { display: grid; border-top: 1px solid var(--line); }
.thread-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.thread-row:hover { background: var(--bg-2); }
.thread-row img, .thread-row .ph { width: 72px; height: 54px; object-fit: cover; background: var(--bg-2); }
.thread-row.unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: 2px; }
.chat { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.chat-box { border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 60vh; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; background: var(--bg-2); }
.chat-msgs { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.msg { max-width: 75%; padding: 10px 14px; background: var(--bg-2); white-space: pre-line; font-size: 14.5px; border-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; }
.msg time { display: block; font-size: 11.5px; opacity: .7; margin-top: 4px; }
.msg.sys { align-self: center; background: none; color: var(--text-3); font-size: 13px; text-align: center; }
.chat-form { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; }
.chat-form textarea { flex: 1; min-height: 46px; height: 46px; resize: none; }
.booking-card { border: 1px solid var(--line); padding: 16px; display: grid; gap: 10px; background: #fff; }
.booking-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { display: inline-flex; height: 24px; align-items: center; padding: 0 8px; font-size: 12.5px; font-weight: 700; background: var(--bg-2); color: var(--text-2); border-radius: 2px; }
.status-bekliyor { background: #fdf0dc; color: var(--swap); }
.status-onaylandi { background: var(--brand-tint); color: var(--brand-dark); }
.status-tamamlandi { background: #e5eef5; color: var(--lend); }

/* ---------- Hesabım ---------- */
.acc-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.acc-tabs { display: flex; margin-bottom: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.acc-tabs .chip { border: 0; border-bottom: 3px solid transparent; border-radius: 0; height: 44px; background: none; font-weight: 600; }
.acc-tabs .chip.on { border-bottom-color: var(--accent); background: none; color: var(--text); }
.acc-tabs form { margin: 0; }
.list-rows { display: grid; }
.list-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row img, .list-row .ph { width: 96px; height: 72px; object-fit: cover; background: var(--bg-2); }
.list-row strong { color: var(--link); }
.list-row .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 22px; }
.kpi { padding: 16px 20px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi b { font-size: 26px; display: block; }
.kpi span { color: var(--text-3); font-size: 13.5px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 8px; }
.prose a { color: var(--link); font-weight: 600; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .book { position: static; }
  .chat { grid-template-columns: 1fr; }
  .mainnav { display: none; }
  .row-item { grid-template-columns: 240px 1fr auto; }
}
@media (max-width: 820px) {
  .top-nav .hide-m, .top-nav a.lnk.hide-m { display: none; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { display: none; border: 1px solid var(--line); padding: 16px; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .ways, .steps, .hero-links { grid-template-columns: 1fr; }
  .hero-links { gap: 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot { padding-bottom: 150px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .gallery { height: 280px; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery a:not(:first-child) { display: none; }
  .cal-wrap { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 1fr; gap: 12px; }
  .row-item > form { position: absolute; right: 8px; top: 30px; }
  .row-item:first-child > form { top: 8px; }
  .row-item .fav { background: #fff; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--text-3); padding: 4px 0; position: relative; }
  .tabbar a.on { color: var(--brand); }
  .tabbar .plus { width: 42px; height: 42px; border-radius: 4px; background: var(--accent); color: #fff; display: grid; place-items: center; }
  .tabbar .dot { top: 2px; right: calc(50% - 16px); }
  .mbar { display: flex; position: fixed; z-index: 39; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
  .mbar b { font-size: 18px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: 24px; }
  .hero .lead { font-size: 14.5px; }
  .searchbox { margin-top: 20px; padding: 14px; top: 0; }
  .hero-links { margin-top: 20px; padding: 0 16px; }
  .search-row { grid-template-columns: 1fr; }
  .mode { padding: 8px 10px; font-size: 14px; }
  .searchbar form { grid-template-columns: 1fr 52px; }
  .searchbar form select { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat { padding: 12px; gap: 10px; }
  .row2, .row3, .choice-grid, .kpis { grid-template-columns: 1fr; }
  .kpi { border-left: 0; border-top: 1px solid var(--line); }
  .kpi:first-child { border-top: 0; }
  .price-cell { padding: 10px; }
  .price-cell b { font-size: 16px; }
  .panel { padding: 16px; }
  .list-row { grid-template-columns: 72px 1fr; }
  .list-row img, .list-row .ph { width: 72px; height: 56px; }
  .list-row .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .thread-row { grid-template-columns: 60px 1fr; }
  .thread-row img, .thread-row .ph { width: 60px; height: 46px; }
  .thread-row > :last-child { display: none; }
  .msg { max-width: 88%; }
  .section { padding: 28px 0; }
  .section-head h2 { font-size: 21px; }
  .detail h1 { font-size: 23px; }
  .page-title { font-size: 23px; }
  .logo { font-size: 19px; }
  .card-title { font-size: 14px; }
}

/* ---------- Yönetim ---------- */
.adm-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; background: var(--bg-2); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl img { width: 64px; height: 48px; max-width: none; object-fit: cover; background: var(--bg-2); }
.tbl a.t { display: inline-block; min-width: 180px; }
.tbl .acts form { margin: 0; }
.tbl a.t { color: var(--link); font-weight: 600; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; }
.adm-search { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-search .inp { width: 260px; height: 38px; }
.tag-demo { background: #5f6b67; color: #fff; }
.demo-note { background: #f1f3f2; border: 1px solid var(--line); border-left: 4px solid #5f6b67; padding: 12px 16px; font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.credit { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.adm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.adm-side { position: sticky; top: 76px; border: 1px solid var(--line); background: #fff; padding: 8px 0; }
.adm-side-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 12px 16px 6px; }
.adm-side nav { display: grid; }
.adm-side a, .adm-side button { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14.5px; color: var(--text); border: 0; background: none; cursor: pointer; text-align: left; width: 100%; border-left: 3px solid transparent; }
.adm-side a:hover, .adm-side button:hover { background: var(--bg-2); }
.adm-side a.on { border-left-color: var(--accent); background: var(--brand-tint); font-weight: 700; color: var(--brand-dark); }
.adm-side .ico { color: var(--brand); }
.adm-h2 { font-size: 18px; margin: 30px 0 4px; }
.adm-sub { font-size: 13.5px; margin-bottom: 12px; }
.tbl th a { color: var(--link); }
.tbl .num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.seg-a { padding: 8px 14px; font-size: 14px; color: var(--link); border-left: 1px solid #c4ccc9; white-space: nowrap; }
.seg-a:first-child { border-left: 0; }
.seg-a.on { background: var(--brand); color: #fff; font-weight: 700; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat-tiles .kpi { border-left: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 16px; }
.stat-tiles .kpi span { display: block; font-size: 13px; color: var(--text-2); }
.stat-tiles .kpi b { font-size: 26px; display: block; margin: 2px 0; font-variant-numeric: tabular-nums; }
.stat-tiles .kpi small { font-size: 12.5px; color: var(--text-2); }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart { margin: 0; border: 1px solid var(--line); padding: 14px 16px 8px; background: #fff; }
.chart figcaption { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.chart figcaption b { color: var(--text); font-size: 16px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .val { fill: var(--brand); }
.chart .hit { fill: transparent; }
.chart .bar:hover .val { fill: var(--brand-dark); }
.chart .bar:hover .hit { fill: var(--bg-2); }
.chart .axis { stroke: #b9c2bf; stroke-width: 1; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .lbl { font-size: 11px; fill: var(--text-3); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.rank { display: grid; border-top: 1px solid var(--line); }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 48px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.rank-row:hover .rank-t { text-decoration: underline; }
.rank-t { color: var(--link); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar, .cell-bar { display: block; height: 8px; background: var(--bg-2); position: relative; }
.rank-bar i, .cell-bar i { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 0 2px 2px 0; }
.rank-row b { text-align: right; font-variant-numeric: tabular-nums; }
.cell-bar { height: auto; background: none; display: grid; grid-template-columns: 1fr 56px; gap: 8px; align-items: center; min-width: 140px; }
.cell-bar i { position: static; height: 8px; display: block; }
.cell-bar b { text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }

/* Üst bar kullanıcı menüsü */
.umenu { position: relative; }
.umenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.umenu summary::-webkit-details-marker { display: none; }
.umenu summary .chev { width: 14px; height: 14px; color: #e3eeea; transform: rotate(90deg); }
.umenu-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 6px 0; z-index: 50; }
.umenu-pop .who { padding: 10px 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; font-size: 13.5px; color: var(--text-3); }
.umenu-pop .who b { display: block; color: var(--text); font-size: 14.5px; }
.umenu-pop a, .umenu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 16px; font-size: 14.5px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); }
.umenu-pop a:hover, .umenu-pop button:hover { background: var(--bg-2); }
.umenu-pop .ico { color: var(--brand); }
.umenu-pop hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }
.umenu-pop .badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }

@media (max-width: 1080px) {
  .charts, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; gap: 16px; }
  .adm-side { position: static; display: flex; overflow-x: auto; padding: 0; }
  .adm-side-title { display: none; }
  .adm-side nav { display: flex; }
  .adm-side nav + .adm-side-title + nav { border-left: 1px solid var(--line); }
  .adm-side a, .adm-side button { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 12px 14px; }
  .adm-side a.on { border-bottom-color: var(--accent); }
}
