:root {
  --bg: #16352c;
  --bg-deep: #102822;
  --surface: #1f4539;
  --line: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --accent: #dcbc78;
  --shine: linear-gradient(110deg, #fff 40%, #f3dc9f 47%, #dcbc78 50%, #f3dc9f 53%, #fff 60%);
  --radius: 14px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; line-height: 1.2; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* intro */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  pointer-events: none;
}
.intro__panels { position: absolute; inset: 0; display: flex; }
.intro__panels span {
  flex: 1; background: var(--bg-deep);
  border-right: 1px solid rgba(255,255,255,.03);
  transform-origin: top;
}
.intro.done .intro__panels span { animation: panelUp 1s var(--ease) forwards; }
.intro.done .intro__panels span:nth-child(2) { animation-delay: .07s; }
.intro.done .intro__panels span:nth-child(3) { animation-delay: .14s; }
.intro.done .intro__panels span:nth-child(4) { animation-delay: .21s; }
.intro.done .intro__panels span:nth-child(5) { animation-delay: .28s; }
@keyframes panelUp { to { transform: translateY(-100%); } }

.intro__center { position: relative; text-align: center; }
.intro.done .intro__center { animation: fadeOutUp .6s var(--ease) forwards; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-30px) scale(.96); } }

.intro__logo { width: 100px; height: 100px; margin-bottom: 6px; }
.intro:not(.play) *, .intro:not(.play) *::after { animation-play-state: paused !important; }
.logo-n {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 86px;
  fill: transparent; stroke: var(--accent); stroke-width: 1.2;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: draw 1.4s var(--ease) .2s forwards, fillN .6s ease 1.4s forwards;
}
.logo-dot {
  fill: transparent; stroke: var(--accent); stroke-width: 1.5;
  stroke-dasharray: 45; stroke-dashoffset: 45;
  animation: draw 1s var(--ease) .9s forwards, fillDot .5s ease 1.5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillN { to { fill: var(--text); stroke-opacity: 0; } }
@keyframes fillDot { to { fill: var(--accent); } }

.intro__title {
  position: relative; display: flex; justify-content: center; overflow: hidden;
  font-size: clamp(2.4rem, 8vw, 4.4rem); letter-spacing: .02em; font-kerning: none;
}
.intro__title span {
  display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0;
  animation: letterUp .8s var(--ease) forwards;
  animation-delay: calc(1s + var(--i) * .05s);
}
.intro__title::after {
  content: attr(data-text); position: absolute; inset: 0; text-align: center; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, #f3dc9f 46%, #dcbc78 50%, #f3dc9f 54%, transparent 62%) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: letterShine 1.3s ease-in-out 2.1s forwards;
}
.intro__title .dot { color: var(--accent); }
@keyframes letterUp { to { transform: none; opacity: 1; } }
@keyframes letterShine { to { background-position: 0 0; } }

.intro__bar { width: 160px; height: 2px; margin: 26px auto 0; background: var(--line); overflow: hidden; border-radius: 2px; }
.intro__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }

.header, .hero > * { opacity: 0; transform: translateY(24px); }
body.ready .header { opacity: 1; transform: none; transition: all .9s var(--ease) .5s; }

/* header */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(22, 53, 44, .78);
  border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: "Playfair Display", serif; font-size: 1.35rem; font-weight: 700; }
.logo__dot { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.shimmer {
  display: inline-block;
  background: var(--shine) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmerLoop 4s ease-in-out infinite;
}
@keyframes shimmerLoop {
  0% { background-position: 100% 0; }
  55%, 100% { background-position: 0 0; }
}
.nav { display: flex; gap: 26px; align-items: center; font-size: .93rem; }
.nav a { color: var(--muted); position: relative; transition: color .25s; }
.nav a:hover { color: var(--text); }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { color: var(--text) !important; border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; transition: background .25s !important; }
.nav__cta:hover { background: rgba(255,255,255,.08); }
.menu-btn { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--text); transition: transform .3s; }
.menu-btn span:first-child { top: 11px; }
.menu-btn span:last-child { top: 19px; }
.menu-btn.open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { padding: 110px 0 10px; max-width: 820px; }
.eyebrow { color: var(--accent); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 500; margin-bottom: 24px; }
.hero__title em { color: var(--accent); font-style: italic; }
.hero__text { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 500; font-size: .95rem; cursor: pointer; border: 1px solid transparent; transition: transform .25s, background .25s, color .25s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: var(--accent); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.06); }

.section { padding: 100px 0 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section__head h2 { font-size: 2.2rem; }
.section__sub { color: var(--muted); font-size: .95rem; }

/* projeler */
.gallery { position: relative; --per: 3; --gap: 24px; }
.gallery__viewport { overflow: hidden; border-radius: var(--radius); }
.gallery__track { display: flex; gap: var(--gap); transition: transform .7s var(--ease); touch-action: pan-y; }
.gal-card {
  flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.gal-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-deep); cursor: zoom-in; }
.gal-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.gal-card:hover .gal-card__img img { transform: scale(1.05); }
.gal-card figcaption { padding: 18px 20px 20px; }
.gal-card strong { font-family: "Playfair Display", serif; font-size: 1.2rem; font-weight: 600; display: block; margin-bottom: 6px; }
.gal-card p { color: var(--muted); font-size: .92rem; }
.gal-btn {
  position: absolute; top: calc(50% - 60px); z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg-deep); border: 1px solid rgba(220,188,120,.45); color: var(--accent);
  transition: background .25s, transform .25s, color .25s;
}
.gal-btn svg, .lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gal-btn:hover { background: var(--accent); color: var(--bg-deep); transform: scale(1.08); }
.gal-btn--prev { left: -24px; }
.gal-btn--next { right: -24px; }
.gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.gallery__dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.25); transition: width .35s var(--ease), background .35s;
}
.gallery__dots button.active { width: 26px; background: var(--accent); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 210; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 24px; background: rgba(5, 16, 12, .94); opacity: 0; transition: opacity .35s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100%; min-width: 0; }
.lightbox__figure img {
  max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 6px;
  transform: scale(.96); transition: transform .45s var(--ease), opacity .3s;
}
.lightbox.open .lightbox__figure img { transform: none; }
.lightbox__figure img.loading { opacity: .3; }
.lightbox figcaption { text-align: center; max-width: 640px; margin-top: 16px; }
.lightbox figcaption strong { font-family: "Playfair Display", serif; font-size: 1.3rem; display: block; }
.lightbox figcaption p { color: var(--muted); font-size: .95rem; margin: 4px 0 6px; }
.lightbox__count { display: block; color: var(--accent); font-size: .8rem; margin-top: 6px; letter-spacing: .1em; }
.lightbox__nav, .lightbox__close {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(220,188,120,.45); color: var(--accent); transition: background .25s, color .25s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: var(--accent); color: var(--bg-deep); }
.lightbox__close { position: absolute; top: 18px; right: 18px; font-size: 1.6rem; line-height: 1; z-index: 1; }

/* harita */
/* isolation: leaflet'in z-index'leri menünün ve lightbox'ın üstüne çıkmasın */
.map-wrap { position: relative; isolation: isolate; z-index: 0; }
.map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--bg-deep); }
.map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.62) contrast(1.15) sepia(.6) hue-rotate(115deg) saturate(1.8); }
.map .leaflet-control-attribution { background: rgba(16,40,34,.85); color: rgba(255,255,255,.6); font-size: 10px; }
.map .leaflet-control-attribution a { color: var(--accent); }
.map .leaflet-bar a { background: var(--bg-deep); color: var(--accent); border-color: var(--line); }
.map-pin {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg-deep);
  box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(220,188,120,.6);
}
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--bg-deep); color: var(--text); border: 1px solid rgba(220,188,120,.4); }
.map .leaflet-popup-content { margin: 14px 16px; font-family: "Inter", sans-serif; }
.map .leaflet-popup-content strong { font-family: "Playfair Display", serif; font-size: 1.1rem; display: block; }
.map .leaflet-popup-content p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.map a.leaflet-popup-close-button { color: var(--muted); }
.map-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.map-era { display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.map-legend { position: absolute; z-index: 500; top: 12px; right: 12px; }
.map-all {
  padding: 6px 14px; border-radius: 999px; font-family: inherit; font-size: .78rem; cursor: pointer;
  background: rgba(10,26,21,.88); border: 1px solid rgba(220,188,120,.45); color: var(--accent);
  backdrop-filter: blur(4px); transition: background .25s, color .25s;
}
.map-all:hover { background: var(--accent); color: var(--bg-deep); }
.map-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.map-place {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-family: inherit;
  transition: border-color .25s, transform .25s, background .25s;
}
.map-place:hover { border-color: rgba(220,188,120,.5); transform: translateY(-2px); }
.map-place__dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(220,188,120,.2); }
.map-place b { display: block; font-weight: 500; font-size: .92rem; line-height: 1.3; }
.map-place small { color: var(--muted); font-size: .76rem; }

/* sosyal */
.social-wrap { padding-top: 80px; }
.social-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 32px; border-radius: 999px; border: 1px solid rgba(220,188,120,.3);
  background: linear-gradient(100deg, var(--surface), var(--bg-deep) 70%);
}
.social-band__text h2 { font-size: 1.45rem; margin-bottom: 2px; }
.social-band__text p { color: var(--muted); font-size: .9rem; }
.social-band__links { display: flex; gap: 12px; }
.soc {
  position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(220,188,120,.4); background: rgba(255,255,255,.04); color: var(--accent);
  transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.soc svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc svg .fill { fill: currentColor; stroke: none; }
.soc:hover, .soc:focus-visible { background: var(--accent); color: var(--bg-deep); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.3); outline: none; }
.soc__tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; pointer-events: none;
  padding: 5px 10px; border-radius: 8px; font-size: .75rem; color: var(--text);
  background: #0b1f19; border: 1px solid rgba(220,188,120,.45); opacity: 0; transition: opacity .2s, transform .2s;
}
.soc:hover .soc__tip, .soc:focus-visible .soc__tip { opacity: 1; transform: translate(-50%, 0); }

.visits {
  display: flex; align-items: center; gap: 8px; width: max-content; margin: 18px auto 0;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: #e3f6ea; color: #14532d; font-size: .82rem; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.visits[hidden] { display: none; }
.visits__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.visits__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e;
  animation: visitsPulse 2s ease-out infinite;
}
@keyframes visitsPulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

/* footer */
.footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 14px 0; color: var(--muted); font-size: .82rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { margin-left: 22px; transition: color .25s; }
.footer a:hover { color: var(--text); }

.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--text); color: var(--bg); border: 0; font-size: 1.1rem; cursor: pointer;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .35s var(--ease); z-index: 40;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 60; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .gal-btn--prev { left: -12px; }
  .gal-btn--next { right: -12px; }
}
@media (max-width: 900px) {
  .gallery { --per: 2; --gap: 18px; }
  .nav { gap: 16px; font-size: .85rem; }
}
@media (max-width: 680px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 22px;
    background: var(--bg-deep); padding: 30px 16px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .45s var(--ease); z-index: -1;
  }
  .nav.open { transform: none; }
  .hero { padding: 70px 0 10px; }
  .section { padding-top: 70px; }
  .gallery { --per: 1; }
  .gal-btn { width: 42px; height: 42px; top: calc(50% - 70px); }
  .gal-btn--prev { left: 8px; }
  .gal-btn--next { right: 8px; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 12px 20px; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__figure img { max-height: calc(100vh - 260px); }
  .map { height: 420px; }
  .map-places { grid-template-columns: 1fr 1fr; }
  .map-place { padding: 10px 12px; gap: 10px; }
  .social-wrap { padding-top: 60px; }
  .social-band { border-radius: 22px; padding: 24px 22px; flex-direction: column; align-items: flex-start; }
  .footer a { margin: 0 18px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .shimmer { animation: none; background-position: 100% 0; }
}
