/* =========================================================================
   Dış rezervasyon sayfası — iç uygulamanın app.css'inden bağımsız.
   Tasarım: siyah-beyaz fotoğraf, beyaz kart, gri düğme, Nicky Sans.
   ========================================================================= */

@font-face { font-family: 'Nicky Sans'; font-weight: 400; font-display: swap;
  src: url('/assets/rez/fonts/nicky-sans-regular.otf') format('opentype'); }
@font-face { font-family: 'Nicky Sans'; font-weight: 600; font-display: swap;
  src: url('/assets/rez/fonts/nicky-sans-semibold.otf') format('opentype'); }
@font-face { font-family: 'Nicky Sans'; font-weight: 900; font-display: swap;
  src: url('/assets/rez/fonts/nicky-sans-black.otf') format('opentype'); }

:root {
  --r-zemin: #f5f5f3;
  --r-kart: #ffffff;
  --r-metin: #111111;
  --r-soluk: #6b6b6b;
  --r-cizgi: #e3e3e0;
  --r-dugme: #c4c4c4;
  --r-dugme-ust: #b3b3b3;
  --r-koyu: #111111;
  --r-iyi: #1f7a3d;
  --r-kotu: #b42318;
  --r-bekle: #8a6100;
  --r-logo: #b9b9b9;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.rez-sayfa {
  margin: 0; min-height: 100vh; background: var(--r-zemin); color: var(--r-metin);
  font-family: 'Nicky Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.4;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.rez-kap { max-width: 640px; margin: 0 auto; padding: 28px 16px 40px; }

/* ------------------------------------------------------------ başlık */
.rez-ust { display: flex; align-items: center; margin: 0 12px 28px; }
.rez-ust h1 { margin: 0; font-weight: 400; font-size: 34px; letter-spacing: -0.02em; line-height: 1; }
.rez-ust a { text-decoration: none; }

/* ------------------------------------------------------------ şube kartı */
.rez-kart { background: var(--r-kart); padding: 15px; margin-bottom: 18px; }
.rez-kart-ust { display: flex; gap: 15px; }
.rez-foto {
  flex: 0 0 auto; width: 156px; height: 156px; object-fit: cover; display: block;
  background: #ddd; filter: grayscale(1);
}
.rez-foto.bos { background: #e6e6e3; }
.rez-kart-bilgi { min-width: 0; flex: 1; }
.rez-kart-bilgi h2 { margin: 6px 0 22px; font-weight: 900; font-size: 24px; letter-spacing: -0.01em; line-height: 1.1; }
.rez-satir { display: flex; align-items: flex-start; gap: 6px; font-size: 14.5px; margin: 0 0 5px; }
.rez-satir svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; }
.rez-satir a { text-decoration: none; }

.rez-dugmeler { display: flex; gap: 15px; margin-top: 15px; }
.rez-dugme {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 47px; padding: 0 12px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--r-dugme); color: var(--r-metin); font-weight: 600; font-size: 15px;
  text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent;
}
.rez-dugme:hover { background: var(--r-dugme-ust); }
.rez-dugme:focus-visible, .rez-gun:focus-visible, .rez-adim button:focus-visible { outline: 2px solid var(--r-koyu); outline-offset: 2px; }
.rez-dugme.koyu { background: var(--r-koyu); color: #fff; min-height: 52px; }
.rez-dugme.koyu:hover { background: #333; }
.rez-dugme:disabled { opacity: .55; cursor: default; }
.rez-dugme.metin { background: none; text-decoration: underline; font-weight: 400; color: var(--r-soluk); min-height: 40px; }

/* Dar ekran: fotoğraf küçülür, düğmeler yan yana kalır. */
@media (max-width: 480px) {
  .rez-foto { width: 108px; height: 108px; }
  .rez-kart-bilgi h2 { font-size: 20px; margin: 2px 0 12px; }
  .rez-satir { font-size: 13.5px; }
  .rez-dugmeler { gap: 10px; }
  .rez-dugme { font-size: 14px; padding: 0 8px; }
  .rez-ust h1 { font-size: 30px; }
}

/* ------------------------------------------------------------ geri / küçük şube */
.rez-geri {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 0;
  background: none; border: 0; cursor: pointer; font-weight: 600; text-decoration: none;
}
.rez-geri svg { width: 16px; height: 16px; }
.rez-kart.kucuk .rez-foto { width: 72px; height: 72px; }
.rez-kart.kucuk h2 { font-size: 20px; margin: 2px 0 8px; }

/* ------------------------------------------------------------ form */
.rez-bolum { margin: 0 0 20px; }
.rez-bolum:last-child { margin-bottom: 0; }
.rez-etiket { display: block; font-weight: 600; margin: 0 0 8px; }
.rez-etiket .soluk { font-weight: 400; color: var(--r-soluk); }

.rez-gunler { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.rez-gunler::-webkit-scrollbar { display: none; }
.rez-gun {
  flex: 0 0 auto; width: 62px; padding: 8px 0; border: 1px solid var(--r-cizgi); background: var(--r-kart);
  cursor: pointer; text-align: center; line-height: 1.15;
}
.rez-gun span { display: block; font-size: 12px; color: var(--r-soluk); }
.rez-gun strong { display: block; font-size: 20px; font-weight: 900; margin: 2px 0; }
.rez-gun[aria-pressed="true"] { background: var(--r-koyu); border-color: var(--r-koyu); color: #fff; }
.rez-gun[aria-pressed="true"] span { color: #ddd; }
.rez-gun.diger { width: 74px; font-weight: 600; font-size: 13px; }

.rez-girdi {
  display: block; width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid var(--r-cizgi);
  border-radius: 0; background: var(--r-kart); font-size: 16px; /* iOS yakınlaştırmasın */
  -webkit-appearance: none; appearance: none;
}
select.rez-girdi {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
textarea.rez-girdi { min-height: 84px; resize: vertical; }
.rez-girdi:focus { outline: none; border-color: var(--r-koyu); }
.rez-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .rez-iki { grid-template-columns: 1fr; } }
.rez-alan { margin-bottom: 12px; }
.rez-alan:last-child { margin-bottom: 0; }
.rez-alan label { display: block; font-size: 13.5px; color: var(--r-soluk); margin-bottom: 4px; }

.rez-adim { display: flex; align-items: stretch; width: 100%; border: 1px solid var(--r-cizgi); background: var(--r-kart); }
.rez-adim button {
  width: 56px; min-height: 47px; border: 0; background: var(--r-dugme); cursor: pointer; font-size: 22px; font-weight: 600;
}
.rez-adim button:disabled { opacity: .45; cursor: default; }
.rez-adim output { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; }

.rez-kvkk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--r-soluk); cursor: pointer; }
.rez-kvkk input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--r-koyu); flex: 0 0 auto; }
.rez-bilgi { font-size: 13.5px; color: var(--r-soluk); margin: 12px 0 0; }
.rez-hata { color: var(--r-kotu); margin: 12px 0 0; font-weight: 600; }
.rez-hata:empty { display: none; }
.rez-gizli { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ sonuç */
.rez-sonuc { text-align: center; padding: 28px 18px 22px; }
.rez-isaret {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--r-koyu); color: #fff;
}
.rez-isaret svg { width: 30px; height: 30px; }
.rez-isaret.bekle { background: var(--r-bekle); }
.rez-isaret.kotu { background: var(--r-kotu); }
.rez-isaret.soluk { background: var(--r-soluk); }
.rez-sonuc h2 { margin: 0 0 6px; font-weight: 900; font-size: 26px; letter-spacing: -0.01em; }
.rez-sonuc p { margin: 0 auto; max-width: 420px; color: var(--r-soluk); }
.rez-ozet { margin: 22px 0 0; padding: 0; text-align: left; border-top: 1px solid var(--r-cizgi); }
.rez-ozet div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--r-cizgi); }
.rez-ozet dt { color: var(--r-soluk); }
.rez-ozet dd { margin: 0; font-weight: 600; text-align: right; }
.rez-sonuc .rez-kod-etiket { margin: 22px auto 6px; font-size: 13.5px; color: var(--r-soluk); }
.rez-kod { font-weight: 900; font-size: 30px; letter-spacing: .16em; }
.rez-sonuc .rez-bilgi { margin-top: 12px; }
.rez-not { margin: 18px 0 0; padding: 12px; background: var(--r-zemin); text-align: left; font-size: 14px; }
.rez-dugmeler.alt { flex-wrap: wrap; }
.rez-dugmeler.alt .rez-dugme { flex: 1 1 140px; }

/* ------------------------------------------------------------ alt bilgi */
.rez-alt { text-align: center; margin-top: 30px; }
.rez-sosyal { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.rez-sosyal a {
  width: 26px; height: 26px; border-radius: 50%; background: var(--r-koyu); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.rez-sosyal svg { width: 14px; height: 14px; }
.rez-logo {
  display: inline-block; width: 356px; max-width: 80%; aspect-ratio: 954.8 / 138.3; background: var(--r-logo);
  -webkit-mask: url('/assets/logo-yazi.svg?v=8') no-repeat center / contain;
          mask: url('/assets/logo-yazi.svg?v=8') no-repeat center / contain;
}

.rez-yukleniyor, .rez-mesaj { padding: 24px 12px; color: var(--r-soluk); text-align: center; }
