/* City Otel Pansiyon — Ege kasabası paleti: kireç beyazı, kiremit, derin deniz mavisi */
:root {
  --lime: #f6efe4;        /* kireç / kum */
  --lime-2: #ede3d3;
  --paper: #fbf8f2;
  --ink: #1b2430;
  --ink-soft: #4a5562;
  --sea: #16324a;         /* derin Ege mavisi */
  --sea-2: #1f4766;
  --tile: #b9532c;        /* kiremit */
  --tile-dark: #9c4321;
  --line: rgba(27, 36, 48, .14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--tile); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--sea); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font: 600 .98rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--tile); color: #fff; }
.btn-accent:hover { background: var(--tile-dark); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-2); }
.btn-outline { border-color: var(--sea); color: var(--sea); background: transparent; }
.btn-outline:hover { background: var(--sea); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(10, 22, 34, .25); }
.btn-ghost:hover { background: #fff; color: var(--sea); }
.btn-sm { min-height: 42px; padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(251, 248, 242, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--sea); margin-right: auto; }
.brand-mark {
  font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1;
  padding-bottom: .1em; border-bottom: 3px solid var(--tile);
}
.brand-sub { font-size: .68rem; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--tile); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 860px); min-height: min(92svh, 860px);
  display: flex; align-items: flex-end; color: #fff; padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,34,.15) 0%, rgba(10,22,34,.25) 40%, rgba(10,22,34,.82) 100%);
}
.hero-media figcaption {
  position: absolute; right: 1.25rem; bottom: 1rem; z-index: 1;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8;
}
.hero-content { max-width: 1180px; }
.eyebrow { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem; }
.stars { color: #f0b38f; letter-spacing: .1em; margin-right: .4rem; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); max-width: 15ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: #f3c3a6; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 46ch; margin: 1.4rem 0 2rem; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Facts */
.facts { background: var(--sea); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.5rem 1.25rem; border-left: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: .2rem; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-k { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #f0b38f; font-weight: 600; }
.fact-v { font-family: var(--serif); font-size: 1.3rem; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.kicker { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tile); font-weight: 700; margin-bottom: 1rem; }
.kicker-light { color: #f0b38f; }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); text-wrap: balance; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 30ch; }
.note { font-size: .85rem; color: var(--ink-soft); }

/* Location */
.location { background: var(--lime); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; align-items: start; }
.loc-text h2 { margin-bottom: 1.5rem; }
.loc-text p { color: var(--ink-soft); max-width: 50ch; }
.link-arrow { display: inline-flex; gap: .4rem; font-weight: 700; color: var(--tile-dark); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; margin-top: .5rem; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow span { transition: transform .2s; }
.distances { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.distances li { display: flex; align-items: baseline; gap: .75rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.distances li:first-child { border-top: 1px solid var(--line); }
.d-name { font-weight: 500; }
.d-line { flex: 1; border-bottom: 1px dotted rgba(27,36,48,.35); transform: translateY(-4px); min-width: 1rem; }
.d-val { font-family: var(--serif); font-size: 1.35rem; color: var(--sea); white-space: nowrap; }
.loc-note { grid-column: 2; margin: -1rem 0 0; }

/* Amenities */
.amenity-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.amenity-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.amenity-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); }
figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: .6rem; letter-spacing: .02em; }
.amenity-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.amenity-list li { display: flex; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.amenity-list svg { flex: 0 0 28px; width: 28px; height: 28px; fill: none; stroke: var(--tile); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: .2rem; }
.amenity-list svg circle[r="1.2"] { fill: var(--tile); }
.amenity-list h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.amenity-list p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Gallery */
.gallery { background: var(--lime); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 1rem; }
.g { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.g img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s ease; }
.g:hover img { transform: scale(1.03); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-wide img { aspect-ratio: auto; min-height: 100%; }
.g figcaption {
  position: absolute; left: .75rem; bottom: .75rem; margin: 0;
  background: rgba(251,248,242,.92); color: var(--ink); padding: .3rem .65rem; border-radius: 2px; font-weight: 600;
}

/* Booking */
.booking { background: var(--sea); color: #fff; }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.booking-text h2 { margin-bottom: 1.5rem; }
.booking-text p { color: rgba(255,255,255,.82); max-width: 44ch; }
.booking-alt a { color: #fff; font-weight: 700; }
.booking-form { background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); border-top: 5px solid var(--tile); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: 500 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid rgba(27,36,48,.22); border-radius: var(--radius);
  padding: .75rem .85rem; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(22,50,74,.18); }
.form-error { color: #a3261b; font-weight: 600; font-size: .92rem; margin: -.2rem 0 1rem; }
.form-hint { font-size: .8rem; color: var(--ink-soft); margin: .8rem 0 0; text-align: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.contact-text h2 { margin-bottom: 2rem; }
address { font-style: normal; margin-bottom: 1.5rem; font-size: 1.1rem; }
.c-label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tile); font-weight: 700; margin-bottom: .3rem; }
.c-block { margin-bottom: 2rem; font-size: 1.1rem; }
.c-block a { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; color: var(--sea); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--lime-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.site-footer { background: #0f2436; color: rgba(255,255,255,.75); padding: 3rem 0 6rem; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem 3rem; align-items: end; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 1.3rem; margin-bottom: .3rem; }
.footer-brand .brand-mark { font-size: 1.6rem; border-bottom-width: 2px; }
.credits { font-size: .78rem; margin: 0; }
.demo-note { grid-column: 1 / -1; font-size: .78rem; opacity: .7; margin: 1rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); }

/* WhatsApp floating */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #1f9e55; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; padding: 0 12px; background: transparent; border: 0; cursor: pointer;
  }
  .nav-toggle .bar { display: block; height: 2px; background: var(--sea); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav a { display: block; padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .header-inner { gap: .5rem; }

  .loc-grid, .amenity-layout, .booking-grid, .contact-grid { grid-template-columns: 1fr; }
  .loc-note { grid-column: 1; }
  .amenity-photo { position: static; }
  .amenity-photo img { aspect-ratio: 16 / 10; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .brand-mark { font-size: 1.7rem; }
  .hero { padding-bottom: 3rem; }
  .hero-actions .btn { width: 100%; }
  .amenity-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-wide { grid-column: span 2; grid-row: auto; }
  .g-wide img { aspect-ratio: 4 / 3; }
  .g:last-child { grid-column: span 2; }
  .g:last-child img { aspect-ratio: 16 / 9; }
  .field-row { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .fact { padding: 1.1rem .9rem; }
  .fact-v { font-size: 1.1rem; }
  .d-val { font-size: 1.15rem; }
  .contact-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
