*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  background: var(--raised);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sticky footer: kısa sayfalarda footer viewport altına oturur */
body > main {
  flex: 1 0 auto;
}

body > .site-footer {
  flex-shrink: 0;
}

img {
  max-width: 100%;
  display: block;
}

/* Lazy / remote image shells — spinner while decoding (see site.js initLazyImageSpinners) */
.img-shell {
  position: relative;
}

.img-shell.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  max-width: 36%;
  max-height: 36%;
  margin: auto;
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-top-color: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  animation: img-shell-spin 0.7s linear infinite;
}

.classified-thumb.img-shell.is-loading::after,
.gallery-thumbs .img-shell.is-loading::after,
.admin-listing-thumb.img-shell.is-loading::after,
.account-result-media.img-shell.is-loading::after,
.wizard-gallery-item.img-shell.is-loading::after {
  width: 1.125rem;
  height: 1.125rem;
  border-width: 1.5px;
}

/* Gallery controls stay above the spinner */
.gallery-main-wrap.img-shell.is-loading::after {
  z-index: 1;
}

@keyframes img-shell-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .img-shell.is-loading::after {
    animation: none;
    border-top-color: color-mix(in srgb, var(--ink) 14%, transparent);
    border-right-color: var(--ink);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/*
 * Block section titles — match homepage “Öne çıkan ilanlar” (.vitrin-head h2).
 * Layout chrome (padding / borders) stays in page/component CSS.
 */
.section-title,
.vitrin-head h2,
.promo-title,
.aside-title,
.cat-tree-heading,
.detail-section-title,
.corp-section-title,
.wizard-section-title,
.wizard-review-aside-title,
.dealer-listings-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-section-title);
  font-weight: var(--text-section-title-weight);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
  color: var(--ink);
}

.container {
  /* Unlayered + explicit max-width so Tailwind's .container utility
     (emitted when markup uses class="container") cannot shrink the site shell. */
  width: min(100% - 32px, var(--max));
  max-width: var(--max);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[x-cloak] {
  display: none !important;
}

body.no-scroll {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--ink);
  color: var(--machine);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-2);
  outline: var(--focus);
  outline-offset: 2px;
}
