/* ==========================================================================
   Rota Pansiyon — V3 "Badana & Nazar"
   Part 1: verbatim port of tasarim/v3-badana-nazar.dc.html <style> (approved look).
           Do not edit values here; override in Part 2.
   Part 2: additions (a11y, mobile nav, language switch, picture, form states,
           small-screen fixes).
   ========================================================================== */

/* ---------- Part 1 · Design port (verbatim) ---------- */
:root {
  --badana: #FBFAF6; --kirec: #F2EFE7; --nazar: #1F4FB8; --nazar-2: #183F94; --turkuaz: #5FB3C9; --acik: #DDEBF7;
  --begonvil: #C2185B; --murekkep: #14213D; --soluk: #59647A; --cizgi: rgba(20, 33, 61, .12);
  --disp: "Shrikhand", Georgia, serif; --sans: "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--badana); color: var(--murekkep); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: var(--nazar); text-decoration: none; }
a:hover { color: var(--begonvil); }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; line-height: 1.02; color: var(--nazar); text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--begonvil); }
.eye { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--murekkep) 0 22%, var(--turkuaz) 23% 44%, #fff 45% 64%, var(--nazar) 65%); flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 14px; font-weight: 800; font-size: 15px; border: 2px solid var(--murekkep); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--murekkep); }
.btn-blue { background: var(--nazar); color: #fff; }
.btn-blue:hover { color: #fff; }
.btn-white { background: #fff; color: var(--murekkep); }
.btn-white:hover { color: var(--murekkep); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.navtop { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 246, .92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--murekkep); }
.navtop .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 82px; }
.logo { display: flex; color: var(--nazar); }
.logo svg { height: 58px; width: 141px; }
.links { display: flex; gap: 6px; }
.links a { font-weight: 700; font-size: 14px; color: var(--murekkep); padding: 8px 14px; border-radius: 999px; }
.links a:hover { background: var(--acik); color: var(--nazar); }
.navtop .btn { padding: 10px 18px; font-size: 14px; }

.hero { padding: 72px 0 120px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(56px, 7.6vw, 112px); margin: 20px 0 24px; }
.hero h1 span { color: var(--begonvil); }
.hero .lead { font-size: 20px; color: var(--soluk); max-width: 460px; margin-bottom: 34px; }
.collage { position: relative; height: 620px; }
.pol { position: absolute; background: #fff; padding: 12px 12px 0; border-radius: 4px; box-shadow: 0 18px 40px rgba(20, 33, 61, .18); }
.pol .ph { width: 100%; aspect-ratio: 1; overflow: hidden; }
.pol .cap { font-family: var(--disp); color: var(--nazar); font-size: 20px; padding: 10px 4px 14px; text-align: center; }
.p1 { width: 300px; left: 4%; top: 0; transform: rotate(-6deg); z-index: 4; }
.p2 { width: 260px; right: 2%; top: 10px; transform: rotate(5deg); }
.p3 { width: 230px; left: 30%; bottom: 0; transform: rotate(3deg); z-index: 3; }
.p4 { width: 210px; right: 0; bottom: 40px; transform: rotate(-4deg); z-index: 1; }
.stamp { position: absolute; z-index: 5; left: 0; bottom: 110px; width: 132px; height: 132px; border-radius: 50%; background: var(--begonvil); color: #fff; display: grid; place-items: center; text-align: center; transform: rotate(-12deg); border: 3px dashed rgba(255, 255, 255, .7); outline: 6px solid var(--begonvil); }
.stamp b { font-family: var(--disp); font-size: 34px; line-height: 1; display: block; }
.stamp small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.wave { height: 36px; background: radial-gradient(circle at 18px -6px, transparent 22px, var(--nazar) 23px) 0 0 / 36px 36px repeat-x; }
.blue { background: var(--nazar); color: #fff; padding: 96px 0 120px; }
.blue h2 { color: #fff; font-size: clamp(44px, 5.4vw, 80px); }
.blue .tag { color: #FFD3E4; }
.trio-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.trio-head p { max-width: 400px; color: #D6E2F7; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tcard { background: #fff; color: var(--murekkep); border-radius: 22px; overflow: hidden; border: 2px solid var(--murekkep); display: flex; flex-direction: column; }
.tcard .ph { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--murekkep); }
.tcard .bd { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.tcard h3 { font-size: 36px; }
.tcard p { color: var(--soluk); font-size: 15px; }
.tcard a { font-weight: 800; margin-top: 6px; }

.sec { padding: 120px 0; }
.center { text-align: center; max-width: 720px; margin: 0 auto 64px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.center h2 { font-size: clamp(44px, 5.4vw, 80px); }
.center p { color: var(--soluk); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post { background: #fff; border: 2px solid var(--murekkep); border-radius: 6px; padding: 14px; box-shadow: 8px 8px 0 var(--acik); }
.post:nth-child(1) { transform: rotate(-1.5deg); }
.post:nth-child(3) { transform: rotate(1.5deg); }
.post .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; position: relative; }
.post .pst { position: absolute; top: 10px; right: 10px; background: #fff; color: var(--nazar); font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 8px 8px; border: 2px dashed var(--nazar); text-transform: uppercase; transform: rotate(4deg); }
.post .bd { padding: 18px 6px 8px; display: grid; gap: 8px; }
.post h3 { font-size: 30px; }
.post p { color: var(--soluk); font-size: 15px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { font-size: 12px; font-weight: 700; background: var(--acik); color: var(--nazar); padding: 5px 10px; border-radius: 999px; }

.resto { background: var(--kirec); }
.resto .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.board { background: #fff; border: 2px solid var(--murekkep); border-radius: 22px; padding: 44px 40px; box-shadow: 10px 10px 0 var(--nazar); }
.board h2 { font-size: clamp(40px, 4.2vw, 62px); margin: 14px 0 18px; }
.board > p { color: var(--soluk); margin-bottom: 26px; }
.line { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; }
.line b { font-weight: 800; font-size: 19px; white-space: nowrap; }
.line i { flex: 1; border-bottom: 2px dotted var(--cizgi); transform: translateY(-4px); }
.line span { color: var(--soluk); font-size: 15px; text-align: right; }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 260px 260px; gap: 16px; }
.mosaic div { border-radius: 22px; overflow: hidden; border: 2px solid var(--murekkep); }
.mosaic .tall { grid-row: span 2; }

.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 2px solid var(--murekkep); }
.tile .c { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; color: var(--murekkep); }

.rev { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 64px; }
.rq { background: var(--acik); border-radius: 22px; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.rq p { font-family: var(--disp); color: var(--nazar); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; }
.rq small { font-weight: 700; color: var(--soluk); }
.scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.score { border: 2px solid var(--murekkep); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; background: #fff; }
.score b { font-family: var(--disp); font-size: 54px; color: var(--begonvil); line-height: 1; }
.score span { font-weight: 700; font-size: 14px; color: var(--soluk); }
.score.pati { grid-column: span 2; flex-direction: row; align-items: center; gap: 18px; padding: 16px; }
.score.pati .ph { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid var(--murekkep); }
.score.pati h3 { font-size: 26px; }

.book { background: var(--nazar); color: #fff; }
.book .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.book h2 { color: #fff; font-size: clamp(44px, 5vw, 76px); margin: 14px 0 20px; }
.book .tag { color: #FFD3E4; }
.book .info { display: grid; gap: 18px; margin: 30px 0; }
.book .info div { display: grid; gap: 2px; }
.book .info small { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #BCD0F2; }
.book .info a, .book .info span { color: #fff; font-size: 19px; font-weight: 600; }
.form { background: #fff; color: var(--murekkep); border: 2px solid var(--murekkep); border-radius: 22px; padding: 32px; box-shadow: 10px 10px 0 var(--murekkep); display: grid; gap: 16px; }
.form h3 { font-size: 32px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fld { display: grid; gap: 6px; }
.fld label { font-size: 13px; font-weight: 800; color: var(--soluk); }
.fld input, .fld select, .fld textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--cizgi); border-radius: 12px; background: var(--badana); color: var(--murekkep); width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--nazar); }
.fld textarea { min-height: 84px; resize: vertical; }
.form .btn { width: 100%; background: #25D366; color: var(--murekkep); }
.form .note { font-size: 13px; color: var(--soluk); text-align: center; }
.map { margin-top: 8px; border-radius: 22px; overflow: hidden; border: 2px solid var(--murekkep); height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; }

.foot { background: var(--murekkep); color: #C8D0DE; padding: 56px 0 40px; font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .logo { color: #fff; }
.foot a { color: #fff; }
.mbar { display: none; }

@media (max-width: 900px) {
  .wrap { padding: 0 18px; }
  .links, .navtop .btn { display: none; }
  .hero .wrap, .resto .wrap, .book .wrap, .rev { grid-template-columns: minmax(0, 1fr); }
  .collage { height: 440px; }
  .p1 { width: 200px; } .p2 { width: 180px; } .p3 { width: 170px; left: 20%; } .p4 { width: 150px; }
  .stamp { width: 104px; height: 104px; bottom: 60px; } .stamp b { font-size: 26px; }
  .trio, .cards { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding: 88px 0; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; }
  .foot { padding-bottom: 100px; }
}


/* ==========================================================================
   Part 2 · Additions
   ========================================================================== */

/* ---------- Anchors: keep headings clear of the sticky nav (82px + air) ---------- */
[id] { scroll-margin-top: 96px; }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -200px; z-index: 100;
  background: var(--murekkep); color: #fff; font-weight: 800; font-size: 15px;
  padding: 12px 18px; border-radius: 12px;
}
.skip:focus, .skip:focus-visible { top: 12px; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Focus rings ---------- */
:focus-visible { outline: 2px solid var(--murekkep); outline-offset: 3px; }
.blue :focus-visible, .book :focus-visible, .foot :focus-visible { outline-color: #fff; }
.book .form :focus-visible { outline-color: var(--murekkep); }
/* Form fields keep the design's blue border on focus and add the ring for keyboard users. */
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--murekkep); outline-offset: 2px; }

/* ---------- <picture> wrappers fill .ph / .tile / .mosaic div like the bare <img> ---------- */
picture { display: block; width: 100%; height: 100%; }

/* ---------- Nav: layout with language switch, current link ---------- */
/* Markup order in .navtop .wrap: logo, .links, .lang, .menu-btn, .btn.
   Two auto margins keep the design's look: logo left, links in the middle,
   lang + WhatsApp grouped on the right (≤900px: lang + menu button on the right). */
.navtop .wrap > .links { margin-left: auto; }
.navtop .wrap > .lang { margin-left: auto; margin-right: -8px; }
.links a[aria-current="true"], .links a[aria-current="page"] { background: var(--acik); color: var(--nazar); }

.lang { display: inline-flex; align-items: center; border: 2px solid var(--murekkep); border-radius: 999px; padding: 2px; background: #fff; font-size: 13px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; min-width: 36px; padding: 0 10px; border-radius: 999px; color: var(--murekkep); }
.lang a:hover { color: var(--nazar); background: var(--acik); }
.lang a[aria-current], .lang a.active { background: var(--nazar); color: #fff; }
.lang span { color: var(--soluk); opacity: .5; padding: 0 1px; }

/* ---------- Mobile menu button (shown ≤900px) ---------- */
.menu-btn { display: none; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: #fff; border: 2px solid var(--murekkep); border-radius: 12px; color: var(--murekkep); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.navtop.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtop.open .menu-btn span:nth-child(2) { opacity: 0; }
.navtop.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .navtop .wrap > .lang { margin-right: -10px; }
  .lang a { min-height: 40px; min-width: 40px; }

  /* Dropdown panel under the sticky nav */
  .navtop.open .links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 82px); max-height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px 18px 20px; background: var(--badana);
    border-bottom: 2px solid var(--murekkep); box-shadow: 0 18px 30px rgba(20, 33, 61, .12);
  }
  .navtop.open .links a { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; font-size: 18px; border-radius: 14px; }
  .navtop.open .links .btn { display: inline-flex; justify-content: center; margin-top: 8px; padding: 15px 24px; font-size: 16px; }
}
@media (min-width: 901px) {
  .menu-btn { display: none; }
  /* A WhatsApp button placed inside .links for the mobile menu is not shown on desktop. */
  .links .btn { display: none; }
}

/* ---------- Plain .btn (no colour modifier, e.g. KVKK "Ara") ---------- */
/* :where() keeps specificity at one attribute, so .form .btn (green) and
   .btn-blue / .btn-white still win. */
:where(.btn):not([class*="btn-"]) { background: #fff; color: var(--murekkep); }
:where(.btn):not([class*="btn-"]):hover { color: var(--murekkep); }

/* ---------- Photo overlays stay above <picture> ---------- */
.tile .c, .post .pst { z-index: 1; }

/* ---------- Reservation form states ---------- */
.fld.err input, .fld.err select, .fld.err textarea { border-color: var(--begonvil); }
.fld .msg { font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--begonvil); }
.fld .msg:empty { display: none; }
.form button.btn { font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
/* iOS Safari: empty date inputs collapse and centre their value */
.fld input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 52px; display: block; }
.fld input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* ---------- Small phones (≤480px) ---------- */
@media (max-width: 480px) {
  .hero { padding: 40px 0 72px; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 56px); margin: 16px 0 18px; }
  .hero .lead { font-size: 18px; margin-bottom: 26px; }
  .ctas .btn { flex: 1 1 auto; }

  /* Collage scales with the viewport so 320–480px never pushes past the edge */
  .collage { height: min(440px, 118vw); }
  .pol { padding: 8px 8px 0; }
  .pol .cap { font-size: 16px; padding: 8px 2px 10px; }
  .p1 { width: 52vw; left: 2%; }
  .p2 { width: 46vw; right: 1%; }
  .p3 { width: 44vw; left: 18%; }
  .p4 { width: 38vw; right: 0; bottom: 6vw; }
  .stamp { width: 24vw; height: 24vw; min-width: 84px; min-height: 84px; bottom: 16vw; outline-width: 4px; }
  .stamp b { font-size: 22px; }
  .stamp small { font-size: 10px; }

  /* Headings: long Turkish words (e.g. "kartpostallar") must fit 324px */
  .blue h2, .center h2 { font-size: clamp(34px, 10.4vw, 44px); }
  .board h2 { font-size: clamp(32px, 9.6vw, 40px); }
  .book h2 { font-size: clamp(34px, 10vw, 44px); }

  .blue { padding: 64px 0 88px; }
  .sec { padding: 72px 0; }
  .trio-head { margin-bottom: 32px; gap: 16px; }
  .center { margin-bottom: 36px; gap: 12px; }
  .tcard h3 { font-size: 30px; }
  .tcard .bd { padding: 20px 20px 24px; }

  .board { padding: 28px 20px; box-shadow: 6px 6px 0 var(--nazar); }
  .line { gap: 8px; }
  .line b { font-size: 17px; white-space: normal; }
  .mosaic { grid-template-rows: 180px 180px; gap: 12px; }

  .wall { gap: 10px; }
  .tile .c { left: 6px; right: 6px; bottom: 6px; padding: 6px 8px; font-size: 12px; line-height: 1.3; }

  .rev { margin-top: 40px; }
  .rq { padding: 28px 22px; }
  .score { padding: 18px; }
  .score b { font-size: 44px; }

  .form { padding: 22px 18px; box-shadow: 6px 6px 0 var(--murekkep); }
  .form h3 { font-size: 28px; }
  .book .info a, .book .info span { font-size: 17px; }
}

/* ---------- Very narrow phones (≤380px): logo + lang + menu button must fit 320px ---------- */
@media (max-width: 380px) {
  .navtop .wrap { gap: 12px; }
  .logo svg { height: 48px; width: 117px; }
  .lang a { min-width: 36px; padding: 0 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn:hover { transform: none; }
  /* Static rotations of polaroids/posts/stamp are decorative and stay. */
}
