/* B-only fixes for the V88 page chrome, route labels, and page-end form. */
html.pgl-world-page body.b-refresh .pgl-world:not(.night):not(.no3d) .world-stage {
  --scrim: 14, 29, 34;
  background: #0e1d22;
}

body.b-refresh > .scene-tools {
  position: fixed;
  z-index: 40;
  top: calc(94px + env(safe-area-inset-top) + 10px);
  right: max(20px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 390px;
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid rgba(205, 221, 220, .34);
  background: rgba(8, 23, 29, .7);
  color: #f5f4f1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  backdrop-filter: blur(5px);
}

/* Keep the opening intermodal card visible above the scene. */
html.pgl-world-page body.b-refresh .pgl-world .story > .hero {
  display: flex !important;
  background: transparent !important;
}

/* The script reparents these controls to body, so style that live location. */
body.b-refresh > .vrail {
  position: fixed;
  z-index: 39;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transform: translateY(-50%);
}

body.b-refresh > .vrail button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 28px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #13252b;
  font: 700 12px/1.2 Arial, sans-serif;
  cursor: pointer;
}

body.b-refresh > .vrail button::before {
  order: 2;
  width: 13px;
  height: 13px;
  border: 2px solid #f5f4f1;
  border-radius: 3px;
  background: #11252c;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
  content: "";
}

body.b-refresh > .vrail button[aria-current="step"]::before {
  background: #fc600a;
}

body.b-refresh > .vrail button span {
  order: 1;
  padding: 7px 10px;
  background: rgba(248, 249, 246, .95);
  color: #17252b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  opacity: 1;
  transform: none;
}

body.b-refresh > .scroll-hint {
  display: none !important;
}

html.pgl-world-page body.b-refresh:not(.night) > .scene-tools {
  border-color: rgba(20, 38, 42, .24);
  background: rgba(248, 249, 246, .78);
  color: #18282d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

html.pgl-world-page body.b-refresh:not(.night) > .scene-tools .time-mode {
  border-color: rgba(20, 38, 42, .24);
  background: rgba(255, 255, 255, .2);
}

html.pgl-world-page body.b-refresh:not(.night) > .scene-tools #rain {
  border-left-color: rgba(20, 38, 42, .2);
}

html.pgl-world-page body.b-refresh:not(.night) > .scene-tools button {
  color: #18282d;
}

html.pgl-world-page body.b-refresh:not(.night) > .scene-tools .time-mode button[aria-pressed="true"] {
  color: #111;
}

html.pgl-world-page body.b-refresh:not(.night) > .scene-tools .horn {
  border-color: rgba(20, 38, 42, .24);
  background: rgba(255, 255, 255, .84);
  color: #17252b;
}

body.b-refresh > .scene-tools .time-mode {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  height: 40px;
}

body.b-refresh > .scene-tools .time-mode button[hidden] {
  display: none !important;
}

body.b-refresh > .scene-tools #tmode {
  flex: 0 0 82px;
  width: 82px;
  min-width: 82px;
  padding-inline: 4px;
}

body.b-refresh > .scene-tools #rain {
  width: 76px;
  min-width: 76px;
  border-left: 1px solid rgba(226, 237, 236, .22);
}

body.b-refresh > .scene-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 12px/1.2 Arial, sans-serif;
  cursor: pointer;
}

body.b-refresh > .scene-tools .time-mode button[aria-pressed="true"] {
  background: #fc600a;
  color: #111;
}

body.b-refresh > .scene-tools .motion {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 7px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 auto;
  color: inherit;
  font: 700 12px/1.2 Arial, sans-serif;
  white-space: nowrap;
  transform: translateY(11px);
}

body.b-refresh > .scene-tools .motion input {
  position: absolute;
  width: 32px;
  height: 20px;
  margin: 0;
  opacity: 0 !important;
  appearance: none;
  cursor: pointer;
}

body.b-refresh > .scene-tools .toggle {
  position: relative;
  display: inline-block;
  flex: 0 0 32px;
  width: 30px;
  height: 16px;
  border-radius: 12px;
  background: #69736f;
}

body.b-refresh > .scene-tools .motion input:checked + .toggle {
  background: #fc600a;
}

body.b-refresh > .scene-tools .toggle::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

body.b-refresh > .scene-tools .motion input:checked + .toggle::after {
  transform: translateX(14px);
}

body.b-refresh > .scene-tools .motion input:focus-visible + .toggle {
  outline: 2px solid #fc600a;
  outline-offset: 3px;
}

body.b-refresh > .scene-tools .horn {
  border: 1px solid rgba(255, 255, 255, .28);
  background: #111;
  color: #fff;
  font: 800 12px/1.2 Arial, sans-serif;
  white-space: nowrap;
  width: 88px;
  padding-inline: 8px;
}

body.b-refresh > .routebar {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  width: min(380px, calc(100vw - 32px));
  margin-inline: auto;
  padding: 10px 14px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(10, 24, 30, .9);
  color: #fff;
  font: 800 11px/1 Archivo, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

@media (min-width: 761px) {
  body.b-refresh > .routebar {
    right: 0;
    left: 0;
    width: min(380px, calc(100vw - 32px));
  }
}

body.b-refresh > .routebar.on {
  opacity: 1;
  pointer-events: auto;
}

body.b-refresh > .routebar .rb-l {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body.b-refresh > .routebar button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

body.b-refresh > .routebar button.cur {
  color: #ff8a3c;
}

body.b-refresh > .routebar .rb-t {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .22);
}

body.b-refresh > .routebar .rb-f {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #fc600a;
}

body.b-refresh > .routebar .rb-d {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

body.b-refresh > .routebar .rb-m {
  position: absolute;
  top: 50%;
  left: 0;
  font-size: 20px;
  line-height: 1;
  transform: translate(-50%, -62%);
}

html.pgl-world-page.past-story body.b-refresh > .scene-tools,
html.pgl-world-page.past-story body.b-refresh > .routebar,
html.pgl-world-page.past-story body.b-refresh > .vrail,
html.pgl-world-page.past-story body.b-refresh > .scroll-hint {
  opacity: 0;
  pointer-events: none;
}

/* This B page uses a fixed canvas; explicitly end it before the quote form. */
html.pgl-world-page.past-story body.b-refresh .pgl-world .world-stage {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.pgl-world-page body.b-refresh .services .service-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 2px solid #0c1f2b;
}

/* Keep the fixed scene visible behind its scrolling service panel. */
html.pgl-world-page body.b-refresh main > #hizmetler {
  background: transparent;
}

html.pgl-world-page body.b-refresh #hizmetler > .pin {
  align-items: flex-start;
  padding-top: 100px;
}

html.pgl-world-page body.b-refresh .services .service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  grid-template-rows: auto;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 0;
  min-height: 0;
  line-height: 1.12;
}

html.pgl-world-page body.b-refresh .services .service-row span {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  white-space: normal;
}

html.pgl-world-page body.b-refresh .services .service-row small {
  display: none;
}

html.pgl-world-page body.b-refresh .services .service-row span::before {
  content: none;
}

html.pgl-world-page body.b-refresh .services .service-row small {
  display: none !important;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

html.pgl-world-page body.b-refresh .services .service-row img {
  display: none;
}

html.pgl-world-page body.b-refresh .dispatch-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 24px);
  width: 100%;
  min-width: 0;
}

html.pgl-world-page body.b-refresh .dispatch-mode {
  min-width: 0;
  white-space: nowrap;
}

html.pgl-world-page body.b-refresh .quote-section {
  position: relative;
  z-index: 2;
  clear: both;
}

@media (max-width: 760px) {
  body.b-refresh > .scene-tools {
    top: calc(78px + env(safe-area-inset-top) + 8px);
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
    justify-content: space-between;
    gap: 0;
    width: auto;
    max-width: none;
    min-height: 0;
    padding: 4px 7px;
    box-sizing: border-box;
  }

  body.b-refresh > .scene-tools .time-mode {
    flex: 0 0 auto;
    min-width: 0;
  }

  body.b-refresh > .scene-tools #tmode {
    flex-basis: 72px;
    width: 72px;
    min-width: 72px;
  }

  body.b-refresh > .scene-tools #rain {
    width: 64px;
    min-width: 64px;
  }

  body.b-refresh > .scene-tools .motion {
    flex: 0 0 auto;
    gap: 6px;
    padding-inline: 1px;
  }

  body.b-refresh > .scene-tools button {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 10px;
  }

  body.b-refresh > .scene-tools .horn {
    width: 78px;
    padding-inline: 9px;
  }

  body.b-refresh > .routebar {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    padding: 9px 12px 11px;
  }

  body.b-refresh > .scene-tools {
    top: calc(88px + env(safe-area-inset-top) + 8px);
  }

  body.b-refresh > .vrail {
    right: max(8px, env(safe-area-inset-right));
    gap: 7px;
  }

  body.b-refresh > .vrail button span {
    padding: 6px 8px;
    font-size: 11px;
  }

  html.pgl-world-page body.b-refresh .services .service-row {
    padding: 8px 0;
  }

  html.pgl-world-page body.b-refresh .services .service-row span {
    font-size: clamp(22px, 6vw, 28px);
  }

  html.pgl-world-page body.b-refresh .dispatch-track {
    gap: 10px;
  }

  html.pgl-world-page body.b-refresh .dispatch-mode {
    font-size: clamp(13px, 4vw, 16px);
  }
}
