/* GARANTİ · 75th year live campaign · v18 (25.10.2026)
   On top of g13.css + g14-portal-light.css + g17.css (same light brand language).
   Adds: member/guest gate, reservation request form, payment plan table, tracking timeline, EN-page badges.
   Scope: body.g17 (campaign pages). */

/* ---------- access: member sees prices and forms; guest sees a gate, never a price ---------- */
body.g17 [data-access="guest"] [data-member-only],
body.g17 [data-access="member"] [data-guest-only] { display: none !important; }

body.g17 .g18-gate {
  display: grid; gap: 10px; padding: 18px; border-radius: 10px; background: var(--g17-warm-2, #F4F1EC);
  border: 1px dashed #BDB3A5; text-align: left;
}
body.g17 .g18-gate strong { font-size: 16px; }
body.g17 .g18-gate p { color: var(--g-muted); font-size: 14px; line-height: 1.5; }
body.g17 .g18-gate .g17-cta { margin-top: 2px; }
body.g17 .g18-gate--wide { padding: clamp(20px, 3vw, 32px); border-style: solid; border-color: var(--g17-line); background: #fff; }
body.g17 .g18-lock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
body.g17 .g18-lock svg { width: 18px; height: 18px; color: var(--g-red); }

/* EN-only page badge on links that leave the Turkish preview */
body.g17 .g18-en { display: inline-flex; align-items: center; margin-left: 6px; padding: 0 5px; min-height: 16px; border-radius: 3px; border: 1px solid currentColor; font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1; text-decoration: none !important; opacity: .8; vertical-align: middle; }

/* ---------- campaign facts strip ---------- */
body.g17 .g18-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--g17-line); }
body.g17 .g18-facts > div { padding: 14px 16px 4px 0; }
body.g17 .g18-facts > div + div { padding-left: 16px; border-left: 1px solid var(--g17-line); }
body.g17 .g18-facts dt { color: var(--g-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
body.g17 .g18-facts dd { margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.25; }
body.g17 .g18-facts dd small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--g-muted); }
body.g17 .g18-facts .is-wait small { color: #6b4600; font-weight: 600; }

/* ---------- prices on cards ---------- */
body.g17 .g18-was { color: var(--g-muted); font-size: 15px; text-decoration: line-through; text-decoration-thickness: 1px; }
body.g17 .g18-save { display: inline-flex; align-items: center; min-height: 24px; margin-left: 8px; padding: 0 8px; border-radius: 4px; background: var(--g-red); color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle; }
body.g17 .g18-incl { margin-top: 8px; font-size: 14px; line-height: 1.45; }
body.g17 .g18-incl strong { color: #145c39; }

/* ---------- payment plan table ---------- */
body.g17 .g18-plan { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: 10px; overflow: hidden; }
body.g17 .g18-plan caption { padding: 0 0 10px; text-align: left; color: var(--g-muted); font-size: 14px; }
body.g17 .g18-plan th, body.g17 .g18-plan td { padding: 12px 14px; border-bottom: 1px solid var(--g17-line); text-align: right; font-variant-numeric: tabular-nums; vertical-align: top; }
body.g17 .g18-plan th:first-child, body.g17 .g18-plan td:first-child { text-align: left; }
body.g17 .g18-plan thead th { background: var(--g-ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
body.g17 .g18-plan tbody th { font-weight: 600; }
body.g17 .g18-plan tbody th small { display: block; color: var(--g-muted); font-weight: 400; font-size: 13px; }
body.g17 .g18-plan tfoot td { color: var(--g-muted); font-size: 13px; text-align: left; }
body.g17 .g18-tablewrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--g17-line); }

/* ---------- terms summary (numbered steps) ---------- */
body.g17 .g18-flow { display: grid; gap: 0; margin-top: 20px; counter-reset: f; border-left: 2px solid var(--g17-line); }
body.g17 .g18-flow li { position: relative; padding: 0 0 18px 26px; counter-increment: f; }
body.g17 .g18-flow li::before { content: counter(f) !important; position: absolute; left: -15px; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--g-ink); font-size: 13px; font-weight: 700; }
body.g17 .g18-flow li.is-key::before { background: var(--g-red); border-color: var(--g-red); color: #fff; }
body.g17 .g18-flow strong { display: block; font-size: 16px; }
body.g17 .g18-flow p { margin-top: 2px; color: var(--g-ink); font-size: 15px; line-height: 1.5; }
body.g17 .g18-flow p small { color: var(--g-muted); }
body.g17 .g18-notice { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: #FBEFD6; color: #4d3300; font-size: 15px; line-height: 1.5; border: 1px solid #F0DDB2; }
body.g17 .g18-notice strong { color: #3d2800; }

/* ---------- reservation request form ---------- */
body.g17 .g18-res { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
body.g17 .g18-units { display: grid; gap: 10px; }
body.g17 .g18-unit { position: relative; }
body.g17 .g18-unit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.g17 .g18-unit label {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 88px; padding: 10px 16px 10px 10px; cursor: pointer;
  border: 1px solid var(--g17-line); border-radius: 12px; background: #fff; transition: border-color var(--g-t-fast) var(--g-ease), box-shadow var(--g-t-fast) var(--g-ease);
}
body.g17 .g18-unit img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--g17-warm-2, #F4F1EC); }
body.g17 .g18-unit strong { display: block; font-size: 17px; }
body.g17 .g18-unit span { color: var(--g-muted); font-size: 14px; }
body.g17 .g18-unit b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.g17 .g18-unit input:checked + label { border-color: var(--g-red); box-shadow: inset 0 0 0 2px var(--g-red); }
body.g17 .g18-unit input:focus-visible + label { outline: 2px solid var(--g-ink); outline-offset: 3px; }
body.g17 .g18-me { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; padding: 14px 16px; border-radius: 10px; background: var(--g17-warm-2, #F4F1EC); font-size: 15px; }
body.g17 .g18-me dt { color: var(--g-muted); }
body.g17 .g18-summary { display: grid; gap: 8px; padding: 16px; border-radius: 10px; border: 1px solid var(--g17-line); background: #fff; font-size: 14px; line-height: 1.5; }
body.g17 .g18-summary ul li { position: relative; padding-left: 16px; }
body.g17 .g18-summary ul li::before { content: "" !important; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--g-red); }
body.g17 .g17-form button.g-btn[disabled] { opacity: .55 !important; cursor: not-allowed; }
body.g17 .g18-result { display: grid; gap: 10px; padding: 22px; border-radius: 12px; background: #E9F4EE; border: 1px solid #BFDCCB; }
body.g17 .g18-result h3 { font-size: 20px; font-weight: 700; color: #145c39; }
body.g17 .g18-result p { font-size: 15px; line-height: 1.55; }
body.g17 .g18-result .g18-pill { justify-self: start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid #BFDCCB; font-size: 13px; font-weight: 700; }
body.g17 [data-state="form"] [data-show="result"], body.g17 [data-state="result"] [data-show="form"] { display: none !important; }

/* ---------- tracking timeline ---------- */
body.g17 .g18-track { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 4vw, 48px); align-items: start; }
body.g17 .g18-reqhead { display: grid; gap: 6px; padding: 20px; border-radius: 12px; background: #fff; border: 1px solid var(--g17-line); }
body.g17 .g18-reqhead h3 { font-size: 22px; font-weight: 700; }
body.g17 .g18-reqhead p { color: var(--g-muted); font-size: 14px; }
body.g17 .g18-status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; background: #E5F2EA; color: #145c39; font-size: 13px; font-weight: 700; }
body.g17 .g18-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
body.g17 .g18-tl { margin-top: 18px; display: grid; }
body.g17 .g18-tl li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
body.g17 .g18-tl li::before { content: "" !important; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--g17-line); }
body.g17 .g18-tl li:last-child::before { display: none; }
body.g17 .g18-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #BDB3A5; color: var(--g-muted); font-size: 12px; font-weight: 700; }
body.g17 .g18-tl li.is-done .g18-dot { background: var(--g-ink); border-color: var(--g-ink); color: #fff; }
body.g17 .g18-tl li.is-now .g18-dot { background: var(--g-red); border-color: var(--g-red); color: #fff; box-shadow: 0 0 0 4px #F8E6E8; }
body.g17 .g18-tl strong { display: block; font-size: 16px; }
body.g17 .g18-tl li:not(.is-done):not(.is-now) strong { color: var(--g-muted); }
body.g17 .g18-tl p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--g-ink); }
body.g17 .g18-tl .g18-who { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--g-muted); letter-spacing: .04em; text-transform: uppercase; }
body.g17 .g18-side { display: grid; gap: 12px; }
body.g17 .g18-side .g15-card, body.g17 .g18-card { padding: 18px; border-radius: 12px; background: #fff; border: 1px solid var(--g17-line); }
body.g17 .g18-card h3 { font-size: 16px; font-weight: 700; }
body.g17 .g18-card p, body.g17 .g18-card li { margin-top: 6px; font-size: 14px; line-height: 1.5; }
body.g17 .g18-mini { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
body.g17 .g18-mini td { padding: 6px 0; border-bottom: 1px solid var(--g17-line); }
body.g17 .g18-mini td:last-child { text-align: right; font-weight: 600; }

@media (max-width: 999px) {
  body.g17 .g18-res, body.g17 .g18-track { grid-template-columns: 1fr; }
  body.g17 .g18-facts { grid-template-columns: 1fr 1fr; }
  body.g17 .g18-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 690px) {
  body.g17 .g18-facts > div { padding-right: 8px; }
  body.g17 .g18-facts > div + div { padding-left: 10px; }
  body.g17 .g18-unit label { grid-template-columns: 56px minmax(0, 1fr); }
  body.g17 .g18-unit img { width: 56px; height: 56px; }
  body.g17 .g18-unit b { grid-column: 2; }
  body.g17 .g18-me { grid-template-columns: 1fr; gap: 0 0; }
  body.g17 .g18-me dd { margin-bottom: 8px; }
  body.g17 .g18-plan th, body.g17 .g18-plan td { padding: 10px; font-size: 14px; }
}
/* the theme colours table cells; keep campaign tables readable */
body.g17 :is(.g18-plan, .g18-mini) :is(td, th) { color: var(--g-ink) !important; background-color: transparent; }
body.g17 .g18-plan tbody tr { background: #fff !important; }
body.g17 .g18-plan thead th { color: #fff !important; background: var(--g-ink) !important; }
body.g17 .g18-plan tbody th small, body.g17 .g18-plan tfoot td { color: var(--g-muted) !important; }
/* terms: the flow reads first, the payment table gets the full width below */
body.g17 .g18-stack { display: grid; gap: 28px; margin-top: 8px; }
body.g17 .g18-stack .g18-flow, body.g17 .g18-stack .g18-notice { max-width: 860px; }
