.stsl-chauffeur-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr));
  gap: 9px;
  margin: 0 0 18px;
}

#content .stsl-chauffeur-choices a {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--stsl-line);
  border-radius: 11px;
  background: var(--stsl-surface);
  color: var(--stsl-navy);
  line-height: 1.35;
  text-decoration: none;
}

#content .stsl-chauffeur-choices a:hover,
#content .stsl-chauffeur-choices a[aria-current="page"] {
  border-color: var(--stsl-yellow);
  background: var(--stsl-gold-soft);
}

#content .stsl-chauffeur-choices a:focus-visible {
  outline: 2px solid var(--stsl-focus);
  outline-offset: 2px;
}

.stsl-chauffeur-choices strong {
  font-size: 14px;
}

.stsl-chauffeur-choices span {
  color: var(--stsl-muted);
  font-size: 13px;
}

.stsl-ride-panel {
  box-sizing: border-box;
  max-width: 1220px;
  margin: 32px auto;
  color: var(--stsl-navy);
  scroll-margin-top: 100px;
}

.stsl-ride-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.stsl-ride-grid,
.stsl-ride-map-panel {
  padding: clamp(18px, 3.5vw, 36px);
  border: 1px solid var(--stsl-yellow);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--stsl-surface) 35%, var(--stsl-canvas));
  box-shadow: 0 14px 40px rgba(22, 50, 79, 0.11);
}

.stsl-ride-map-panel {
  padding: clamp(14px, 2vw, 24px);
}

.stsl-ride-map-panel:empty {
  display: none;
}

.stsl-auto-map-position {
  min-width: 0;
  margin: 0;
  padding-block-start: var(--stsl-map-offset, 0px);
}

.stsl-auto-map-position > .stsl-ride-map-panel {
  margin: 0 0 24px;
}

.wp-block-columns.stsl-columns-with-route-map > .wp-block-column {
  align-self: flex-start;
}

.wp-block-media-text.has-media-on-the-right.stsl-media-with-route-map {
  grid-template-rows: auto 1fr;
}

.wp-block-media-text.has-media-on-the-right.stsl-media-with-route-map > .wp-block-media-text__content {
  grid-row: 1 / span 2;
  align-self: start;
}

.wp-block-media-text.has-media-on-the-right.stsl-media-with-route-map > .stsl-auto-map-position {
  grid-area: 1 / 2;
  align-self: start;
  padding-inline: clamp(12px, 2vw, 24px);
}

.wp-block-media-text.has-media-on-the-right.stsl-media-with-route-map > .wp-block-media-text__media {
  grid-row: 2;
}

.stsl-ride-panel .stsl-ride-title {
  margin: 0 0 8px;
  color: var(--stsl-navy);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.16;
}

.stsl-ride-panel .stsl-ride-intro {
  margin: 0 0 18px;
  color: var(--stsl-muted);
  font-size: 15px;
  line-height: 1.5;
}

.stsl-ride-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stsl-ride-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.stsl-ride-field-wide {
  grid-column: 1 / -1;
}

.stsl-ride-field label {
  color: var(--stsl-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.stsl-ride-optional {
  color: #506174;
  font-weight: 400;
}

.stsl-ride-panel .stsl-ride-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #a9b7c6;
  border-radius: 10px;
  background: #fff;
  color: var(--stsl-navy);
  color-scheme: light;
  font: inherit;
  font-size: 16px;
}

.stsl-ride-field input::placeholder {
  color: #5b6877;
}

.stsl-passengers {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 4px;
  border: 1px solid #a9b7c6;
  border-radius: 10px;
  background: #fff;
}

.stsl-ride-panel .stsl-passengers input {
  appearance: textfield;
  padding-inline: 0;
  border-color: transparent;
  text-align: center;
}

.stsl-passengers input::-webkit-inner-spin-button,
.stsl-passengers input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.stsl-ride-panel .stsl-passenger-step {
  box-sizing: border-box;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 2px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #edf2f7;
  color: var(--stsl-navy);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.stsl-ride-panel .stsl-passenger-step:hover {
  background: #dbe6ef;
}

.stsl-ride-panel .stsl-ride-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--stsl-yellow);
  color: var(--stsl-navy);
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.stsl-ride-panel .stsl-ride-submit:hover {
  background: var(--stsl-yellow-hover);
  color: var(--stsl-navy);
}

.stsl-ride-map {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.stsl-map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.stsl-ride-panel .stsl-map-title {
  margin: 0;
  color: var(--stsl-navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.stsl-ride-panel .stsl-map-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #a9b7c6;
  border-radius: 8px;
  background: #fff;
  color: var(--stsl-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.stsl-ride-panel .stsl-map-button:hover {
  background: #e8f0f7;
  color: var(--stsl-navy);
}

.stsl-ride-panel .stsl-map-button[hidden] {
  display: none;
}

.stsl-map-frame {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 315px;
  border: 2px solid var(--stsl-yellow);
  border-radius: 14px;
  background: #dfeaf2;
}

.stsl-ride-map-panel .stsl-map-frame {
  min-height: clamp(264px, 23vw, 330px);
}

.stsl-map-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
}

.stsl-ride-panel .stsl-map-link {
  align-self: flex-end;
  color: var(--stsl-link);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stsl-ride-features {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 212px), 1fr));
  gap: clamp(10px, 2vw, 18px);
  max-width: 1220px;
  margin: clamp(24px, 4vw, 40px) auto;
  padding: clamp(14px, 2.5vw, 24px);
  border-radius: 20px;
  background: linear-gradient(130deg, var(--stsl-navy), var(--stsl-deep-navy));
}

.stsl-ride-feature {
  --stsl-feature-icon-bg: var(--stsl-gold-soft);
  --stsl-feature-icon-ink: #865000;
  padding: clamp(15px, 2vw, 24px);
  border: 1px solid #56657a;
  border-bottom: 3px solid var(--stsl-yellow);
  border-radius: 14px;
  background: #263c55;
}

.stsl-feature-routes {
  --stsl-feature-icon-bg: #e5f4ff;
  --stsl-feature-icon-ink: #1b5a87;
}

.stsl-feature-support {
  --stsl-feature-icon-bg: #e1faf0;
  --stsl-feature-icon-ink: #076149;
}

.stsl-feature-icon {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 10px;
  background: var(--stsl-feature-icon-bg);
  color: var(--stsl-feature-icon-ink);
}

.stsl-feature-icon::before,
.stsl-feature-icon::after {
  box-sizing: border-box;
  grid-area: 1 / 1;
  content: "";
}

.stsl-feature-booking .stsl-feature-icon::before {
  width: 20px;
  height: 19px;
  border: 2px solid;
  border-radius: 4px;
}

.stsl-feature-booking .stsl-feature-icon::after {
  width: 16px;
  height: 8px;
  border-top: 2px solid;
}

.stsl-feature-routes .stsl-feature-icon::before {
  width: 18px;
  height: 18px;
  border: 2px solid;
  border-radius: 50% 50% 50% 3px;
  transform: translateY(-2px) rotate(-45deg);
}

.stsl-feature-routes .stsl-feature-icon::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-2px);
}

.stsl-feature-support .stsl-feature-icon::before {
  width: 21px;
  height: 17px;
  border: 2px solid;
  border-radius: 5px;
  transform: translateY(-1px);
}

.stsl-feature-support .stsl-feature-icon::after {
  width: 6px;
  height: 6px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  background: var(--stsl-feature-icon-bg);
  transform: translate(-4px, 8px) skewY(-30deg);
}

.stsl-ride-features .stsl-ride-feature h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.25;
}

.stsl-ride-features .stsl-ride-feature p {
  margin: 0;
  color: #e1eaf2;
  font-size: 15px;
  line-height: 1.55;
}

.stsl-ride-panel :is(input, button, a, iframe):focus-visible,
.stsl-whatsapp-launcher:focus-visible {
  outline: 3px solid #ffc547;
  outline-offset: 3px;
}

a.stsl-whatsapp-launcher {
  position: fixed;
  z-index: 9990;
  right: 18px;
  bottom: 18px;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  box-sizing: border-box;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #06734f;
  color: #fff;
  box-shadow: 0 4px 18px rgba(22, 50, 79, 0.24);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

a.stsl-whatsapp-launcher:visited,
a.stsl-whatsapp-launcher:hover {
  color: #fff;
  text-decoration: none;
}

a.stsl-whatsapp-launcher:hover {
  background: #055e41;
}

.stsl-chat-icon {
  position: relative;
  box-sizing: border-box;
  display: inline-block;
  width: 19px;
  height: 15px;
  margin-bottom: 3px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.stsl-chat-icon::after {
  position: absolute;
  bottom: -5px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  background: #06734f;
  content: "";
  transform: skewY(-30deg);
}

.stsl-whatsapp-launcher:hover .stsl-chat-icon::after {
  background: #055e41;
}

@media (max-width: 781px) {
  .stsl-auto-map-position {
    padding-block-start: 0;
  }

  .wp-block-columns.stsl-columns-with-route-map {
    flex-wrap: wrap !important;
  }

  .wp-block-columns.stsl-columns-with-route-map > .wp-block-column {
    flex-basis: 100% !important;
  }

  .wp-block-media-text.has-media-on-the-right.stsl-media-with-route-map {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto;
  }

  .wp-block-media-text.has-media-on-the-right.stsl-media-with-route-map > .wp-block-media-text__content {
    grid-area: 1 / 1;
  }

  .wp-block-media-text.has-media-on-the-right.stsl-media-with-route-map > .stsl-auto-map-position {
    grid-area: 2 / 1;
  }

  .wp-block-media-text.has-media-on-the-right.stsl-media-with-route-map > .wp-block-media-text__media {
    grid-area: 3 / 1;
  }
}

@media (max-width: 675px) {
  .stsl-ride-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .stsl-map-frame {
    min-height: 290px;
  }
}

@media (max-width: 440px) {
  .stsl-ride-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  a.stsl-whatsapp-launcher {
    display: none;
  }
}
