/* Destinations page (port-blair.html) and the place cards also used under "More places nearby".
   Colours and cards per row come from Admin > Destinations > Page Settings (--dz-accent, --dz-deep, --dz-cols). */

html body.dz-list-page { background: linear-gradient(180deg, color-mix(in srgb, var(--dz-bg, #e8f4fb) 55%, #fff) 0, var(--dz-bg, #e8f4fb) 420px) !important; font-family: "Plus Jakarta Sans", Inter, sans-serif; }
html body.dz-list-page::before { display: none; }
.dz-ic { width: 1.1em; height: 1.1em; flex: none; }

.dz-list.pl-page { --dz-gut: clamp(16px, 3.2vw, 56px); max-width: none; margin: 0; padding: 0 var(--dz-gut) 64px; }
.dz-list .pl-group, .dz-list #mmExplore { max-width: 1760px; margin-left: auto; margin-right: auto; }

/* Top banner */
.dz-top { position: relative; overflow: hidden; margin: 0 calc(-1 * var(--dz-gut)); padding: 130px var(--dz-gut) 70px; text-align: center; color: #fff;
  background: radial-gradient(900px 380px at 15% 0%, color-mix(in srgb, var(--dz-accent, #ff7a18) 40%, transparent), transparent 60%),
    radial-gradient(800px 420px at 90% 100%, rgba(0, 200, 255, .32), transparent 60%),
    linear-gradient(160deg, var(--dz-deep, #062a4d), color-mix(in srgb, var(--dz-deep, #062a4d) 70%, #0b6fa8)); }
.dz-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46px; background: color-mix(in srgb, var(--dz-bg, #e8f4fb) 55%, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 30C240 0 480 46 720 24S1200 0 1440 22V46H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 30C240 0 480 46 720 24S1200 0 1440 22V46H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.dz-top-glow { position: absolute; width: 520px; height: 520px; left: 50%; top: -260px; margin-left: -260px; border-radius: 50%; background: rgba(255, 255, 255, .08); filter: blur(10px); pointer-events: none; }
.dz-top-kicker { display: inline-flex; gap: 6px; align-items: center; margin: 0 0 10px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
html body .dz-top .pl-title { margin: 0; color: #fff !important; font: 700 clamp(2.6rem, 7vw, 5rem)/1 "Fraunces", Georgia, serif !important; letter-spacing: -.01em !important; }
.dz-top-line { max-width: 56ch; margin: 14px auto 0; color: rgba(255, 255, 255, .86); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; }
.dz-top-count { margin: 16px 0 0; font-size: 14px; opacity: .85; }
.dz-top-count b { color: var(--dz-accent, #ff7a18); font-size: 18px; }

/* Filter line: sits on the edge of the banner, then sticks under the header */
.dz-list .pl-filters { position: sticky; z-index: 40; top: 98px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: fit-content; max-width: 100%; margin: -26px auto 30px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(6, 26, 50, .16); }
.dz-list .pl-filters button { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 16px; background: transparent; color: #10233b; font: 700 14.5px "Plus Jakarta Sans", sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.dz-list .pl-filters button span { display: inline-flex; }
.dz-list .pl-filters button small { color: #5b6776; font-size: 12px; font-weight: 700; }
.dz-list .pl-filters button:hover { background: #f1ece2; }
.dz-list .pl-filters button.is-on { background: var(--dz-deep, #062a4d); color: #fff; }
.dz-list .pl-filters button.is-on small { color: rgba(255, 255, 255, .7); }
.dz-list .pl-filters button:focus-visible { outline: 3px solid var(--dz-accent, #ff7a18); outline-offset: 2px; }

/* Groups */
.dz-list .pl-group { margin: 0 0 46px; }
.dz-list .pl-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 0 0 18px; padding: 0; border: 0; }
.dz-list .pl-head h2 { margin: 0; color: #10233b !important; font: 700 clamp(1.5rem, 2.8vw, 2.1rem)/1.15 "Fraunces", Georgia, serif !important; }
.dz-list .pl-head p { flex: 1 1 320px; margin: 0; color: #5b6b7f !important; font-size: 14.5px; }
.dz-list .pl-count { padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--dz-accent, #ff7a18) 14%, #fff); color: color-mix(in srgb, var(--dz-accent, #ff7a18) 60%, #000); font-size: 13px; font-weight: 800; }
.dz-list .pl-grid { display: grid; grid-template-columns: repeat(var(--dz-cols, 3), minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .dz-list .pl-grid { grid-template-columns: repeat(min(var(--dz-cols, 3), 3), minmax(0, 1fr)); } }

/* Cards slide up as they come into view (js/places.js adds .is-in). */
.dz-list .dz-cell { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(min(var(--n, 0), 8) * 45ms); }
.dz-list .dz-cell.is-in { opacity: 1; transform: none; }

/* ---------- Place card ---------- */
.dzc { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: #0b2340; color: #fff; text-decoration: none; isolation: isolate; box-shadow: 0 14px 30px rgba(6, 26, 50, .16); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.dzc:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(6, 26, 50, .26); }
.dzc:active { transform: scale(.985); }
.dzc:focus-visible { outline: 3px solid var(--dz-accent, #ff7a18); outline-offset: 3px; }
.dzc-photo, .dzc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dzc-photo img { object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .6s ease; }
.dzc:hover .dzc-photo img { transform: scale(1.07); }
.dzc-alt { opacity: 0; }
@media (hover: hover) { .dzc:hover .dzc-alt { opacity: 1; } }
.dzc-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4, 14, 28, .35) 0, transparent 30%, transparent 42%, rgba(4, 14, 28, .88) 100%); }
.dzc-pin, .dzc-count { position: absolute; z-index: 2; top: 14px; display: inline-flex; gap: 5px; align-items: center; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #10233b; font-size: 12px; font-weight: 800; }
.dzc-pin { left: 14px; }
.dzc-pin .dz-ic { color: var(--dz-accent, #ff7a18); }
.dzc-count { right: 14px; background: rgba(4, 14, 28, .55); color: #fff; backdrop-filter: blur(4px); }
.dzc-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 18px; }
.dzc-body strong { font: 700 clamp(1.25rem, 2vw, 1.55rem)/1.15 "Fraunces", Georgia, serif; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.dzc-body small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: rgba(255, 255, 255, .85); font-size: 13.5px; line-height: 1.45; }
.dzc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dzc-chips span { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); }
.dzc-go { display: inline-flex; gap: 6px; align-items: center; justify-self: start; margin-top: 4px; padding: 9px 15px; border-radius: 999px; background: color-mix(in srgb, var(--dz-accent, #ff7a18) 72%, #000); font-size: 13.5px; font-weight: 800; transition: gap .2s; }
.dzc:hover .dzc-go { gap: 10px; }

/* Narrower screens: the filter line stays one row that slides sideways. */
@media (max-width: 1000px) {
  .dz-list .pl-filters { top: 74px; gap: 4px; margin: -22px auto 24px; padding: 6px; border-radius: 18px; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; width: 100%; scrollbar-width: none; }
  .dz-list .pl-filters button { flex: 0 0 auto; min-height: 40px; padding: 0 12px; font-size: 13px; }
}

/* Phones: two cards per row, shorter cards */
@media (max-width: 640px) {
  .dz-top { padding: 104px 16px 56px; }
  .dz-list.pl-page { --dz-gut: 12px; padding-bottom: 48px; }
  html body .dz-list .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dzc { aspect-ratio: 3 / 4.3; border-radius: 16px; }
  .dzc-pin { top: 8px; left: 8px; padding: 4px 8px; font-size: 10px; }
  .dzc-count { top: 8px; right: 8px; padding: 4px 7px; font-size: 10px; }
  .dzc-body { padding: 10px; gap: 4px; }
  .dzc-body strong { font-size: 1.02rem; }
  .dzc-body small { font-size: 11.5px; -webkit-line-clamp: 2; }
  .dzc-chips span { padding: 3px 7px; font-size: 10px; }
  .dzc-go { padding: 6px 10px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-list .dz-cell { opacity: 1; transform: none; transition: none; }
  .dzc, .dzc-photo img { transition: none; }
}

/* A place card shown with colours instead of photos. */
.dzc-grad { background: var(--dz-g); background-size: 200% 200%; transition: background-position 1.2s ease; overflow: hidden; }
.dzc:hover .dzc-grad { background-position: 100% 100%; }
.dzc-grad i { position: absolute; width: 140%; height: 70%; left: -20%; bottom: -38%; border-radius: 45%; background: rgba(255, 255, 255, .12); animation: dzcWave 14s linear infinite; }
.dzc-grad i + i { bottom: -46%; background: rgba(255, 255, 255, .08); animation-duration: 20s; animation-direction: reverse; }
@keyframes dzcWave { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dzc-grad i { animation: none; } }

/* Optional photo behind the big heading (Admin > Destinations > Page Settings), with a dark layer so the words stay clear. */
.dz-top.has-photo { isolation: isolate; }
.dz-top-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: dzTopZoom 24s ease-in-out infinite alternate; }
.dz-top.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--dz-deep, #062a4d) 0%, transparent 60%), var(--dz-deep, #062a4d); opacity: var(--dz-shade, .55); }
.dz-top.has-photo .dz-top-glow { display: none; }
.dz-top.has-photo .pl-title, .dz-top.has-photo .dz-top-line { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
@keyframes dzTopZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .dz-top-photo { animation: none; } }

/* Phones: cards are short, so the dark shade starts higher and the words get a soft shadow; titles stay readable on bright photos. */
@media (max-width: 640px) {
  .dzc-shade { background: linear-gradient(180deg, rgba(4, 14, 28, .3) 0, transparent 22%, rgba(4, 14, 28, .45) 45%, rgba(4, 14, 28, .9) 100%); }
  .dzc-body strong, .dzc-body small { text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
}
