:root {
  --ink: #1c1410;
  --ink-soft: #4a3b32;
  --muted: #7a6558;
  --paper: #f3ebe2;
  --surface: #fffaf4;
  --accent: #8b4518;
  --accent-deep: #5c2e0e;
  --gold: #b08968;
  --nature: #2f5d3a;
  --line: rgba(92, 46, 14, 0.16);
  --shadow: 0 10px 28px rgba(28, 20, 16, 0.12);
  --nav-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 14px;
  --content-pad: clamp(0.75rem, 2vw, 1.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
/* Mobilde peş peşe dokunuş = sayfa zoom olmasın (buton / galeri) */
button,
a,
input,
select,
textarea,
.chip-btn,
.gal-nav,
.nav-item,
.place-card,
.district-select-btn,
.basemap-btn,
.map-fab,
.detail-map-cta,
.gate-link,
.share-copy-btn {
  touch-action: manipulation;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

.app {
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.app.map-mode { padding-bottom: 0; }
.app.detail-mode .topbar,
.app.detail-mode .views,
.app.detail-mode .bottom-nav,
.app.detail-mode .site-credit { display: none !important; }
.app.detail-mode { padding-bottom: 0; height: 100dvh; }

.topbar {
  position: relative;
  flex-shrink: 0;
  z-index: 30;
  padding: 0.75rem var(--content-pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.kicker {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.brand {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--accent-deep);
  line-height: 1.1;
}

.views {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.view { display: none; }
.view.active { display: block; }
.view#view-explore.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding: 0.7rem var(--content-pad) 0.5rem;
}

.search-sticky {
  position: relative;
  flex-shrink: 0;
  z-index: 25;
  padding: 0 0 0.55rem;
  background: var(--paper);
  margin: 0;
}
#accordion {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}
.district-select {
  position: relative;
  margin: 0 0 0.55rem;
  z-index: 20;
}
.district-select.compact { margin: 0 0 0.4rem; }
.district-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.15rem;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  border: 1.5px solid color-mix(in srgb, var(--accent-deep) 28%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 88%, white) 0%,
      var(--surface) 100%
    );
  color: var(--accent-deep);
  font: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 10px rgba(28, 20, 16, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.district-select-btn:hover,
.district-select-btn:focus-visible {
  border-color: color-mix(in srgb, var(--accent-deep) 55%, var(--line));
  box-shadow: 0 3px 14px rgba(92, 46, 14, 0.12);
  outline: none;
}
.district-select-btn[aria-expanded="true"] {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-deep) 16%, transparent);
}
.district-select-meta {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}
.district-select-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.district-select-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.district-select-affordance {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.05rem;
  padding: 0.28rem 0.55rem 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-deep) 22%, var(--line));
  background: color-mix(in srgb, var(--paper) 55%, white);
  color: var(--accent-deep);
}
.district-select-hint {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.district-select-chev {
  font-size: 0.78rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.district-select-btn[aria-expanded="true"] .district-select-chev {
  transform: rotate(180deg);
}
.district-select.compact .district-select-btn {
  min-height: 2.85rem;
  padding: 0.45rem 0.6rem 0.45rem 0.75rem;
}
.district-select.compact .district-select-value { font-size: 0.92rem; }
.district-select.compact .district-select-hint { display: none; }
@media (max-width: 380px) {
  .district-select-hint { display: none; }
}
.district-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  max-height: min(50vh, 320px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
}
.district-select-menu button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.district-select-menu button:last-child { border-bottom: 0; }
.district-select-menu button.active {
  background: color-mix(in srgb, var(--accent-deep) 12%, white);
  color: var(--accent-deep);
}
.district-select-menu button .n {
  color: var(--muted);
  font-weight: 650;
}
.district-select-menu button:hover {
  background: color-mix(in srgb, var(--paper) 70%, white);
}
.search-sticky input,
.drawer-body input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
}
.result-line {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 650;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid color-mix(in srgb, var(--accent-deep) 30%, white);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 20, 16, 0.06);
}
.chip-btn.sm {
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.accordion {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  grid-auto-rows: min-content;
  justify-items: stretch;
}
#accordion.accordion {
  align-content: start;
  grid-auto-rows: min-content;
}
.acc-type, .acc-sub {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  height: auto;
  align-self: start;
  width: 100%;
  min-height: min-content;
}
.acc-type > button.acc-head,
.acc-sub > button.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  border: 0;
  background: var(--surface);
  padding: 0.9rem 0.95rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  min-height: 3.1rem;
}
.acc-head > span:first-child {
  flex: 1;
  min-width: 0;
}
.acc-type > button.acc-head {
  background: var(--surface);
  border-bottom: 1px solid transparent;
}
.acc-type.open > button.acc-head {
  border-bottom-color: var(--line);
}
.acc-type.nature > button.acc-head {
  background: var(--surface);
}
.acc-head .title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--accent-deep);
  font-weight: 700;
}
.acc-type.nature .acc-head .title { color: var(--nature); }
.acc-head .sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.84rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.4;
}
.acc-head .right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 700;
}
.acc-type > .acc-head .chev { display: none; }
.acc-sub .acc-head .chev { transition: transform 0.18s ease; }
.acc-sub.open > .acc-head .chev { transform: rotate(90deg); }
.acc-sub .acc-head .title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
}
.acc-body { display: none; padding: 0.35rem 0.65rem 0.75rem; }
.acc-type.open > .acc-body,
.acc-sub.open > .acc-body { display: grid; gap: 0.65rem; }
.acc-sub > button.acc-head {
  padding: 0.8rem 0.8rem;
  background: color-mix(in srgb, var(--paper) 60%, white);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.accordion.compact .acc-sub,
.accordion > .acc-sub {
  margin-top: 0;
}
.card-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  padding: 0.15rem 0 0.25rem;
}
@media (min-width: 900px) {
  .view#view-explore .card-list { grid-template-columns: 1fr 1fr; }
  .view#view-explore .place-card {
    grid-template-columns: 1fr;
  }
  .view#view-explore .place-card .thumb {
    min-height: 140px;
    width: 100%;
  }
  .view#view-explore .place-card .body {
    padding: 0.65rem 0.75rem 0.75rem;
  }
}
@media (min-width: 1200px) {
  .view#view-explore .card-list { grid-template-columns: 1fr 1fr 1fr; }
}

/* Harita paneli: her zaman tek sütun, kompakt */
.map-drawer .card-list {
  grid-template-columns: 1fr !important;
}
.map-drawer .place-card {
  grid-template-columns: 72px 1fr !important;
}
.map-drawer .place-card .thumb {
  min-height: 72px;
}
.map-drawer .acc-head .sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.map-drawer .accordion {
  gap: 0.5rem;
  align-content: start;
  grid-auto-rows: min-content;
}

.empty-note {
  padding: 0.85rem;
  border-radius: 12px;
  background: #dce8df;
  color: var(--nature);
  line-height: 1.45;
}
.muted-line { margin: 0.25rem 0; color: var(--muted); font-weight: 650; }

.place-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.65rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}
.place-card .thumb {
  min-height: 84px;
  background: linear-gradient(145deg, #d7c3ab, #b08968) center/cover no-repeat;
  overflow: hidden;
}
.place-card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 84px;
  object-fit: cover;
}
.place-card .thumb img.img-broken,
.popup img.img-broken,
.gallery-track .slide.img-broken,
#lb-img.img-broken {
  opacity: 0.4;
  background: #d9cfc4;
}
.place-card .body { padding: 0.55rem 0.65rem 0.6rem 0; }
.place-card .title { margin: 0; font-weight: 700; font-size: 0.9rem; line-height: 1.25; }
.place-card .meta { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--muted); }
.badge-no {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #f0e2d4;
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 700;
}

/* Harita */
.view-map.active {
  display: block;
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  z-index: 25;
  background: #d7c9b6;
}
.app.map-mode .topbar { display: none; }
.app.map-mode .views {
  position: relative;
  flex: 1;
  min-height: 0;
}
#map {
  position: absolute;
  inset: 0;
  background: #d7c9b6;
  opacity: 1;
  transition: opacity 0.12s ease;
}
#map.map-booting {
  opacity: 0;
  pointer-events: none;
}
.map-fab {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1000;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  cursor: pointer;
}

.basemap-control {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 1000;
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}
.basemap-btn {
  min-height: 2.45rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.basemap-menu {
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
}
.basemap-menu button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}
.basemap-menu button:last-child { border-bottom: 0; }
.basemap-menu button.active {
  background: color-mix(in srgb, var(--accent-deep) 12%, white);
  color: var(--accent-deep);
}
.basemap-menu button:hover {
  background: color-mix(in srgb, var(--paper) 70%, white);
}
.map-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.22s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: visible;
}
.map-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface);
}
.drawer-filters {
  flex-shrink: 0;
  padding: 0.6rem 0.65rem 0.45rem;
  display: grid;
  gap: 0.45rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.drawer-filters input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  min-height: 2.75rem;
  color: var(--ink);
}
.drawer-body {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.55rem 0.65rem 0.85rem;
  display: block;
  flex: 1;
  min-height: 0;
}
.drawer-body input {
  padding: 0.78rem 0.9rem;
  font-size: 1rem;
  min-height: 2.75rem;
  border-radius: 12px;
}
.map-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1050;
  pointer-events: none;
}
.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff8ef;
  box-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.marker-pin-wrap {
  background: transparent !important;
  border: 0 !important;
}
.marker-pin {
  width: 22px;
  height: 22px;
  background: #d35400;
  border: 3px solid #fffaf4;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  position: relative;
}
.marker-pin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fffaf4;
}
.marker-cluster-strong {
  background: rgba(211, 84, 0, 0.28) !important;
}
.marker-cluster-strong div {
  background: #d35400 !important;
  color: #fffaf4 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.leaflet-tooltip.district-label,
.district-label {
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgba(55, 40, 30, 0.42);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 650;
  padding: 0;
  white-space: nowrap;
  pointer-events: none;
  text-shadow:
    0 0 4px rgba(255, 250, 244, 0.95),
    0 1px 2px rgba(255, 250, 244, 0.9);
}
.leaflet-tooltip.district-label.hidden-zoom,
.district-label.hidden-zoom {
  display: none !important;
}
.leaflet-tooltip.district-label::before {
  display: none;
}
.district-label {
  display: inline-block;
  transform: translate(-50%, -50%);
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background: rgba(139, 69, 24, 0.22); }
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--accent-deep);
  color: #fffaf4;
  font-weight: 700;
}
.leaflet-popup-content-wrapper {
  border-radius: 16px;
  font-family: var(--font-body);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0; width: 260px !important; }
.leaflet-popup-close-button {
  width: 1.85rem !important;
  height: 1.85rem !important;
  top: 0.45rem !important;
  right: 0.45rem !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(255, 250, 244, 0.95) !important;
  background: var(--accent-deep) !important;
  color: #fffaf4 !important;
  font: 700 1.15rem/1.85rem var(--font-body) !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(28, 20, 16, 0.35) !important;
  z-index: 2;
}
.leaflet-popup-close-button:hover,
.leaflet-popup-close-button:focus {
  background: #3f1c08 !important;
  color: #fff !important;
  outline: none;
}
.popup img { display: block; width: 100%; height: 120px; object-fit: cover; }
.popup .popup-body { padding: 0.75rem 0.85rem 0.9rem; }
.popup h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-deep);
}
.popup .meta {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}
.popup p { margin: 0 0 0.65rem; font-size: 0.84rem; color: var(--ink-soft); line-height: 1.4; }
.popup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.popup-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  text-align: center;
}
.popup-actions a.primary {
  background: var(--accent-deep);
  color: #fffaf4;
  border-color: var(--accent-deep);
  grid-column: 1 / -1;
}

/* Detay + galeri */
.detail {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem var(--content-pad);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.detail-scroll { overflow: auto; flex: 1; }

.detail-hero {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem var(--content-pad) 0;
}

.gallery-shell {
  position: relative;
  background: #2a211c;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.detail-map-card {
  position: relative;
  background: #ddd4c8;
  min-height: 200px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.detail-map-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  width: 100%;
  height: 100%;
  background: #ddd4c8;
}
.detail-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(145deg, #e8dfd2, #d4c4b0);
  color: var(--muted);
  font-weight: 650;
}
.detail-map-fallback p { margin: 0; }
.detail-map-cta {
  position: absolute;
  z-index: 3;
  left: 0.65rem;
  bottom: 0.65rem;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 250, 244, 0.95);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.detail-map-card.no-coords .detail-map-preview { display: none; }
.detail-map-card.no-coords .detail-map-cta { display: none !important; }

.gallery-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: manipulation;
}
.gallery-track {
  display: flex;
  width: 100%;
}
.gallery-track .slide {
  flex: 0 0 100%;
  width: 100%;
  height: min(52vw, 360px);
  min-height: 220px;
  max-height: 420px;
  object-fit: cover;
  background: #3a2f28;
  cursor: zoom-in;
  transition: opacity 0.18s ease;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.gallery-track .ph {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  min-height: 220px;
  height: min(52vw, 360px);
  color: #fff;
  font-weight: 600;
  background: linear-gradient(145deg, #b08968, #8b4518);
}
.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.85rem;
  height: 2.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.92);
  color: var(--accent-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gal-nav.prev { left: 0.65rem; }
.gal-nav.next { right: 0.65rem; }
.gal-nav:disabled { opacity: 0.35; cursor: default; }
.gal-meta {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 2.2rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.gal-meta #gal-counter {
  background: rgba(20, 12, 8, 0.55);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.gal-meta .chip-btn { pointer-events: auto; }
.gal-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0 0.5rem;
  background: #2a211c;
}
.gal-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  padding: 0;
  cursor: pointer;
}
.gal-dots button.on { background: #fff; width: 1.1rem; }

.detail-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem var(--content-pad) 1.5rem;
}
.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.detail-main h2 {
  margin: 0.25rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.15;
  color: var(--accent-deep);
}
.detail-main > .badge-no { margin: 0 0 0.85rem; }
.eser-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.eser-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
}
.eser-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.eser-row:last-child { border-bottom: 0; }
.eser-row .k {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.eser-row .v {
  text-align: right;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.9rem;
}
.section-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--accent-deep);
  font-size: 1.1rem;
}
.desc-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.desc-list li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}
.desc-list li::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.95rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
}

.detail-side {
  display: grid;
  gap: 0.7rem;
}
.detail-side .eser-card { margin-bottom: 0; }
.detail-side .detail-actions { margin-bottom: 0; }

.detail-actions {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.detail-actions .action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.detail-actions a,
.detail-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.detail-actions .action-row.main button:first-child,
.detail-actions .action-row.main .primary {
  background: var(--accent-deep);
  color: #fffaf4;
  border-color: var(--accent-deep);
}
.detail-actions .primary {
  background: var(--accent-deep);
  color: #fffaf4;
  border-color: var(--accent-deep);
}
.credit {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.credit a { color: var(--accent-deep); font-weight: 700; }

@media (min-width: 900px) {
  .detail-scroll {
    max-width: none;
    margin: 0;
    width: 100%;
  }
  .detail-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.85fr);
    gap: 0.85rem;
    padding: 0.75rem var(--content-pad) 0;
    align-items: stretch;
  }
  .gallery-shell {
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .gallery-track .slide,
  .gallery-track .ph {
    height: min(36vw, 400px);
    min-height: 300px;
    max-height: 440px;
  }
  .detail-map-card {
    min-height: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .detail-main {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    grid-template-areas:
      "eye eye"
      "title title"
      "badge badge"
      "label side"
      "desc side"
      "credit side";
    gap: 0.7rem 1.1rem;
    align-items: start;
    padding-top: 0.75rem;
  }
  .detail-main > .eyebrow { grid-area: eye; }
  .detail-main > h2 { grid-area: title; margin-bottom: 0; }
  .detail-main > .badge-no,
  .detail-main > #detail-nocredit { grid-area: badge; }
  .detail-main > .detail-side {
    grid-area: side;
    position: sticky;
    top: 0.75rem;
  }
  .detail-main > .section-label { grid-area: label; margin-bottom: 0; }
  .detail-main > .detail-desc { grid-area: desc; }
  .detail-main > .credit { grid-area: credit; }
  .detail-main:has(#detail-nocredit.hidden) {
    grid-template-areas:
      "eye eye"
      "title title"
      "label side"
      "desc side"
      "credit side";
  }
}

/* Sheet + lightbox */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 8, 0.45);
}
.sheet-panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem calc(1rem + var(--safe-b));
  display: grid;
  gap: 0.55rem;
  box-shadow: var(--shadow);
}
.sheet-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--accent-deep);
}
.sheet-lead { margin: 0; color: var(--muted); font-size: 0.9rem; }
.sheet-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}
.sheet-action:first-of-type {
  background: var(--accent-deep);
  color: #fffaf4;
  border-color: var(--accent-deep);
}
.sheet-cancel {
  min-height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.share-panel {
  gap: 0.75rem;
}
.share-url-box {
  margin: 0.1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, white);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
  word-break: break-all;
  max-height: 6.8rem;
  overflow: auto;
}
.share-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  border: 0;
  border-radius: 14px;
  background: var(--accent-deep);
  color: #fffaf4;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(92, 46, 14, 0.22);
  transition: background 0.15s ease, transform 0.12s ease;
}
.share-copy-btn:hover { background: #3f1c08; }
.share-copy-btn:active { transform: translateY(1px); }
.share-copy-btn.is-copied {
  background: #2f5d3a;
  box-shadow: 0 8px 20px rgba(47, 93, 58, 0.22);
}
@media (min-width: 700px) {
  .sheet { place-items: center; }
  .sheet-panel {
    width: min(420px, 92vw);
    border-radius: 18px;
    padding: 1.1rem;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(10, 6, 4, 0.94);
  display: grid;
  place-items: center;
  touch-action: manipulation;
  overscroll-behavior: none;
}
.lightbox.hidden { display: none !important; }
.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 82dvh;
  object-fit: contain;
  border-radius: 8px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transform-origin: center center;
  transition: transform 0.15s ease;
}
.lb-close,
.gal-nav.lb {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lb-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.gal-nav.lb { background: rgba(255,255,255,0.88); }
.lb-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  background: rgba(0,0,0,0.35);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.bottom-nav {
  position: relative;
  flex-shrink: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  min-height: var(--nav-h);
  padding: 0.4rem 0.45rem calc(0.4rem + var(--safe-b));
  background: rgba(255, 250, 244, 0.97);
  border-top: 1px solid var(--line);
}
.nav-item {
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  gap: 0.12rem;
  place-items: center;
  cursor: pointer;
  border-radius: 12px;
  min-height: 2.75rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-item span { font-size: 1.1rem; line-height: 1; }
.nav-item.active {
  color: #fffaf4;
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 4px 14px rgba(92, 46, 14, 0.22);
}
.nav-item:not(.active):hover {
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--paper) 55%, white);
}

.site-credit {
  display: none;
}
.site-credit a { color: var(--accent-deep); font-weight: 650; }

/* —— Ön izleme giriş kapısı —— */
body.is-gated {
  overflow: hidden;
}
body.is-gated .app {
  visibility: hidden;
  pointer-events: none;
}
.site-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1.1rem max(1.25rem, env(safe-area-inset-bottom));
  color: #f7efe6;
  overflow: auto;
  animation: gate-fade-in 0.55s ease both;
}
.site-gate.is-leaving {
  animation: gate-fade-out 0.42s ease both;
  pointer-events: none;
}
@keyframes gate-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gate-fade-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.015); }
}
.gate-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a100c;
  pointer-events: none;
}
.gate-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  padding: clamp(1.35rem, 4vw, 1.9rem);
  border-radius: 22px;
  border: 1px solid rgba(255, 250, 244, 0.16);
  background:
    linear-gradient(165deg, rgba(255, 250, 244, 0.14), rgba(255, 250, 244, 0.05) 45%, rgba(28, 20, 16, 0.28));
  box-shadow:
    0 24px 60px rgba(8, 4, 2, 0.45),
    inset 0 1px 0 rgba(255, 250, 244, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: gate-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  pointer-events: auto;
}
.gate-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 18% 12%, rgba(196, 124, 62, 0.38), transparent 52%),
    radial-gradient(90% 70% at 88% 8%, rgba(92, 46, 14, 0.55), transparent 48%),
    linear-gradient(165deg, #2a1810 0%, #5c2e0e 42%, #1c1410 100%);
}
.gate-dunes {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 48%;
  background:
    radial-gradient(140% 100% at 30% 100%, rgba(176, 137, 104, 0.34), transparent 58%),
    radial-gradient(120% 90% at 78% 100%, rgba(92, 46, 14, 0.55), transparent 60%);
  filter: blur(2px);
  animation: gate-dune-drift 14s ease-in-out infinite alternate;
}
@keyframes gate-dune-drift {
  from { transform: translateX(-1.5%) translateY(0); }
  to { transform: translateX(1.5%) translateY(-1.2%); }
}
.gate-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.gate-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.45;
  animation: gate-orb-float 9s ease-in-out infinite alternate;
}
.gate-orb-a {
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  top: 12%;
  right: 8%;
  background: rgba(224, 168, 98, 0.35);
}
.gate-orb-b {
  width: min(50vw, 340px);
  height: min(50vw, 340px);
  bottom: 10%;
  left: 4%;
  background: rgba(92, 46, 14, 0.5);
  animation-delay: -3s;
}
@keyframes gate-orb-float {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-18px) scale(1.06); }
}

@keyframes gate-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate-brand-block { margin-bottom: 1.35rem; }
.gate-eyebrow {
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 244, 0.22);
  background: rgba(28, 20, 16, 0.28);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0d7b8;
}
.gate-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(240, 215, 184, 0.82);
}
.gate-title {
  margin: 0.35rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.55rem);
  line-height: 1.05;
  font-weight: 700;
  color: #fffaf4;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.gate-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(247, 239, 230, 0.86);
  max-width: 36ch;
}
.gate-lead + .gate-lead { margin-top: 0.75rem; }
.gate-lead-soft {
  font-size: 0.9rem;
  color: rgba(247, 239, 230, 0.72);
  max-width: 38ch;
}
.gate-lead strong {
  color: #fffaf4;
  font-weight: 700;
}
.gate-link {
  color: #f0d7b8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  word-break: break-all;
}
.gate-link:hover {
  color: #fffaf4;
}

.gate-form {
  display: grid;
  gap: 0.85rem;
}
.gate-field {
  display: grid;
  gap: 0.4rem;
}
.gate-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 215, 184, 0.9);
}
.gate-field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: stretch;
}
.gate-field-row input {
  width: 100%;
  min-height: 3rem;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 250, 244, 0.22);
  background: rgba(18, 12, 9, 0.45);
  color: #fffaf4;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.gate-field-row input::placeholder {
  color: rgba(247, 239, 230, 0.42);
  letter-spacing: 0;
  font-weight: 500;
}
.gate-field-row input:focus {
  border-color: rgba(224, 168, 98, 0.85);
  box-shadow: 0 0 0 3px rgba(224, 168, 98, 0.22);
  background: rgba(18, 12, 9, 0.62);
}
.gate-reveal {
  min-width: 4.6rem;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 250, 244, 0.2);
  background: rgba(255, 250, 244, 0.08);
  color: #f0d7b8;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.75rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.gate-reveal:hover,
.gate-reveal[aria-pressed="true"] {
  background: rgba(255, 250, 244, 0.16);
  color: #fffaf4;
}
.gate-error {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: #ffd0b8;
}
.gate-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  margin-top: 0.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d7b8 0%, #e0a862 48%, #b08968 100%);
  color: #2a160e;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.gate-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}
.gate-submit:active { transform: translateY(1px); }
.gate-submit-arrow {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}
.gate-submit:hover .gate-submit-arrow { transform: translateX(3px); }
.gate-form.is-shake {
  animation: gate-shake 0.42s ease;
}
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(7px); }
  75% { transform: translateX(-4px); }
}

.gate-foot {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 250, 244, 0.12);
  display: grid;
  gap: 0.25rem;
}
.gate-foot p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(247, 239, 230, 0.72);
}
.gate-foot-soft {
  color: rgba(247, 239, 230, 0.5) !important;
}

@media (min-width: 720px) {
  .gate-shell {
    width: min(100%, 460px);
    padding: 2rem 2.1rem 1.7rem;
  }
  .gate-lead { font-size: 1.02rem; }
}
