/*
 * Service Hero V2 — Overlay Layout
 * Namespace: .shv2-
 * Scoped to body.service-page to avoid homepage bleed
 */

body.service-page {
  --shv2-gold: #f0b429;
  --shv2-gold-d: #c8920a;
  --shv2-gold-x: #ffd060;
  --shv2-ink: #080808;
  --shv2-dark: #0e0e0e;
  --shv2-mid: #5a5a5a;
  --shv2-dim: #9a9a9a;
  --shv2-border: #e4dfd5;
  --shv2-off: #f8f5ef;
  --shv2-white: #fff;
  --shv2-r: 12px;
}

/* ── Hero wrapper ── */
.shv2 {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  width: 100%;
}

/* ── Background image ── */
.shv2-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 35%;
  background-image: url('../img/istanbul-car-service.webp');
}

/* ── Dark overlay ── */
.shv2-ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(6,10,16,.88) 0%,
    rgba(6,10,16,.74) 42%,
    rgba(6,10,16,.54) 70%,
    rgba(6,10,16,.36) 100%
  );
}

/* ── Content grid: copy left | card right ── */
.shv2-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px);
  box-sizing: border-box;
  width: 100%;
}

/* ── Service copy (left col) ── */
.shv2-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 620px;
  padding-left: clamp(16px, 4vw, 72px);
  padding-right: clamp(8px, 2vw, 24px);
  box-sizing: border-box;
}

.shv2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--shv2-gold);
  margin-bottom: 16px;
}
.shv2-eyebrow::before,
.shv2-eyebrow::after {
  content: '';
  display: block;
  height: 1.5px;
  background: var(--shv2-gold);
  opacity: .45;
}
.shv2-eyebrow::before { width: 14px; }
.shv2-eyebrow::after  { flex: 1; max-width: 60px; }

.shv2-title {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}
.shv2-title em { font-style: normal; color: var(--shv2-gold); }

.shv2-desc {
  font-size: 14.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.72;
  max-width: 100%;
  margin-bottom: 28px;
  white-space: normal;
  word-break: break-word;
}

.shv2-trust-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.shv2-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.60);
}
.shv2-trust-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(240,180,41,.1);
  border: 1px solid rgba(240,180,41,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── Booking card (right col) ── */
#service-booking.shv2-card,
.shv2-card#service-booking {
  scroll-margin-top: clamp(72px, 10vh, 120px);
}

.shv2-card {
  background: var(--shv2-white);
  border-radius: var(--shv2-r);
  box-shadow:
    0 2px 0 0 var(--shv2-gold) inset,
    0 24px 60px rgba(0,0,0,.32),
    0 4px 12px rgba(0,0,0,.12);
  overflow: hidden;
}

/* ── Tabs ── */
.shv2-tabs {
  display: flex;
  border-bottom: 1px solid var(--shv2-border);
  background: var(--shv2-off);
  padding: 0 16px;
}
.shv2-tab {
  padding: 12px 14px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--shv2-dim);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s;
  font-family: inherit;
}
.shv2-tab.active { color: var(--shv2-ink); border-bottom-color: var(--shv2-gold); }
.shv2-tab:hover  { color: var(--shv2-ink); }

/* ── Panels ── */
.shv2-panel {
  display: none;
  padding: 14px 16px 0;
  flex-direction: column;
  gap: 9px;
}
.shv2-panel.active { display: flex; }

/* ── Field wrappers ── */
.shv2-f {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shv2-row { display: grid; gap: 9px; }
.shv2-row--2 { grid-template-columns: 1fr 1fr; }
.shv2-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.shv2-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--shv2-dim);
}

/* ── Inputs ── */
.shv2-input,
.shv2-transfer-form input[type="text"],
.shv2-cwd-form input[type="text"] {
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--shv2-ink) !important;
  background: var(--shv2-off) !important;
  border: 1.5px solid var(--shv2-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .15s, background .15s !important;
  display: block !important;
  float: none !important;
  margin: 0 !important;
}
.shv2-input:focus,
.shv2-transfer-form input[type="text"]:focus,
.shv2-cwd-form input[type="text"]:focus {
  border-color: var(--shv2-gold) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(240,180,41,.11) !important;
}
.shv2-input::placeholder { color: #c0b8ae; font-size: 12px; }
.shv2-input--ltr { direction: ltr !important; text-align: left !important; }

/* ── Selects ── */
.shv2-sel-w { position: relative; }
.shv2-sel {
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 26px 0 12px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--shv2-ink) !important;
  background: var(--shv2-off) !important;
  border: 1.5px solid var(--shv2-border) !important;
  border-radius: 8px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  outline: none !important;
  transition: border-color .15s !important;
  /* reset any nice-select interference */
  display: block !important;
  margin: 0 !important;
  line-height: normal !important;
  height: auto !important;
}
.shv2-sel:focus { border-color: var(--shv2-gold) !important; background: #fff !important; }
.shv2-sel-w::after {
  content: '▾';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--shv2-gold);
  pointer-events: none;
  font-size: 13px;
}

/* ── Pickup row with +Stop button ── */
.shv2-pickup-row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}
.shv2-pickup-row .shv2-input { flex: 1 1 auto; }
.shv2-stop-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 11px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--shv2-dim);
  background: var(--shv2-off);
  border: 1.5px solid var(--shv2-border);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.shv2-stop-btn:hover { border-color: var(--shv2-gold); color: var(--shv2-gold-d); }

/* ── Return options row ── */
.shv2-opts-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 7px 0;
  border-top: 1px solid var(--shv2-border);
  font-size: 12px;
}
.shv2-opt-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--shv2-dim);
  text-transform: uppercase;
}
.shv2-chk-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--shv2-mid);
  cursor: pointer;
}
.shv2-chk {
  width: 14px;
  height: 14px;
  accent-color: var(--shv2-gold);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Hire mode toggle (CWD) ── */
.shv2-hire-toggle {
  display: inline-flex;
  border: 1.5px solid var(--shv2-border);
  border-radius: 7px;
  overflow: hidden;
}
.shv2-hs { position: relative; }
.shv2-hs input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.shv2-hs label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all .15s;
  border-right: 1px solid var(--shv2-border);
}
.shv2-hs:last-child label { border-right: none; }
.shv2-hs input:checked + label {
  background: var(--shv2-ink);
  color: var(--shv2-gold);
  font-weight: 700;
}

/* ── Return date ── */
.shv2-return-date { display: none; }
.shv2-return-date.show { display: flex; flex-direction: column; gap: 4px; }

/* ── Card footer tied to its panel (hides when panel is inactive) ── */
.shv2-panel + .shv2-card-foot { display: none; }
.shv2-panel.active + .shv2-card-foot { display: flex; }

/* ── Card footer ── */
.shv2-card-foot {
  padding: 11px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--shv2-border);
  margin-top: 8px;
  background: var(--shv2-off);
}
.shv2-trust-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.shv2-ti {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--shv2-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}
.shv2-ti::before { content: '✓'; color: var(--shv2-gold); }

/* ── Submit button ── */
.shv2-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  background: var(--shv2-gold) !important;
  color: var(--shv2-ink) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  min-height: 40px !important;
  padding: 0 22px !important;
  border: none !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px rgba(240,180,41,.32) !important;
  transition: background .15s, transform .1s !important;
  white-space: nowrap;
  letter-spacing: .03em;
  text-transform: uppercase;
  width: auto !important;
  float: none !important;
}
.shv2-submit:hover {
  background: var(--shv2-gold-d) !important;
  transform: translateY(-1px);
}

/* ── Intercity stop inputs ── */
.shv2-cwd-form .cwd-v3-booking-stop { margin-bottom: 6px; }
.shv2-cwd-form .cwd-v3-booking-stop input { width: 100%; }

/* ── LTR lock for non-Arabic (all locales where html[dir] != rtl) ── */
html:not([dir="rtl"]) .shv2-content,
html:not([dir="rtl"]) .shv2-panel,
html:not([dir="rtl"]) .shv2-card {
  direction: ltr !important;
  text-align: left !important;
}
html:not([dir="rtl"]) .shv2-input,
html:not([dir="rtl"]) .shv2-sel,
html:not([dir="rtl"]) .shv2-lbl,
html:not([dir="rtl"]) .shv2-opts-row,
html:not([dir="rtl"]) .shv2-chk-lbl {
  direction: ltr !important;
  text-align: left !important;
}

/* ─────────────────────────────────────
   RTL SUPPORT (Arabic — html[dir="rtl"])
───────────────────────────────────── */
html[dir="rtl"] .shv2-content,
.is-rtl .shv2-content {
  direction: rtl;
}
html[dir="rtl"] .shv2-copy,
.is-rtl .shv2-copy {
  text-align: right;
}
html[dir="rtl"] .shv2-title,
html[dir="rtl"] .shv2-desc,
.is-rtl .shv2-title,
.is-rtl .shv2-desc {
  text-align: right;
}
html[dir="rtl"] .shv2-eyebrow,
.is-rtl .shv2-eyebrow {
  flex-direction: row-reverse;
}
html[dir="rtl"] .shv2-trust-item,
.is-rtl .shv2-trust-item {
  flex-direction: row-reverse;
}
html[dir="rtl"] .shv2-tabs,
.is-rtl .shv2-tabs {
  flex-direction: row-reverse;
}
html[dir="rtl"] .shv2-pickup-row,
.is-rtl .shv2-pickup-row {
  flex-direction: row-reverse;
}
html[dir="rtl"] .shv2-opts-row,
.is-rtl .shv2-opts-row {
  flex-direction: row-reverse;
}
html[dir="rtl"] .shv2-input:not(.shv2-input--ltr),
.is-rtl .shv2-input:not(.shv2-input--ltr) {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .shv2-sel,
.is-rtl .shv2-sel {
  direction: rtl;
  text-align: right;
  padding: 0 12px 0 26px !important;
}
html[dir="rtl"] .shv2-sel-w::after,
.is-rtl .shv2-sel-w::after {
  right: auto;
  left: 8px;
}
html[dir="rtl"] .shv2-card-foot,
.is-rtl .shv2-card-foot {
  flex-direction: row-reverse;
}
html[dir="rtl"] .shv2-lbl,
.is-rtl .shv2-lbl {
  text-align: right;
}
html[dir="rtl"] .shv2-trust-inline,
.is-rtl .shv2-trust-inline {
  flex-direction: row-reverse;
}
html[dir="rtl"] .shv2-hire-toggle,
.is-rtl .shv2-hire-toggle {
  flex-direction: row-reverse;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 1100px) {
  .shv2-content {
    grid-template-columns: 1fr 460px;
    gap: 32px;
    padding: 44px 32px;
  }
}

@media (max-width: 960px) {
  .shv2-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px;
  }
  .shv2-copy {
    max-width: 100%;
    padding-left: clamp(12px, 3vw, 32px);
    padding-right: clamp(12px, 3vw, 24px);
  }
  .shv2-desc { max-width: 100%; }
  .shv2 { min-height: unset; }
  .shv2-trust-row { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 620px) {
  .shv2-content { padding: 24px 16px; }
  .shv2-row--2, .shv2-row--3 { grid-template-columns: 1fr; }
  .shv2-panel { padding: 12px 12px 0; }
  .shv2-card-foot {
    padding: 9px 12px 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .shv2-submit { width: 100% !important; }
  .shv2-tabs { overflow-x: auto; padding: 0 12px; }
}
