/* ==========================================================================
   Responsive düzenlemeler
   Test genişlikleri: 360 · 375 · 390 · 430 · 768 · 1024 · 1366 · 1440 · 1920
   ========================================================================== */

/* Geniş ekran: menü tam görünür, arama butonunda metin */
@media (min-width: 1440px) {
  .main-nav a { padding: 0 .8rem; }
  .main-nav a::after { left: .8rem; right: .8rem; }
}

@media (min-width: 1440px) and (max-width: 1679.98px) {
  .main-nav a { padding: 0 .6rem; }
  .main-nav a::after { left: .6rem; right: .6rem; }
  .header-search-btn kbd { display: none; }
}

@media (min-width: 1280px) and (max-width: 1439.98px) {
  .header-search-btn .label, .header-search-btn kbd { display: none; }
  .header-search-btn { width: 44px; padding: 0; justify-content: center; }
  .main-nav a { padding: 0 .55rem; font-size: .75rem; }
  .main-nav a::after { left: .55rem; right: .55rem; }
  .site-header .brand__logo { width: 36px; height: 44px; }
}

/* Masaüstü menü 1280px altında offcanvas'a geçer */
@media (max-width: 1279.98px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 1199.98px) {
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .city-card--photo { aspect-ratio: 4 / 3; }
  .stats-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet */
@media (max-width: 991.98px) {
  :root { --header-h: 64px; }

  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .field:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--border); }
  .search-panel .field:nth-child(2) { border-right: 1px solid var(--border); }
  .search-panel .btn { grid-column: 1 / -1; }

  .hero h1 { max-width: none; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(7, 21, 34, .82) 0%, rgba(7, 21, 34, .92) 100%); }

  .steps { grid-template-columns: 1fr; }

  .editorial { grid-template-columns: 1fr; }
  .sentinel-feature--split { grid-template-columns: 1fr; }
  .sentinel-feature__media { min-height: 0; aspect-ratio: 16 / 8; }
  .sentinel-feature__media::after { background: linear-gradient(180deg, rgba(8,26,44,0) 55%, var(--sentinel-dark) 100%); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .cta-options { grid-template-columns: 1fr; }

  .sticky-aside { position: static; }
  .subnav { top: var(--header-h); }

  /* Filtre paneli mobilde offcanvas olarak açılır (Bootstrap offcanvas-lg) */
  .filter-offcanvas .offcanvas-body { padding: 1rem; }
  .filter-offcanvas .filter-panel { border: 0; padding: 0; }
}

/* Mobil */
@media (max-width: 767.98px) {
  .topbar__links .hide-sm { display: none; }
  .topbar__links li.hide-sm + li::before { display: none; }
  .topbar__text { font-size: .75rem; }

  .hero { padding-bottom: 5.5rem; }
  .hero__kicker span:not(:first-child) { display: none; }
  .stats-card li { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; }
  .stats-card__icon { width: 40px; height: 40px; font-size: 1.05rem; border-radius: 10px; }

  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .city-card { min-height: 120px; }
  .city-card--photo { aspect-ratio: 3 / 4; min-height: 0; }
  .city-card::before { font-size: 4.25rem; }
  .city-card__name { font-size: 1.15rem; }

  .search-panel { grid-template-columns: 1fr; padding: .35rem; }
  .search-panel .field, .search-panel .field:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--border); padding: .6rem .75rem; }
  .search-panel .field:nth-child(3) { border-bottom: 0; }
  .search-panel .btn { min-height: 52px; }

  .co-grid { grid-template-columns: 1fr; }
  .co-grid.is-list .co-card { flex-direction: column; align-items: stretch; gap: 0; padding: 1.25rem; }
  .co-grid.is-list .co-card__top { margin-bottom: 1rem; }
  .co-grid.is-list .co-card__foot { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); }
  .view-toggle { display: none; }

  .svc-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .svc-card__body { padding: 1.75rem .9rem 1rem; }
  .svc-card__icon { left: .9rem; width: 42px; height: 42px; top: -21px; font-size: 1.1rem; }
  .svc-card__title { font-size: .9375rem; }
  .svc-card__text { display: none; }

  .news-card--h .media { flex-basis: 108px; max-width: 108px; }
  .news-card--h .news-card__excerpt { display: none; }

  .profile-head__grid { flex-direction: column; gap: 1rem; }
  .profile-head__actions .btn { flex: 1 1 auto; }

  .article-figure .media { aspect-ratio: 16 / 10; }
  .share-bar { margin: 2rem 0; }

  /* Yaygın mobil reklam oranları */
  .ad-slot--728x90 .ad-slot__inner { aspect-ratio: 320 / 100; min-height: 0; }
  .ad-slot--970x250 { max-width: 336px; }
  .ad-slot--970x250 .ad-slot__inner { aspect-ratio: 300 / 250; min-height: 0; }
  .ad-slot--728x90 { max-width: 468px; }

  .cta-band__actions .btn { flex: 1 1 auto; }
  .footer-bottom { flex-direction: column; }

  .updates li { padding-right: 0; }
  .crumbs [aria-current] { max-width: 24ch; }
}

@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 2rem; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .page-head h1 { margin-top: .5rem; }
  .sentinel-feature__brand { flex-wrap: wrap; }
  .sentinel-feature__main .btn { width: 100%; }
  .brand__tag { font-size: .625rem; letter-spacing: .1em; }
  .brand__logo { width: 36px; height: 44px; }
  .search-modal .modal-dialog { margin: .5rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .city-list { columns: 2 140px; column-gap: 1rem; }
  .step { padding: 1.25rem; }
}

@media (max-width: 400px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card__text { display: block; }
  .header-search-btn { width: 44px; padding: 0; }
  .header-search-btn .label, .header-search-btn kbd { display: none; }
  .brand__name { font-size: .85rem; letter-spacing: 0; }
  .site-header .container { gap: .75rem; }
  .brand--mark { column-gap: .5rem; }
}

/* 360px ve altı */
@media (max-width: 374.98px) {
  .brand__name { font-size: .72rem; }
  .brand__tag { display: none; }
  .brand--mark .brand__name { align-self: center; }
  .brand__logo { width: 32px; height: 40px; }
  .city-card__name { font-size: 1.05rem; }
  .stats-card strong + span { font-size: .75rem; }
}

@media print {
  .topbar, .site-header, .site-footer, .ad-slot, .share-bar, .subnav, aside { display: none !important; }
  body { background: #fff; }
}
