/* ============================================================
   La Ben Antik — Tema
   Soluk eski altın · bordo-kırmızı · koyu lacivert
   ============================================================ */

:root {
  --gold: #c19a3e;
  --gold-light: #e0c17f;
  --gold-pale: #f5e9c0;
  --red: #7e2e35;
  --red-deep: #642229;
  --navy: #1b2640;
  --navy-deep: #121b31;
  --cream: #f7f1e3;
  --cream-deep: #efe4cb;
  --ink: #28241c;
  --ink-soft: #4f4736;
  --gold-ink: #8a6c22;
  --line: #d3c193;
  --serif: Georgia, 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
  --sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 10px 30px rgba(18, 27, 49, .14);
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--cream) url('/assets/damask.svg');
  background-size: 150px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: unveil .32s ease-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@keyframes unveil {
  from { filter: blur(7px); opacity: .35; }
  to   { filter: blur(0);   opacity: 1;   }
}

/* Görünüme girerken yükseliş (site.js .reveal ekler) */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.reveal { opacity: 0; }
.reveal.in {
  animation: rise .55s cubic-bezier(.22, .8, .32, 1) both;
  animation-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .reveal { opacity: 1; }
  .reveal.in { animation: none; }
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: .02em; }

/* ------------------------------- Üst şerit ------------------------------- */

.topbar {
  background: var(--navy-deep);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: .45rem 1rem;
  border-bottom: 1px solid rgba(184, 151, 90, .35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

/* -------------------------------- Header -------------------------------- */

.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-bottom: 3px double var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(18, 27, 49, .35);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  color: var(--gold-pale);
  text-align: center;
}

.brand:hover { color: var(--gold-light); }

.brand-logo {
  height: 68px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

.brand-sub {
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--gold-pale);
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem .85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all .25s ease;
}

.main-nav a:hover {
  color: var(--gold-light);
  border-color: rgba(184, 151, 90, .5);
}

.main-nav a.nav-admin {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(184, 151, 90, .12);
}

.main-nav a.nav-login {
  color: rgba(239, 227, 196, .75);
}

/* --------------------------------- Hero --------------------------------- */

.hero {
  background:
    linear-gradient(rgba(18, 27, 49, .82), rgba(18, 27, 49, .9)),
    repeating-linear-gradient(45deg, var(--navy) 0 14px, var(--navy-deep) 14px 28px);
  color: var(--gold-pale);
  text-align: center;
  padding: 4.5rem 1.25rem 4rem;
  border-bottom: 1px solid var(--gold);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 151, 90, .3);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  margin: .9rem 0 .6rem;
  color: var(--gold-pale);
  font-weight: 600;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .4), 0 5px 18px rgba(0, 0, 0, .55);
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(239, 227, 196, .82);
  font-size: 1.05rem;
  font-style: italic;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: 1.4rem auto 0;
}

.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 110px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament span {
  width: 9px;
  height: 9px;
  background: var(--red);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* --------------------------------- Layout -------------------------------- */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

main { flex: 1; }

.section { padding: 3.2rem 0; }

/* Öne çıkanlar bandı: soluk gri zemin */
.section-featured {
  background: #e4e2da url('/assets/damask.svg');
  background-size: 150px;
  border-top: 1px solid rgba(184, 151, 90, .3);
  border-bottom: 1px solid rgba(184, 151, 90, .3);
}

.section-title {
  text-align: center;
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: .4rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65), 0 2px 4px rgba(18, 27, 49, .16);
}

.section-lead {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 2.2rem;
}

.section-lead::after {
  content: '◆';
  display: block;
  color: var(--gold);
  font-size: .55rem;
  margin-top: .6rem;
  letter-spacing: .6em;
  text-indent: .6em;
}

/* -------------------------------- Filtreler ------------------------------- */

.filters {
  display: flex;
  gap: .8rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.filters input[type='search'] {
  font-family: var(--sans);
  font-size: .95rem;
  padding: .65rem 1rem;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.filters input[type='search']:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 90, .18);
}

.chips { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }

.chip {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .06em;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf7;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s ease;
}

.chip:hover { border-color: var(--gold); color: var(--navy); }

.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-light);
}

/* ------------------------------- İlan kartları ---------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.6rem;
}

.card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(18, 27, 49, .07);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(184, 151, 90, .35);
  pointer-events: none;
  z-index: 2;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card:hover::before { border-color: rgba(184, 151, 90, .75); }

.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-deep);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card:hover .card-img img { transform: scale(1.05); }

.card-body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.card-cat {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.card-period {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-soft);
  font-style: italic;
}

.card-foot {
  margin-top: auto;
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red);
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.card-foot .btn { flex-shrink: 0; }

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--ink-soft);
  font-style: italic;
  grid-column: 1 / -1;
}

/* --------------------------------- Butonlar ------------------------------- */

.btn {
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .62rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--gold-light);
  cursor: pointer;
  transition: all .22s ease;
  display: inline-block;
}

.btn:hover { background: var(--navy-deep); color: var(--gold-pale); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover { background: var(--navy); color: var(--gold-light); }

.btn-red {
  background: var(--red);
  border-color: var(--red);
}

.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-sm { padding: .42rem .85rem; font-size: .72rem; }

.btn:disabled { opacity: .55; cursor: not-allowed; }

/* --------------------------------- Modal ---------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 27, 49, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--navy-deep);
  border-bottom: 3px double var(--gold);
}

.modal-body { padding: 1.6rem 1.8rem 1.8rem; }

.modal-cat {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}

.modal-title {
  color: var(--navy);
  font-size: 1.7rem;
  margin: .3rem 0 .2rem;
}

.modal-period {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1rem;
}

.modal-desc {
  color: var(--ink);
  white-space: pre-line;
  margin-bottom: 1.4rem;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.modal-close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(18, 27, 49, .85);
  color: var(--gold-light);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { background: var(--red); border-color: var(--red); }

/* ------------------------------ Hakkımızda -------------------------------- */

.about-band {
  background: var(--navy-deep);
  border-top: 3px double var(--gold);
  color: var(--gold-pale);
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.about-inner h3 {
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(184, 151, 90, .4);
}

.about-inner p, .about-inner li {
  font-size: .95rem;
  color: rgba(239, 227, 196, .78);
  list-style: none;
}

.about-inner li { padding: .18rem 0; font-family: var(--sans); font-size: .88rem; }

/* --------------------------------- Footer --------------------------------- */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(184, 151, 90, .4);
  padding: 2.4rem 1rem 1.4rem;
  color: rgba(239, 227, 196, .55);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
}
.footer-bottom p { text-align: center; }

/* ------------------------------ Giriş sayfası ----------------------------- */

.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.auth-card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  padding: 2.4rem 2.2rem 2rem;
}

.auth-card h1 {
  color: var(--navy);
  font-size: 1.5rem;
  text-align: center;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .82rem;
  margin: .3rem 0 1.8rem;
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  padding: .68rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea { resize: vertical; min-height: 110px; font-family: var(--serif); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 90, .18);
}

.form-msg {
  font-family: var(--sans);
  font-size: .85rem;
  text-align: center;
  min-height: 1.3em;
  margin: .2rem 0 .8rem;
}

.form-msg.error { color: var(--red); }
.form-msg.success { color: #2e6b3e; }

.auth-links {
  text-align: center;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: .8rem;
}

/* ------------------------------ Admin paneli ------------------------------ */

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2.2rem 0 1.4rem;
}

.admin-head h1 { color: var(--navy); font-size: 1.7rem; }

.admin-head .who {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-soft);
}

.admin-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  padding-bottom: 3.5rem;
  align-items: start;
}

.panel {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 4px 14px rgba(18, 27, 49, .06);
}

.panel h2 {
  color: var(--navy);
  font-size: 1.2rem;
  padding-bottom: .7rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--gold);
}

.panel .ornament-mini {
  width: 34px;
  height: 3px;
  background: var(--red);
  margin-top: -1.05rem;
  margin-bottom: 1.2rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.img-preview {
  margin-top: .6rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
  aspect-ratio: 16 / 10;
  background: var(--cream-deep);
}

.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview.show { display: block; }

.admin-list { display: flex; flex-direction: column; gap: .9rem; }

.admin-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem 1rem;
}

.admin-item img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--navy-deep);
}

.admin-item .ai-title { color: var(--navy); font-size: 1.02rem; }

.admin-item .ai-meta {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--ink-soft);
}

.admin-item .ai-price {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  font-size: .95rem;
}

.admin-item .ai-actions { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }

.count-badge {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--ink-soft);
  font-style: normal;
}

/* ------------------------------- Uyarı kutusu ----------------------------- */

.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--navy);
  color: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: .75rem 1.4rem;
  font-family: var(--sans);
  font-size: .88rem;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); border-color: var(--red-deep); }

/* ------------------------------ Duyarlılık -------------------------------- */

@media (max-width: 880px) {
  .admin-layout { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav { justify-content: center; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .admin-item { grid-template-columns: 64px 1fr; }
  .admin-item img { width: 64px; height: 52px; }
  .admin-item .ai-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
  .hero { padding: 3rem 1rem 2.6rem; }
}

/* ==================== Aşama 1 ekleri: detay, galeri, admin ==================== */

.section-alt { background: var(--cream-deep); }

.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); }

.breadcrumb {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.breadcrumb a { color: var(--red); }

/* ------------------------------- Rozetler ----------------------------------- */

.badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 3px;
  z-index: 3;
}
.badge-sold { background: var(--red); color: var(--gold-pale); }
.badge-gold { background: var(--gold); color: var(--navy-deep); position: static; display: inline-block; font-size: .62rem; vertical-align: middle; margin-left: .4rem; }
.card-img .badge-gold { position: absolute; margin: 0; left: auto; right: .7rem; font-size: .68rem; }
.badge-lg { font-size: .85rem; padding: .45rem .9rem; }

.status-tag {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .2rem .55rem;
  border-radius: 999px;
  vertical-align: middle;
}
.status-published, .status-on { background: #2e6b3e; color: #fff; }
.status-draft { background: var(--gold); color: var(--navy-deep); }
.status-sold { background: var(--red); color: var(--gold-pale); }

/* ------------------------------ Detay sayfası ------------------------------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}

.gallery-main {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}
.g-track { display: flex; height: 100%; will-change: transform; }
.g-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-main > img { width: 100%; height: 100%; object-fit: cover; }

.g-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(27, 38, 64, .55);
  border: 1px solid rgba(224, 193, 127, .55);
  color: #e8d5a0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  opacity: .9;
  transition: opacity .2s, background .2s, transform .2s;
  z-index: 2;
}
.g-arrow:hover {
  opacity: 1;
  background: rgba(27, 38, 64, .85);
  transform: translateY(-50%) scale(1.06);
}
.g-prev { left: .9rem; }
.g-next { right: .9rem; }

.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: .95rem;
}
.g-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.g-dot:hover { transform: scale(1.2); }
.g-dot.active {
  background: var(--gold);
  transform: scale(1.5);
}

.detail-title { color: var(--navy); font-size: 1.9rem; margin: .3rem 0 .6rem; }

.detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red);
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px dashed var(--line);
}

.spec-list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.4rem; }
.spec-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: .8rem;
  font-size: .95rem;
}
.spec-list dt {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: .15rem;
}
.spec-list dd { color: var(--ink); }

.contact-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.2rem 0; }

.detail-desc { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.detail-desc h2 { color: var(--navy); font-size: 1.2rem; margin-bottom: .5rem; }
.detail-desc p { white-space: pre-line; }

/* ------------------------------ Metin sayfaları ------------------------------ */

.text-page { max-width: 880px; }
.prose { font-size: 1.05rem; }
.prose h2 { color: var(--navy); font-size: 1.3rem; margin: 1.6rem 0 .7rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }

/* ------------------------------ Filtre çubuğu -------------------------------- */

.filters select {
  font-family: var(--sans);
  font-size: .9rem;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  color: var(--ink);
}

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.4rem; }
.page {
  font-family: var(--sans);
  font-size: .85rem;
  min-width: 34px;
  text-align: center;
  padding: .4rem .6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
}
.page.current { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }

/* --------------------------------- Admin ------------------------------------- */

.admin-page { padding-bottom: 3.5rem; }
.admin-head-actions { display: flex; gap: .6rem; align-items: center; }
.admin-item .ai-actions { flex-direction: column; gap: .35rem; align-items: stretch; }
.admin-item .ai-actions form { display: flex; }
.admin-item .ai-actions .btn { width: 100%; text-align: center; }
.ai-view { font-family: var(--sans); font-size: .72rem; text-align: center; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-check { display: flex; align-items: flex-end; padding-bottom: .8rem; }
.field-check label { display: flex; gap: .5rem; align-items: center; font-family: var(--sans); font-size: .85rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.field-check input { width: auto; }

.flash {
  font-family: var(--sans);
  font-size: .9rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}
.flash-ok { background: #e4f0e6; border: 1px solid #2e6b3e55; color: #2e6b3e; }
.flash-err { background: #f7e5e5; border: 1px solid #7e2e3555; color: var(--red); }

.divider { border: none; border-top: 1px dashed var(--line); margin: 1.6rem 0; }
.panel-sub { font-size: 1.05rem !important; }

.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .9rem; }
.photo-cell { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.photo-cell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-cell-actions { display: flex; gap: .3rem; padding: .45rem; justify-content: space-between; align-items: center; }

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}

/* ------------------------------ Denetim tablosu ------------------------------ */

.audit-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .8rem; }
.audit-table th {
  text-align: left; padding: .5rem .6rem; color: var(--ink-soft);
  border-bottom: 2px solid var(--gold); font-weight: 600;
}
.audit-table td { padding: .45rem .6rem; border-bottom: 1px dashed var(--line); color: var(--ink); }
.audit-table code { background: var(--cream-deep); padding: .1rem .35rem; border-radius: 3px; }

/* ----------------------------- Yan süs sütunları ------------------------------ */
/* Başlık + motifli gövde + kaide. Gövde: mat eskitilmiş altın üzerine
   Mısır esintili kazınmış desenler (zigzag Nil bandı, kanatlı güneş
   diski, basamaklı piramit) — tekrarlanan SVG döşemesi.
   Sayfayla birlikte kayar (absolute), tam sayfa boyu uzanır,
   genişliğin %25'i ekran dışında kalır. */

.side-col {
  position: absolute;
  top: 76px;
  bottom: 0;
  width: 88px;
  z-index: 60;
  pointer-events: none;
  display: none;
  background: transparent url('/assets/column-shaft.svg') center top / 88px auto repeat-y;
}

/* Başlık/kaide: 110px genişliğinde — süsler sayfa içine doğru
   22px taşar; sağ kolonda yatay aynalanır (süs içeri bakar) */
.side-col::before,
.side-col::after {
  content: '';
  position: absolute;
  width: 110px;
  background-size: 110px auto;
  background-repeat: no-repeat;
  background-position: center top;
}
.side-col-left::before,
.side-col-left::after { left: 0; }
.side-col-right::before,
.side-col-right::after { right: 0; transform: scaleX(-1); }
.side-col::before { top: 0;    height: 138px; background-image: url('/assets/column-cap.svg'); }
.side-col::after  { bottom: 0; height: 128px; background-image: url('/assets/column-base.svg'); }

.side-col-left  { left: -22px; filter: drop-shadow(6px 4px 9px rgba(15, 22, 40, .45)); }
.side-col-right { right: -22px; filter: drop-shadow(-6px 4px 9px rgba(15, 22, 40, .45)); }

/* Üst alınlık: logodaki üçgen çatı — eğimli kirişler + yatay geison,
   iki sütunun başlıklarına oturur (tapınak cephesi) */
.frame-pediment {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  z-index: 2;
  pointer-events: none;
  display: none;
  background: url('/assets/pediment.svg') center bottom / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 4px rgba(18, 27, 49, .3));
}
.frame-pediment::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  width: 8px;
  height: 8px;
  background: var(--gold-pale);
  border: 1px solid #5f4a14;
  transform: translate(-50%, 0) rotate(45deg);
}

@media (min-width: 1440px) {
  .side-col { display: block; }
  .frame-pediment { display: block; }
  /* alınlığın geison hattının altında bırak; slogan saçaklığın altına oturur */
  .topbar { padding-top: 5.4rem; }
}

/* ------------------------------ Ana sayfa ekleri ----------------------------- */

/* Öne çıkanlar karuseli: tek seferde tam 3 kart, oklarla gezinme */
.f-carousel {
  overflow: hidden;
  margin: 0 -1rem;
  padding: 0 4.5rem;
  position: relative;
}
.f-track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: .4rem .1rem 1rem;
  user-select: none;
}
.f-track::-webkit-scrollbar { display: none; }

/* Tam N kart görünsün — yan kart sızması yok */
.f-track .card { flex: 0 0 calc((100% - 2.8rem) / 3); }
@media (max-width: 860px) {
  .f-track .card { flex-basis: calc((100% - 1.4rem) / 2); }
}
@media (max-width: 560px) {
  .f-track .card { flex-basis: calc((100% - 1.4rem) / 2); }
}

/* Yarı saydam gezinme okları */
.f-arrow {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(27, 38, 64, .55);
  border: 1px solid rgba(224, 193, 127, .55);
  color: var(--gold-light);
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: .75;
  transition: opacity .2s, background .2s, transform .2s;
}
.f-arrow:hover {
  opacity: 1;
  background: rgba(27, 38, 64, .85);
  transform: translateY(-50%) scale(1.06);
}
.f-prev { left: .5rem; }
.f-next { right: .5rem; }
@media (max-width: 860px) {
  .f-carousel { padding: 0 4rem; }
  .f-arrow { width: 40px; height: 40px; }
  .f-prev { left: .35rem; }
  .f-next { right: .35rem; }
}
@media (max-width: 560px) {
  .f-carousel { padding: 0 3.2rem; }
  .f-arrow { width: 34px; height: 34px; }
  .f-prev { left: .3rem; }
  .f-next { right: .3rem; }
}

/* İletişim butonu + canlı saat (üst gezinme) */
.main-nav a.nav-cta {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
}
.main-nav a.nav-cta:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-deep);
}
/* Menü çubuğunun içindeki küçük saat — nav ile birlikte kayar */
.clock {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-light);
  border: 1px solid rgba(184, 151, 90, .5);
  border-radius: 3px;
  padding: .3rem .55rem;
  margin-left: .55rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
@media (max-width: 760px) {
  .clock { display: none; }
}

.cta-band {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  color: var(--gold-pale);
  padding: 2.6rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.cta-text h2 { color: var(--gold-light); font-size: 1.5rem; margin-bottom: .35rem; }
.cta-text p { max-width: 46ch; color: rgba(245, 233, 192, .85); font-size: .95rem; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cta-band .btn-outline {
  border-color: var(--gold);
  color: var(--gold-light);
  background: transparent;
}
.cta-band .btn-outline:hover { background: var(--gold); color: var(--navy-deep); }

/* ------------------------------- Alt bilgi --------------------------------- */

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.f-logo { height: 72px; width: auto; display: block; margin-bottom: .7rem; }
.f-brand p { font-size: .88rem; color: rgba(245, 233, 192, .7); max-width: 32ch; }
.f-col h3 {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.f-nav a, .f-contact a, .f-contact span {
  display: block;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(245, 233, 192, .8);
  padding: .2rem 0;
}
.f-nav a:hover, .f-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(184, 151, 90, .25);
  margin: 1.8rem auto 0;
  padding-top: 1.1rem;
  position: relative;
  max-width: 1280px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; color: rgba(245, 233, 192, .55); }
.footer-admin {
  position: absolute;
  right: 0;
  font-size: .75rem;
  color: rgba(245, 233, 192, .55);
  border: 1px solid rgba(184, 151, 90, .35);
  border-radius: 3px;
  padding: .3rem .85rem;
  letter-spacing: .08em;
  transition: color .2s, border-color .2s;
}
.footer-admin:hover { color: var(--gold-light); border-color: var(--gold); }

/* Dar ekranda bağlantı akışa dönsün — ortalanmış satırda kalır,
   WhatsApp balonunun ve kenarların üstüne binmez */
@media (max-width: 1339px) {
  .footer-admin { position: static; margin-left: .4rem; }
}

/* ------------------------------ WhatsApp düğmesi ---------------------------- */

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  z-index: 90;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 22px rgba(0, 0, 0, .35); }

/* ------------------------------ Mobil uyumluluk ------------------------------ */

@media (max-width: 640px) {
  .filters { flex-direction: column; align-items: stretch; }
  .filters input[type="search"] { min-width: 0; width: 100%; }
  .filters select, .filters button { width: 100%; }
  .filters label { align-self: flex-start; }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; text-align: center; }
  .wa-float { width: 48px; height: 48px; right: .9rem; bottom: .9rem; }
}

@media (max-width: 560px) {
  .topbar { font-size: .68rem; letter-spacing: .12em; }
  .brand-logo { height: 56px; }
  .main-nav { gap: .6rem; }
  .main-nav a { font-size: .8rem; padding: .35rem .15rem; }
  .spec-list > div { grid-template-columns: 1fr; gap: .1rem; }
  .detail-title { font-size: 1.55rem; }
  .detail-price { font-size: 1.35rem; }
  .contact-cta { flex-direction: column; }
  .contact-cta .btn { width: 100%; }
  .auth-card { padding: 1.6rem; }
  .admin-item { align-items: flex-start; }
}

@media (max-width: 720px) {
  .panel { overflow-x: auto; }
  .audit-table { min-width: 560px; }
}

/* ------------------------- Yazı hacmi ve okunabilirlik ----------------------- */

/* Koyu zemin üstündeki yazılara derinlik */
.cta-text h2,
.f-col h3,
.footer-bottom,
.hero p,
.main-nav a,
.brand-sub,
.card-img .badge,
.wa-float { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }

/* Açık zemin üstündeki başlıklara kabartma hissi */
.detail-title,
.prose h2,
.panel-sub,
.auth-card h1 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 2px 3px rgba(18, 27, 49, .14);
}

/* Kart başlıkları */
.card-title { text-shadow: 0 1px 0 #fff; }

/* Parlak zemin üstünde soluk kalan vurgu yazıları */
.card-period,
.count-badge,
.filters label,
.spec-list dt,
.ai-view { color: var(--ink-soft); }

.prose strong { color: var(--navy); }

/* Dropbox'tan fotoğraf ekleme (admin) */
.dropbox-add {
  display: flex;
  gap: .6rem;
  align-items: stretch;
}
.dropbox-add input[type='url'] {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: .9rem;
  padding: .6rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  color: var(--ink);
}
@media (max-width: 560px) {
  .dropbox-add { flex-direction: column; }
}

/* ---------- Dropbox chooser önizlemesi ---------- */
.dbx-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.dbx-cell {
  width: 92px; text-align: center; font-size: .72rem; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--gold-dim); border-radius: 6px;
  padding: 6px; word-break: break-all;
}
.dbx-cell img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 4px; }

/* ---------- İlan paylaşımı: ikon + kayan menü ---------- */
.share-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1rem;
  position: relative;
}
.share-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(193, 154, 62, .55);
  background: var(--navy);
  color: #e8d5a0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform .2s ease, background .2s ease;
  z-index: 2;
}
.share-fab:hover { background: var(--navy-deep); transform: scale(1.07); }
.share-wrap.open .share-fab { background: var(--gold); color: var(--navy-deep); }

.share-menu {
  display: flex;
  gap: .45rem;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .45s cubic-bezier(.22, .8, .3, 1), opacity .3s ease;
}
.share-wrap.open .share-menu { max-width: 640px; opacity: 1; }

.share-item {
  white-space: nowrap;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: .42rem .8rem;
  cursor: pointer;
  text-decoration: none;
  transform: translateX(-14px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease, background .15s;
}
.share-wrap.open .share-item { transform: translateX(0); opacity: 1; }
.share-wrap.open .share-item:nth-child(1) { transition-delay: .05s; }
.share-wrap.open .share-item:nth-child(2) { transition-delay: .10s; }
.share-wrap.open .share-item:nth-child(3) { transition-delay: .15s; }
.share-wrap.open .share-item:nth-child(4) { transition-delay: .20s; }
.share-wrap.open .share-item:nth-child(5) { transition-delay: .25s; }
.share-wrap.open .share-item:nth-child(6) { transition-delay: .30s; }
.share-wrap.open .share-item:first-child { margin-left: .6rem; }
.share-item:hover { background: var(--gold-pale); border-color: var(--gold); }

.dbx-note { width: 100%; margin: .3rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.dbx-rm {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: var(--navy);
  color: var(--gold-light);
  font-size: .85rem; line-height: 1;
  cursor: pointer; padding: 0;
}
.dbx-cell { position: relative; }

/* ---------- Taslak önizleme uyarısı ---------- */
.draft-notice {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: .5rem 1rem;
  border: 1px dashed var(--gold);
  border-radius: 4px;
  background: rgba(193, 154, 62, .12);
  color: var(--navy);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* --------------------- Sayfa açılışı: bulanıktan netleşme --------------------- */
/* body, HTML'de .page-loading ile başlar; ::after örtüsü tüm sayfayı
   buzlu cam gibi kaplar. site.js load'da sınıfı kaldırınca örtü 0.75s'de
   dağılır. backdrop-filter desteklenmezse lacivert peçe olarak kalır. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: rgba(18, 27, 49, .3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 1.5s ease-out;
}
body.page-loading::after { opacity: 1; }

/* ------------- Mobil çerçeve: çatı (merkez kırpmalı) + ince kolonlar ------------- */
@media (max-width: 1439px) {
  .frame-pediment {
    display: block;
    height: clamp(36px, 5.5vw, 70px);
    background-size: auto 100%;
  }
  .topbar { padding-top: clamp(40px, 5.8vw, 74px); }

  .side-col {
    display: block;
    top: clamp(36px, 5.5vw, 70px);
    width: 36px;
    background: transparent url('/assets/column-shaft-mini.svg') center top / 36px auto repeat-y;
  }
  .side-col::before,
  .side-col::after { display: none; }
  .side-col-left { left: -5px; }
  .side-col-right { right: -5px; }

  /* Kolonlar içeriğe binmesin */
  .container { padding-inline: 2.4rem; }

  /* Karusel okları kolon şeridinin dışında kalsın */
  .f-prev { left: 2.5rem; }
  .f-next { right: 2.5rem; }
}

/* ------------------------------ Mobil ince ayar ------------------------------ */
@media (max-width: 860px) {
  .section { padding: 2.2rem 0; }
  .detail { gap: 1.4rem; }
}
@media (max-width: 560px) {
  .g-arrow { width: 34px; height: 34px; font-size: 1.1rem; }
  .g-prev { left: .45rem; }
  .g-next { right: .45rem; }
  .ornament::before,
  .ornament::after { width: 56px; }
  .hero p { font-size: .95rem; }

  /* İlan kartları: yan yana 2 sütun, kompakt görünüm */
  .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .card::before { inset: 3px; }
  .card-body { padding: .65rem .7rem .75rem; gap: .3rem; }
  .card-cat { font-size: .56rem; letter-spacing: .1em; }
  .card-title { font-size: .88rem; line-height: 1.25; }
  .card-period { font-size: .66rem; }
  .card-foot { padding-top: .45rem; }
  .card-foot .price { font-size: .8rem; }
  .card-foot .btn { display: none; }
  .card-img .badge { font-size: .58rem; padding: .28rem .5rem; }
}
