/* Reservation module (/rezervasyon/), v2 2026-10-17: request mode (no prices) is the live
   default; booking-mode styles below are kept for when owner data arrives.
   Palette = knowledge/brands/organizasyonlotus/TOKENS.json.
   Scoped under .rez so it cannot repaint the shared header/footer.
   /assets/* is immutable for a year: a change ships as rezervasyon.v3.css. */
.rez {
  --rez-primary: #d96270;
  --rez-primary-hover: #c45260;
  --rez-secondary: #e8a0a8;
  --rez-tertiary: #c9a869;
  --rez-henna: #9c2a2a;
  --rez-warm: #fef5f2;
  --rez-surface: #ffffff;
  --rez-ink: #2c1810;
  --rez-caption: #6b5450;
  --rez-line: rgba(44, 24, 16, 0.12);
  --rez-radius: 16px;
  color: var(--rez-ink);
}
.rez *, .rez *::before, .rez *::after { box-sizing: border-box; }
.rez [hidden], .rez[hidden] { display: none !important; }

.rez-hero { text-align: center; margin-bottom: 2.25rem; }
.rez-kicker {
  display: inline-block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--rez-primary); font-weight: 600; margin-bottom: .75rem;
}
.rez-hero h1 {
  font-family: Belleza, serif; font-style: italic; font-weight: 400;
  font-size: 2.25rem; line-height: 1.15; margin: 0 0 .85rem;
}
.rez-hero p { color: var(--rez-caption); max-width: 34rem; margin: 0 auto; line-height: 1.7; }
@media (min-width: 768px) { .rez-hero h1 { font-size: 3rem; } }

.rez-draft {
  border: 1px dashed var(--rez-henna); background: #fff; color: var(--rez-henna);
  border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.5rem; font-size: .9rem; line-height: 1.55;
}

.rez-card {
  background: var(--rez-surface); border: 1px solid rgba(232, 160, 168, .35);
  border-radius: var(--rez-radius); padding: 1.5rem 1.25rem; margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .rez-card { padding: 1.85rem 2rem; } }
.rez-card-title { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.rez-card-title span {
  flex: none; width: 2rem; height: 2rem; border-radius: 999px; background: var(--rez-primary);
  color: #fff; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center;
}
.rez-card-title h2 { font-family: Belleza, serif; font-style: italic; font-weight: 400; font-size: 1.5rem; margin: 0; }
.rez-help { color: var(--rez-caption); font-size: .92rem; line-height: 1.6; margin: -.4rem 0 1.1rem; }

.rez-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .rez-grid { grid-template-columns: 1fr 1fr; } .rez-grid .full { grid-column: 1 / -1; } }
.rez-field { display: flex; flex-direction: column; gap: .4rem; }
.rez-field > span { font-size: .85rem; font-weight: 600; color: var(--rez-ink); }
.rez-field > span small { font-weight: 400; color: var(--rez-caption); }
.rez-field input, .rez-field select, .rez-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--rez-ink); background: var(--rez-warm);
  border: 1px solid var(--rez-line); border-radius: 12px; padding: .8rem .95rem; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rez-field textarea { min-height: 110px; resize: vertical; }
.rez-field input:focus, .rez-field select:focus, .rez-field textarea:focus {
  outline: none; border-color: var(--rez-primary); box-shadow: 0 0 0 3px rgba(217, 98, 112, .18);
}
.rez-field.invalid input, .rez-field.invalid select, .rez-field.invalid textarea { border-color: var(--rez-henna); }
.rez-field .rez-err { color: var(--rez-henna); font-size: .8rem; display: none; }
.rez-field.invalid .rez-err { display: block; }

.rez-note {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--rez-warm);
  color: var(--rez-caption); font-size: .88rem; line-height: 1.55;
}
.rez-note strong { color: var(--rez-ink); }

/* Packages */
.rez-packages { display: grid; gap: 1rem; }
@media (min-width: 768px) { .rez-packages { grid-template-columns: 1fr 1fr; } }
.rez-empty { color: var(--rez-caption); font-size: .92rem; padding: 1rem; text-align: center; background: var(--rez-warm); border-radius: 12px; }
.rez-pkg {
  position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--rez-surface); border: 1.5px solid var(--rez-line); border-radius: var(--rez-radius);
  padding: 1.25rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rez-pkg:hover { border-color: var(--rez-secondary); }
.rez-pkg:focus-visible { outline: 3px solid rgba(217, 98, 112, .35); outline-offset: 2px; }
.rez-pkg[aria-pressed="true"] { border-color: var(--rez-primary); box-shadow: 0 10px 28px -14px rgba(217, 98, 112, .55); }
.rez-pkg[aria-pressed="true"]::after {
  content: '✓'; position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 999px;
  background: var(--rez-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700;
}
.rez-pkg.featured { background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--rez-warm) 100%); }
.rez-pkg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.rez-pkg-head small { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--rez-primary); font-weight: 600; margin-bottom: .2rem; }
.rez-pkg-head strong { font-family: Belleza, serif; font-style: italic; font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.rez-price { text-align: right; white-space: nowrap; }
.rez-price b { display: block; font-size: 1.3rem; font-weight: 700; color: var(--rez-ink); }
.rez-price s { display: block; font-size: .8rem; color: var(--rez-caption); }
.rez-badge {
  align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--rez-caption);
  background: var(--rez-warm); border: 1px solid var(--rez-line); border-radius: 999px; padding: .2rem .65rem;
}
.rez-campaign {
  border-radius: 12px; background: rgba(201, 168, 105, .14); border: 1px solid rgba(201, 168, 105, .45);
  padding: .65rem .8rem; font-size: .82rem; line-height: 1.45;
}
.rez-campaign small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #8a6d33; }
.rez-items { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: var(--rez-caption); }
.rez-items span::before { content: '✓'; color: var(--rez-primary); font-weight: 700; margin-right: .5rem; }
.rez-items[hidden] { display: none; }
.rez-more {
  align-self: flex-start; font-size: .82rem; font-weight: 600; color: var(--rez-primary);
  background: none; border: 0; padding: .25rem 0; cursor: pointer; font-family: inherit;
}
.rez-more:hover { color: var(--rez-primary-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Extras */
.rez-extras { display: grid; gap: .75rem; }
.rez-extra {
  display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: center; cursor: pointer;
  border: 1.5px solid var(--rez-line); border-radius: 14px; padding: .9rem 1rem; background: var(--rez-surface);
  transition: border-color .15s ease;
}
.rez-extra input { position: absolute; opacity: 0; pointer-events: none; }
.rez-extra .rez-tick {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--rez-secondary);
  display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: .8rem; font-weight: 700;
}
.rez-extra.radio .rez-tick { border-radius: 999px; }
.rez-extra:has(input:checked) { border-color: var(--rez-primary); }
.rez-extra:has(input:checked) .rez-tick { background: var(--rez-primary); border-color: var(--rez-primary); color: #fff; }
.rez-extra:has(input:focus-visible) { outline: 3px solid rgba(217, 98, 112, .35); outline-offset: 2px; }
.rez-extra strong { display: block; font-weight: 600; font-size: .95rem; }
.rez-extra small { display: block; color: var(--rez-caption); font-size: .82rem; line-height: 1.45; margin-top: .15rem; }
.rez-extra b { font-weight: 700; white-space: nowrap; font-size: .95rem; }
.rez-extra b small { display: inline; font-weight: 400; margin-left: .2rem; }
.rez-subtotal { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rez-line); font-size: .95rem; }
.rez-subtotal strong { font-weight: 700; }

/* Deposit */
.rez-bank { display: grid; gap: .1rem; background: var(--rez-warm); border-radius: 14px; padding: .4rem 1.1rem; }
.rez-bank p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--rez-line); font-size: .92rem; }
.rez-bank p:last-child { border-bottom: 0; }
.rez-bank span { color: var(--rez-caption); }
.rez-bank strong { text-align: right; word-break: break-word; }
.rez-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }

.rez-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .92rem; border-radius: 999px; padding: .8rem 1.35rem; min-height: 46px;
  border: 1.5px solid var(--rez-line); background: var(--rez-surface); color: var(--rez-ink); text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.rez-btn:hover { border-color: var(--rez-primary); color: var(--rez-primary); }
.rez-btn.primary { background: var(--rez-primary); border-color: var(--rez-primary); color: #fff; box-shadow: 0 14px 30px -16px rgba(217, 98, 112, .8); }
.rez-btn.primary:hover { background: var(--rez-primary-hover); border-color: var(--rez-primary-hover); color: #fff; }
.rez-btn.wa { background: #1f9e4f; border-color: #1f9e4f; color: #fff; }
.rez-btn.wa:hover { background: #1a8744; border-color: #1a8744; color: #fff; }
.rez-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.rez-btn.block { width: 100%; }
.rez-copied { font-size: .85rem; color: #1a8744; margin-top: .6rem; min-height: 1.2em; }

/* Summary */
.rez-summary {
  background: var(--rez-ink); color: var(--rez-warm); border-radius: var(--rez-radius); padding: 1.5rem 1.25rem; margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .rez-summary { padding: 1.75rem 2rem; } }
.rez-summary h2 { font-family: Belleza, serif; font-style: italic; font-weight: 400; font-size: 1.4rem; margin: 0 0 1rem; color: #fff; }
.rez-sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(254, 245, 242, .12); font-size: .93rem; }
.rez-sum-row span { color: rgba(254, 245, 242, .7); }
.rez-sum-row strong { text-align: right; }
.rez-sum-row.total strong { font-size: 1.2rem; }
.rez-summary .rez-btn { margin-top: 1.25rem; }
.rez-form-error { color: #ffd6db; font-size: .88rem; margin-top: .75rem; min-height: 1.2em; }

/* Sticky mobile total */
.rez-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rez-line); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px -20px rgba(44, 24, 16, .35); transform: translateY(110%); transition: transform .2s ease;
}
.rez-sticky.show { transform: none; }
.rez-sticky span { display: block; font-size: .75rem; color: var(--rez-caption); }
.rez-sticky strong { font-size: 1.1rem; }
.rez-sticky .rez-btn { padding: .65rem 1.1rem; min-height: 42px; }
@media (min-width: 1024px) { .rez-sticky { display: none; } }
@media (prefers-reduced-motion: reduce) { .rez-sticky, .rez-pkg, .rez-btn { transition: none; } }

/* Contract modal */
.rez-modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(44, 24, 16, .55); }
.rez-modal.open { display: flex; }
.rez-dialog {
  position: relative; width: 100%; max-width: 760px; max-height: calc(100dvh - 2rem); display: flex; flex-direction: column;
  background: var(--rez-surface); border-radius: 20px; padding: 1.5rem 1.25rem 1.25rem; overflow: hidden;
}
@media (min-width: 640px) { .rez-dialog { padding: 2rem 2rem 1.5rem; } }
.rez-close {
  position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: var(--rez-warm); color: var(--rez-ink); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.rez-dialog h2 { font-family: Belleza, serif; font-style: italic; font-weight: 400; font-size: 1.6rem; margin: 0 0 .35rem; padding-right: 3rem; }
.rez-dialog .rez-help { margin: 0 0 1rem; }
.rez-contract {
  flex: 1 1 auto; min-height: 180px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--rez-line); border-radius: 14px;
  padding: 1.1rem 1.15rem; background: var(--rez-warm); font-size: .88rem; line-height: 1.65; color: var(--rez-ink);
}
.rez-contract h3 { font-size: .95rem; font-weight: 700; margin: 1.35rem 0 .5rem; }
.rez-contract h3:first-child { margin-top: 0; }
.rez-contract p { margin: 0 0 .6rem; }
.rez-contract ol, .rez-contract ul { margin: 0 0 .75rem; padding-left: 1.25rem; }
.rez-contract ol { list-style: decimal; }
.rez-contract ul { list-style: disc; }
.rez-contract li { margin-bottom: .35rem; }
.rez-contract table { width: 100%; border-collapse: collapse; margin: .5rem 0 .9rem; font-size: .85rem; }
.rez-contract td { border: 1px solid var(--rez-line); padding: .45rem .6rem; vertical-align: top; background: #fff; }
.rez-contract td:first-child { width: 38%; color: var(--rez-caption); }
.rez-contract .rez-warn { border-left: 3px solid var(--rez-henna); background: #fff; padding: .65rem .8rem; border-radius: 0 10px 10px 0; }
.rez-contract-end { text-align: center; color: var(--rez-caption); font-size: .8rem; padding-top: .5rem; }
.rez-consent { flex: none; padding-top: 1rem; display: grid; gap: .65rem; }
.rez-check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; line-height: 1.5; cursor: pointer; }
.rez-check input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--rez-primary); flex: none; }
.rez-check:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.rez-phrase label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: .3rem; }
.rez-phrase input {
  width: 100%; font: inherit; font-size: 16px; border: 1px solid var(--rez-line); border-radius: 12px; padding: .7rem .9rem; background: var(--rez-warm);
}
.rez-phrase input:disabled { opacity: .5; }
.rez-phrase small { display: block; margin-top: .3rem; font-size: .8rem; color: var(--rez-caption); }
.rez-phrase small.ok { color: #1a8744; }

/* Done state */
.rez-done { text-align: center; padding: 2.5rem 1.25rem; }
.rez-done .rez-ref { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--rez-warm); border-radius: 10px; padding: .4rem .8rem; margin: .5rem 0 1rem; }
.rez-done h2 { font-family: Belleza, serif; font-style: italic; font-weight: 400; font-size: 1.8rem; margin: 0 0 .5rem; }
.rez-done p { color: var(--rez-caption); line-height: 1.7; max-width: 32rem; margin: 0 auto 1rem; }
.rez-done .rez-actions { justify-content: center; }

/* The site's compiled Tailwind ships the forms plugin: it paints checked boxes and focus rings
   blue via `color`/box-shadow, which accent-color alone does not override. */
.rez-check input { color: var(--rez-primary); border-radius: 5px; border-color: var(--rez-secondary); }
.rez-check input:focus { --tw-ring-color: rgba(217, 98, 112, .35); }
.rez-phrase input:focus, .rez-field input:focus, .rez-field select:focus, .rez-field textarea:focus { --tw-ring-color: transparent; }
.rez-phrase input:focus { outline: none; border-color: var(--rez-primary); box-shadow: 0 0 0 3px rgba(217, 98, 112, .18); }

/* Contract tables must wrap, never scroll sideways inside the 390px dialog. */
.rez-contract { overflow-x: hidden; }
.rez-contract table { table-layout: fixed; }
.rez-contract td { overflow-wrap: anywhere; }

/* Until the reader reaches the end, the consent block stays collapsed so the contract
   gets the dialog's height on a phone; it opens in place once the end is reached. */
.rez-consent.locked .rez-check, .rez-consent.locked .rez-phrase { display: none; }
.rez-consent.locked::before {
  content: 'Onay alanları için sözleşmenin sonuna kadar kaydırın ↓'; display: block; text-align: center;
  font-size: .82rem; color: var(--rez-caption); padding: .25rem 0 .1rem;
}

/* ===================== v2: request mode, mobile first ===================== */
.rez-hero { margin-bottom: 1.5rem; }
.rez-hero h1 { font-size: 2rem; margin-bottom: .6rem; }
.rez-hero p { font-size: .95rem; line-height: 1.6; }
@media (min-width: 768px) { .rez-hero { margin-bottom: 2.25rem; } .rez-hero h1 { font-size: 3rem; } .rez-hero p { font-size: 1rem; } }
.rez-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.rez-trust li { font-size: .78rem; font-weight: 500; color: var(--rez-caption); background: #fff; border: 1px solid rgba(232, 160, 168, .45); border-radius: 999px; padding: .3rem .7rem; }
.rez-trust li::before { content: '✓'; color: var(--rez-primary); font-weight: 700; margin-right: .35rem; }

.rez-card { padding: 1.25rem 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .rez-card { padding: 1.85rem 2rem; margin-bottom: 1.25rem; } }
.rez-card-title { margin-bottom: 1rem; }
.rez-card-title h2 { font-size: 1.35rem; }

.rez-grid.two { grid-template-columns: 1fr 1fr; gap: .85rem .75rem; }
.rez-grid.two .full { grid-column: 1 / -1; }
.rez-field select { padding-left: .7rem; padding-right: 1.9rem; text-overflow: ellipsis; }
.rez-field input[type="date"] { padding-left: .7rem; padding-right: .5rem; min-width: 0; }
.rez-field input, .rez-field select { min-width: 0; }

/* Event type: one tap, not a dropdown. */
.rez-typefield { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.rez-typefield legend { font-size: .85rem; font-weight: 600; margin-bottom: .5rem; padding: 0; }
.rez-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rez-chip { position: relative; cursor: pointer; }
.rez-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rez-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--rez-line); background: var(--rez-warm); font-size: .92rem; font-weight: 500; color: var(--rez-ink);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.rez-chip:hover span { border-color: var(--rez-secondary); }
.rez-chip input:checked + span { background: var(--rez-primary); border-color: var(--rez-primary); color: #fff; }
.rez-chip input:focus-visible + span { outline: 3px solid rgba(217, 98, 112, .4); outline-offset: 2px; }
.rez-typefield.invalid .rez-chip span { border-color: var(--rez-henna); }

/* Optional details, collapsed. */
.rez-details { margin-top: 1rem; border: 1px dashed rgba(232, 160, 168, .7); border-radius: 14px; background: #fff; }
.rez-details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; font-size: .92rem; font-weight: 600; color: var(--rez-primary); min-height: 48px;
}
.rez-details > summary::-webkit-details-marker { display: none; }
.rez-details > summary small { display: block; font-weight: 400; color: var(--rez-caption); font-size: .78rem; line-height: 1.4; margin-top: .15rem; }
.rez-details > summary::after { content: '+'; font-size: 1.25rem; line-height: 1; font-weight: 400; }
.rez-details[open] > summary::after { content: '−'; }
.rez-details > summary:focus-visible { outline: 3px solid rgba(217, 98, 112, .35); outline-offset: 2px; border-radius: 14px; }
.rez-details > .rez-grid { padding: 0 1rem 1rem; }

.rez-kvkk { margin-top: 1.1rem; }
.rez-kvkk a { color: var(--rez-henna); text-decoration: underline; text-underline-offset: 2px; }
.rez-kvkk.invalid .rez-check span { color: var(--rez-henna); }

.rez-submit { margin: .25rem 0 1rem; }
.rez-submit .rez-btn.primary { min-height: 56px; font-size: 1rem; }
.rez-ico { width: 1.15rem; height: 1.15rem; flex: none; }
.rez-fine { text-align: center; color: var(--rez-caption); font-size: .82rem; line-height: 1.55; margin: .75rem auto 0; max-width: 30rem; }
.rez-submit .rez-form-error { color: var(--rez-henna); text-align: center; }

.rez-done:focus { outline: none; }

/* The KVKK wrapper is a .rez-field (for its error state), so undo the text-input sizing. */
.rez-field.rez-kvkk .rez-check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin-top: .1rem; border-radius: 6px; background: #fff; border: 1.5px solid var(--rez-secondary); flex: none; }
.rez-field.rez-kvkk .rez-check input:checked { background-color: var(--rez-primary); border-color: var(--rez-primary); }
.rez-field.rez-kvkk.invalid .rez-check input { border-color: var(--rez-henna); }
