/* ===== LAYOUT WRAPPER ===== */
.contact-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
  background-color: var(--navy-bg);
  padding: calc(var(--nav-height) + 20px) 16px 60px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===== HEADER ===== */
.contact-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.contact-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.contact-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.contact-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.text-gold {
  color: var(--gold);
  font-weight: 700;
}

/* ===== GRID SYSTEM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: stretch;
}

/* ===== CARDS DESIGN ===== */
.contact-card {
  background-color: var(--navy-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: var(--transition);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--navy-input);
  display: flex;
  align-items: center;
}

.card-title i {
  color: var(--gold);
}

/* ===== INFO ITEMS ===== */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background-color: var(--navy-input);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-label {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.info-value {
  font-size: 0.925rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;  /* tránh tràn chữ dài */
}

.info-link {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.info-link:hover {
  color: var(--gold);
}

/* ===== MAP CONTAINER ===== */
.map-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  min-height: 450px;
  position: relative;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: none;
  filter: grayscale(10%) contrast(100%);
  transition: var(--transition);
  pointer-events: none;
}

.map-card:hover iframe {
  filter: grayscale(0%);
}

/* ===== MAP ACTION BUTTON ===== */
.map-action {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: auto;
  width: auto;
  text-align: center;
}

.btn-map-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.8rem;
  background-color: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}

.btn-map-open:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
  color: #fff;
}

.btn-map-open i {
  font-size: 1.1rem;
}

/* ============================================= */
/* ===== RESPONSIVE (CẢI THIỆN) ===== */
/* ============================================= */

/* Tablet nhỏ & Mobile lớn (≤ 820px) */
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .map-card {
    min-height: 380px;
  }

  .map-wrapper iframe {
    min-height: 380px;
  }

  .contact-title {
    font-size: 1.75rem;
  }
}

/* Mobile (≤ 576px) */
@media (max-width: 576px) {
  .contact-wrapper {
    padding: calc(var(--nav-height) + 12px) 12px 40px;
  }

  .contact-header {
    margin-bottom: 1.5rem;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .contact-desc {
    font-size: 0.9rem;
  }

  .contact-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
  }

  .card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .info-list {
    gap: 1rem;
  }

  .info-item {
    gap: 0.75rem;
  }

  .info-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .info-value {
    font-size: 0.85rem;
  }

  .map-card {
    min-height: 300px;
  }

  .map-wrapper iframe {
    min-height: 300px;
  }

  .map-action {
    bottom: 1rem;
    width: 90%;
  }

  .btn-map-open {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    justify-content: center;
  }

  /* Điều chỉnh hiển thị địa chỉ dài */
  .info-content .info-value {
    word-break: break-word;
  }
}

/* Mobile rất nhỏ (≤ 380px) */
@media (max-width: 380px) {
  .contact-wrapper {
    padding: calc(var(--nav-height) + 8px) 8px 30px;
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .contact-card {
    padding: 1rem;
  }

  .info-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .info-value {
    font-size: 0.8rem;
  }

  .btn-map-open {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Hỗ trợ màn hình lớn hơn 1200px (tùy chọn) */
@media (min-width: 1400px) {
  .contact-container {
    max-width: 1320px;
  }

  .contact-grid {
    gap: 2.5rem;
  }

  .contact-card {
    padding: 2.5rem;
  }
}