@import url("https://fonts.googleapis.com/css2?family=Averia+Sans+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Fredoka:wght@300..700&family=Intel+One+Mono:ital,wght@0,300..700;1,300..700&family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Noto+Sans+SC:wght@100..900&family=Special+Gothic+Expanded+One&display=swap");
:root {
  --brand-primary: #4343d0;
  --brand-secondary: #071f97;
  --brand-tertiary: #06176d;
  --brand-accent: #081f97;

  --bg-primary: #faf3cd;
  --bg-secondary: #fcf8e2;
  --bg-tertiary: #f9f5da;
  --bg-card: #fdfdfd;
  --bg-highlight: #fcf2f2ff;

  --primary-color: var(--brand-primary);
  --secondary-color: var(--bg-secondary);
  --heading-color: var(--brand-secondary);
  --text-color: var(--brand-secondary);
  --text-light: #6c757d;
  --border-color: #dee2e6;
  --white: #ffffff;
  --danger-color: #dc3545;
  --warning-color: #e67e22;
  --success-bg-light: #e0fdee;
  --success-border: #a3e9b8;
  --info-bg-light: #e9ecef;
  --info-border: #ced4da;
  --overlay-bg: rgba(0, 51, 102, 0.959);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-hover: red(223, 41, 41, 0.15);
  --popup-bg: rgba(255, 255, 255, 0.95);
  --gmp-mat-color-on-surface: #2c2c5c;
  --gmp-mat-color-surface: white;
  --gmp-mat-color-on-surface-variant: #59597a;
  --gmp-mat-color-primary: #5050e0;
  --gmp-mat-color-info: #7a7ac2;
  --gmp-mat-color-outline-decorative: #e6e6f0;
  --gmp-mat-color-positive: #29a329;
  --gmp-mat-color-negative: #c23333;
  --gmp-mat-color-on-secondary-container: #ffffff;
  --gmp-mat-color-secondary-container: #3333cc;
  --gmp-mat-font-family: "Inter Tight", sans-serif;
  --gmp-circle-font-family: "Averia Sans Libre", sans-serif;

  --gmp-mat-font-display-small: "bold";
  --main-font: "Inter Tight", sans-serif;
  --header-height: 60px;

  --font-family-primary: "Poppins", Arial, sans-serif;
  --base-font-size: 15px;

  --border-radius-small: 4px;
  --border-radius-medium: 6px;
  --border-radius-large: 8px;
  --box-shadow-soft: 0 2px 5px var(--shadow-color);
  --box-shadow-medium: 0 3px 6px var(--shadow-color);
  --box-shadow-hover: 0 6px 12px var(--shadow-color-hover);

  --transition-speed: 2s;
  --transition-timing: ease-in-out;
}

.flex {
  display: flex;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}

.rounded-sm {
  border-radius: var(--border-radius-small);
}
.rounded-md {
  border-radius: var(--border-radius-medium);
}
.rounded-lg {
  border-radius: var(--border-radius-large);
}
.rounded-full {
  border-radius: 50%;
}
.rounded-pill {
  border-radius: 25px;
}

.info-box {
  border-radius: 25px;
  padding: 6px 10px;
  font-size: var(--base-font-size);
  align-items: center;
  gap: 6px;
  width: fit-content;
  box-shadow: var(--box-shadow-soft);
  display: inline-flex;
}

.info-box p {
  margin: 0;
}

.info-box img {
  width: 20px;
  vertical-align: middle;
  margin: 0;
}
.main-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding: 70px 10px 15px 10px;
  height: 88%;
  margin: 0;
}
footer p {
  font-size: 8px;
  padding: 0 0 0 10px;
  bottom: 0;

  color: #29314a;
}
footer a {
  color: #f3474f;
}

html,
body {
  color: var(--brand-secondary);
  font-family: var(--main-font);
  height: 100vh;
  margin: 0;
  padding: 0;
  scrollbar-color: var(--bg-primary) var(--bg-secondary);
  scrollbar-width: thin;
}

#dropdown-container {
  position: absolute;
  top: 45%;
  left: 0;
  height: 60px;
  width: 100%;
  text-align: center;
  color: var(--brand-secondary);
  gap: 25px;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  transition: top var(--transition-speed) var(--transition-timing);

  transform: translateY(-50%);

  will-change: top;
}

#dropdown-container.active {
  top: 0;
  transform: translateY(0);
}

.fullscreen-inner {
  height: 100%;
  width: 100%;
  position: relative;
  transition: opacity 0.3s ease;
}

#main-header:not(.expanded) .fullscreen-inner {
  opacity: 0;
  pointer-events: none;
}

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--bg-primary);
  transition: height var(--transition-speed) var(--transition-timing),
    transform var(--transition-speed) var(--transition-timing);
  overflow: visible;
}

#main-header.expanded {
  height: 100vh;
  background-color: var(--bg-primary);
  transform: translateY(0);
}

#main-header:not(.expanded) {
  height: var(--header-height);
  transform: translateY(-100vh);
}

#main-header.slide-back {
  transform: translateY(0) !important;
}

#dropdown-container.no-transition {
  transition: none !important;
  will-change: auto;
}
gmp-place-autocomplete {
  color-scheme: light;
  border-radius: 25px;
  background-color: var(--bg-tertiary);
  color: var(--brand-secondary);
  width: 250px;
  height: 40px;
  border: 2px solid var(--brand-primary);
}
gmp-place-autocomplete svg {
  color: #a2b9ce;
}
.category-dropdown {
  border-radius: 25px;
  max-width: 200px;
  height: 40px;
  font-family: var(--main-font);
  background-color: var(--bg-tertiary);
  border: 0px;
  text-align: center;
  border: 2px solid var(--brand-primary);
  color: var(--brand-secondary);
  font-size: 15px;
}

.btn,
#gobutton,
.sidebar-button {
  border-radius: 30px;
  min-width: 100px;
  height: 40px;
  cursor: pointer;
  border: 2px solid var(--brand-primary);
  text-align: center;
  padding: 6px 12px;
  font-weight: bold;
  font-family: var(--main-font);
  background-color: var(--brand-primary);
  color: var(--bg-tertiary);
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.btn:hover,
#gobutton:hover,
.sidebar-button:hover {
  background-color: var(--bg-tertiary);
  color: var(--brand-primary);
}
.header-title {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--heading-color);
}

.header-icon {
  margin-right: 10px;
  font-size: 26px;
  line-height: 1;
}

.sidebar {
  flex-basis: 30%;
  border-radius: 12px;
  align-items: center;
  top: var(--header-height);
  background: var(--bg-secondary);
  color: var(--heading-color);
  overflow-y: auto;
  height: 100%;
  font-family: var(--main-font);
  scrollbar-color: var(--brand-primary) var(--bg-secondary);
  scrollbar-width: thin;
  box-shadow: -2px 0 8px var(--shadow-color);
  border-left: 1px solid var(--border-color);
}

.content {
  flex-basis: 70%;
  position: relative;
  display: flex;
}

#map {
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: -2px 0 8px var(--shadow-color);
  border-left: 1px solid var(--border-color);
}

.activity {
  background-color: var(--primary-color);
  border-radius: 12px;
  color: var(--white);
  font-size: var(--base-font-size);
  font-weight: 500;
  padding: 6px 12px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

#weather-info {
  background-color: var(--brand-primary);
  color: var(--bg-secondary);
  display: none;
}
#reset-camera-button {
  border-radius: 30px;
  min-width: 100px;
  height: 40px;
  cursor: pointer;
  border: 2px solid var(--brand-primary);
  text-align: center;
  padding: 6px 12px;
  font-weight: bold;
  font-family: var(--main-font);
  background-color: var(--brand-primary);
  color: var(--bg-tertiary);
  transition: background-color 0.3s ease, color 0.3s ease;

  position: absolute;
  bottom: -20px;
  left: 45%;
  z-index: 998;
  box-shadow: var(--box-shadow-soft);
}

#reset-camera-button:hover {
  background-color: var(--bg-tertiary);
  color: var(--brand-primary);
}

.nearby-places-info {
  margin-top: 12px;
  padding: 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  text-align: center;
}

.nearby-places-info h4 {
  margin: 0 0 6px 0;
  font-size: var(--base-font-size);
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
}

.nearby-places-info h4 .star-icon {
  font-size: 1.5em;
  vertical-align: baseline;
}

.nearby-places-info p {
  font-size: var(--base-font-size);
  color: var(--text-light);
  display: flex;
  gap: 50px;
}

.nearby-places-info .place-type {
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  white-space: nowrap;
}

.nearby-places-info .icon {
  font-size: 1.55em;
  line-height: 1;
}

.error-message {
  color: var(--danger-color);
  font-weight: 500;
  font-size: 13px;
  margin-top: 5px;
}

.detail-popup {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 350px;
  background: white;
  border-radius: 12px;
  padding: 20px 0 10px 0;
  z-index: 999;
  display: none;
  flex-direction: column;
  font-family: var(--main-font);
}

.detail-popup.visible {
  display: flex;
}

.detail-popup .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.light-popover {
  color-scheme: light;
}
.fullscreen-inner {
  height: 100%;
  width: 100%;
  position: relative;
}
#rome-card {
  left: 23%;
  bottom: 40%;
  position: absolute;
  animation-delay: 0s;
  animation: float 3s ease-in-out infinite;
}
#rome-card img {
  width: 200px;
  height: 200px;
}
#ny-card img {
  width: 180px;
  height: 180px;
}
#swiss-card img {
  width: 170px;
  height: 170px;
}
#tokyo-card img {
  width: 210px;
  height: 210px;
}
#random-card img {
  width: 130px;
  height: 130px;
}
#random-card {
  left: 80%;
  bottom: 35%;
  position: absolute;
  animation-delay: 0.6s;
  animation: float 3s ease-in-out infinite;
}
#ny-card {
  left: 3%;
  bottom: 40%;
  position: absolute;
  animation: float 2s ease-in-out infinite;
  animation-delay: 0.3s;
}
#swiss-card {
  left: 43%;
  bottom: 40%;
  position: absolute;
  animation: float 3s ease-in-out infinite;

  animation-delay: 0.5s;
}
#tokyo-card {
  left: 63%;
  bottom: 40%;
  position: absolute;
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.31s;
}
#location-subtitle {
  text-align: center;

  margin: 0 0 10px 0;
  color: var(--brand-accent);
  font-size: small;
}
#logo {
  display: block;
  margin: auto;
  width: 250px;
}
#banner {
  position: relative;
  top: 10%;
  width: 100%;
}
#dropdown-logo {
  display: none;
  cursor: pointer;
  width: 4%;
  margin: 10px 10px 0 10px;
}
#card-container button {
  background-color: transparent;
  padding: 10px;
  border: none;
  cursor: pointer;
}
#card-container button:hover {
  animation-play-state: paused;
}

.card {
  font-family: var(--gmp-circle-font-family);
  width: 200px;
  margin: 20px;
  position: absolute;
}

.circle-wrapper {
  position: relative;
  display: inline-block;
}

.card-image {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.arc-text {
  position: absolute;
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: var(--brand-primary);
  pointer-events: none;
  white-space: nowrap;
}

.arc-top {
  top: -40px;
}

.arc-bottom {
  bottom: -40px;
}

#ai-route-loading {
  text-align: center;
  font-weight: 500;
  color: #263049;
  min-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-step {
  opacity: 0;
  width: 100%;
  transform: translateY(10px);
  animation: fadeInUp 0.5s forwards;
  margin-bottom: 8px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

.ai-stop-card {
  padding: 15px;
  display: flex;
  color: var(--brand-tertiary);
  flex-direction: column;
  gap: 0px;
  margin: 10px 0 10px 0;
  text-align: center;
}

.ai-stop-card:hover {
  background-color: var(--bg-highlight);
  cursor: pointer;
}
.ai-stop-card p {
  margin: 0 0 5px 0;
}
.ai-stop-card em {
  color: var(--brand-primary);
}
.ai-stop-card h4 {
  margin: 0;
}
#ai-route-summary {
  padding: 15px;
  text-align: center;
  background-color: var(--bg-primary);
  margin: 5px;
  border-radius: 12px;
}
#ai-route-summary h3 {
  margin-bottom: 0;
}
#route-summary-distance {
  color: var(--brand-primary);
  margin: 0;
}

gmp-place-search {
  color-scheme: light;
  background-color: white;
  border: 2px solid var(--bg-secondary);
}

#button-container {
  display: flex;
  flex-wrap: row;
  margin: 10px 0 15px 0;
  justify-content: space-around;
  font-family: var(--main-font);
}
#location-title {
  text-align: center;
  color: var(--brand-primary);
  margin-bottom: 0;
}
.list-container {
  padding: 5px;
}
gmp-place-details {
  background-color: white;
}
gmp-internal-place-search-list-item {
  background-color: var(--bg-secondary);
}
gmp-place-details-compact {
  border: 0px;
  padding-top: 5px;
}
#walking-details {
  position: absolute;
  top: -5px;
  left: 10px;
}

#public-transport-info {
  background-color: var(--bg-primary);
  color: var(--brand-primary);
}
#overlay-container {
  position: absolute;
  width: fit-content;
  top: 5px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 2px solid var(--bg-primary);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
