/* ==========================================================================
   NANDNEE FACTORY MAP CARD
   Shared styling for the "Visit Our Factory" map block on
   index / about / contact.
   ========================================================================== */

.nd-map-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(2, 132, 199, 0.14);
  box-shadow:
    0 30px 70px -28px rgba(4, 22, 27, 0.42),
    0 6px 20px rgba(4, 22, 27, 0.08);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.nd-map-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 38px 84px -28px rgba(4, 22, 27, 0.5),
    0 8px 26px rgba(4, 22, 27, 0.12);
}

/* Brand gradient hairline along the top edge */
.nd-map-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 3;
  background: linear-gradient(90deg, #10B981 0%, #0284C7 55%, #0E2C33 100%);
}

/* ---------- Header strip ---------- */

.nd-map-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(135deg, #0E2C33 0%, #123E48 100%);
  color: #FFFFFF;
}

.nd-map-pin {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #34D399, #0284C7);
  box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.6);
}

.nd-map-pin svg {
  width: 23px;
  height: 23px;
  color: #06241D;
}

.nd-map-headings {
  min-width: 0;
  flex: 1 1 auto;
}

.nd-map-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.nd-map-address {
  font-size: 0.78rem;
  color: #A3C5CB;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

.nd-map-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0E2C33;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nd-map-cta svg {
  width: 15px;
  height: 15px;
}

.nd-map-cta:hover {
  background: #34D399;
  color: #06241D;
  transform: translateY(-1px);
}

/* ---------- Map viewport ---------- */

.nd-map-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(16, 185, 129, 0.08)),
    repeating-linear-gradient(45deg, #F1F5F9 0 12px, #E8EEF3 12px 24px);
}

.nd-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.04) contrast(1.02);
}

/* Fade the map into the card edges */
.nd-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(14, 44, 51, 0.06);
}

/* ---------- Floating footer chips ---------- */

.nd-map-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  background: #FFFFFF;
  border-top: 1px solid rgba(14, 44, 51, 0.07);
}

.nd-map-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(2, 132, 199, 0.08);
  color: #026AA6;
  border: 1px solid rgba(2, 132, 199, 0.16);
}

.nd-map-chip--emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.22);
}

.nd-map-chip--sand {
  background: rgba(245, 197, 66, 0.14);
  color: #92700E;
  border-color: rgba(245, 197, 66, 0.3);
}

.nd-map-chip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nd-map-head {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.8rem;
  }

  .nd-map-headings {
    flex: 1 1 140px;
  }

  .nd-map-cta {
    width: 100%;
    justify-content: center;
  }

  .nd-map-frame {
    aspect-ratio: 4 / 3;
  }

  .nd-map-foot {
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 420px) {
  .nd-map-card {
    border-radius: 20px;
  }

  .nd-map-frame {
    aspect-ratio: 1 / 1;
  }

  .nd-map-title {
    font-size: 0.95rem;
  }

  .nd-map-address {
    font-size: 0.72rem;
  }
}