/* Location accordion and optional image-based bottom navigation. */
#panel-place .location-card {
  width:min(92vw,450px);
  max-height:100%;
  padding:22px 20px 26px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#c7b3a7 transparent;
}
#panel-place .location-card .subhead {margin-bottom:17px}
#panel-place .location-card .info-line {padding:12px 0;grid-template-columns:65px minmax(0,1fr)}
#panel-place .location-card .info-line strong {font-size:14px;line-height:1.65;min-width:0}
#panel-place .location-card .action {padding:9px 18px;margin:14px 0}
#panel-place .directions {margin-top:15px;border-top:1px solid rgba(146,116,105,.28)}
#panel-place .directions__summary {
  display:flex;justify-content:space-between;align-items:center;
  padding:18px 4px;list-style:none;cursor:pointer;min-height:50px;
  font-size:14px;color:#755b55;font-weight:bold;
}
#panel-place summary::-webkit-details-marker {display:none}
#panel-place .directions__summary::marker, #panel-place .transport summary::marker {content:""}
#panel-place .directions__chevron, #panel-place .transport__chevron {display:inline-block;transition:transform .18s ease;font-size:18px}
#panel-place .directions[open] .directions__chevron,
#panel-place .transport[open] > summary .transport__chevron {transform:rotate(180deg)}
#panel-place .directions__body {padding:0 1px 8px}
#panel-place .directions__map {margin:0 0 13px}
#panel-place .directions__map img {
  display:block;width:100%;height:auto;border-radius:12px;
  border:1px solid rgba(155,134,115,.24);
  background:#f5f2eb;
}
#panel-place .directions__map figcaption {margin-top:7px;color:#8b7f74;font-size:12px;line-height:1.5}
#panel-place .directions__links {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#panel-place .directions__link {
  min-height:50px;display:flex;flex-direction:column;justify-content:center;align-items:center;
  padding:7px 3px;border:1px solid #d6c5b8;border-radius:9px;
  color:#654f49;text-decoration:none;background:rgba(255,251,244,.78);
  text-align:center;font-size:13px;
}
#panel-place .directions__link span {display:block;margin-top:3px;font-size:10px;color:#aa756a}
#panel-place .directions__link:focus-visible {outline:2px solid #956e68;outline-offset:2px}
#panel-place .directions__hint {font-size:10px;line-height:1.6;color:#84776e;margin:11px 1px 14px}
#panel-place .transport {border-top:1px solid rgba(164,141,122,.23)}
#panel-place .transport:last-child {border-bottom:1px solid rgba(164,141,122,.23)}
#panel-place .transport summary {
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:49px;padding:12px 4px;cursor:pointer;list-style:none;
  font-size:13px;color:#64564e;
}
#panel-place .transport__content {padding:0 5px 12px;font-size:12px;line-height:1.8;color:#675b53}
#panel-place .transport__content p {margin:4px 0}
#panel-place .transport__note {font-size:11px;color:#8c8276}
/* All four nav buttons work without images. If a matching full-button WebP
   is uploaded to assets/nav/, JS overlays it and hides only visual labels. */
.post-tabs {gap:7px;padding:9px 12px calc(11px + env(safe-area-inset-bottom))}
.post-tab {
  position:relative;overflow:hidden;isolation:isolate;
  border:1px solid rgba(255,250,238,.8);
  border-radius:13px;
  background:rgba(255,250,241,.84);
  box-shadow:0 3px 12px rgba(29,34,29,.17);
  color:#60534c;
  transition:background-color .2s ease,transform .2s ease;
}
.post-tab[aria-selected=true] {
  background:rgba(255,244,230,.97);
  outline:1px solid rgba(255,245,231,.75);
  color:#94665d;transform:translateY(-4px);
}
.post-tab > span:first-child {font-size:22px;line-height:1.15}
.post-tab > span:nth-child(2) {font-size:11px;line-height:1.1}
.post-tab__art {
  position:absolute;z-index:2;inset:0;
  display:block;width:100%;height:100%;object-fit:cover;
  pointer-events:none;
}
.post-tab.has-custom-art > span {opacity:0}
.post-tab.has-custom-art {
  border-color:transparent;background:transparent;box-shadow:none;
}
.post-tab.has-custom-art[aria-selected=true] {outline:2px solid rgba(255,250,238,.8)}
@media(max-width:350px) {
  #panel-place .location-card {width:94vw;padding:18px 14px}
  #panel-place .directions__link {font-size:10px}
}
@media(prefers-reduced-motion:reduce) {
  #panel-place .directions__chevron,#panel-place .transport__chevron,.post-tab {transition:none}
}

/* Primary directions accordion replaces the removed address-copy button. */
#panel-place .directions--primary {
  margin-top:15px;
  border-top:0;
}
#panel-place .directions--primary > .directions__summary {
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border-radius:10px;
  border:1px solid rgba(117,91,85,.38);
  background:rgba(255,250,243,.85);
  box-shadow:0 3px 12px rgba(55,43,35,.11);
  color:#765b55;
  font-size:14px;
  font-weight:600;
}
#panel-place .directions--primary > .directions__summary:focus-visible {
  outline:2px solid #956e68;
  outline-offset:3px;
}
#panel-place .directions--primary[open] > .directions__summary {
  border-radius:10px 10px 4px 4px;
  background:rgba(255,246,233,.93);
}
#panel-place .directions--primary > .directions__body {
  padding:15px 2px 10px;
}


/* Give location labels breathing room and allow the full address to wrap. */
#panel-place .location-card .info-line {
  grid-template-columns:72px minmax(0,1fr);
  column-gap:22px;
  align-items:start;
}
#panel-place .location-card .info-line strong {
  display:block;
  min-width:0;
  max-width:100%;
  overflow:visible;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:keep-all;
  line-height:1.75;
}
/* Preserve explicit \n and \n\n paragraph breaks in data/wedding.json's address
   without changing the wrapping of other Information fields. */
#panel-place .location-card .info-line strong[data-bind="address"] {
  white-space:pre-line;
}
@media(max-width:350px) {
  #panel-place .location-card .info-line {
    grid-template-columns:67px minmax(0,1fr);
    column-gap:14px;
  }
}


/* Illustrated bottom navigation v2: no visible button boxes, full tappable area.
   The app's original watercolor backdrop remains visible behind the icons. */
.post-tabs {
  gap:clamp(3px,1.5vw,8px);
  padding:6px 11px calc(8px + env(safe-area-inset-bottom));
  align-items:end;
  background:linear-gradient(180deg,transparent 0%,rgba(31,51,35,.16) 50%,rgba(31,51,35,.32) 100%);
}
.post-tabs .post-tab,
.post-tabs .post-tab.has-custom-art,
.post-tabs .post-tab[aria-selected=true],
.post-tabs .post-tab.has-custom-art[aria-selected=true] {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-width:0;
  min-height:76px;
  width:100%;
  padding:6px 2px 5px;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  outline:none;
  isolation:auto;
  overflow:visible;
  color:#fff9f0;
  text-shadow:0 1px 4px rgba(24,37,27,.85),0 1px 2px rgba(24,37,27,.45);
  transform:none;
  transition:transform .18s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.post-tabs .post-tab:focus-visible {
  outline:2px solid #fff8df;
  outline-offset:-2px;
  border-radius:10px;
}
.post-tabs .post-tab[aria-selected=true] {
  transform:translateY(-3px);
}
.post-tabs .post-tab__visual {
  position:relative;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:clamp(43px,13vw,54px);
  height:clamp(43px,13vw,54px);
  overflow:visible;
  pointer-events:none;
}
.post-tabs .post-tab__fallback {
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  font:normal 26px "Cafe24Gowoonbam",serif;
  color:#fff8df;
}
.post-tabs .post-tab__icon {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  filter:drop-shadow(0 2px 3px rgba(30,43,30,.18));
  transition:transform .18s ease;
}
.post-tabs .post-tab.has-custom-icon .post-tab__fallback {visibility:hidden}
.post-tabs .post-tab__label {
  position:relative;
  opacity:1;
  display:block;
  flex:0 0 auto;
  font-size:12px;
  line-height:1.3;
  white-space:nowrap;
  font-weight:400;
  letter-spacing:0;
  pointer-events:none;
}
.post-tabs .post-tab[aria-selected=true] .post-tab__label {
  color:#fff6d7;
  font-weight:600;
}
.post-tabs .post-tab[aria-selected=true] .post-tab__icon {transform:scale(1.08)}
@media(max-height:710px) {
  .post-tabs {padding-top:4px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
  .post-tabs .post-tab {min-height:69px;gap:2px;padding:4px 2px}
  .post-tabs .post-tab__visual {width:clamp(40px,11vw,47px);height:clamp(40px,11vw,47px)}
  .post-tabs .post-tab__label {font-size:11px}
}
@media(prefers-reduced-motion:reduce) {
  .post-tabs .post-tab,.post-tabs .post-tab__icon {transition:none}
}

/* Fast first paint: optimized WebP is loaded directly from HTML. */
.post-tabs .post-tab__visual .post-tab__fallback {display:none}
.post-tabs .post-tab__visual .post-tab__icon {
  position:absolute;inset:0;display:block;width:100%;height:100%;
}


/* Open location directions: readable cream panel under the warm header. */
#panel-place .directions--primary[open] > .directions__summary {
  border-radius:11px 11px 0 0;
  border-bottom-color:rgba(173,143,127,.16);
}
#panel-place .directions--primary[open] > .directions__body {
  background:rgba(255,253,248,.97);
  border:1px solid rgba(173,143,127,.32);
  border-top:0;
  border-radius:0 0 11px 11px;
  box-shadow:0 5px 15px rgba(64,48,38,.09);
  padding:16px 12px 18px;
  color:#574a43;
}
#panel-place .directions--primary[open] .directions__map figcaption,
#panel-place .directions--primary[open] .directions__hint {
  color:#76695e;
}
@media(max-width:350px) {
  #panel-place .directions--primary[open] > .directions__body {
    padding:13px 9px 15px;
  }
}


/* Gift accounts: independent accordion in Location, matching the map toggle. */
#panel-place .gift-info {margin-top:13px;}
#panel-place .gift-info__summary {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:48px;padding:12px 16px;cursor:pointer;list-style:none;
  border:1px solid rgba(117,91,85,.38);border-radius:10px;
  background:rgba(255,250,243,.85);box-shadow:0 3px 12px rgba(55,43,35,.11);
  color:#765b55;font-size:14px;font-weight:600;
}
#panel-place .gift-info summary::-webkit-details-marker {display:none;}
#panel-place .gift-info summary::marker {content:"";}
#panel-place .gift-info__chevron {display:inline-block;font-size:18px;transition:transform .18s ease;}
#panel-place .gift-info[open] > summary .gift-info__chevron,
#panel-place .gift-info__side[open] > summary .gift-info__chevron {transform:rotate(180deg);}
#panel-place .gift-info[open] > .gift-info__summary {
  border-radius:11px 11px 0 0;border-bottom-color:rgba(173,143,127,.16);
  background:rgba(255,246,233,.93);
}
#panel-place .gift-info__body {
  padding:17px 12px 18px;background:rgba(255,253,248,.97);
  border:1px solid rgba(173,143,127,.32);border-top:0;
  border-radius:0 0 11px 11px;box-shadow:0 5px 15px rgba(64,48,38,.09);
  color:#574a43;
}
#panel-place .gift-info__intro {margin:0 0 16px;text-align:center;font-size:12px;line-height:1.75;color:#76695e;}
#panel-place .gift-info__side {margin:9px 0;border:1px solid #e1d3c7;border-radius:11px;overflow:hidden;background:#fffdf9;}
#panel-place .gift-info__side > summary {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:15px 14px;min-height:50px;cursor:pointer;list-style:none;
  color:#70544e;font-size:13px;font-weight:600;
}
#panel-place .gift-info__side[open] > summary {border-bottom:1px solid #e8ded4;}
#panel-place .gift-info__list {padding:11px;background:#f4eee8;display:grid;gap:9px;}
#panel-place .gift-info__account {background:#fffdf9;border-radius:10px;padding:13px 12px;box-shadow:0 2px 7px rgba(65,45,38,.08);}
#panel-place .gift-info__person {display:flex;align-items:center;justify-content:flex-start;gap:9px;margin-bottom:10px;font-size:12px;color:#5d4943;}
#panel-place .gift-info__person strong {font-weight:600;text-align:left;font-family:"Cafe24Gowoonbam","Malgun Gothic",sans-serif;}
#panel-place .gift-info__bank {display:flex;align-items:center;justify-content:space-between;gap:7px;padding:10px 9px;background:#f7f4f0;border-radius:8px;}
#panel-place .gift-info__bank-text {min-width:0;display:grid;gap:4px;font-size:12px;color:#5b4941;}
#panel-place .gift-info__bank-text small {font-size:11px;color:#87776c;}
#panel-place .gift-info__number {overflow-wrap:anywhere;user-select:all;}
#panel-place .gift-info__copy {flex-shrink:0;min-width:51px;min-height:36px;border:1px solid #d6c5b8;border-radius:7px;background:#fffdf9;color:#745a50;font:inherit;font-size:11px;cursor:pointer;}
#panel-place .gift-info__copy:focus-visible,
#panel-place .gift-info summary:focus-visible {outline:2px solid #956e68;outline-offset:2px;}
#panel-place .gift-info__empty {margin:0;padding:15px 6px;text-align:center;font-size:12px;line-height:1.7;color:#86786d;}
#panel-place .gift-info__status {min-height:0;margin:8px 0 0;text-align:center;font-size:11px;color:#775d52;}
@media(max-width:350px) {
  #panel-place .gift-info__body {padding:13px 9px 15px;}
  #panel-place .gift-info__list {padding:8px;}
}
@media(prefers-reduced-motion:reduce) {
  #panel-place .gift-info__chevron {transition:none;}
}



/* Selected bottom tab: clearer but still feathered shadow around the watercolor icon.
   The soft ivory core remains visible over the dark green forest background,
   without adding a rectangular tile or changing icon size/position. */
.post-tabs .post-tab[aria-selected=true] .post-tab__visual::before {
  content:"";
  position:absolute;
  inset:-9px;
  border-radius:50%;
  background:
    radial-gradient(ellipse at 50% 42%,rgba(255,248,229,.23) 0%,rgba(255,248,229,0) 57%),
    radial-gradient(ellipse at 50% 62%,rgba(17,29,20,.46) 0%,rgba(17,29,20,.24) 52%,rgba(17,29,20,0) 80%);
  transform:translateY(3px);
  filter:blur(4px);
  pointer-events:none;
}
.post-tabs .post-tab[aria-selected=true] .post-tab__icon {
  filter:drop-shadow(0 4px 5px rgba(20,34,23,.45));
}


/* Compact ceremony-note trigger beside the Information heading. */
#panel-place .location-title-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
#panel-place .location-title-row h2 {min-width:0}
#panel-place .ceremony-info-trigger {
  display:grid;
  place-items:center;
  flex:0 0 32px;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid rgba(135,104,88,.46);
  border-radius:50%;
  background:rgba(255,252,245,.75);
  color:#75574b;
  font:600 19px Georgia,serif;
  line-height:1;
  box-shadow:0 1px 4px rgba(58,47,36,.08);
  cursor:pointer;
}
#panel-place .ceremony-info-trigger:focus-visible {
  outline:2px solid #956e68;
  outline-offset:3px;
}

/* Modal is in .app, above the tabs, but confined to the wedding canvas. */
.ceremony-modal[hidden] {display:none!important}
.ceremony-modal {
  position:absolute;
  z-index:20;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 20px;
  padding-top:calc(24px + env(safe-area-inset-top));
  padding-bottom:calc(24px + env(safe-area-inset-bottom));
}
.ceremony-modal__backdrop {
  position:absolute;
  inset:0;
  background:rgba(29,38,31,.52);
}
.ceremony-modal__card {
  position:relative;
  width:100%;
  max-width:390px;
  max-height:100%;
  overflow-y:auto;
  box-sizing:border-box;
  padding:34px 24px 25px;
  border:1px solid rgba(173,146,125,.42);
  border-radius:12px;
  background:#fbf7ed;
  color:#60483e;
  box-shadow:0 15px 42px rgba(32,30,23,.26);
  text-align:center;
  font-family:"MaruBuriWedding","SCoreDreamWedding","Malgun Gothic",serif;
}
.ceremony-modal__symbol {
  display:block;
  margin-bottom:9px;
  font-size:25px;
}
.ceremony-modal__title {
  margin:0 0 18px;
  font-size:19px;
  line-height:1.4;
  font-weight:400;
}
.ceremony-modal__text {
  margin:0;
  /* Same gentle Maru Buri Light feel as the gift-info intro. */
  font-size:12px;
  line-height:1.9;
  font-weight:300;
  word-break:keep-all;
  overflow-wrap:break-word;
}
.ceremony-modal__close {
  position:absolute;
  top:9px;
  right:11px;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:0;
  background:transparent;
  color:#856b61;
  font:26px Georgia,serif;
  cursor:pointer;
}
.ceremony-modal__confirm {
  display:block;
  min-width:125px;
  min-height:40px;
  margin:22px auto 0;
  padding:9px 16px;
  border:0;
  border-radius:8px;
  background:#86776a;
  color:#fffdf7;
  font-family:inherit;
  font-size:13px;
  cursor:pointer;
}
.ceremony-modal__close:focus-visible,
.ceremony-modal__confirm:focus-visible {
  outline:2px solid #956e68;
  outline-offset:3px;
}
