/* Wanderlore — C1: announcement bar, usability, destination extras, My trips, travel map */
.wl-ann { position: relative; z-index: 1031; color: #fff; font-size: .9rem; }
.wl-ann--navy { background: var(--wl-primary); }
.wl-ann--green { background: var(--wl-cta-dark, #00798C); }
.wl-ann .container { display: flex; align-items: center; gap: .75rem; padding-top: .5rem; padding-bottom: .5rem; }
.wl-ann__txt { flex: 1 1 auto; text-align: center; }
.wl-ann a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.wl-ann button { border: 0; background: none; color: #fff; opacity: .8; padding: .25rem; }
.wl-ann button:hover { opacity: 1; }

.u72-why { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .5rem; }
.u72-why span { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 999px; background: rgba(0, 121, 140, 0.09); color: var(--wl-cta-dark); font-size: .75rem; font-weight: 700; }
.u72-pp { display: block; margin-top: .1rem; font-size: .78rem; font-weight: 600; color: var(--wl-muted); }
@media (max-width: 575.98px) { body { font-size: 16px; } }

.u8-upd { margin: .35rem 0 0; font-size: .82rem; color: var(--wl-muted); }
.u8-glance { margin-bottom: 2rem; padding: 1.25rem; border: 1px solid var(--wl-line); border-radius: 20px; background: #fff; }
.u8-glance__t { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 800; color: var(--wl-primary); }
.u8-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.u8-tile { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .7rem .8rem; border-radius: 14px; background: var(--wl-bg); }
.u8-tile i { grid-row: span 2; font-size: 1.2rem; color: var(--wl-cta); }
.u8-tile span { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--wl-muted); }
.u8-tile strong { font-size: .92rem; line-height: 1.3; color: var(--wl-primary); }
.u8-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--wl-line); }
.u8-verdict label { font-weight: 700; color: var(--wl-primary); }
.u8-verdict select { width: auto; }
.u8-verdict__out { flex: 1 1 100%; margin: 0; padding: .7rem .9rem; border-radius: 12px; font-size: .92rem; }
.u8-verdict__out:empty { display: none; }
.u8-verdict__out.is-great { background: rgba(0, 121, 140, 0.09); color: #00798C; }
.u8-verdict__out.is-ok { background: rgba(48, 99, 142, 0.07); color: var(--wl-primary); }
.u8-verdict__out.is-no { background: #FFFFFF; color: #D1495B; }
.u8-verdict__out a { color: inherit; font-weight: 700; }

.u8-wx { margin-top: 1.5rem; }
.u8-h3 { margin: 1.25rem 0 .75rem; font-size: 1rem; font-weight: 800; color: var(--wl-primary); }
.u8-fc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.u8-fc li { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .65rem .3rem; border-radius: 14px; background: var(--wl-bg); text-align: center; font-size: .82rem; }
.u8-fc b { color: var(--wl-primary); }
.u8-fc > li > i { font-size: 1.35rem; color: var(--wl-cta); }
.u8-fc small, .u8-fc em { color: var(--wl-muted); }
.u8-fc em { font-style: normal; font-size: .72rem; }
@media (max-width: 575.98px) { .u8-fc { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78px; overflow-x: auto; } }
.u8-cl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .35rem; align-items: end; height: 200px; padding-top: 1.2rem; }
.u8-cl__m { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem; height: 100%; font-size: .7rem; }
.u8-cl__bar { position: relative; display: flex; justify-content: center; width: 100%; max-width: 34px; height: var(--h, 50%); border-radius: 8px 8px 4px 4px; background: rgba(48, 99, 142, 0.2); }
.u8-cl__bar b { position: absolute; top: -1.2rem; font-size: .72rem; color: var(--wl-primary); }
.u8-cl__m.is-best .u8-cl__bar { background: var(--wl-cta); }
.u8-cl__m small { color: var(--wl-muted); white-space: nowrap; }
.u8-cl__m em { font-style: normal; font-weight: 700; color: var(--wl-primary); }
@media (max-width: 575.98px) { .u8-cl small { display: none; } }

.u8-map { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--wl-line); }
.u8-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.u8-mini { position: fixed; left: 50%; bottom: 1rem; z-index: 1040; display: none; width: min(720px, calc(100% - 2rem)); transform: translate(-50%, 160%); transition: transform .3s; }
@media (min-width: 992px) { .u8-mini { display: block; } }
.u8-mini.on { transform: translate(-50%, 0); }
.u8-mini__in { display: flex; align-items: center; gap: .9rem; padding: .55rem .6rem; border-radius: 18px; background: #fff; border: 1px solid var(--wl-line); box-shadow: 0 18px 40px -18px rgba(0, 61, 91, 0.45); }
.u8-mini__in img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.u8-mini__t { flex: 1 1 auto; min-width: 0; }
.u8-mini__t strong { display: block; color: var(--wl-primary); }
.u8-mini__t small, .u8-mini__p small { display: block; font-size: .75rem; color: var(--wl-muted); }
.u8-mini__p b { font-size: 1.05rem; color: var(--wl-primary); }

.u9-alert { display: grid; gap: 1rem; padding: 1.4rem; border-radius: 20px; background: linear-gradient(135deg, var(--wl-primary), #30638E); color: #fff; }
@media (min-width: 768px) { .u9-alert { grid-template-columns: 1fr minmax(0, 380px); align-items: center; } }
.u9-alert h2 { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 800; color: #fff; }
.u9-alert p { margin: 0; opacity: .92; }
.u9-alert__f { display: flex; gap: .5rem; }
.u9-alert__f input[type="email"] { flex: 1 1 auto; min-width: 0; padding: .65rem .85rem; border: 0; border-radius: 12px; }
.u9-alert__msg { grid-column: 1 / -1; font-weight: 600; }
.u9-alert__msg:empty { display: none; }
.u9-alert__msg.is-err { color: rgba(255, 255, 255, 0.91); }

.u9-shared { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(0, 121, 140, 0.09); color: #00798C; }
.u9-mt-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; border-radius: 18px; background: var(--wl-bg); }
.u9-mt-tools label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 700; color: var(--wl-primary); }
.u9-mt-tools input { width: 150px; padding: .45rem .6rem; border: 1px solid var(--wl-line); border-radius: 10px; }
.u9-mt-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.u9-tc { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--wl-line); border-radius: 20px; overflow: hidden; background: #fff; }
.u9-tc__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.u9-tc__img img { width: 100%; height: 100%; object-fit: cover; }
.u9-tc__b { display: flex; flex: 1 1 auto; flex-direction: column; gap: .5rem; padding: 1rem; }
.u9-tc__b h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.u9-tc__b h2 a { color: var(--wl-primary); text-decoration: none; }
.u9-tc__meta { font-size: .82rem; color: var(--wl-muted); }
.u9-tc__est { padding: .6rem .75rem; border-radius: 12px; background: var(--wl-bg); font-size: .85rem; }
.u9-tc__est b { font-size: 1rem; color: var(--wl-primary); }
.u9-tc textarea { width: 100%; min-height: 64px; padding: .5rem .6rem; border: 1px solid var(--wl-line); border-radius: 10px; font-size: .85rem; resize: vertical; }
.u9-tc__act { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: auto; }

.u9-mapbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-bottom: 1rem; }
.u9-mapbar label { display: flex; flex-direction: column; gap: .2rem; font-size: .78rem; font-weight: 700; color: var(--wl-primary); }
#mapCount { margin-left: auto; font-weight: 700; color: var(--wl-muted); }
.u9-map { position: relative; z-index: 0; height: min(70vh, 620px); border-radius: 20px; overflow: hidden; border: 1px solid var(--wl-line); }
.u9-pin span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--wl-primary); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 61, 91, 0.35); }
.u9-pin.is-on span { background: var(--wl-cta); }
.u9-pop { width: 220px; }
.u9-pop img { width: 100%; height: 120px; margin-bottom: .5rem; border-radius: 10px; object-fit: cover; }
.u9-pop b { display: block; font-size: 1rem; color: var(--wl-primary); }
.u9-pop small { display: block; margin: .15rem 0 .4rem; color: var(--wl-muted); }
.u9-maplist { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.u9-maplist button { padding: .35rem .8rem; border: 1px solid var(--wl-line); border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 600; color: var(--wl-primary); }
.u9-maplist button:hover { border-color: var(--wl-cta); }

/* CR1: quick view — pre-cropped photos (wide 3:2 + square); the whole quick view fits on screen */
#wlQuick .modal-content { max-height: calc(100vh - 1.5rem); overflow-y: auto; }
#wlQuick .t1-qv__img.dg2-qv { height: auto; min-height: 0; aspect-ratio: 5 / 2; max-height: 38vh; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
#wlQuick .t1-qv__img.dg2-qv.has-2 { grid-template-columns: 3fr 2fr; }
#wlQuick .t1-qv__close { z-index: 1; box-shadow: 0 2px 10px rgba(0, 61, 91, 0.35); }
@media (max-width: 575.98px) { #wlQuick .t1-qv__img.dg2-qv { aspect-ratio: 3 / 2; max-height: 34vh; } }

/* DG3: small grid tiles show the whole photo; a blurred copy fills the empty space */
.dg1-grid .dg1-tile.dg3-fit { background: var(--wl-primary-dark); }
.dg1-grid .dg1-tile .dg3-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) brightness(.7); transform: scale(1.3); transition: none; }
.dg1-grid .dg3-fit .dg2-open img { object-fit: contain; object-position: 50% 50%; }

/* DG2: photo focus points, full-screen viewer, 2-photo quick view */
.dg1-grid img { object-position: var(--fp, 50% 50%); }
.dg2-open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.dg2-open:focus-visible { outline: 3px solid var(--wl-cta); outline-offset: -3px; }
.dg1-grid figcaption { pointer-events: none; }
body.dg2-lock { overflow: hidden; }
.dg2-lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(0, 61, 91, 0.95); }
.dg2-lb.on { display: flex; }
.dg2-lb__img { display: block; max-width: calc(100vw - 2rem); max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 61, 91, 0.5); }
@media (min-width: 768px) { .dg2-lb__img { max-width: calc(100vw - 10rem); } }
.dg2-lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.3rem; }
.dg2-lb__btn:hover { background: var(--wl-cta); }
.dg2-lb__btn[hidden] { display: none; }
.dg2-lb__close { top: 1rem; right: 1rem; }
.dg2-lb__prev, .dg2-lb__next { top: 50%; margin-top: -24px; }
.dg2-lb__prev { left: 1rem; }
.dg2-lb__next { right: 1rem; }
.dg2-lb__bar { position: absolute; left: 4.5rem; right: 4.5rem; bottom: 1rem; margin: 0; text-align: center; color: rgba(255, 255, 255, 0.91); font-size: .9rem; }
.dg2-lb__bar b { margin-right: .6rem; color: var(--t1-green-l); }
@media (max-width: 575.98px) { .dg2-lb__prev, .dg2-lb__next { top: auto; bottom: 3.5rem; margin: 0; } }
.t1-qv__img.dg2-qv { display: grid; grid-template-columns: 1fr; gap: 4px; height: clamp(240px, 40vw, 340px); }
.t1-qv__img.dg2-qv.has-2 { grid-template-columns: 1.55fr 1fr; }
.t1-qv__img.dg2-qv img { min-width: 0; }
@media (max-width: 575.98px) {
  .t1-qv__img.dg2-qv { height: 240px; }
  .t1-qv__img.dg2-qv.has-2 { grid-template-columns: 1fr; }
  .t1-qv__img.dg2-qv.has-2 img + img { display: none; }
}

/* DG1: destination photo grid — big cover + 2x2 square (1:1) tiles; swipe row on phones */
.dg1-grid { --dg1-main: 3fr; display: grid; grid-template-columns: var(--dg1-main) 1fr 1fr; gap: 8px; margin-top: 1.25rem; border-radius: 20px; overflow: hidden; }
.dg1-grid figure { margin: 0; }
.dg1-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dg1-main { position: relative; grid-row: span 2; background: var(--wl-bg); }
.dg1-main img { position: absolute; inset: 0; }
.dg1-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--wl-bg); }
.dg1-tile img { transition: transform .5s var(--wl-ease); }
.dg1-tile:hover img { transform: scale(1.04); }
.dg1-tile figcaption { position: absolute; left: .5rem; bottom: .5rem; max-width: calc(100% - 1rem); padding: .25rem .6rem; border-radius: 999px; background: rgba(0, 61, 91, 0.78); color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg1-tile--more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 1rem; background: var(--wl-primary-soft); color: var(--wl-primary); font-weight: 700; text-align: center; text-decoration: none; }
.dg1-tile--more i { font-size: 1.6rem; color: var(--wl-cta); }
.dg1-tile--more:hover { background: var(--wl-cta-soft); color: var(--wl-cta-dark); }
@media (max-width: 767.98px) {
  .dg1-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; scrollbar-width: none; }
  .dg1-grid::-webkit-scrollbar { display: none; }
  .dg1-main, .dg1-tile { flex: 0 0 85%; aspect-ratio: 1 / 1; scroll-snap-align: start; border-radius: 16px; overflow: hidden; }
  .dg1-main img { position: static; }
  .dg1-tile--more { display: none; }
}