body {
  margin: 0;
  padding: 0;
  font-family: "Caudex";
}
#wraper {
  display: flex;
  height: 100vh;
  width: 100%;
}
#left-panel {
  display: flex;
  justify-content: space-around;
  position: absolute;
  z-index: 3;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex-shrink: 0;
  width: 22%;
  height: 93%;
  margin-left: 2%;
  margin-top: 1%;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface-main-card, rgba(250, 248, 240, 0.6));
  backdrop-filter: blur(12px);
  /* border-radius: 24px;
  background: var(--Maps-surface-background-primary, #E1DDC6);
  box-shadow: 0px 0px 4px 0px rgba(176, 157, 141, 0.4); */
}
.main-title-wraper {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  width: 100%;

  box-sizing: border-box;
}
.disclaimer {
  display: flex;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--Maps-text-text-primary, #817d79);
}
.scrollable-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: -webkit-fill-available;
  /* overflow-y: auto; */
}
.title {
  display: flex;
  align-self: stretch;

  color: var(--Maps-text-text-primary, #2b1f16);
  font-family: Caudex;
  font-size: 37px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
#language-switcher {
  display: flex;
  height: 40px;
  min-height: 40px;
  padding: var(--spacing-spacing-none, 0px)
    var(--spacing-pading-padding-sm, 8px);
  justify-content: center;
  align-items: center;
  gap: var(--spacing-gap-gap-sm, 8px);
  color: var(--Maps-text-text-secondary, #7a716a);

  /* Maps/Paragraph */
  font-family: Caudex;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}
#language-switcher-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

#map-wraper {
  display: flex;
  width: 100%;
}
#map {
  display: flex;
  width: 100%;
  height: 100%;
}

.filter-group {
  position: absolute;
  top: 2%;
  right: 10px;
  z-index: 1;
  border-radius: 12px;
  background: var(--surface-main-card, rgba(250, 248, 240, 0.6));
  backdrop-filter: blur(12px);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease-in-out;
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-icons {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.filter-group input[type="checkbox"] {
  display: none;
}

.filter-group input[type="checkbox"] + label {
  background-color: transparent;
  display: inline-block;
  cursor: pointer;
  padding: 4px 0;
  text-transform: capitalize;
  white-space: nowrap;
}

.filter-group input[type="checkbox"] + label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: var(--radius-sm, 4px);
  background: var(--Maps-surface-foreground-primary, #e1ddc6);
  vertical-align: middle;
}

.filter-group input[type="checkbox"]:checked + label::before {
  content: url("./data/svgs/check.svg");
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.filter-group img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.filter-checkboxes > div:hover {
  background-color: #f0e8e0;
  border-radius: 4px;
  padding: 0 4px;
}

.filter-ctrl {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.filter-ctrl input[type="text"] {
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  width: 100%;
  border: 0;
  background-color: #fff;
  margin: 0;
  color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  width: 180px;
}

.search-container {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}
#search-results::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
#search-results::-webkit-scrollbar-thumb {
  background: #444133;
  border-radius: 10px;
}

#search-input {
  all: unset;
  width: 100%;
  padding: 10px;
  font-family: "Caudex";
  box-sizing: border-box;
  border-radius: 4px;
  padding-left: 30px;
  border-radius: 28px;
  border: 1px solid transparent;
  /* border: 1px solid var(--Maps-border-border-default, #E1DDC6); */
  /* background: var(--Maps-surface-foreground-secondary, #F7F5EC); */
}
#search-input:focus {
  outline: none;
  border: 1px solid #c4beb9;
  /* background: aqua; */
}
#search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #888; /* Adjust color as needed */
  pointer-events: none; /* Ensures the icon doesn't interfere with input interactions */
}

#search-results {
  position: absolute;
  margin-top: 50px;
  padding: 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  max-height: 500px;
  width: -webkit-fill-available;
  overflow-y: auto;
  border-radius: var(--radius-sm, 4px);
  border: 1px solid var(--Maps-border-border-focused, #c4beb9);
  background: var(--Maps-surface-foreground-secondary, #f7f5ec);

  /* Maps/Shadow */
  box-shadow: 0px 0px 4px 0px rgba(176, 157, 141, 0.4);
}

#search-results div {
  padding: 10px;
  cursor: pointer;
}

#search-results div:hover {
  background-color: #f0f0f0;
}
#info-pane {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 16px;
  /* height: 100%; */
  box-sizing: border-box;
}
#point-info-wraper {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: flex-start;
  gap: 24px;
  flex-shrink: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto; /* Keep this to allow scrolling */
  overflow-x: hidden;
  padding-top: 8px;
  border-radius: 24px;
  background: var(--Maps-surface-background-primary, #f7f5ec);
  box-shadow: 0px 0px 4px 0px rgba(176, 157, 141, 0.4);
}

#close-info {
  display: flex;
  /* position: absolute;
  top: 10px;
  left: 10px; */
  width: fit-content;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.title-wraper {
  display: flex;
  flex-direction: column;
  /* align-self: stretch; */
  gap: 8px;
}
.information-wraper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 24px;
  min-height: calc(100% - 50px);
  box-sizing: border-box;
  height: 100%;
}
.point-type {
  display: flex;
  width: fit-content;
  padding: var(--radius-sm, 4px) 8px;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  border-radius: var(--radius-sm, 4px);
  background: var(--Maps-surface-foreground-primary, #e1ddc6);
}
.point-title {
  display: flex;
  align-self: stretch;
  color: var(--Maps-text-text-primary, #2b1f16);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
#point-image-wraper {
  width: 100%;
  position: relative;
  display: inline-block;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
}
.point-image {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-color: #e1ddc6;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}
iframe {
  border: none;
  /* width: 100%; */
}
.no-images {
  display: flex;

  font-size: 12px;
  font-weight: 500;
  color: var(--Maps-text-text-primary, #c4beb9);
}
.point-description {
  display: flex;
  align-self: stretch;
  width: 94%;
  color: var(--Maps-text-text-primary, #2b1f16);
  /* Maps/Paragraph */
  font-family: Caudex;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  /* overflow-y: auto !important; */
}
.point-description::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.point-description::-webkit-scrollbar-thumb {
  background: #444133;
  border-radius: 10px;
}
#map-nav {
  display: flex;
  justify-content: space-between;
  z-index: 1;
  position: absolute;
  right: 0px;
  bottom: 2.5%;
  width: 75%;
}
.tabs-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
  overflow: hidden; /* New: Prevent scrolling on the container */
  height: 100%; /* New: Set the height of the container */
}
.tabs {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  overflow-x: auto;
  overflow-y: hidden; /* Prevent vertical scrolling */
  padding-bottom: 8px;
}

/* Add custom scrollbar styling for the tabs */
.tabs::-webkit-scrollbar {
  height: 8px;
}

.tabs::-webkit-scrollbar-thumb {
  background: #444133;
  border-radius: 4px;
}

.tab-button {
  display: flex;
  cursor: pointer;
  text-wrap: nowrap;
  padding: var(--radius-sm, 4px) 8px;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--Maps-border-border-default, #e1ddc6);
  color: var(--Maps-text-text-primary, #2b1f16);
  /* Maps/Title */
  font-family: Caudex;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.tab-button:hover {
  border-radius: 8px;
  border: 1px solid var(--Maps-border-border-default, #e1ddc6);
  background: var(--Maps-surface-foreground-secondary, #e1ddc6);
}

.tab-button.active {
  background-color: #f7f5ec;
}

.tab-content {
  flex-grow: 1;
  display: flex;
  width: 100%;
  height: calc(
    100% - 40px
  ); /* Changed: Adjust based on the height of your tabs */
  overflow: hidden; /* Changed: Remove scrolling from tab-content */
}
.category-list::-webkit-scrollbar {
  width: 10px;

  height: 10px;
}
.category-list::-webkit-scrollbar-thumb {
  background: #444133;
  border-radius: 10px;
}

.category-list.active {
  display: flex;
  padding: 10px 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 8px;
  background: var(--Maps-surface-foreground-primary, #f7f5ec);
  overflow-y: auto;
}
.category-list {
  display: none;
  padding: 20px;
  max-height: calc(100vh - 50px); /* Adjust based on your tab height */
  overflow-y: auto;
}

.point-li {
  display: flex;
  list-style: none;
  cursor: pointer;
  padding: 15px 0;
  /* padding-left: px; */
  border-radius: 8px;
  width: 100%;

  /* border-bottom: 1px solid #eee; */
}

.point-li:hover {
  background-color: #e1ddc6;
}

.point-li img {
  display: inline-flex;
  width: 19px;
  height: 19px;
  padding: 0 10px;
}
.point-li span {
  color: var(--Maps-text-text-primary, #2b1f16);

  /* Maps/Paragraph */
  font-family: Caudex;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}
#fly-to-white-tower,
#reset {
  display: inline-flex;
  cursor: pointer;
  margin: 0 44px;
  padding: 8px;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: #e1ddc6;
  box-shadow: 0px 0px 4px 2px rgba(99, 78, 61, 0.4);
}
#fly-to-white-tower:hover,
#reset:hover {
  background: #f0e8e0;
}
.point-inner-wraper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  gap: 24px;
  padding-bottom: 40px;
}

/* ------------------------------------------------------------------------------------- */
/* ---------------------------------- Media Queries ------------------------------------- */
/* ------------------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body {
    overflow: hidden;
  }
  #wraper {
    max-width: 100%;
    height: 100svh;
    flex-direction: column-reverse;
    gap: 0;
    overflow: hidden;
  }
  #left-panel {
    display: flex;
    width: -webkit-fill-available;
    height: 98svh;
    margin: 0;
    padding: 8px 16px;
    transition: transform 0.3s ease-in-out;
    /* border-radius: 0; */
  }

  .slide-indicator,
  .info-slide-indicator {
    display: flex;
    width: 60px;
    height: 5px;
    background-color: #ccc;
    border-radius: 2.5px;
    margin: 0 auto 10px;
    cursor: pointer;
    z-index: 5;
    /* width: 60px;
    height: 5px;
    background-color: #ccc;
    border-radius: 2.5px;
    left: 50%;
    top: 8px;
    transform: translateX(-50%); */
  }
  #point-info-wraper {
    height: 100vh; /* Use viewport height */
    padding-bottom: 20px; /* Add some padding at the bottom */
  }

  .information-wraper {
    min-height: auto; /* Remove fixed height */
    flex-grow: 1; /* Allow it to grow */
    overflow-y: auto; /* Make this scrollable */
  }

  .point-description {
    width: 100%; /* Full width on mobile */
    overflow-y: visible; /* Allow content to flow */
  }
  #map-wraper {
    display: flex;
    width: 100%;
    height: 100vh;
  }
  #map {
    width: 100%;
    height: 100%;
  }
  #map-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    right: 10px;
    bottom: 52%;
  }
  #fly-to-white-tower,
  #reset {
    width: fit-content;
    margin: 0;
  }
  .title {
    color: var(--Maps-text-text-primary, #2b1f16);

    /* Maps/Heading */
    font-family: Caudex;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  .information-wraper {
    min-height: 93%;
  }
  /* #left-panel.open .slide-indicator {
    width: 24px;
    height: 24px;
    background-color: transparent;
    left: 16px;
    top: 16px;
    transform: none;
  }

  #left-panel.open .slide-indicator svg {
    width: 100%;
    height: 100%;
  } */
}

.point-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zoomable-image-container {
  width: 100%;
  height: 500px;
  overflow: hidden;
  cursor: move;
}

.zoomable-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease-out;
}

.nav-button-container {
  padding: 10px 16px;
}

.google-maps-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #4285f4;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.google-maps-button:hover {
  background-color: #3367d6;
}

.google-maps-button img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.route-position {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background-color: #444133;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 8px;
  margin-left: 5px;
}

/* Update point-li for routes */
.point-li {
  display: flex;
  align-items: center;
  /* ... rest of existing styles ... */
}

.view-toggle {
  display: flex;
  width: 98%;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-border-light, #e1ddc6);
  background: var(--surface-secondary-card, #f7f5ec);
  border-radius: 8px;
}

.toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  font-family: Caudex;
  font-weight: 700;
  color: #2b1f16;
  transition: all 0.2s ease;
}

.toggle-button.active {
  border-radius: 4px;
  background: var(--surface-secondary-button, #e1ddc6);
}

.toggle-button:hover:not(.active) {
  background: rgba(247, 245, 236, 0.5);
}

.tab-button.hidden {
  display: none;
}

.filter-toggle {
  display: none;
  position: absolute;
  top: 50%;
  left: -24px;
  transform: translateY(-50%);
  background: var(--surface-main-card, rgba(250, 248, 240, 0.9));
  backdrop-filter: blur(12px);
  border: none;
  border-radius: 8px 0 0 8px;
  padding: 8px 4px;
  cursor: pointer;
  z-index: 1;
}

.filter-toggle img {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .filter-group {
    top: 2%;
    right: 0;
    border-radius: 12px 0 0 12px;
    transform: translateX(0);
  }

  .filter-group.collapsed {
    transform: translateX(calc(100% - 4px));
  }

  .filter-toggle {
    display: flex;
  }

  .filter-toggle img {
    transform: rotate(0deg);
  }

  .collapsed .filter-toggle img {
    transform: rotate(180deg);
  }
}

.route-navigation {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin: 12px 0;
  gap: 10px;
}

.route-nav-button {

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background-color: #e1ddc6;
  color: #2b1f16;
  font-family: "Caudex", serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
}

.route-nav-button:hover {
  background-color: #d1cdb6;
}

.route-nav-button img {
  width: 16px;
  height: 16px;
}

.route-nav-button.prev {
  text-align: center;
  justify-content: flex-start;
  white-space: normal;
}

.route-nav-button.next {
  text-align: center;
  justify-content: flex-end;
  white-space: normal;
  
}

@media (max-width: 768px) {
  .route-navigation {
    flex-direction: column;
    gap: 8px;
  }

  .route-nav-button {
    max-width: 100%;
  }
}

.comparison-slider-container {
  width: 100%;
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
}

img-comparison-slider {
  --divider-width: 2px;
  --divider-color: #e1ddc6;
  --default-handle-color: #2b1f16;
  --default-handle-opacity: 0.9;
  --default-handle-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  height: auto;
  max-height: 500px;
  border-radius: 8px;
  width: 100%;
}

img-comparison-slider img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 500px;
}

.custom-handle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e1ddc6;
  border: 2px solid #2b1f16;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custom-handle::before,
.custom-handle::after {
  content: "";
  position: absolute;
  background-color: #2b1f16;
}

.custom-handle::before {
  width: 10px;
  height: 2px;
  left: 8px;
  transform: translateY(-4px);
}

.custom-handle::after {
  width: 10px;
  height: 2px;
  right: 8px;
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  img-comparison-slider {
    max-height: 350px;
  }

  img-comparison-slider img {
    max-height: 350px;
  }

  .custom-handle {
    width: 30px;
    height: 30px;
  }
}
