:root {
  --cyan-light: #32EEF5;
  --cyan-medium: #06D6DF;
  --cyan-dark: #01969E;
  --coral-light: #FD817C;
  --coral-medium: #F25C57;
  --coral-dark: #C12723;
  --background: var(--cyan-light);
  --foreground1: #222;
  --font-display: Cakra, -apple-system, Helvetica, Arial, sans-serif;
  --font-small: inter, -apple-system, Helvetica, Arial, sans-serif;

}

@font-face {
  font-family: "Cakra";
  src:
    local("Cakra"),
    url("/fonts/Cakra-Normal.otf") format("opentype") tech(color-COLRv1),
    url("/fonts/Cakra-Normal.woff") format("woff"),
    url("/fonts/Cakra-Normal.woff2") format("woff2");
}

body {
  font-family: var(--font-small);
  margin: 0;
  padding: 0;
  background-color: #fff;
  position: relative;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  font-weight: 300;
}

strong {
  font-weight: 500;
}

h1 {
  font-family: var(--font-display);
  font-size: 3em;
  font-weight: 400;
  color: black;
  font-feature-settings: 'ss02' on, 'ss03' on, 'ss04' on;
}

.cover {
  width: 256px;
  height: 256px;
  object-fit: cover;
  border-radius: 8px;
}

.group {
  display: flex;
}

.group .grid {
  display: grid;
  flex-grow: 1;
  grid-template-columns: repeat(auto-fill, 256px);
  gap: 15px;
  margin-bottom: 10em;
}

.brand-name {
  width: 256px;
  padding-left: 20px;
  font-size: 2em;
  font-weight: bold;
  margin-top: -5px;
}

.product-type {
  font-size: 0.4em;
  font-weight: normal;
  border-radius: 4px;
  padding: 0.4em 0.6em;
  display: inline-block;
  margin-top: 0.5em;
  background-color: #f0f0f0;
}

.website-link,
.instagram-link {
  font-size: 0.4em;
  font-weight: normal;
  color: #333;
  text-decoration: none;
  padding: 0.2em 0.4em;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-right: 0.5em;
  display: inline-block;
  background-color: #fff;
}

.website-link:hover,
.instagram-link:hover {
  background-color: #f5f5f5;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .group {
    flex-direction: column;
  }

  .brand-name {
    width: 100%;
    text-align: left;
    padding-left: 0;
    margin-bottom: 1em;
  }

  .group .grid {
    grid-template-columns: repeat(auto-fit, 256px);
    justify-items: start;
    gap: 15px;
    margin-bottom: 3em;
  }
}

.beverage {
  position: relative;
  overflow: hidden;
}

.beverage .name {
  font-family: var(--font-small);
  position: absolute;
  background-color: white;
  font-size: 0.8em;
  padding: 1em 1.2em;
  top: 0px;
  margin: 0;
  border-radius: 0 0 8px 0;
}

.card {
  box-sizing: border-box;
  position: absolute;
  right: 10%;
  top: 17%;
  z-index: 2003;
  max-width: 600px;
  background-color: #02A2F0;
  padding: 6em 5em 5em 5em;
  text-align: center;
  line-height: 1.4em;
  max-height: 405px;
  overflow-y: scroll;
  cursor: pointer;
  transition: transform 0.3s ease, border-radius 0.5s ease;
}

.card * {
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: scale(1.02);
}

/* Disable red card hover animation only when blue card is still visible (not a circle) */
.card:not(.circle):not(.red-bg)~.card.red-bg:hover {
  transform: none;
}

.card.red-bg {
  right: 17%;
  top: 25%;
  z-index: 2002;
  background-color: #FC0742;
  padding: 3em 5em 5em 5em;
  text-align: left;
}

.card h2 {
  font-weight: 300;
  font-size: 1em;
}

.card.red-bg h2 {
  font-size: 2em;
  font-family: var(--font-display);
}

/* Welcome Card Interaction Styles */
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 2000;
  pointer-events: auto;
  transition: background-color 0.3s ease-out, backdrop-filter 0.3s ease-out, -webkit-backdrop-filter 0.3s ease-out;
}

.page-overlay.hidden {
  pointer-events: none;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


.card.animating {
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  pointer-events: none;
}

.card.fade-out * {
  opacity: 0;
}

/* Marker Animation Styles */
.marker-hidden {
  opacity: 0;
  animation: marker-hide 0s ease-out;
}

.marker-animate-in {
  animation: marker-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes marker-hide {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes marker-bounce-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.card.circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 2003;
}

.card.circle:hover {
  transform: scale(1.1);
}

.card.circle * {
  opacity: 0;
}

/* Side Panel Styles */
.side-panel {
  position: fixed;
  top: 0;
  right: -416px;
  width: 400px;
  height: 100vh;
  background-color: white;
  z-index: 1999;
  transition: right 0.3s ease-in-out;
  border-left: #FDE000 solid 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.side-panel.open {
  right: 0;
}

.side-panel-header {
  padding: 20px;
  position: relative;
  flex-shrink: 0;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background-color: #e0e0e0;
  color: #333;
}

.side-panel-header h2 {
  margin: 0 40px 10px 0;
  font-size: 2em;
  font-weight: 400;
  color: var(--foreground1);
  font-family: var(--font-display);
}

.side-panel-header .product-type {
  font-size: 0.9em;
  font-weight: normal;
  background-color: #e0e0e0;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin: 0;
}

.side-panel-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.panel-info {
  margin-bottom: 20px;
}

.panel-info p {
  margin: 8px 0;
  color: #666;
  line-height: 1.5em;
}

.manufacturer-links {
  margin-top: 15px;
}

.manufacturer-links a {
  display: inline-block;
  margin-right: 10px;
  padding: 6px 12px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.manufacturer-links a:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

.panel-products h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.2em;
  font-family: var(--font-display);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.product-item {
  background-color: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.product-name {
  padding: 10px;
  margin: 0;
  font-size: 0.85em;
  color: #333;
  line-height: 1.3;
  font-family: var(--font-small);
}

/* Map marker hover effects */
.mapboxgl-marker {
  transition: filter 0.2s ease;
  pointer-events: auto !important;
}

/* Responsive design for side panel and mobile optimizations */
@media (max-width: 768px) {
  .side-panel {
    width: 100vw;
    right: -100vw;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .product-image {
    height: 120px;
  }

  .side-panel-header h2 {
    font-size: 1.3em;
  }

  /* Adjust cards to fit mobile screens while keeping desktop functionality */
  .card {
    right: 5%;
    top: 10%;
    max-width: 90%;
    padding: 2em 1.5em;
    font-size: 0.9em;
    max-height: 70vh;
  }

  .card.red-bg {
    right: 8%;
    top: 15%;
    padding: 2em 1.5em;
  }

  .card h2 {
    font-size: 0.9em;
  }

  .card.red-bg h2 {
    font-size: 1.5em;
  }

  /* Adjust main heading for mobile */
  h1 {
    font-size: 2em;
    padding: 10px;
  }

  /* Remove yellow border on mobile */
  .side-panel {
    border-left: none;
  }

  /* Use mobile logo on mobile */
  .card .logo {
    content: url('/logo-mobile.svg');
    width: 210px;
  }
}

/* Beverage Types Section */
.panel-beverage-types {
  margin-top: 30px;
}

.panel-beverage-types h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--foreground1);
  font-family: var(--font-display);
}

.beverage-types-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.beverage-type-card {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid var(--coral-medium);
}

.beverage-type-card h4 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  font-weight: 500;
  color: var(--coral-dark);
  font-family: var(--font-display);
}

.beverage-type-card p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.4;
  color: #555;
}