/* Ekranlar: sayfa başlıkları, ilan detayı, harita sayfası, veterinerler, profil (misafir), 404 */

.page-head { padding-top: 28px; padding-bottom: 4px; }
.screen-title { font-size: 28px; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
.screen-sub { color: var(--text-2-ink); font-size: var(--fs-sub); margin-top: 4px; }
@media (min-width: 768px) { .screen-title { font-size: 34px; } .page-head { padding-top: 36px; } }
.feed-more { text-align: center; padding: 22px 0 10px; }
.feed-more .btn { min-width: 220px; }
.feed-end { text-align: center; color: var(--text-2-ink); font-size: var(--fs-foot); padding: 20px 0 10px; }
.crumbs { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; flex-wrap: wrap; padding: 18px 0 14px; font-size: var(--fs-foot); font-weight: 700; color: var(--text-2-ink); }
.crumbs a { color: var(--brand-ink); text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { text-decoration: underline; } }
.crumbs .ic { margin: 0 6px; font-size: 12px; stroke-width: 3; }
.crumbs .cur { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--r-box); box-shadow: 0 4px 10px rgba(0,0,0,.07); padding: 18px; margin-top: 16px; }
:root[data-theme="dark"] .card { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card { box-shadow: none; } }
@media (min-width: 768px) { .card { padding: 22px; } }
.card h2 { font-size: var(--fs-headline); font-weight: 800; margin-bottom: 8px; }

/* ---- Detay ---- */
.detail { padding-bottom: 8px; }
.detail__gal, .detail__side, .detail__desc, .detail__map { min-width: 0; }
.detail__gal .card:first-child, .detail__side.card { margin-top: 0; }
.gallery { position: relative; border-radius: var(--r-box); overflow: hidden; background: linear-gradient(180deg, var(--night-top), var(--night-bottom)); color: #fff; -webkit-transform: translateZ(0); }
.gallery__main { position: relative; height: 0; padding-top: 75%; }
.gallery__track { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: -webkit-box; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; -webkit-scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; padding: 0; border: 0; background: transparent; color: inherit; cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__empty { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; pointer-events: none; line-height: 0; }
.gallery__dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); margin: 0 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.gallery__dots i.on { background: #fff; }
.gallery__nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 22px; background: rgba(0,0,0,.5); color: #fff; font-size: 20px; display: none; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; }
.gallery__nav.prev { left: 12px; } .gallery__nav.next { right: 12px; }
@media (hover: hover) and (min-width: 700px) { .gallery__nav { display: -webkit-box; display: flex; } .gallery__dots { display: none; } }
.gallery__nav[disabled] { opacity: .3; }
.gallery__tags { position: absolute; left: 12px; top: 12px; z-index: 2; display: -webkit-box; display: flex; pointer-events: none; }
.thumbs { display: none; margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 3px 3px 6px; margin-left: -3px; margin-right: -3px; }
@media (min-width: 560px) { .thumbs { display: -webkit-box; display: flex; } }
.thumb { flex: none; width: 84px; height: 64px; margin-right: 8px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .75; background: var(--field-bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb[aria-current="true"] { border-color: var(--brand); opacity: 1; }
@media (hover: hover) { .thumb:hover { opacity: 1; } }

.detail__side h1 { font-size: 26px; font-weight: 900; line-height: 1.18; word-break: break-word; margin-top: 10px; letter-spacing: -.01em; }
@media (min-width: 900px) { .detail__side h1 { font-size: 30px; } }
.detail__animal { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; margin-top: 8px; color: var(--text-2-ink); font-weight: 700; font-size: var(--fs-sub); }
.detail__animal .ic { margin-right: 6px; color: var(--chip-color, var(--brand)); fill: currentColor; stroke: none; }
.detail__animal[data-type="lost"] { --chip-color: var(--lost); } .detail__animal[data-type="found"] { --chip-color: var(--found); }
.detail__animal[data-type="adoption"] { --chip-color: var(--adoption); } .detail__animal[data-type="seen"] { --chip-color: var(--seen); }
.detail__side .banner { margin: 14px 0 0; }
.dsec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.dsec > h2 { margin-bottom: 6px; }
.desc { white-space: pre-line; word-break: break-word; line-height: 1.55; opacity: .92; }
.info-row { display: -webkit-box; display: flex; -webkit-box-align: start; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.info-row:last-child { border-bottom: 0; }
.info-row > .ic { color: var(--brand); font-size: 18px; margin-right: 12px; margin-top: 2px; }
.info-row .k { font-size: var(--fs-cap); color: var(--text-2-ink); font-weight: 700; }
.info-row .v { font-weight: 700; word-break: break-word; }
.contactlist .btn { margin-top: 8px; }
.contactlist .btn:first-child { margin-top: 12px; }
.detail__acts { display: -webkit-box; display: flex; margin-top: 12px; }
.detail__acts > * { -webkit-box-flex: 1; flex: 1 1 0; min-width: 0; }
.detail__acts > * + * { margin-left: 8px; }
.detail__acts .btn { padding-left: 10px; padding-right: 10px; }
.favbtn.txt { white-space: nowrap; width: auto; height: auto; min-height: 40px; padding: 8px 10px; border-radius: 14px; background: var(--field-bg); color: var(--text); font-weight: 800; font-size: var(--fs-sub); -webkit-backdrop-filter: none; backdrop-filter: none;
  display: -webkit-inline-box; display: inline-flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; }
.favbtn.txt .ic { margin-right: 6px; font-size: 16px; }
.favbtn.txt[aria-pressed="true"] { color: var(--brand-ink); }
.minimap { height: 240px; border-radius: 14px; overflow: hidden; margin-top: 12px; background: var(--field-bg); position: relative; }
@media (min-width: 900px) { .minimap { height: 340px; } }
.minimap .leaflet-container { height: 100%; }
.linkrow { display: inline-block; margin-top: 12px; color: var(--brand-ink); font-weight: 800; font-size: var(--fs-sub); text-decoration: none; }
.linkrow .ic { margin-left: 6px; }
@media (hover: hover) { .linkrow:hover { text-decoration: underline; } }
.owner { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; }
.owner .av { width: 44px; height: 44px; border-radius: 22px; background: var(--brand); color: var(--on-brand); font-weight: 900; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; margin-right: 12px; flex: none; }
.owner .n { font-weight: 800; }
.owner .s { font-size: var(--fs-foot); color: var(--text-2-ink); }
@media (min-width: 900px) {
  .detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-gap: 24px 36px; -webkit-box-align: start; align-items: start; }
  .detail__gal { grid-column: 1; grid-row: 1; }
  .detail__side { grid-column: 2; grid-row: 1 / span 2; position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 20px); }
  .detail__desc { grid-column: 1; grid-row: 2; }
  .detail__desc .card { margin-top: 0; }
  .detail__map { grid-column: 1 / -1; grid-row: 3; }
  .detail__map .card { margin-top: 0; }
}

/* Tam ekran foto (büyütme penceresi) */
.lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 95; background: rgba(0,0,0,.95); display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; animation: fade .2s ease; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; }
.lightbox .n { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; }
.lightbox .n.prev { left: 10px; } .lightbox .n.next { right: 10px; }
.lightbox .c { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: var(--fs-foot); font-weight: 700; }

/* ---- Harita sayfası: tam genişlik, solda liste ---- */
.mappage { position: relative; display: -webkit-box; display: flex; -webkit-box-orient: vertical; flex-direction: column; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); min-height: 420px; background: var(--bg); }
.mappage__side { display: -webkit-box; display: flex; -webkit-box-orient: vertical; flex-direction: column; min-height: 0; background: var(--sheet-bg); flex: none; }
.mappage__bar { padding: 12px var(--gutter) 4px; border-bottom: 1px solid var(--hairline); }
.mappage__row { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: justify; justify-content: space-between; margin-bottom: 8px; }
.mappage__title { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.mappage__n { color: var(--text-2-ink); font-size: var(--fs-foot); font-weight: 700; margin: 0 0 8px; }
.mappage__list { overflow-y: auto; -webkit-overflow-scrolling: touch; -webkit-box-flex: 1; flex: 1 1 auto; min-height: 0; padding: 10px 12px 16px; }
.mappage__mapwrap { position: relative; -webkit-box-flex: 1; flex: 1 1 auto; min-height: 0; }
.mappage[data-view="map"] .mappage__list { display: none; }
.mappage[data-view="list"] .mappage__mapwrap { display: none; }
.mappage[data-view="list"] .mappage__side { -webkit-box-flex: 1; flex: 1 1 auto; }
.mapx { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--field-bg); z-index: 0; }
.mapx__search { position: absolute; z-index: 5; left: 50%; top: 12px; -webkit-transform: translateX(-50%); transform: translateX(-50%); }
.mapx__search .btn { min-height: 40px; padding: 8px 18px; font-size: var(--fs-foot); border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.mapx__ctl { position: absolute; z-index: 5; right: 10px; top: 104px; }
.mapx__ctl .circle-btn { background: var(--sheet-bg); width: 42px; height: 42px; border-radius: 21px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.mapx__count { position: absolute; z-index: 5; left: 12px; bottom: 22px; padding: 7px 12px; border-radius: 99px; background: var(--sheet-bg); border: 1px solid var(--hairline); font-size: var(--fs-foot); font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.mapx__sel { position: absolute; z-index: 6; left: 12px; right: 12px; bottom: 56px; }
.mapx__state { position: absolute; z-index: 4; top: 0; left: 0; right: 0; bottom: 0; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; pointer-events: none; }
.mapx__state > * { pointer-events: auto; }
.mapx__state .mapx__count { position: static; }
.mrow { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; padding: 8px; margin-bottom: 8px; border-radius: 16px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--surface-border); }
.mrow.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(242,140,40,.35); }
@media (hover: hover) { .mrow:hover { border-color: var(--brand); } }
.mrow .th { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; flex: none; margin-right: 12px; background: linear-gradient(180deg, var(--night-top), var(--night-bottom)); display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; color: rgba(255,241,220,.45); }
.mrow .th img { width: 100%; height: 100%; object-fit: cover; }
.mrow .b { min-width: 0; -webkit-box-flex: 1; flex: 1 1 auto; }
.mrow .tt { font-weight: 800; line-height: 1.25; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.mrow .lc2 { font-size: var(--fs-foot); color: var(--text-2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .badge-type, .minicard .badge-type { font-size: 11px; padding: 3px 9px; box-shadow: none; }
.minicard { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; padding: 10px; text-decoration: none; color: var(--text); background: var(--sheet-bg); border: 1px solid var(--surface-border); border-radius: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.minicard .th { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; margin-right: 12px; background: linear-gradient(180deg, var(--night-top), var(--night-bottom)); display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; color: rgba(255,241,220,.45); }
.minicard .th img { width: 100%; height: 100%; object-fit: cover; }
.minicard .b { min-width: 0; -webkit-box-flex: 1; flex: 1 1 auto; }
.minicard .tt { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.minicard .lc2 { font-size: var(--fs-foot); color: var(--text-2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minicard > .ic { color: var(--text-2-ink); margin-left: 8px; }
@media (min-width: 900px) {
  .mappage { -webkit-box-orient: horizontal; flex-direction: row; }
  .mappage__side { width: 400px; border-right: 1px solid var(--hairline); }
  .mappage__bar { padding-top: 16px; }
  .mappage__bar .pillrow { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
  .mappage__bar .pillchip { margin-bottom: 8px; }
  .mappage .mappage__list, .mappage[data-view="map"] .mappage__list { display: block; }
  .mappage .mappage__mapwrap, .mappage[data-view="list"] .mappage__mapwrap { display: block; }
  .mappage[data-view="list"] .mappage__side { -webkit-box-flex: 0; flex: none; }
  .mappage .mappage__toggle { display: none; }
  .mapx__sel { display: none; }
}
.kh-pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); background: var(--c, var(--brand)); border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.kh-pin.sel { width: 30px; height: 30px; }
.kh-pin[data-type="lost"] { --c: var(--lost); } .kh-pin[data-type="found"] { --c: var(--found); }
.kh-pin[data-type="adoption"] { --c: var(--adoption); } .kh-pin[data-type="seen"] { --c: var(--seen); }
.kh-pin.vet { --c: var(--found); border-radius: 50%; -webkit-transform: none; transform: none; }
.kh-me { width: 16px; height: 16px; border-radius: 50%; background: #0A84FF; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(10,132,255,.25); }
.leaflet-container { font-family: var(--font); }

/* ---- Veterinerler ---- */
.seg { display: -webkit-inline-box; display: inline-flex; padding: 3px; border-radius: 12px; background: var(--field-bg); }
.seg button { padding: 7px 16px; border-radius: 9px; font-size: var(--fs-foot); font-weight: 800; color: var(--text-2-ink); min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: rgba(255,255,255,.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: rgba(255,255,255,.16); } }
.vets-tools { margin-top: 18px; }
.vets-bar { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: justify; justify-content: space-between; flex-wrap: wrap; }
.vets-grid { display: grid; grid-template-columns: 1fr; grid-gap: 12px; margin-top: 8px; }
@media (min-width: 700px) { .vets-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .vets-grid { grid-template-columns: 1fr 1fr 1fr; } }
.vet { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; padding: 14px; }
.vet .lg { width: 52px; height: 52px; border-radius: 14px; flex: none; margin-right: 12px; overflow: hidden; background: rgba(30,142,62,.14); color: var(--found); display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; font-size: 24px; }
.vet .lg img { width: 100%; height: 100%; object-fit: cover; }
.vet .b { -webkit-box-flex: 1; flex: 1 1 auto; min-width: 0; }
.vet .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; word-break: break-word; }
.vet .ad { font-size: var(--fs-foot); color: var(--text-2-ink); }
.vet .acts { display: -webkit-box; display: flex; flex: none; margin-left: 8px; }
.vet .acts a { width: 42px; height: 42px; border-radius: 21px; margin-left: 8px; background: var(--field-bg); color: var(--brand-ink); display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; font-size: 18px; text-decoration: none; }
.vet .dist { font-size: var(--fs-cap); font-weight: 800; color: var(--brand-ink); margin-top: 2px; }
.vetmap { height: 480px; border-radius: var(--r-box); overflow: hidden; margin-top: 12px; position: relative; }
.vetmap .mapx { border-radius: var(--r-box); }
.citygrid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; margin: 16px auto 0; max-width: 560px; text-align: left; }
@media (min-width: 700px) { .citygrid { grid-template-columns: 1fr 1fr 1fr 1fr; max-width: 720px; } }
.citygrid button { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--surface-border); font-weight: 700; box-shadow: var(--surface-shadow); min-height: 48px; }
.vet-pop .acts { display: -webkit-box; display: flex; margin-top: 8px; }
.vet-pop .acts a { width: 38px; height: 38px; border-radius: 19px; margin-right: 8px; background: rgba(242,140,40,.18); color: #A85A05; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; font-size: 17px; text-decoration: none; }

/* ---- Profil (misafir), ayarlar, 404 ---- */
.guest { text-align: center; padding: 28px 20px; }
.guest .lockic { width: 72px; height: 72px; border-radius: 36px; background: rgba(242,140,40,.16); color: var(--brand); display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; margin: 0 auto 14px; font-size: 32px; }
.guest h1 { font-size: 26px; font-weight: 900; }
.guest p { color: var(--text-2-ink); margin-top: 8px; line-height: 1.45; }
.guest .stack { max-width: 360px; margin: 22px auto 0; }
.guest .stack .btn { margin-top: 10px; }
.btn.apple { background: #000; color: #fff; }
:root[data-theme="dark"] .btn.apple { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.apple { background: #fff; color: #000; } }
.btn.google { background: var(--surface); color: var(--text); border: 1px solid var(--hairline); }
.btn .ic.fill { fill: currentColor; stroke: none; }
.settings .row { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: justify; justify-content: space-between; padding: 10px 0; }
.about { text-align: center; color: var(--text-2-ink); font-size: var(--fs-foot); margin-top: 22px; }
.notfound { text-align: center; padding: 72px 12px 40px; }
.notfound h1 { font-size: 28px; font-weight: 900; }
