:root {
  --ink: #111827;
  --muted: #5f6f82;
  --line: rgba(17, 24, 39, 0.12);
  --glass: rgba(255, 255, 255, 0.54);
  --glass-soft: rgba(255, 255, 255, 0.38);
  --navy: #0f2f4a;
  --navy-strong: #0b2237;
  --green: #28725b;
  --amber: #a76920;
  --shadow: 0 22px 70px rgba(8, 26, 43, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #f5f7f6;
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
p {
  margin: 0;
}

.scene-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.scene-bg,
.scene-soften,
.motion-field,
.car-layer {
  position: fixed;
  pointer-events: none;
  user-select: none;
}

.scene-bg {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(1.03) contrast(1.02);
}

.scene-soften {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 247, 246, 0.38), rgba(245, 247, 246, 0.12) 44%, rgba(245, 247, 246, 0.34)),
    linear-gradient(0deg, rgba(245, 247, 246, 0.54), rgba(245, 247, 246, 0.03) 50%, rgba(245, 247, 246, 0.12));
}

.motion-field {
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  mix-blend-mode: screen;
}

.car-layer {
  z-index: 4;
  right: clamp(-180px, -6vw, -48px);
  bottom: -92px;
  width: min(42vw, 760px);
  min-width: 500px;
  filter: drop-shadow(0 28px 48px rgba(5, 18, 31, 0.3));
  opacity: 0;
  animation: vitoPass 12s ease-in-out infinite;
}

.brand-banner {
  position: fixed;
  z-index: 12;
  top: 16px;
  left: 18px;
  width: min(430px, calc(100vw - 520px));
  min-width: 320px;
  height: 74px;
  pointer-events: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 24px rgba(8, 26, 43, 0.12));
}

.corner-actions {
  position: fixed;
  z-index: 12;
  top: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 34px rgba(8, 26, 43, 0.1);
  backdrop-filter: blur(16px);
}

.language-chip,
.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.language-chip.active,
.support-link.primary {
  color: #ffffff;
  background: var(--navy-strong);
}

.map-console {
  position: fixed;
  z-index: 5;
  inset: 94px 24px 54px;
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(520px, 1fr) minmax(280px, 330px);
  grid-template-areas: "form map tours";
  gap: 16px;
  min-height: 0;
}

.booking-dock,
.tour-dock,
.ai-sidecar,
.route-stats,
.route-facts span {
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.booking-dock {
  grid-area: form;
  z-index: 8;
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 0;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

.console-head {
  display: grid;
  gap: 8px;
  padding-bottom: 4px;
}

.console-head span,
.custom-tour-banner span,
.field span {
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 350px;
  font-size: clamp(1.48rem, 2vw, 2rem);
  line-height: 1.04;
  font-weight: 800;
}

.console-head p {
  max-width: 350px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.route-row,
.detail-row,
.contact-row,
.action-row {
  display: grid;
  gap: 9px;
}

.route-row > *,
.detail-row > *,
.contact-row > *,
.action-row > * {
  min-width: 0;
}

.route-row {
  grid-template-columns: 1fr 42px 1fr;
  align-items: end;
}

.detail-row {
  grid-template-columns: 1fr 1fr 0.78fr;
}

.contact-row {
  grid-template-columns: 1fr;
}

.action-row {
  grid-template-columns: 0.9fr 1.2fr;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.phone-combo {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 7px;
}

.phone-combo select,
.phone-combo input {
  min-width: 0;
}

.phone-combo select {
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.field textarea {
  min-height: 58px;
  padding-top: 10px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(15, 47, 74, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 47, 74, 0.12);
}

.swap-button,
.ghost-button,
.submit-button,
.tour-buy-button,
.tour-plan-button,
.quick-grid button,
.tour-card,
.ai-actions button {
  cursor: pointer;
}

.swap-button {
  display: grid;
  place-items: center;
  min-height: 43px;
  border: 1px solid rgba(15, 47, 74, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.swap-button i {
  width: 17px;
  height: 17px;
  border: 2px solid var(--navy);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.quick-grid button {
  min-height: 38px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  color: var(--navy-strong);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
}

.ghost-button,
.submit-button,
.tour-buy-button,
.tour-plan-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.ghost-button {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(15, 47, 74, 0.18);
}

.submit-button,
.tour-buy-button,
.tour-plan-button {
  color: #ffffff;
  background: var(--navy-strong);
}

.submit-button {
  min-height: 62px;
  font-size: 1.02rem;
  box-shadow: 0 14px 30px rgba(11, 34, 55, 0.22);
}

.form-feedback {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.form-feedback.success {
  color: var(--green);
  font-weight: 800;
}

.form-feedback.problem {
  color: var(--amber);
  font-weight: 800;
}

.map-card {
  grid-area: map;
  position: relative;
  z-index: 5;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(233, 239, 237, 0.86);
  box-shadow: var(--shadow);
}

.real-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(229, 237, 235, 0.96), rgba(199, 221, 229, 0.86)),
    #e8efed;
}

.real-map .gm-style {
  font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.map-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.2)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.36), transparent 34%, rgba(255, 255, 255, 0.12));
}

.ai-sidecar {
  position: absolute;
  z-index: 4;
  left: 18px;
  top: 18px;
  display: grid;
  gap: 6px;
  width: min(370px, calc(100% - 36px));
  padding: 14px;
  background: rgba(255, 255, 255, 0.44);
}

.ai-sidecar span {
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-sidecar strong {
  font-size: 1rem;
  line-height: 1.15;
}

.ai-sidecar p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.ai-actions {
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  gap: 7px;
  margin-top: 3px;
}

.ai-actions button {
  min-height: 34px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  color: var(--navy-strong);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 800;
}

.route-stats {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.58);
}

.route-stats span {
  color: var(--navy-strong);
  font-size: clamp(1.36rem, 2vw, 2rem);
  line-height: 1;
  font-weight: 800;
}

.route-stats small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.route-facts {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(520px, 58%);
}

.route-facts span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.54);
}

.route-facts b {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.route-facts em {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.tour-dock {
  grid-area: tours;
  z-index: 8;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.5);
}

.custom-tour-banner {
  display: grid;
  gap: 5px;
}

.custom-tour-banner strong {
  font-size: 1rem;
  line-height: 1.15;
}

.custom-tour-banner p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.tour-planner {
  display: grid;
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid rgba(15, 47, 74, 0.12);
  border-bottom: 1px solid rgba(15, 47, 74, 0.12);
}

.tour-idea-field textarea {
  min-height: 82px;
}

.tour-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tour-plan-button {
  width: 100%;
  background: var(--green);
}

.tour-list {
  display: grid;
  gap: 10px;
}

.tour-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
}

.tour-card.selected {
  border-color: rgba(40, 114, 91, 0.5);
  box-shadow: 0 0 0 3px rgba(40, 114, 91, 0.12);
}

.tour-media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.42);
}

.tour-body {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.tour-body strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.tour-body small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
}

.tour-body em {
  width: max-content;
  padding: 4px 7px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--amber);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
}

.tour-buy-button {
  width: 100%;
  background: var(--green);
}

.site-signature {
  position: fixed;
  z-index: 12;
  left: 16px;
  right: 16px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(17, 24, 39, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
}

.site-signature a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(17, 24, 39, 0.76);
  text-decoration: none;
  pointer-events: auto;
}

.cloud-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 47, 74, 0.18), 0 5px 14px rgba(15, 47, 74, 0.12);
}

.cloud-icon::before,
.cloud-icon::after {
  content: "";
  position: absolute;
  bottom: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 47, 74, 0.18);
}

.cloud-icon::before {
  left: 4px;
  width: 10px;
  height: 10px;
}

.cloud-icon::after {
  right: 4px;
  width: 12px;
  height: 12px;
}

@keyframes vitoPass {
  0% {
    opacity: 0;
    transform: translate3d(34vw, 10px, 0);
  }
  14% {
    opacity: 0.95;
    transform: translate3d(4vw, 0, 0);
  }
  36% {
    opacity: 0.95;
    transform: translate3d(-1.8vw, -4px, 0);
  }
  58% {
    opacity: 0.88;
    transform: translate3d(4vw, -2px, 0);
  }
  78%,
  100% {
    opacity: 0;
    transform: translate3d(35vw, 8px, 0);
  }
}

@media (max-width: 1220px) {
  .map-console {
    inset: 94px 18px 54px;
    grid-template-columns: minmax(310px, 360px) minmax(480px, 1fr) minmax(250px, 292px);
    gap: 12px;
  }

  .route-facts {
    width: min(430px, 60%);
  }
}

@media (max-width: 1060px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .scene-shell {
    min-height: 100vh;
    overflow: visible;
    padding: 148px 14px 86px;
  }

  .brand-banner {
    top: 12px;
    left: 14px;
    width: min(360px, calc(100vw - 28px));
    min-width: 0;
    height: 70px;
  }

  .corner-actions {
    left: 14px;
    right: 14px;
    top: 78px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .map-console {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "form"
      "map"
      "tours";
    gap: 12px;
    width: 100%;
  }

  .booking-dock,
  .tour-dock {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .map-card {
    height: 560px;
  }

  .tour-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .car-layer {
    position: absolute;
    right: -156px;
    bottom: 22px;
    width: 460px;
    min-width: 0;
  }

  .site-signature {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex-wrap: wrap;
    margin-top: 18px;
  }
}

@media (max-width: 700px) {
  .scene-shell {
    padding-top: 172px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-banner {
    right: 10px;
  }

  .brand-banner {
    width: min(330px, calc(100vw - 20px));
    height: 58px;
  }

  .corner-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .language-chip,
  .support-link {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .support-link {
    grid-column: span 2;
  }

  .route-row,
  .detail-row,
  .contact-row,
  .action-row,
  .quick-grid,
  .tour-preferences,
  .tour-list {
    grid-template-columns: 1fr;
  }

  .swap-button {
    display: none;
  }

  h1 {
    max-width: none;
    font-size: 1.58rem;
  }

  .map-card {
    height: 520px;
  }

  .ai-sidecar {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    padding: 12px;
  }

  .route-stats {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: space-between;
  }

  .route-facts {
    left: 10px;
    right: 10px;
    bottom: 82px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .car-layer {
    right: -225px;
    width: 470px;
  }
}
