@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #244b50;
  background: #fffaf1;
  font-synthesis: none;
  --muted: #647b78;
  --line: #e5e5d5;
  --orange: #ffb85e;
  --green: #216d59;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
input,
select,
textarea,
a {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #246e6c;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.15;
  letter-spacing: -2px;
}
h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 19px;
}
.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}
.header {
  background: #fff1d8;
  border-top: 4px solid #ffb85e;
  border-bottom: 1px solid #edddba;
}
.bar {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 90px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand img {
  width: 47px;
  height: 52px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 1px;
}
.nav {
  display: flex;
  gap: 8px;
  margin-right: auto;
}
.nav button,
.text-btn {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 9px;
}
.nav button.active {
  background: #ffe1ad;
  border-radius: 10px;
}
.lang {
  background: #fffaf1;
  border: 1px solid #e9d8b7;
  border-radius: 9px;
  padding: 9px;
}
.btn {
  border: 0;
  border-radius: 12px;
  min-height: 45px;
  padding: 12px 19px;
  background: #e0efe5;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.btn:hover {
  filter: brightness(0.97);
}
.btn.primary {
  background: var(--orange);
  color: #583a1e;
}
.btn.dark {
  background: var(--green);
  color: white;
}
.btn.danger {
  background: #fbe2da;
  color: #9d332e;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 44px 0 33px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 800;
  color: #9c6229;
  margin-bottom: 12px;
}
.hero p {
  color: var(--muted);
  margin-top: 15px;
}
.hero-art {
  width: 195px;
  height: 145px;
  border-radius: 45% 55% 48% 52%;
  background: #e1eee3;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-7deg);
}
.hero-art img {
  width: 105px;
  height: 115px;
  transform: rotate(7deg);
}
.search {
  display: grid;
  grid-template-columns: 1.1fr 38px 1.1fr 1fr 0.7fr auto;
  gap: 12px;
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 9px 22px #94601806;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9e1d8;
  background: #fffef9;
  border-radius: 9px;
  padding: 11px 12px;
  min-height: 45px;
  font-size: 14px;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
.swap {
  border: 0;
  background: #eef5ed;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  margin-bottom: 5px;
}
.popular {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  padding: 17px 0 26px;
  font-size: 11px;
  color: var(--muted);
}
.popular button {
  background: #f5ecd9;
  border: 0;
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 11px;
}
.layout {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 28px;
}
.panel,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px;
}
.panel {
  background: #eef5e9;
  height: fit-content;
}
.panel p {
  font-size: 13px;
  color: #526d61;
  line-height: 1.8;
  margin-top: 12px;
}
.panel h3 {
  font-size: 18px;
}
.stats {
  margin-top: 25px;
  display: grid;
  gap: 16px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat strong {
  font-size: 25px;
  min-width: 42px;
}
.stat span {
  font-size: 11px;
  color: #587061;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 17px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.cards {
  display: grid;
  gap: 15px;
}
.card {
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 7px 23px #466e4510;
}
.route {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0;
}
.route h3 {
  font-size: 22px;
}
.price {
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  color: #986222;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.line {
  height: 1px;
  background: var(--line);
  margin: 17px 0;
}
.badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.badge {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #e8f3ed;
  color: #356454;
  font-weight: 700;
}
.badge.warm {
  background: #fff0d1;
  color: #8d5e28;
}
.empty {
  text-align: center;
  padding: 55px 24px;
  border: 1px dashed #d2d7c4;
  border-radius: 18px;
  background: #fffef9;
}
.empty p {
  margin: 12px auto 20px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.empty img {
  width: 64px;
  height: 72px;
  margin-bottom: 16px;
}
.footer {
  margin-top: 45px;
  border-top: 1px solid var(--line);
  padding: 25px 0 32px;
}
.footer p {
  font-size: 11px;
  color: var(--muted);
}
dialog {
  width: min(780px, calc(100% - 24px));
  max-height: 90vh;
  border: 1px solid #dfddca;
  border-radius: 22px;
  padding: 32px;
  background: #fffdf6;
  color: inherit;
  box-shadow: 0 20px 90px #233b3e35;
}
dialog::backdrop {
  background: #1a363e66;
  backdrop-filter: blur(4px);
}
.close {
  position: absolute;
  right: 16px;
  top: 13px;
  border: 0;
  border-radius: 50%;
  background: #f0ecdf;
  font-size: 24px;
  width: 34px;
  height: 34px;
}
dialog h2 {
  padding-right: 25px;
  margin-bottom: 10px;
}
dialog .introtext {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.check input {
  width: 17px;
  min-height: 17px;
}
.stop {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr 30px;
  gap: 10px;
  padding: 12px;
  background: #f1f4e9;
  border-radius: 12px;
  margin: 10px 0;
  align-items: end;
}
.stop .remove {
  border: 0;
  background: #e4e8db;
  border-radius: 8px;
  height: 44px;
}
.hint,
.notice {
  background: #fff0d8;
  border: 1px solid #f0ddbd;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  margin: 13px 0;
}
.notice {
  background: #eaf3ef;
  border-color: #d7e9df;
}
.error {
  color: #a63730;
  background: #ffede5;
  padding: 12px;
  border-radius: 9px;
  font-size: 13px;
  margin: 10px 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.map {
  height: 310px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #e8efdf;
  margin: 18px 0;
}
.timeline {
  display: grid;
  gap: 0;
  margin: 20px 0;
}
.timeline-item {
  border-left: 2px solid #b7d5c1;
  padding: 0 0 18px 20px;
  margin-left: 6px;
  position: relative;
}
.timeline-item:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d8a66;
  position: absolute;
  left: -6px;
  top: 6px;
}
.timeline-item:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.timeline-item strong {
  font-size: 15px;
}
.timeline-item p {
  font-size: 12px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 9px;
  margin-bottom: 22px;
}
.tabs .active {
  background: var(--orange);
}
.booking {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #244f42;
  color: white;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 10000;
  display: none;
  max-width: 90vw;
}
.skip {
  position: absolute;
  left: 15px;
  top: -90px;
  background: white;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.profile {
  max-width: 650px;
}
.profile .card {
  margin-bottom: 18px;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.sectionspace {
  padding-top: 36px;
}
.widebtn {
  width: 100%;
}
@media (max-width: 1000px) {
  .bar {
    gap: 12px;
  }
  .nav {
    gap: 0;
  }
  .header-add {
    display: none;
  }
  .hero-art {
    width: 140px;
  }
  .layout {
    grid-template-columns: 195px 1fr;
  }
  .search {
    grid-template-columns: 1fr 35px 1fr;
  }
  .search .btn {
    height: 45px;
  }
  .hero {
    padding-top: 30px;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .bar {
    flex-wrap: wrap;
    padding: 12px 0;
    min-height: 100px;
    gap: 8px;
  }
  .brand {
    font-size: 23px;
    margin-right: auto;
  }
  .brand img {
    width: 36px;
    height: 41px;
  }
  .nav {
    order: 5;
    width: 100%;
    justify-content: center;
  }
  .nav button {
    padding: 9px 16px;
  }
  .hero {
    padding: 26px 0 24px;
  }
  .hero-art {
    display: none;
  }
  .hero p {
    font-size: 13px;
    line-height: 1.7;
  }
  .eyebrow {
    font-size: 9px;
  }
  .search {
    padding: 13px;
    gap: 9px;
    grid-template-columns: 1fr 27px 1fr;
  }
  .search label {
    font-size: 10px;
  }
  .search label:nth-of-type(3) {
    grid-column: 1/3;
  }
  .search label:nth-of-type(4) {
    grid-column: 3;
  }
  .search > .btn {
    grid-column: 1/-1;
  }
  .swap {
    width: 27px;
    height: 27px;
  }
  .search input,
  .search select {
    padding: 10px 7px;
    font-size: 13px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
  }
  .stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .stat {
    display: block;
  }
  .stat span {
    display: block;
  }
  .card {
    padding: 18px;
  }
  .route {
    gap: 9px;
  }
  .route h3 {
    font-size: 18px;
  }
  .price {
    font-size: 20px;
  }
  .topline h2 {
    font-size: 22px;
  }
  .popular {
    padding-bottom: 20px;
  }
  .hero h1 {
    letter-spacing: -1px;
    font-size: 35px;
  }
  dialog {
    padding: 25px 17px;
  }
  .formgrid {
    gap: 12px;
  }
  .stop {
    grid-template-columns: 1fr 1fr 28px;
  }
  .stop label:first-child {
    grid-column: 1/3;
  }
  .stop label:nth-child(2) {
    grid-column: 1/2;
  }
  .stop .remove {
    grid-column: 3;
    grid-row: 1/3;
  }
  .stop label {
    font-size: 10px;
  }
  .stop input,
  .stop select {
    font-size: 12px;
    padding: 9px 7px;
  }
  .map {
    height: 260px;
  }
  .row .btn {
    min-height: 40px;
  }
  .footer .row {
    gap: 13px;
  }
}
/* Route renderer owns its canvas height; keep attribution and route notes visible. */
.map {
  height: auto;
  min-height: 310px;
  overflow: visible;
}
.map[hidden] {
  display: none;
}
@media (max-width: 650px) {
  .map {
    height: auto;
    min-height: 260px;
  }
}
/* Compact navigation: language controls must not inherit form-field width. */
.header .lang {
  width: 64px;
  flex: 0 0 64px;
  min-height: 38px;
  padding: 8px;
  font-size: 12px;
}
.header #account {
  width: auto;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .header .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px auto;
    gap: 8px 10px;
    padding: 12px 0 9px;
    min-height: 0;
  }
  .header .brand {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 23px;
    gap: 7px;
  }
  .header .brand img {
    width: 34px;
    height: 39px;
  }
  .header .brand small {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .header .lang {
    grid-column: 2;
    grid-row: 1;
  }
  .header #account {
    grid-column: 3;
    grid-row: 1;
    max-width: 110px;
    padding: 9px 0;
    font-size: 12px;
  }
  .header .nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    width: 100%;
  }
  .header .nav button {
    padding: 9px 14px;
    font-size: 12px;
  }
  .header .header-add {
    display: none;
  }
  .layout .sidebar {
    display: block;
    order: 2;
  }
  .sidebar .panel {
    padding: 15px 18px;
  }
  .sidebar .panel > h3,
  .sidebar .panel > p {
    display: none;
  }
  .sidebar .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
  }
  .sidebar .stat {
    display: block;
    min-width: 0;
  }
  .sidebar .stat strong {
    font-size: 23px;
  }
  .sidebar .stat span {
    font-size: 10px;
    line-height: 1.5;
  }
  .sidebar > .btn {
    display: flex;
  }
}
@media (max-width: 370px) {
  .header .bar {
    gap: 8px 6px;
    grid-template-columns: minmax(0, 1fr) 55px auto;
  }
  .header .lang {
    width: 55px;
    min-width: 55px;
    flex-basis: 55px;
  }
  .header .brand {
    font-size: 20px;
  }
  .header #account {
    max-width: 75px;
  }
  .header .brand img {
    width: 29px;
    height: 35px;
  }
}
