/* public/Somewherehere.css */

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  font-family: 'Roboto', sans-serif; 
}

.container {
  display: flex;
  flex-direction: column;
  height:100%;
  text-align: center;
  padding: 0px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.heading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.0);
    color: white;
    text-align: right;
    padding: 20px;
    font-size: 44px;
    opacity: 1;
}

.heading-title {
  font-size: 26px; /* Adjust font size as needed */
}

.image-container {
  align-items: centre;
}

.review-container {
  position: relative;
}

.review-text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.review-text.expanded {
  -webkit-line-clamp: unset;
}

.toggle-review {
  color: blue;
  cursor: pointer;
}

.description-container {
  position: relative;
}

.description-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.description-text.expanded {
  -webkit-line-clamp: unset;
}

.toggle-description {
  color: blue;
  cursor: pointer;
}

.carousel {
  display: grid;
  grid-template-rows: 103px; /* One row of 103px height */
  grid-auto-flow: column;
  overflow-x: auto;
  gap: 3px; /* Adjust the gap between images */
  justify-content: start; /* Align items to the start */
}

.place-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.carousel::after {
  content: '';
  flex: auto;
}

.title {
  font-size: 40px;
  color: #0277bd;
  margin-bottom: 20px;
}

.cartoon {
  width: 150px;
  margin-bottom: 20px;
}

.vision-message {
  margin-bottom: 10px;
  color: #ffffff;
}

.input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.input-box {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  margin: 0 auto;
  border: 2px solid #ffffff; /* White border */
  border-radius: 5px;
  font-family: 'Roboto', sans-serif; 
  font-size: 14px;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5); /* Dark shade with 10% transparency */
  box-sizing: border-box;
}

.input-box::placeholder {
  color: #ffffff; /* White placeholder text */
}

.location-button-wrapper {
  display: none;
  position: absolute;
  right: 120px; /* Adjust the position as needed */
  top: 20%;
}

.location-button {
  background: none;
  border: none;
  cursor: pointer;
}

.location-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: calc(4rem);
  cursor: pointer;
  font-size: 1.8rem;
  color: #000000;
  user-select: none;
}

.location-input-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 60%;
  margin-bottom: 10px;
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  z-index: 1000;
}

.modal-content {
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 5px;
  width: 60%;
  height: 280px;
  max-width: 400px;
  max-height: 280px;
  min-width: 250px;
  overflow-y: auto; 
  font-size: 18px;
  text-align: center;
  align-items: center;
}

.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Increase z-index to ensure it appears above other elements */
}

.custom-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  width: 70%;
  max-height: 85%;
  max-width: 500px;
  overflow-y: auto; 
}

.custom-info-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  width: 70%;
  max-height: 85%;
  max-width: 500px;
}

.custom-close-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.custom-close-button:hover {
  background-color: #0056b3;
}

.static-item-text {
  position: absolute; /* NEW: Take it out of normal flow */
  top: 0; /* NEW: Align to the top of the parent */
  left: 0; /* NEW: Align to the left of the parent */
  width: 100%; /* NEW: Make it fill 100% of the parent's width */
  height: 100%; /* NEW: Make it fill 100% of the parent's height (now that it's absolutely positioned) */

  padding-top: 0px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  box-sizing: border-box; /* Still crucial for border/padding inclusion */
  overflow-y: auto; /* Enable vertical scrolling if content overflows */

  background-color: rgba(255, 255, 255, 0.85); /* Slightly transparent white/off-white */
  border: 1px solid rgba(0, 0, 0, 0.3); /* Darker border */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05); /* Very soft, general shadow */
}

.static-item-text h1 {
  font-size: 13pt;
  font-family: Helvetica, Arial, sans-serif;
  color: #333; /* Darker text for readability on light background */
}

.static-item-text h2 {
  font-size: 12pt;
  font-family: Helvetica, Arial, sans-serif;
  font-style: italic;
  color: #555;
}

.static-item-text h3 {
  font-size: 11pt;
  font-family: Helvetica, Arial, sans-serif;
  color: #666;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.apply-button, .close-button {
  margin-top: 10px;
  padding: 10px;
  cursor: pointer;
}

.select-types-button {
  padding: 6px 10px;
  background-color: #0288d1;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  display: right;
  margin-right: 30px; /* Add margin to separate the buttons */
}

.calculate-button {
  padding: 6px 10px;
  background-color: #1ba2db;
  color: white;
  border: 1px solid #ffffff;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.share-button {
  padding: 6px 10px;
  background-color: #4D5D78;
  color: white;
  border: 1px solid #ffffff;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.calculate-button:hover {
  background-color: #5ab248;
}

.radius-container {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px; 
}

.radius-container label {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 18px;
  align-items: center;
}

.radius-container input {
  margin-top: 5px;
  padding: 5px;
  font-size: 18px;
  width: 50%;
}

.footer-info {
  flex-shrink: 1;
  padding: 0px;
  font-size: 14px;
  margin-left: 100px;
  margin-right: 100px;
  margin-top: 25px;
}

.footer-info a {
  color: #333; /* Change the color to a dark gray or your preferred color */
  text-decoration: none; /* Remove the underline */
  margin: 0 10px; /* Add horizontal spacing between links */
}

.footer-info a:hover {
  color: #007bff; /* Change the color on hover, like a light blue */
  text-decoration: underline; /* Add underline on hover */
}

.footer-info p {
    display: flex; /* use flexbox for spacing */
    justify-content: center; /* center the links*/
}

/* Container for the dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Button to open the dropdown */
.dropdown-button {
  padding: 5px;
  margin: 2px auto;
  border: 1px solid #ffffff;
  border-radius: 5px;
  font-size: 16px;
  color: #D5DEEC;
  background-color: #464B54;
  min-width: 270px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  cursor: pointer;
  
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: block;
  position: absolute;
  padding: 5px;
  border: 2px solid #0288d1;
  border-radius: 5px;
  font-size: 16px;
  background-color: #464B54;
  min-width: 270px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 901;
}

/* Show the dropdown content when the button is clicked */
/*
.dropdown:hover .dropdown-content {
  display: block;
}
*/

/* Style for each dropdown item */
.dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
}

.dropdown-arrow {
  position: absolute;
  right: 6px; /* slight margin from the edge */
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #ccc; /* light grey */
  pointer-events: none; /* prevents accidental clicks on arrow */
}

/* Style for the checkboxes */
.checkbox {
  margin-left: 10px;
}


.callToActionText {
  color: #333; /* Dark grey color */
  font-weight: bold;
  font-size: 23px;
}

/* Style for the "more options" link */
.more-options {
  position: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}

.more-options-link:hover {
  text-decoration: underline;
}

.find-out-more-container {
  margin-top: -25px; /* Adjust the value as needed for separation */
  text-align: right; /* Right-align the text */
}



.error-message {
  color: red;
  margin-top: 5px;
  font-size: 16px;
}

.share-apply-button {
  padding: 10px 20px;
  background-color: #0288d1;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 19px;
  cursor: pointer;
  margin-top: 20px;
}

.share-cancel-button {
  padding: 10px 20px;
  background-color: #0288d1;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 19px;
  cursor: pointer;
  margin-top: 20px;
  margin-left: 20px;
}

.event-dates {
  display: flex;
  align-items: left;
  margin-bottom:5px;
}

.event-dates p {
  margin-right: 8px; /* Adjust spacing as needed */
  margin-bottom:4px;
}

.event-dates ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.event-dates ul li {
  margin-left: 16px; /* Adjust spacing as needed */
}

.branding-section {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  justify-content: center;
}

.branding-section a {
    font-size: 0;
}

/* Styling for your logo image */
.brand-logo-image {
  width: 115px;
  max-width: 100%;
  height: auto;
  margin-top: 10px; 
  margin-bottom: 2px; 
}

/* Styling for the "What Is Between" text (H1) */
.site-name-text {
  font-family: 'Fredoka', sans-serif; 
  font-size: 14px; 
  font-weight: 600; 
  color: #333;
  text-align: center; 
  margin-bottom: 2px;
  margin-top: 0px; 
  padding: 0;
  line-height: 1.2; 
  letter-spacing: 0.75px;
}

.vision-message {
  font-family: 'Roboto', sans-serif; 
  font-weight: 500; 
  font-size: 12px;
  color: #ffffff;
  margin-top: 5px; 
  text-align: center;
}

.image-container {
  text-align: center;
  margin-top: 0px;
}

.image-container img {
  width: 115px;
  max-width: 100%;
  height: auto;
}

.image-container p {
  margin-top: 0px;
  font-size: 18px;
  color: #333;
}

.modal-image-container {
  display: block;
  justify-content: center;
  align-items: center;
}

.modal-image-container img {
  margin: auto;
}


.apply-button, .close-button, .select-types-button, .share-apply-button, .share-cancel-button {
  font-size: 18px; /* Use viewport width units */
}

.suggestions-dropdown {
  position: absolute;
  top: 100%; /* Position it immediately below the input field */
  align-items: center;
  justify-content: center; /* Center the items horizontally */
  width: 60%; /* Match the width of the input field */
  border: 1px solid #F9FBFC; /* Match the border color */
  background-color: #f5f5f5; /* Match the background color */
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Match the box shadow */
  font-size: 18px;
  display: none; /* Hide the dropdown initially */
}

.suggestions-dropdown div {
  padding: 8px;
  cursor: pointer;
  color: #333; /* Match the text color */
}

.suggestions-dropdown div:hover {
  background-color: #D5DEEC; /* Match the hover background color */
}

/*  css for masonry*/
.grid-container {
  flex: 1;
  display: grid;
  margin: 20px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.image-grid-container {
  margin-top: 0px; /* Adjust as needed to create space between the sections */
  position: relative; /* Ensure it respects the flow of the document */
}

.image-element-class {
  margin-bottom: 0px; /* Adjust based on your layout */
  padding-left: 0px; /* Adjust based on your layout */
  width: calc(33.333% - 10px); /* Adjust based on your layout */
  box-sizing: border-box;
}

.image-element-class img {
  width: 100%;
  height: auto;
  display: block;
}

.my-gallery-class {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto; /* Center the container */
  padding-left: 20px; /* Adjust based on your layout */
  padding-right: 20px; /* Adjust based on your layout */
  width: calc(100% - 40px); ;
  justify-content: center;
}

.image-element-class {
  position: relative;
  margin-bottom: 30px; /* Adjust based on your layout */
  margin-left: 10px; /* Adjust based on your layout */
  margin-right: 10px; /* Adjust based on your layout */
  width: calc(33.333% - 40px); /* Adjust based on your layout */
  box-sizing: border-box;
}

.image-element-class img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-hub-image-element {
  margin-top: 0px;
  margin-bottom: 20px;
  position: relative; /* This is needed for your text overlay to work correctly */
  width: 100%;
  height: 100%;
  overflow: hidden; /* Hide parts of the image that don't fit */
}

.featured-hub-image-element img {
  width: 100%;      /* Make the image fill the container's width */
  height: 100%;     /* Make the image fill the container's height */
  object-fit: cover; /* This is key: it scales the image to fill the space without distortion, cropping as needed */
  display: block;   /* Removes any extra space below the image */
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
  color: white;
  text-align: center;
  margin-left: 0px;
  padding-bottom: 10px; /* Adjust padding as needed */
  padding-left:0px;
  padding-top:4px;
}

.image-title {
  font-size: 12px; /* Adjust font size as needed */
}

.image-snippet {
  font-size: 11px; /* Adjust font size as needed */
}

.places-overlay {
  position: relative;
  width: 100%;
  height: calc(25vw - 20px); /* Set height to match the width of the grid item */
  background-color: rgba(255, 255, 255, 0.9);
  overflow-y: auto; /* Enable vertical scrolling */
  padding: 10px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.places-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 20px); /* Adjust width to account for padding */
  height: 100%;
  overflow-y: auto; /* Enable vertical scrolling */
  padding-left: 3px; /* Add padding to the left */
  padding-right: 3px; /* Add padding to the right */
  box-sizing: border-box; /* Ensure padding is included in the width calculation */
}

.horizontal-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the items horizontally */
  gap: 20px; /* Adjust the gap between elements as needed */
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.full-width-image {
  position: absolute;
  border:0;
  margin-bottom: 25px; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1; /* Ensure the image is behind other elements */
}

.content-wrapper {
  position: relative;
  z-index: 1; /* Ensure the content is above the image */
}

/* EventsList Specific CSS */
.events-overlay {
  position: relative;
  width: 100%;
  height: calc(25vw - 20px); /* Match PlacesList height */
  background-color: rgba(255, 255, 255, 0.9);
  overflow-y: auto;
  padding: 10px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.events-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 30px); /* Adjust for padding */
  height: 100%;
  overflow-y: auto;
  padding: 2px;
  box-sizing: border-box;
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-item {
  display: flex; /* Use flexbox for side-by-side layout */
  align-items: flex-start; /* Align items to the top */
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  padding-bottom:5px;
  margin-bottom: 15px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-image-container {
  margin-right: 15px; /* Add space between image and text */
}

.event-details-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-details-container p:last-child {
  order: 1;
  text-align: left;
  margin-top: 5px;
}

.event-item .find-out-more-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.event-location-distance {
  font-size: 10px;
}

.event-item .event-dates {
  margin-top: 6px;
  font-size: 10px;
}

.event-item .description-container {
  margin-top: 6px;
  font-size: 10px;
}

.event-item h5 {
  font-size: 12px;
  margin-bottom: 0;
  color: #333;
  margin-top: 0;
}

.event-details-container p {
  margin-bottom: 2px;
  font-size: 10px;
  margin-top: 5px;
}

.event-item p {
  font-size: 10px;
  color: #666;
  margin-bottom: 5px;
}

.event-item .carousel img.place-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.event-item .carousel {
  display: flex; /* Change to flexbox */
  overflow-x: auto;
  gap: 0px; /* Adjust the gap between images */
  justify-content: flex-start; /* Align items to the start */
  align-items: center; /* Align items vertically */
}

.event-item .event-dates ul {
  list-style: disc; /* Use disc bullets for dates */
  margin-left: 20px;
}


.event-item .find-out-more-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.event-item .find-out-more-container p {
  font-size: 10px;
  margin: 0;
  align-self: center;
}

.event-item .find-out-more-container a {
  background: none; /* remove background */
  color: blue; /* make the link blue */
  padding: 0; /* remove padding */
  text-decoration: underline; /* underline the link */
  font-size: 10px; /* reduce font size */
}

.event-item .find-out-more-container a:hover {
  text-decoration: underline;
}

.places-list {
  font-size: 12px; /* Adjust the size as needed */
  padding: 0;
  list-style-type: none;
}

.place-item h5 {
  font-size: 14px; /* Adjust the size for the place name */
  margin: 0;
}


.place-item {
  position: relative;
  font-size: 12px; 
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
  text-align: left;
  min-width: 250px;
  min-height: 40px; 
  cursor: pointer;
}

.last-place-item {
  position: relative;
  font-size: 12px; 
  background-color: #fff;
  border: 0px solid #fff;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
  text-align: left;
  min-width: 250px;
  min-height: 40px; 
  cursor: pointer;
}

.place-item.highlight {
  background-color: #f0f8ff;
}

.place-item.selected {
  background-color: #f0f0f0; /* Example style */
  border: 2px solid #04d44c; /* Example style */
}

.event-item.selected {
  background-color: #f0f0f0; /* Example style */
  border: 2px solid #04d44c; /* Example style */
}

.like-icon {
  width: 22px; /* Match the map icon width */
  height: 22px; /* Match the map icon height */
  margin-left: 2px; /* Add some space between icons */
  margin-right: 10px;
  cursor: pointer;
  position: static; /* Remove absolute positioning */
}

.place-list-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px; /* Add some space between the icon and title */
    vertical-align: middle; /* Align the icon vertically with the title */
}

.title-distance-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title-distance-container div p {
  display: inline; /* Changed to inline */
  padding-top:5px;
  margin: 0;
}

.title-distance-container div {
    display: flex; /* Ensure the inner div is flex to keep items inline */
    align-items: flex-start; /* Align items to the start */
}

.place-category {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 12px;
  padding-right: 5px;
  padding-top: 5px;
  color: #333; /* Dark grey color */
  font-weight: bold;
}



  .place-moreinfo-container {
    position: absolute;
    bottom: 5px;
    right: 5px;
    text-align: right;
    font-size: 12px;
  }  
  
.km-distance {
  margin-left: 5px;
  padding-top:5px; 
}

@keyframes bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-30px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.marker-bounce {
  animation: bounce 2.5s ease-in-out;
}

.custom-marker {
  width: 30px;
  height: 30px;
  background-size: cover;
}

.map {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 10;
}

.hidden {
  display: none; /* Hide the element */
}

.container.map-view .places-overlay {
  position: absolute; /* Make it overlay */
  height: auto;
  z-index: 1001; /* Ensure it's above the map */
  background-color: transparent; /* Make it completely transparent */
  box-shadow: none; 
  border-radius: 0px; /* Round the corners */
  overflow-y: auto; /* Allow scrolling */
  padding: 0;
}

/* Adjust PlacesList content positioning */
.container.map-view .places-overlay-content {
  position: static;
  width: 90%;
  height: auto;
  overflow-x: auto;
  padding: 0px;
  background-color: transparent; /* Make it completely transparent */
  box-shadow: none; 
  border-radius: 0px; /* Round the corners */
}

.container.map-view .places-list {
  display: block; /* Display as block */
}

/* Adjust PlacesList items */
.container.map-view .place-item {
  display: block; /* Display as block */
  width: auto; /* Let width adjust to content */
  margin: 5px 0; /* Add vertical margin */
}

/* Reset or adjust other styles as needed */
.container.map-view .image-grid-container {
  display: none; /* Hide the image grid in map-view */
}

.map-view-button-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001; /* Ensure it's above the map */
  background: transparent; /* Make the container transparent */
}

.map-view-button {
  padding: 10px 20px;
  background-color: #1ba2db; /* Match the "Find" button color */
  color: white;
  border: 1px solid #ffffff;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

.map-view-button:hover {
  background-color: #5ab248; /* Match the "Find" button hover color */
}

/* Apply mobile styles to PlacesList in map-view */
.container.map-view .places-overlay.map-view-mobile-style {
  position: absolute;
  bottom: 20px; /* Position at the bottom */
  top: auto; /* Reset top position */
  left: 0;
  width: 100%;
  height: auto; /* Adjust height to fit content */
  overflow-x: auto; /* Enable horizontal scrolling */
  overflow-y: hidden;
  white-space: nowrap;
  padding: 0; /* Add some vertical padding */
  min-height: 110px;
  background-color: transparent; /* Make it completely transparent */
  box-shadow: none; 
  border-radius: 0px; /* Round the corners */
}

.container.map-view .places-overlay.map-view-mobile-style .places-overlay-content {
  position: static;
  width: auto;
  height: auto;
  overflow-y: hidden;
  padding: 0;
}

container.map-view .places-overlay {
  height: fit-content;
  overflow-y: hidden;
  overflow-x: auto;
}

.container.map-view .places-overlay.map-view-mobile-style .places-list {
  display: inline-flex; /* Use inline-flex for horizontal layout */
  padding: 0 10px;
}

.container.map-view .places-overlay.map-view-mobile-style .place-item {
  display: inline-block; /* Display as inline-block */
  width: auto; /* Let width adjust to content */
  margin: 0 5px; /* Add horizontal margin */
  white-space: normal;
}

.container.map-view .grid-container {
  grid-template-columns: 1fr; /* Switch to a single column */
  margin: 0;
}

.container {
  width: 100vw; /* Full viewport width */
  height: 100vh; /* Full viewport height */
  display: flex;
  flex-direction: column;
}

.map-view {
  width: 100%; /* Full width */
  height: 100%; /* Full height */
}

.list-view {
  width: 100%; /* Full width */
  height: 100%; /* Full height */
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: calc(25vw); /* Default height for list-view */
}

.map-wrapper-listview-height {
  height: calc(25vw); 
}	

.map-wrapper-map-view {
  position: relative;
  width: 100%;
  height: 100vh; /* Full height for map-view */
}

:root {
  --vh: 100%; /* Fallback for browsers that do not support Custom Properties */
}

.overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   z-index: 900; /* Ensure it's below the dropdown but above other content */
 }

.poweredby {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  font-size: 15px;
}

.editorial-place-content {
  width: 17px;
  height: 17px;
  background-color: rgb(0, 230, 77);
  border-radius: 50%;
  position: relative;
  border: 2px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

.place-map-id {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-16%, -74%);
  font-size: 11px;
  font-family: Arial;
  color: black;
  font-weight: bold;
}

.editorial-place-icon {
  margin-left: 2px; /* Add some space between icons */
}

@media (max-width: 768px) {

.location-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: calc(-2rem);
  cursor: pointer;
  font-size: 1.8rem;
  color: #000000;
  user-select: none;
}

  .input-box {
    color: #ffffff; /* Dark grayish-blue */
  }
  
  .container.map-view .places-overlay {
    width: 90%;
    left: 5%;
  }

  .grid-container {
    grid-template-columns: 1fr;
    margin: 0px;
    row-gap: 20px;
    column-gap: 20px;
    margin-bottom: 10px;
  }

  .places-overlay, .events-overlay {
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0px;
  }

  .map-wrapper, .places-overlay, .image-grid-container {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .map-wrapper {
    position: relative;
    width: 100%;
    height: 65vw;
  }
  .map-wrapper-listview-height {
    height: calc(65vw);
  }

  .event-location-distance {
    font-size: 16px;
  }

  .events-overlay {
    height: auto;
    overflow-y: visible;
    overflow-x: auto;
    white-space: nowrap;
  }

  .events-overlay-content {
    position: static;
    width: auto;
    height: auto;
    overflow-y: visible;
    padding: 0;
  }

  .events-list {
    display: inline-flex;
    padding: 0 10px;
  }

  .event-item {
    display: flex;
    font-size: 10px;
    align-items: flex-start;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    padding-bottom: 5px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    width: fit-content;
    height: fit-content;
    margin: 5px 2px;
    white-space: normal;
  }

  .event-details-container h5 {
    font-size: 14px; /* Reduced by 2px */
  }

  .event-details-container p {
    font-size: 10px;
  }

  .event-details-container .event-dates,
  .event-dates,
  .event-dates ul li {
    font-size: 9px;
  }

  .find-out-more-container p, .find-out-more-container a {
    font-size: 7px; 
  }

  .event-item .find-out-more-container a {
    font-size: 9px; 
  }
  
  .event-item .find-out-more-container p {
    font-size: 8px; 
  }  
  
  .description-container, .description-container p, .description-text {
     font-size: 8px; 
  }

  .list-title {
    display: none;
  }

  .places-overlay {
    height: fit-content;
    overflow-y: visible;
    overflow-x: auto;
  }

  .places-overlay-content {
    position: static;
    width: auto;
    height: fit-content;
    overflow-y: hidden;
    padding: 0;
  }

.places-list {
  display: flex; /* Changed from inline-flex to flex */
  padding-left: 3px;
  padding-right:3px;
  margin: 0;
  overflow-x: auto; /* Added horizontal scrolling for the list */
}

  .places-overlay-content p {
    margin: 0;
  }
  
.place-item {
  margin-left:2px;
  margin-right:2px;
  width: 250px; /* Set a minimum width for each place item */
  flex-shrink: 0; /* Prevent the items from shrinking */
}

  .place-item,
  .title-distance-container,
  .place-category,
  .title-distance-container p,
  .place-moreinfo-container {
    font-size: 11px; /* Reduced by 2px */
  }


.place-item p {
  white-space: nowrap; /* Keep text on one line */
  overflow: hidden;      /* Hide any overflowing text */
  text-overflow: ellipsis; /* Show an ellipsis (...) for overflow */
  margin-top: 5px;
}

.title-distance-container {
  max-width: 100%; /* Make it at most the width of its parent */
  width: 100%;
}

.title-distance-container p {
  white-space: nowrap; /* Apply to the address as well */
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0; /* Reset any default margins that might cause issues */
  max-width: 100%; 
  display:block;
}

.km-distance p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.title-distance-container h5 {
  font-size: 15px; /* Reduced by 2px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2em; /* Add a little space below the title */
  max-width: 100%; 
  display: block;
}

  .image-grid-container {
    margin-right: 40px;
  }

  .image-element-class {
    position: relative;
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
    width: calc(100% - 20px);
    box-sizing: border-box;
  }

  .horizontal-container {
    flex-direction: column;
    align-items: stretch;
  }

  .suggestions-dropdown {
    font-size: 16px; /* Reduced by 2px */
  }

  .input-box {
    font-size: 16px; /* Reduced by 2px */
  }

  .dropdown-button {
    font-size: 20px;
  }
  
  .dropdown-content {
    font-size: 16px;
  }
  
  .map-view-button {
    font-size: 20px;
  }

  .apply-button, .close-button, .select-types-button, .share-apply-button, .share-cancel-button {
    font-size: 12px;
  }

  .calculate-button, .share-button {
    font-size: 20px; /* Increased by 2px */
  }

  .dropdown-button {
    margin-top: 10px;
  }

  .calculate-button, .share-button {
    margin: 0px;
  }

  .more-options {
    margin-bottom: 10px;
  }
  
	.footer-info {
	  font-size: 14px;
	  width: 100%;
	  margin-left: 5px;
	  margin-right: 5px;
	  text-align: center; /* Corrected spelling and applied centering */
	  display: flex;        /* Added for better centering of inline elements */
	  justify-content: center; /* Centers items horizontally in flex container */
	  align-items: center;    /* Centers items vertically, if needed */
	}
}

