/* CSS FOR NEW ACCESS LEGEND -------------------------------------------------------------------------------------------- */
.transport-container,
.location-container {
  font-family: 'Zen Old Mincho';
}

.transport-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    gap: 50px;
    display: flex;
    flex-direction: column;
}

.transport-item {
    margin-bottom: 20px;
    overflow: hidden;
}

/* Car Header */
.transport-header {
    color: #144738;
    padding: 10px;
    font-size: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #cbcbcb;
}

/* Dropdown section (Location 1, Location 2, etc.) */
.transport-dropdown {
    border-bottom: 1px solid #cbcbcb;
}

/* Dropdown header */
.dropdown-header {
    padding: 12px 16px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.5s;
}

/* Arrow that rotates when dropdown is opened LEGACY */
.arrow {
    transition: transform 0.5s ease;
    display: inline-block;
    font-size: 30px;
    /* padding-top: 12px; */
    /* line-height: 1; */
    /* vertical-align: middle; */
    transform-origin: center center;
    transform: rotate(180deg);
}

.vertical-line {
    width: 2px;
    background-color: #000;
    height: 60px;
    flex-shrink: 0;
}

.stop {
    padding: 5px;
}

.stop p {
    margin: 0;
}

.line {
    display: flex;
    align-items: center;
    gap: 20px;
    /* or however much spacing you want */
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: 10px;
}

.dropdown-title {
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;

}

.dropdown-header:hover {
    background-color: #144738 !important;
    color: white;
    text-decoration: none !important;
}

.distance {
    width: 50px;
    white-space: nowrap;
}

.line span,
.stop p,
.dropdown-title {
    font-size: var(--desktop-paragraph-size) !important;
}

.transport-title {
    font-size: var(--desktop-title-size);
}

/* When the dropdown is open, make dropdown-details visible */
.dropdown-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.5s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
    overflow: hidden;
    margin-left: 55px;
}

.transport-dropdown.open .dropdown-details {
    max-height: 500px;
    /* should be enough to contain content */
    opacity: 1;
    transform: translateY(0);
    margin-top: 25px;
    margin-bottom: 25px;
}

.transport-dropdown.open .arrow {
    transform: rotate(0deg);
}

@media (max-width: 1024px) and (min-width: 768px) {
  .location-container {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media (max-width: 767px) {
  .transport-title {
    font-size: var(--mobile-title-size);
  }
  .transport-container {
    padding: 10vw 4vw;
  }

  .location-container {
    display: flex;
    flex-direction: column;
    width: calc(100% - 15px);
    padding: 50px 8px;
    padding-top: 10vw !important;
    padding-bottom: 10vw !important;
  }

  .location-container h2 {
    font-size: var(--mobile-title-size);
    text-align: center
  }

  .location-content {
        padding: 10vw 4vw;
    }
  .address {
    font-size: var(--mobile-font-size);
    margin: 0;
  }

  .dropdown-title {
    margin-left: 5px;
    font-size: var(--mobile-subtitle-size);
  }

  .dropdown-details {
    margin-left: 30px;
  }
  .distance {
        width: 40px;
    }

  .stop p {
    font-size: var(--mobile-subtitle-size) !important;
  }

  .line span {
    font-size: var(--mobile-font-size);
  }

}