:root {
  --ink: #17231d;
  --muted: #667069;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #dedbd2;
  --green: #315c45;
  --green-soft: #dce8df;
  --accent: #b95f3d;
  --shadow: 0 18px 50px rgba(35, 44, 38, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  min-height: clamp(640px, 85svh, 900px);
  display: flex;
  flex-direction: column;
  color: #f9f6ee;
  background-color: #182c36;
  position: relative;
  overflow: hidden;
}
.hero-slides, .hero::before { position: absolute; inset: 0; pointer-events: none; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 700ms ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero::before { content: ""; z-index: 1; background: linear-gradient(90deg, rgba(8, 19, 28, .65), rgba(8, 19, 28, .24) 58%, rgba(8, 19, 28, .08)), linear-gradient(0deg, rgba(8, 19, 28, .5), transparent 35%); }
.nav { height: 84px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; font-weight: 700; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.nav-map-link { color: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; padding: 12px 0 12px 16px; }
.nav-map-link:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 380px) { .nav-map-link { font-size: .75rem; } .nav .brand { gap: 6px; font-size: .9rem; } }
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 64px 0 56px; }
.hero .eyebrow { color: #c4dfeb; }
.eyebrow { margin: 0 0 16px; color: #c8d8cd; font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 6.5vw, 5.8rem); line-height: 1.08; letter-spacing: -.035em; text-shadow: 0 2px 18px rgba(0, 0, 0, .16); }
.hero h1 span { display: block; margin-top: 8px; font-size: .76em; font-weight: 600; letter-spacing: -.025em; }
.intro { max-width: 560px; margin: 26px 0 34px; color: #f0f2ec; font-size: 1.05rem; line-height: 1.7; }
.stats { display: flex; gap: 38px; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats strong { font: 700 1.6rem "Playfair Display", serif; }
.stats span { color: #e0e8e1; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 36px; }
.hero-cta { display: inline-flex; align-items: center; gap: 28px; padding: 16px 22px; border: 1px solid rgba(255,255,255,.45); border-radius: 3px; color: #fff; background: rgba(33, 74, 95, .48); text-decoration: none; font-size: .88rem; font-weight: 600; transition: background .2s; }
.hero-cta:hover { background: rgba(33, 74, 95, .8); }
#gallery-title { scroll-margin-top: 28px; }
.hero-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0 28px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-socials { display: flex; flex-wrap: wrap; gap: 24px; }
.hero-signature { display: grid; gap: 12px; min-width: 0; }
.hero-credit { margin: 0; color: #d1dce2; font-size: .65rem; line-height: 1.5; letter-spacing: .06em; }
.hero-credit strong { color: #edf2f4; font-weight: 600; }
.hero-socials a { display: inline-flex; align-items: center; gap: 8px; color: #edf2f4; text-decoration: none; font-size: .8rem; }
.hero-socials a:hover { color: #bde5f7; }
.hero-socials svg { width: 17px; height: 17px; }
.hero-controls, .hero-dots { display: flex; align-items: center; gap: 6px; }
.hero-controls button { display: grid; place-items: center; min-width: 36px; height: 40px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.hero-controls button:hover { background: rgba(255,255,255,.1); border-radius: 3px; }
.hero-arrow { font-size: 1.35rem; }
.hero-controls .hero-dot { min-width: 24px; }
.hero-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s, transform .3s; }
.hero-dot[aria-pressed="true"]::before { background: #c4e8f8; transform: scale(1.5); }
.hero-pause { font-size: .95rem; }

.gallery-section { padding: 78px 0 100px; min-height: 420px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading .eyebrow { color: var(--accent); margin-bottom: 8px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; letter-spacing: -.035em; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 100px; padding: 9px 15px; cursor: pointer; font: 600 .78rem inherit;
}
.filter-button:hover, .filter-button.active { color: white; background: var(--green); border-color: var(--green); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photo-card { background: var(--card); border: 1px solid rgba(49, 92, 69, .12); box-shadow: 0 2px 0 rgba(49, 92, 69, .04); overflow: hidden; transition: transform .22s, box-shadow .22s; }
.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.image-button { display: block; width: 100%; border: 0; padding: 0; background: #dce2dc; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.image-button img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s; }
.photo-card:hover .image-button img { transform: scale(1.025); }
.card-body { padding: 17px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .92rem; }
.category { flex: 0 0 auto; color: var(--green); background: var(--green-soft); border-radius: 100px; padding: 4px 9px; font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.url-row { display: flex; align-items: center; gap: 8px; }
.url-text { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font: .74rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-button { flex: 0 0 auto; border: 0; border-radius: 6px; color: white; background: var(--green); padding: 8px 10px; cursor: pointer; font: 700 .7rem inherit; }
.copy-button:hover { background: #244b36; }
.empty-state { padding: 70px 20px; border: 1px dashed #c8c7bf; text-align: center; color: var(--muted); }
.empty-state > span { color: var(--green); font-size: 3rem; }
.empty-state h3 { margin: 14px 0 6px; color: var(--ink); }
.empty-state p { margin: 0; }

footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 110px; display: flex; flex-wrap: wrap; gap: 24px; padding-block: 28px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.footer-brand p { margin: 0; }
.footer-brand .footer-credit { margin-top: 10px; font-size: .65rem; letter-spacing: .06em; }
.footer-credit strong { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-inner p span { margin: 0 5px; color: var(--accent); }
.footer-inner a { color: var(--green); text-decoration: none; font-weight: 700; }
.lightbox { max-width: min(1100px, calc(100vw - 30px)); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 14, .9); backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; box-shadow: 0 25px 80px rgba(0,0,0,.4); }
.lightbox figcaption { margin-top: 13px; color: white; text-align: center; font-size: .88rem; }
.close-button { position: absolute; z-index: 2; right: -8px; top: -44px; color: white; background: transparent; border: 0; font-size: 2rem; cursor: pointer; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; color: white; background: #17231d; border-radius: 8px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; font-size: .85rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 800px) {
  .hero { min-height: 680px; }
  .hero-content { padding: 60px 0 48px; }
  .hero-bottom { align-items: flex-start; }
  .hero-socials { flex-direction: column; gap: 14px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; }
  .filters { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .hero { min-height: 680px; }
  .hero::before { background: linear-gradient(90deg, rgba(8, 19, 28, .56), rgba(8, 19, 28, .18)), linear-gradient(0deg, rgba(8, 19, 28, .64), transparent 55%); }
  .hero-slide { object-position: 55% center; }
  .hero-content { padding: 38px 0 40px; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.4rem); }
  .intro { font-size: .96rem; }
  .stats { gap: 22px; }
  .stats div { display: flex; flex-direction: column; gap: 1px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-bottom { flex-direction: column; gap: 18px; padding: 20px 0; }
  .hero-socials { flex-direction: row; gap: 12px 20px; }
  .hero-socials a { font-size: .75rem; }
  .hero-controls { align-self: flex-end; }
  .gallery-section { padding-top: 58px; }
  .gallery { grid-template-columns: 1fr; }
  .photo-card:hover { transform: none; }
  .footer-inner { flex-direction: column; justify-content: center; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Mevcut renkler ve kart tasarımı korunarak koleksiyon kontrolleri. */
[hidden] { display: none !important; }
.search-panel { display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:14px;align-items:end;padding:22px;background:var(--card);border:1px solid var(--line);border-radius:10px; }
.search-panel label { display:flex;flex-direction:column;gap:8px;font-size:.78rem;font-weight:700;color:var(--green);min-width:0; }
.search-panel input,.search-panel select { width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;font-size:.88rem; }
.search-panel button { min-height:43px; }
input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible { outline:3px solid var(--accent);outline-offset:3px; }
.result-count { margin:22px 0 32px;color:var(--muted);font-size:.85rem; }
.featured-group { margin-bottom:38px; }
.group-heading { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px; }
.group-heading h3 { font:600 1.45rem "Playfair Display",Georgia,serif;margin:0; }
.view-all { border:0;background:none;color:var(--green);font:700 .8rem "DM Sans",sans-serif;cursor:pointer;flex-shrink:0;padding:8px 0;text-decoration:none; }
.load-more { display:block;margin:30px auto 0; }
.gallery-section { padding-top:48px; }
.category { max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
@media(max-width:900px) { .search-panel { grid-template-columns:1fr 1fr; } .search-label { grid-column:1/-1; } }
@media(max-width:560px) { .search-panel { grid-template-columns:1fr;padding:16px; } .group-heading h3 { font-size:1.18rem; } .group-heading { align-items:start; } }

.collection-controls { display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:end; }
.locked-links { display:flex;gap:14px;flex-wrap:wrap; }
.locked-links a { color:var(--green);text-decoration:none;font-size:.8rem;font-weight:700; }
#login-form { display:flex;gap:12px;justify-content:center;align-items:end;margin:22px 0; }
#login-form label { display:flex;flex-direction:column;gap:8px;text-align:left;font-size:.85rem; }
#password { border:1px solid var(--line);border-radius:6px;padding:10px;background:var(--card);max-width:100%; }
#logout { margin-bottom:16px; }
@media(max-width:560px) { .collection-controls { justify-content:start; } #login-form { flex-direction:column;align-items:center; } }
