/*
 * Riviera Now — image correction layer (loaded LAST).
 * Explore and category result lists become stacked photographic editorial cards,
 * echoing the event-detail reference: wide photo, ivory panel lifting over it,
 * serif title, teal date line, round heart on the photo. Presentation only:
 * links, filters, favourites, empty states, labels and dark mode are untouched in markup.
 */
:root { --ic-ivory: #fbf7ef; --ic-card: #fffdf8; --ic-ink: #0d3b38; --ic-teal: #1f6f69; --ic-gold: #b9975b;
  --ic-edge: rgb(196 170 122 / .38);
  --ic-shadow: 0 1px 2px rgb(92 74 42 / .06), 0 14px 30px -18px rgb(60 48 26 / .34), 0 30px 50px -36px rgb(13 59 56 / .3); }

/* Grid: one column on phones, two from tablet, three on wide desktop. */
.id-explore .id-results-list.explore-list { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 700px) { .id-explore .id-results-list.explore-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1180px) { .id-explore .id-results-list.explore-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Card shell */
.id-explore .explore-list > a.rise[data-testid^="card-event-"] {
  position: relative; display: flex !important; flex-direction: column; gap: 0 !important; padding: 0 !important; overflow: hidden;
  border-radius: 24px !important; background: var(--ic-card) !important; border: 1px solid var(--ic-edge);
  box-shadow: var(--ic-shadow) !important; --tw-ring-shadow: 0 0 #0000;
  opacity: 1 !important; animation: none !important; }
.id-explore .explore-list > a.rise:nth-child(2) { animation-delay: .05s; }
.id-explore .explore-list > a.rise:nth-child(3) { animation-delay: .1s; }
.id-explore .explore-list > a.rise:nth-child(4) { animation-delay: .15s; }
.id-explore .explore-list > a.rise:nth-child(n+5) { animation-delay: .2s; }
@media (hover: hover) {
  .id-explore .explore-list > a.rise[data-testid^="card-event-"]:hover { transform: translateY(-3px); }
}

/* Photograph: wide, cinematic, soft fade into the ivory panel. */
.id-explore .explore-list > a.rise > div:first-child {
  width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; border-radius: 0 !important; flex-shrink: 0;
  background: linear-gradient(135deg, #f4e9d6, #e3cfae); }
.id-explore .explore-list > a.rise > div:first-child img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; opacity: 1 !important;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1) !important; }
@media (hover: hover) { .id-explore .explore-list > a.rise:hover > div:first-child img { transform: scale(1.04); } }
.id-explore .explore-list > a.rise > div:first-child::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; pointer-events: none;
  background: linear-gradient(to top, rgb(13 40 38 / .34), transparent); }
/* Honest labels stay readable, raised above the panel overlap. */
.id-explore .explore-list > a.rise > div:first-child > span { z-index: 2; left: 12px !important; bottom: 26px !important; top: auto !important;
  font-size: 10px !important; letter-spacing: .04em; padding: 3px 9px !important; backdrop-filter: blur(6px); }

/* Ivory text panel lifting over the photo like the reference. */
.id-explore .explore-list > a.rise > div:nth-child(2) {
  position: relative; z-index: 1; margin-top: -18px; padding: 16px 18px 18px !important; gap: 2px;
  background: var(--ic-card); border-radius: 22px 22px 0 0; }
.id-explore .explore-list > a.rise > div:nth-child(2) > span:first-child {
  font-size: .62rem !important; letter-spacing: .18em !important; padding: 3px 9px !important; border-radius: 99px !important;
  background: rgb(233 201 131 / .28) !important; color: #8a6a2f !important; font-weight: 650; }
.id-explore .explore-list > a.rise h3 {
  margin-top: 8px !important; font-size: clamp(1.32rem, 5.4vw, 1.55rem) !important; line-height: 1.1 !important; font-weight: 600 !important;
  letter-spacing: -.015em; color: var(--ic-ink) !important; }
.id-explore .explore-list > a.rise .id-card-loc { margin-top: 8px !important; font-size: .82rem !important; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; color: #6c6250 !important; }
.id-explore .explore-list > a.rise .id-card-when { font-size: .9rem !important; margin-top: 2px; }
.id-explore .explore-list > a.rise .id-card-when:not(.italic) { color: var(--ic-teal) !important; font-weight: 650; }
.id-explore .explore-list > a.rise .id-card-price { display: inline-block; align-self: flex-start; margin-top: 8px; padding: 3px 11px; border-radius: 99px;
  background: rgb(47 138 134 / .12); color: var(--ic-teal); font-size: .76rem !important; }
.id-explore .explore-list > a.rise .id-card-ico { color: var(--ic-gold); }

/* Heart: round ivory button on the photo, top-right, 44px touch target. */
.id-explore .explore-list > a.rise > button[data-testid^="button-fav-"] {
  position: absolute !important; top: 10px; right: 10px; z-index: 3; width: 44px !important; height: 44px !important;
  display: grid; place-items: center; border-radius: 999px !important; }
.id-explore .explore-list > a.rise > button[data-testid^="button-fav-"] > svg {
  width: 40px !important; height: 40px !important; padding: 10px; border-radius: 999px; color: #0d3b38;
  background: rgb(251 246 236 / .94); box-shadow: 0 4px 12px -4px rgb(0 0 0 / .3); }
.id-explore .explore-list > a.rise > button[aria-pressed="true"] > svg { color: #d9573f; }

/* Results heading becomes an editorial divider. */
.id-explore .id-results-heading { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--ic-edge); }
.id-explore .id-results-heading p { font-family: var(--font-display, Fraunces, Georgia, serif); font-size: 1.1rem; color: var(--ic-ink); }

/* Category hero: taller, photographic, feathered into the page. */
.id-explore .id-category-hero { position: relative; overflow: hidden; border-radius: 26px; aspect-ratio: 16 / 9; max-height: 340px; box-shadow: var(--ic-shadow); }
.id-explore .id-category-hero img { width: 100%; height: 100%; object-fit: cover; }
.id-explore .id-category-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, rgb(251 247 239 / .5)); }
.id-explore .id-category-hero > span { z-index: 2; }
.id-explore .id-category-title h1 { font-family: var(--font-display, Fraunces, Georgia, serif); letter-spacing: -.02em; }

/* Dark mode */
.dark .id-explore .explore-list > a.rise[data-testid^="card-event-"],
.dark .id-explore .explore-list > a.rise > div:nth-child(2) { background: #14282a !important; }
.dark .id-explore .explore-list > a.rise[data-testid^="card-event-"] { border-color: rgb(196 170 122 / .22); box-shadow: 0 20px 40px -26px rgb(0 0 0 / .7) !important; }
.dark .id-explore .explore-list > a.rise h3 { color: #f4ecdc !important; }
.dark .id-explore .explore-list > a.rise .id-card-loc { color: #bdb3a0 !important; }
.dark .id-explore .explore-list > a.rise .id-card-when:not(.italic) { color: #8fd3c9 !important; }
.dark .id-explore .explore-list > a.rise > div:nth-child(2) > span:first-child { color: #e3c88f !important; background: rgb(227 200 143 / .14) !important; }
.dark .id-explore .id-results-heading p { color: #f4ecdc; }
.dark .id-explore .id-category-hero::after { background: linear-gradient(to bottom, transparent 55%, rgb(16 32 30 / .55)); }

@keyframes ic-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .id-explore .explore-list > a.rise, .id-explore .explore-list > a.rise img { animation: none !important; transition: none !important; transform: none !important; }
}

/* Keep CONNECTED and its six honest feature tiles together on mobile, as in the reference. */
@media (max-width: 699px) {
  .ms-root.ms-root .cx-hero { min-height: min(57dvh, 540px) !important; }
  .ms-root.ms-root .cx-logo { width: min(180px, 48vw); }
  .ms-root.ms-root .cx-title { font-size: clamp(2.25rem, 10vw, 3.4rem); }
}
@media (min-width: 360px) and (max-width: 699px) {
  .ms-root.ms-root .cx-features { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 9px !important; }
  .ms-root.ms-root .cx-feature { padding: 33px 9px 14px; min-height: 156px; }
  .ms-root.ms-root .cx-feature h2 { font-size: .89rem; line-height: 1.2; }
  .ms-root.ms-root .cx-feature p { font-size: .75rem; line-height: 1.35; }
  .ms-root.ms-root .cx-chip { font-size: .48rem; }
}
