/* =========================================================
 * MUSK CONTACT - MẠNG LƯỚI VĂN PHÒNG
 *
 * Element nằm trong Section / Row / Column có sẵn.
 * Không đặt container hoặc max-width tổng.
 *
 * Bố cục: tiêu đề - hai thẻ văn phòng - hai khung bản đồ.
 * ========================================================= */

.musk-contact-locations {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  padding: 100px 0px 50px 0px;
  color: #080a0f;
}

/* =========================================================
 * TIÊU ĐỀ
 * ========================================================= */

.musk-contact-locations__title {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
}

.musk-contact-locations__description {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
  color: #29394f;
  line-height: 1.7;
}

.musk-contact-locations__description--center {
  text-align: center;
}

.musk-contact-locations__description p {
  margin: 0;
}

.musk-contact-locations__description p + p {
  margin-top: 12px;
}

/* =========================================================
 * LƯỚI THẺ VĂN PHÒNG
 * ========================================================= */

.musk-contact-locations__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 30px;
}

.musk-contact-locations__card {
  display: grid;
  grid-template-columns:
    minmax(0, 40%)
    minmax(0, 60%);
  align-items: stretch;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(8, 20, 46, 0.06);
  gap: 20px;
}

/* Ảnh */

.musk-contact-locations__media {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border-radius: 10px;
  background: #d9e1eb;
}

.musk-contact-locations__media img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover;
}

/* Thông tin */

.musk-contact-locations__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 6px 6px 6px 0;
}

.musk-contact-locations__name {
  margin: 0 0 10px;
  color: black;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.musk-contact-locations__role {
  margin: 0 0 14px;
  color: #2f6fe4;
  font-weight: 500;
}

/* Danh sách liên hệ */

.musk-contact-locations__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.musk-contact-locations__item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  margin: 0;
  margin-left: 0px !important;
  border-top: 1px solid #eef1f6;
  color: #29394f;
  font-size: 14px;
  line-height: 1.5;
  gap: 10px;
}

.musk-contact-locations__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.musk-contact-locations__item a {
  color: #29394f;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.25s ease;
}

.musk-contact-locations__item a:hover {
  color: #1f4fd8;
}

.musk-contact-locations__icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6e0f3;
  border-radius: 50%;
  color: #2f6fe4;
}

.musk-contact-locations__icon svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* =========================================================
 * BẢN ĐỒ
 * ========================================================= */

.musk-contact-locations__maps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  gap: 30px;
}

.musk-contact-locations__map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  background: #eef1f6;
}

.musk-contact-locations__maps--4-3 .musk-contact-locations__map {
  aspect-ratio: 4 / 3;
}

.musk-contact-locations__maps--1-1 .musk-contact-locations__map {
  aspect-ratio: 1 / 1;
}

/* Đè width/height/style dán kèm từ Google Maps. */

.musk-contact-locations__map iframe {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  border: 0 !important;
  margin: 0 !important;
}

/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 767px) {
  .musk-contact-locations {
    padding: 46px 0;
  }

  .musk-contact-locations__grid,
  .musk-contact-locations__maps {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .musk-contact-locations__card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .musk-contact-locations__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .musk-contact-locations__info {
    padding: 0 4px 4px;
  }

  .musk-contact-locations__description {
    margin-bottom: 26px;
  }

  .musk-contact-locations__maps {
    margin-top: 18px;
  }

  .musk-contact-locations__item {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .musk-contact-locations__item a {
    transition: none !important;
  }
}
