/* ========================================================
   5. LỄ CƯỚI, ĐỊA ĐIỂM, LỊCH TRÌNH & FOOTER
   ======================================================== */

/* ---------- 01 · Thông tin lễ cưới ---------- */
#wedding-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#wedding-info .section-label { margin: 0; }

.parents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 18px;
  border-top: 2px solid var(--teal-ink);
}

.family-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-align: left;
}

.family-side + .family-side {
  padding-left: 20px;
  border-left: 1px solid var(--line-peach);
}

.family-side small {
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.family-side h4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: calc(1.4em * 2); /* giữ chỗ 2 dòng: địa chỉ cùng hàng + tên 1 người dóng giữa dọc */
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(11px, 3.05vw, 16px); /* thu nhỏ theo màn hình để tên luôn vừa một dòng */
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--teal-ink);
}

.family-side:not(.has-parent-names) h4 { visibility: hidden; }

/* Mỗi tên một dòng; tên dài thì JS (fitParentNames) hạ cỡ chữ cho vừa cột, không cắt, không xuống dòng */
.parent-name {
  display: block;
  width: max-content;
  white-space: nowrap;
}

.family-side p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.family-side h4:empty,
.family-side p:empty { display: none; }

/* Khối sage đậm: tên chú rể, cô dâu & ngày giờ lễ */
.red-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px var(--gutter) 40px;
  background: var(--sage-deep);
  color: var(--cream);
  text-align: center;
}

.announcement-text {
  max-width: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--lead-size);
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--cream);
}

.couple-highlight-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.groom-name,
.bride-name {
  max-width: 100%;
  font-family: var(--font-display);
  font-size: min(46px, 11.8vw);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.role-badge {
  display: block;
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--peach);
}

.role-badge:empty { display: none; }

#wedding-info .couple-highlight-names .amp {
  width: 44px;
  height: 44px;
  margin: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--peach);
  color: var(--teal-ink);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.ceremony-time-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.ceremony-date-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ceremony-date-box {
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-top: 1px solid rgba(255, 239, 217, 0.55);
  border-bottom: 1px solid rgba(255, 239, 217, 0.55);
}

.ceremony-date-box small {
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
}

.ceremony-date-box b,
.ceremony-time-badge .date-big,
.ceremony-time-badge .time {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
}

.ceremony-date-box b {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.ceremony-time-badge .date-big {
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  color: var(--peach);
}

.ceremony-time-badge .time {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
}

.ceremony-time-badge .lunar {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--peach);
}

.ceremony-time-badge .time:empty,
.ceremony-time-badge .lunar:empty { display: none; }

.ceremony-note {
  max-width: 100%;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--cream);
}

.ceremony-note-label {
  font-family: var(--font-body);
  font-size: var(--lead-size);
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--peach);
}

.ceremony-note-venue {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  max-width: 100%;
}

.ceremony-note-pin { flex: 0 0 18px; }

.ceremony-note-name {
  font-family: var(--font-display);
  font-size: var(--venue-name-size);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ceremony-note:empty { display: none; }

/* ---------- 04 · Địa điểm ---------- */
.venue-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

#venue .section-label { margin: 0 0 4px; }

.venue-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: var(--venue-name-size);
  font-weight: 700;
  line-height: 1.3;
  color: var(--teal-ink);
  overflow-wrap: anywhere;
}

.venue-address {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--venue-address-size);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-soft);
}

.map-embed-wrapper {
  height: 240px;
  margin: 16px 10px 18px 0;
  background: #f6dcbc;
  box-shadow: 10px 10px 0 var(--sage);
}

.map-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.venue-direction-btn {
  align-self: flex-start;
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--teal-ink);
  color: var(--teal-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.venue-direction-btn:hover {
  background: var(--teal-ink);
  color: var(--cream);
}

.venue-direction-btn:focus-visible {
  outline: 2px solid var(--teal-ink) !important;
  outline-offset: 3px;
}

/* ---------- 05 · Lịch trình ---------- */
.timeline-list {
  counter-reset: timeline;
  border-top: 2px solid var(--teal-ink);
}

.timeline-item {
  counter-increment: timeline;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-peach);
}

.timeline-item::after {
  content: counter(timeline, decimal-leading-zero);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-soft);
}

.timeline-line-col { display: none; }

.timeline-time {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sage-deep);
  font-variant-numeric: lining-nums tabular-nums;
}

.timeline-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--teal-ink);
}

/* ---------- Hành trình tình yêu (không có trong bố cục này) ---------- */
#love-story { display: none !important; }

/* ---------- Cảm ơn ---------- */
footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: var(--content-width, 560px);
  margin: 0 auto;
  padding: 48px var(--gutter) 36px;
  text-align: left;
  color: var(--teal-ink);
}

.footer-label {
  margin: 0;
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-track);
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.footer-names {
  margin: 0;
  font-family: var(--font-display);
  font-size: min(52px, 13.3vw);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.footer-date {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--sage-deep);
  font-variant-numeric: lining-nums tabular-nums;
}

.footer-names:empty,
.footer-date:empty { display: none; }

.venue-location-icon { flex: 0 0 18px; }

.ceremony-date-row[hidden] { display: none; }

/* Tiếng Trung đọc "10月" / "2027年": nhãn nằm dưới con số */
html[lang^="zh"] .ceremony-date-box { flex-direction: column-reverse; }
