.section-2 {
    padding: 80px 0;
    overflow: hidden;
    background: white;
    font-family: sans-serif;
  }

  .section-2-grid-wrapper {
    max-width: 2200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .section-2-centered-intro {
    text-align: center;
    margin-bottom: 40px;
  }

  .section-2-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a3c5e;
    margin-bottom: 10px;
  }

  .section-2-centered-intro h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a3c5e;
    display: block;
    margin-bottom: 100px;
  }

  .section-2-slider-wrapper {
    position: relative;
    overflow: visible;
  }

  .section-2-destination-grid {
    display: flex;
    transition: transform 0.5s ease;
    padding: 0;
  }

  .section-2-location-card-wrapper {
    flex: 0 0 auto;
    width: 522px;
    height: 400px;
    margin: 0 15px;
    position: relative;
    transition: transform 0.3s ease;
    overflow: visible;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
  }

  .section-2-location-card-padding {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: none; /* allows clicking through if needed */
  }

  .section-2-location-card-inner {
  width: 100%;
  height: 100%;
  position: absolute; /* allows scaling without affecting flow */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

  .section-2-location-card-wrapper img,
  .section-2-location-image {
    width: 100%;
    height: 100%;
    background-size: cover;       /* fills the box, no stretching */
    background-position: center;  /* keeps it centered */
    background-repeat: no-repeat;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .section-2-location-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
  }

  .section-2-gradient-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
  }

  .section-2-location-card-content {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    font-family: sans-serif;
    
  }

  .section-2-subtitle-dynamic-text {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
  }

  .section-2-location-card-content h2 {
    font-size: 34px;
    font-weight: 600;
  }

  .section-2-location-card-wrapper:hover .section-2-location-image {
    transform: scale(1.05);
  }

  .section-2-location-card-wrapper.active .section-2-location-card-inner {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 2;
  }

  .section-2-location-card-wrapper:not(.active):hover .section-2-location-card-inner {
    transform: translate(-50%, -50%) scale(1.05);
  }

  .section-2-slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
  }

  #section-2-prev-arrow {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
    z-index: 300;
    position: absolute;
    border: 1px solid lightgray;
    bottom:-38px;
    left:45%;
    

  }
  #section-2-next-arrow {
    width: 60px;
    height: 60px;
    background-color: white;
    border: 1px solid lightgray;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
    z-index: 300;
    position: absolute;
    bottom:-38px;
    right:43%;
    
  }

  .section-2-slider-arrow:hover {
    background-color: #f0f0f0;
  }

  .section-2-slider-arrow::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
  }

  .section-2-left::before { transform: rotate(135deg); }
  .section-2-right::before { transform: rotate(-45deg); }

  /* Open Window Animation */
  .image-overlay {
    position: absolute;
    width: 100%;
    height: 50%;
    background: white;
    left: 0;
    z-index: 2;
    transition: transform 1s ease;
    pointer-events: none;
  }

  .image-overlay.top {
    top: 0;
    transform: translateY(0);
  }

  .image-overlay.bottom {
    bottom: 0;
    transform: translateY(0);
  }

  .animate-all .image-overlay.top {
    transform: translateY(-100%);
  }

  .animate-all .image-overlay.bottom {
    transform: translateY(100%);
  }

  @media (max-width: 768px) {
    .section-2-location-card-wrapper {
      flex: 0 0 100%;
      margin: 0 0 20px 0;
    }
  }