/* ==========================================
   LOCATION & MAP SECTION
   ========================================== */
.location-section {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  margin-bottom: 150px; /* Provides the exact space needed for the floating card */
}

.map-container {
  width: 100%;
  height: 100%;
  background-color: var(--bg-offwhite);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- The Floating Info Card --- */
.info-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  /* This mathematically centers the card and pushes exactly half of it below the map line */
  transform: translate(-50%, 50%);

  background-color: #ffffff;
  border-radius: 12px; /* Matched to global cards */
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06); /* Premium soft shadow */
  border-top: 4px solid var(--primary-navy); /* Design tie-in with the Schedule cards */

  padding: 40px 50px;
  width: 90%;
  max-width: 800px; /* Slightly wider to let the content breathe */
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 40px;
}

/* Left Side (Title & Button) */
.info-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.info-action h2 {
  font-size: 2.2rem;
  margin: 0;
  line-height: 1.1;
}

.contact-btn {
  white-space: nowrap;
}

/* Right Side (Details with Divider) */
.info-details {
  flex: 1.2;
  border-left: 1px solid rgba(168, 141, 62, 0.3);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The Gold Highlight for the Mall Name */
.highlight-location {
  color: var(--secondary-gold);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

/* Clean formatting for the address text */
.address-text {
  font-size: 1.05rem; /* Matched to global body text */
  color: #555555;
  line-height: 1.6;
  margin: 0;
}
/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 900px) {
  .location-section {
    height: auto; /* Removes the fixed height so elements can stack naturally */
    margin-bottom: 80px; /* Standard section spacing */
    display: flex;
    flex-direction: column;
  }

  .map-container {
    height: 350px; /* Gives the map a safe, confined height on phones */
  }

  /* --- THE OVERLAP FIX --- */
  .info-card {
    position: relative; /* Removes the absolute floating behavior */
    bottom: auto; /* Resets desktop positioning */
    left: auto;
    transform: none; /* Removes the 50% slicing trick */

    width: 90%;
    margin: 30px auto 0 auto; /* Creates a clean 30px gap below the map */

    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 30px;
  }

  .info-action {
    align-items: center;
  }

  .info-action h2 {
    font-size: 1.8rem;
  }

  .info-details {
    border-left: none;
    border-top: 1px solid rgba(168, 141, 62, 0.3);
    padding-left: 0;
    padding-top: 30px;
    align-items: center;
  }
}
