@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

body {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  padding: 0;
}

.location-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  align-items: start;
  padding: 20px;
  position: relative; /* Added for absolute positioning of the button */
}

.map-heading-container {
  grid-column: 1 / 2;
}

.map-container {
  height: 500px;
  border-radius: 15px;
}

.details-tabs-container {
  grid-column: 2 / 3;
  margin-left: 50px;
}

.state-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
}

.state-tab {
  background-color: #ffc0cb;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  width: 200px;
}

.state-tab:hover {
  background-color: #ff9999;
}

.state-tab.active {
  background-color: red;
}

.location-panel {
  display: none;
}

.location-panel.active {
  display: block;
}

.location-item h4{margin:0 0 20px;}
.location-item p{margin:0;}

.location-item:hover h4,
.location-item:hover p,
.location-item.active h4,
.location-item.active p {
}

.location-item.no-underline h4,
.location-item.no-underline p {
  text-decoration: none;
}

.map-journey-button-container {
  display: flex;
  justify-content: center; /* Center the button horizontally */
  /* margin: 8px 0; /* Vertical spacing */
}

.button {
  background-color: #00B3B0;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  min-width: 5rem; 
}

.button:hover {
  background-color: #007B7A;
}

.location-item{padding: 20px;
    background: #f5f5f5;
    margin: 0 0 20px;
    border-radius: 10px;position: relative;}
.location-item.active{background: #FEF7F3;}

@media (max-width: 768px) {
  .location-section {
    grid-template-columns: 1fr;
    gap: 20px;padding: 20px 0;
  }

  .map-heading-container,
  .details-tabs-container {
    grid-column: 1;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .state-tabs {
    flex-direction: column;
    align-items: center;
  }

  .state-tab {
    width: 100%;
    margin-bottom: 10px;
  }

  .map-container {
    width: 100%;
    margin: 0 auto;
  }

  .location-panel {
    width: 100%;
  }

  .map-journey-button-container {
    flex-direction: column;
    align-items: center; /* Align button in center on smaller screens */
  }
}
.location-links{ position: absolute; right: 10px; bottom: 5px;}
.location-links img{    width: 20px; height: auto;}