@import url("./theme-bookit.css");

html,
body {
  height: 100%;
  touch-action: auto;
}

body {
  overflow: hidden;
}

.page-header {
  background: #ffffff;
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(20, 25, 35, 0.06);
}

.header-left,
.burger-button,
.mobile-menu {
  display: none !important;
}

.topbar {
  justify-content: flex-end;
  background: transparent;
}

.header-actions {
  margin-left: auto;
}

.header-chip,
.locale-pill {
  background: #ffffff;
  border: 1px solid rgba(95, 118, 159, 0.18);
  box-shadow: none;
  color: #36537f;
  backdrop-filter: none;
  white-space: nowrap;
}

.locale-pill {
  width: 48px;
  min-width: 48px;
  padding: 0;
}

.header-chip {
  white-space: nowrap;
}

.header-chip:hover,
.locale-pill:hover {
  background: #eef4fb;
  color: #24456f;
}

.filter-secondary-button {
  background: #ffffff;
  border: 1px solid rgba(95, 118, 159, 0.18);
  box-shadow: none;
  color: #36537f;
  backdrop-filter: none;
}

.filter-secondary-button:hover {
  background: #eef4fb;
  color: #24456f;
}

.filter-location-toggle,
.filter-group-toggle {
  color: #2f69b3;
}

.wrap {
  max-width: none;
  padding: 0;
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  height: calc(100dvh - var(--header-height));
}

.app-shell {
  max-width: none;
  margin: 0;
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  height: calc(100dvh - var(--header-height));
}

.chat,
.chat.card {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.chat.card {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow: none;
}

.composer {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  align-items: center;
  padding: 5px 16px 14px !important;
}

#messageInput {
  min-height: 50px;
  height: 50px;
  max-height: 50px;
  padding: 14px 12px;
  font-size: 14px;
  line-height: 22px;
  resize: none;
  overflow-y: hidden;
  white-space: nowrap;
  border-radius: 18px;
}

#btnSend {
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  position: relative;
  align-self: center;
  border-radius: 50%;
  font-size: 0;
  color: transparent;
  background-color: #66c63e;
  background-image: linear-gradient(135deg, #66c63e 0%, #84d942 100%);
  border: 1px solid rgba(103, 185, 66, 0.4);
  box-shadow: 0 10px 22px rgba(72, 150, 52, .18);
}

#btnSend::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background-image: url("../images/arrow-up.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: brightness(0) invert(1);
}

.messages {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.messages.bottom-aligned {
  justify-content: flex-start;
}

.messages.bottom-aligned::before {
  content: "";
  display: block;
  flex: 1 1 auto;
  min-height: 12px;
}

.msg.assistant {
  background: #ffffff;
}

#messageInput {
  border-radius: 14px;
}

.quick-reply {
  box-shadow: none;
}

.quick-reply:hover {
  box-shadow: none;
}

.tour-select-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
}

.tour-request-submit-button {
  background: linear-gradient(135deg, #66c63e 0%, #84d942 100%);
  color: #ffffff;
  border: 1px solid rgba(103, 185, 66, 0.4);
  box-shadow: 0 18px 36px rgba(72, 150, 52, 0.24);
}

.tour-request-submit-button:hover {
  background: linear-gradient(135deg, #71cf49 0%, #91df55 100%);
  color: #ffffff;
}

.tour-request-submit-button:disabled {
  background: #c9d1dd;
  color: #ffffff;
  box-shadow: none;
}

/* Webview performance optimization: begin */
.tour-modal,
.profile-modal,
.results-modal,
.filter-modal,
.photo-viewer {
  backdrop-filter: none;
}

.tour-modal-panel,
.profile-modal-card,
.results-modal-card,
.filter-modal-card,
.photo-viewer-main .splide__track {
  box-shadow: 0 14px 30px rgba(20, 25, 35, 0.12);
}

.tour-modal-header,
.results-modal-head,
.profile-modal-head,
.tour-request-modal-head {
  backdrop-filter: none;
}

.photo-viewer-main .splide__arrow,
.photo-viewer-close,
.results-modal-floating-actions .results-filter-button {
  box-shadow: 0 10px 20px rgba(20, 25, 35, 0.12);
}

.tour-card,
.filter-group,
.tour-modal-group,
.tour-modal-section,
.tour-request-section,
.results-sort-button.is-active {
  box-shadow: none !important;
}

.tour-modal,
.profile-modal,
.results-modal,
.filter-modal,
.photo-viewer,
.tour-modal-panel,
.profile-modal-card,
.results-modal-card,
.filter-modal-card,
.tour-request-modal-card,
.photo-viewer-panel,
.results-modal-floating-actions,
.tour-request-success-toast,
.error-modal,
.error-modal-card {
  animation: none !important;
  transition: none !important;
}

.tour-modal-panel,
.profile-modal-card,
.results-modal-card,
.filter-modal-card,
.tour-request-modal-card,
.photo-viewer-main .splide__track,
.photo-viewer-close,
.photo-viewer-main .splide__arrow,
.results-modal-floating-actions .results-filter-button {
  box-shadow: 0 6px 14px rgba(20, 25, 35, 0.10) !important;
}

.header-chip,
.locale-pill,
.filter-secondary-button,
.quick-reply,
.tour-select-button,
.tour-description-action,
.tour-share-button,
.tour-flights-button,
.results-sort-button,
.results-filter-button,
.profile-modal-close,
.filter-modal-close,
.tour-modal-close,
.photo-viewer-close,
.photo-viewer-main .splide__arrow {
  transition: opacity .12s ease, transform .12s ease !important;
}

.tour-description-action {
  min-height: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #2f69b3;
  border: 0;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
  text-decoration: none;
}

.tour-description-action:hover {
  background: transparent;
  color: #2f69b3;
  border-color: transparent;
  box-shadow: none;
  text-decoration: none;
}

.header-chip:hover,
.locale-pill:hover,
.filter-secondary-button:hover,
.quick-reply:hover,
.tour-select-button:hover,
.tour-description-action:hover,
.tour-share-button:hover,
.tour-flights-button:hover,
.results-sort-button:hover,
.photo-viewer-close:hover {
  transform: none !important;
}

.photo-viewer-main .splide__arrow,
.photo-viewer-main .splide__arrow:hover {
  transform: translateY(-50%) !important;
}
/* Webview performance optimization: end */

.photo-viewer {
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}

.photo-viewer-panel {
  max-height: calc(100dvh - 24px);
}

@media (max-width: 980px) {
  .welcome-modal-locale {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 16px;
    font-size: 22px;
  }

  .header-actions .locale-pill {
    display: inline-flex !important;
  }

  .burger-button {
    display: none !important;
  }

  .wrap {
    padding: 0;
  }
}

@media (max-width: 560px) {
  .welcome-modal-locale {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 14px;
    font-size: 20px;
  }
}
