
:root {
  --blue: #002d87;
  --blue-dark: #001b54;
  --pink: #db1f6a;
  --paper: #edf2f7;
  --ink: #101827;
  --muted: #66758d;
  --line: #dbe3ef;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(150deg, var(--blue), var(--blue-dark));
  color: white;
  padding: calc(14px + env(safe-area-inset-top)) 14px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: .88;
  letter-spacing: -.055em;
  font-weight: 950;
}

.date-lockup {
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 950;
  color: rgba(255,255,255,.72);
  text-align: right;
  white-space: nowrap;
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 14px;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar { display: none; }

.day-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(255,255,255,.16);
  color: white;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
}

.day-tabs button.active {
  background: white;
  color: var(--blue);
}

.main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px;
}

.hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 30px;
  border: 5px solid white;
  background: var(--blue);
  box-shadow: 0 18px 42px rgba(15,23,42,.18);
}

.hero img, .detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,29,84,.92), rgba(0,45,135,.35));
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: white;
  padding: 22px;
}

.hero-pill {
  display: inline-flex;
  background: white;
  color: var(--blue);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 950;
}

.hero h2 {
  font-size: 44px;
  line-height: .88;
  letter-spacing: -.06em;
  margin: 18px 0 10px;
  max-width: 680px;
}

.hero p {
  margin: 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
  color: rgba(255,255,255,.9);
}

.dashboard {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.panel {
  background: white;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(15,23,42,.1);
}

.panel h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 950;
}

.clock-grid,
.countdown-grid {
  display: grid;
  gap: 10px;
}

.clock-grid {
  grid-template-columns: 1fr 1fr;
}

.countdown-grid {
  grid-template-columns: repeat(4, 1fr);
}

.mini-card {
  background: #f8fafc;
  border-radius: 18px;
  padding: 12px;
}

.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mini-card strong {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 950;
}

.countdown-box {
  text-align: center;
}

.countdown-box strong {
  color: var(--pink);
}

.entries {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.entry-card {
  display: block;
  width: 100%;
  border: 5px solid white;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 28px rgba(15,23,42,.1);
  padding: 0;
  cursor: pointer;
}

.entry-card:active {
  transform: scale(.995);
}

.entry-time {
  background: var(--blue);
  color: white;
  padding: 13px 16px;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.entry-body {
  display: grid;
  grid-template-columns: 1fr 112px;
}

.entry-copy {
  padding: 16px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 950;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 5px 8px;
}

.tag.confirmed { background: #d1fae5; color: #065f46; }
.tag.planned { background: #dbeafe; color: #1e40af; }
.tag.considering, .tag.open, .tag.needsdecision { background: #fce7f3; color: #9d174d; }

.entry-card h3 {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
  font-weight: 950;
}

.entry-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.entry-thumb {
  width: 112px;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.62);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.detail-backdrop[hidden] {
  display: none;
}

.detail-sheet {
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 30px;
  box-shadow: 0 35px 90px rgba(0,0,0,.38);
}

.detail-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: var(--blue);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.80), rgba(0,0,0,.05));
}

.close-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--blue);
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
}

.detail-hero h2 {
  position: absolute;
  left: 18px;
  right: 70px;
  bottom: 18px;
  z-index: 2;
  color: white;
  font-size: 31px;
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0;
  font-weight: 950;
}

.detail-content {
  padding: 16px;
}

.detail-grid {
  display: grid;
  gap: 9px;
}

.detail {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.detail b {
  display: block;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 950;
}

.detail span {
  display: block;
  font-weight: 850;
  line-height: 1.22;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.actions a {
  background: var(--blue);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 950;
}

@media (min-width: 760px) {
  .main {
    padding: 22px;
  }

  .hero {
    min-height: 330px;
  }

  .hero h2 {
    font-size: 68px;
  }

  .hero p {
    font-size: 22px;
  }

  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .entry-body {
    grid-template-columns: 1fr 190px;
  }

  .entry-thumb {
    width: 190px;
  }

  .detail-backdrop {
    align-items: center;
    justify-content: center;
  }

  .detail-sheet {
    max-width: 860px;
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================================================
   GLOBAL IPHONE MAPS BUTTON OVERRIDE
========================================================= */

a[aria-label*="Maps"],
button[aria-label*="Maps"],
.maps-button,
.open-maps,
a[href*="maps.apple.com"] {
    background: #c1121f !important;
    border-color: #c1121f !important;
    color: #ffffff !important;
}

/* Text-based fallback matching */
a,
button {
}



/* =========================================================
   GLOBAL TRIPADVISOR BUTTON OVERRIDE
========================================================= */

a[aria-label*="TripAdvisor"],
button[aria-label*="TripAdvisor"],
.tripadvisor-button,
a[href*="tripadvisor.com"],
a[href*="TripAdvisor"] {
    background: #00a680 !important;
    border-color: #00a680 !important;
    color: #ffffff !important;
}



/* =========================================================
   OPEN IN MAPS BUTTONS: RED EVERYWHERE
   Applies to all map/action buttons rendered by the app.
========================================================= */

.action-button.maps-button,
.action-btn.maps-button,
.button.maps-button,
.btn.maps-button,
.maps-button,
.open-maps,
.open-maps-button,
a[href*="maps.apple.com"],
a[href*="google.com/maps"],
a[href*="maps.google.com"],
a[href*="google.com/maps/search"],
button[data-action="maps"],
a[data-action="maps"] {
    background: #c1121f !important;
    background-color: #c1121f !important;
    border-color: #c1121f !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.action-button.maps-button *,
.action-btn.maps-button *,
.button.maps-button *,
.btn.maps-button *,
.maps-button *,
.open-maps *,
.open-maps-button *,
a[href*="maps.apple.com"] *,
a[href*="google.com/maps"] *,
a[href*="maps.google.com"] *,
a[href*="google.com/maps/search"] * {
    color: #ffffff !important;
}



/* =========================================================
   OPEN IN MAPS BUTTONS: RED WITH MAP MARKER CONCEPT
   iPhone-first visual treatment for all maps actions.
========================================================= */

.action-button.maps-button,
.action-btn.maps-button,
.button.maps-button,
.btn.maps-button,
.maps-button,
.open-maps,
.open-maps-button,
a[href*="maps.apple.com"],
a[href*="google.com/maps"],
a[href*="maps.google.com"],
a[href*="google.com/maps/search"],
button[data-action="maps"],
a[data-action="maps"] {
    background: #c1121f !important;
    background-color: #c1121f !important;
    border-color: #c1121f !important;
    color: #ffffff !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
}

.action-button.maps-button::before,
.action-btn.maps-button::before,
.button.maps-button::before,
.btn.maps-button::before,
.maps-button::before,
.open-maps::before,
.open-maps-button::before,
a[href*="maps.apple.com"]::before,
a[href*="google.com/maps"]::before,
a[href*="maps.google.com"]::before,
a[href*="google.com/maps/search"]::before,
button[data-action="maps"]::before,
a[data-action="maps"]::before {
    content: "" !important;
    width: 1.05em !important;
    height: 1.05em !important;
    flex: 0 0 1.05em !important;
    display: inline-block !important;
    background: currentColor !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E") !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
}

.action-button.maps-button *,
.action-btn.maps-button *,
.button.maps-button *,
.btn.maps-button *,
.maps-button *,
.open-maps *,
.open-maps-button *,
a[href*="maps.apple.com"] *,
a[href*="google.com/maps"] *,
a[href*="maps.google.com"] *,
a[href*="google.com/maps/search"] * {
    color: #ffffff !important;
}



/* VISIBLE DETAIL ACTION LINK COLOR OVERRIDE
   The app renders detail buttons from entry.links as plain anchors.
   These rules color those visible buttons based on destination URL.
*/
#detailActions a[href*="maps.apple.com"],
.detail-actions a[href*="maps.apple.com"],
a[href*="maps.apple.com"] {
    background: #c1121f !important;
    background-color: #c1121f !important;
    border-color: #c1121f !important;
    color: #ffffff !important;
}

#detailActions a[href*="maps.apple.com"]::before,
.detail-actions a[href*="maps.apple.com"]::before,
a[href*="maps.apple.com"]::before {
    content: "📍";
    margin-right: 0.35em;
}

#detailActions a[href*="tripadvisor.com"],
.detail-actions a[href*="tripadvisor.com"],
a[href*="tripadvisor.com"] {
    background: #00a680 !important;
    background-color: #00a680 !important;
    border-color: #00a680 !important;
    color: #ffffff !important;
}


/* SAFE FINAL REPAIR STYLES */
.detail span {
  white-space: pre-line;
}

.time-main {
  display: block;
  font-size: 0.95em;
  font-weight: 900;
  line-height: 1.05;
}

.time-date {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.42em;
  line-height: 1.1;
  opacity: 0.82;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#detailActions a[href*="maps.apple.com"],
a[href*="maps.apple.com"] {
  background: #c1121f !important;
  background-color: #c1121f !important;
  border-color: #c1121f !important;
  color: #ffffff !important;
}

#detailActions a[href*="maps.apple.com"]::before,
a[href*="maps.apple.com"]::before {
  content: "📍";
  margin-right: 0.35em;
}

#detailActions a[href*="tripadvisor.com"],
a[href*="tripadvisor.com"] {
  background: #00a680 !important;
  background-color: #00a680 !important;
  border-color: #00a680 !important;
  color: #ffffff !important;
}


/* =========================================================
   Trip Map first draft - iPhone-first
========================================================= */

.trip-map-launch-wrap {
  padding: 0.4rem 1rem 0.85rem;
  display: flex;
  justify-content: center;
}

.trip-map-launch {
  width: min(100%, 22rem);
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #c1121f, #7c3aed);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.trip-map-backdrop[hidden] {
  display: none !important;
}

.trip-map-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.trip-map-panel {
  width: 100%;
  max-width: 520px;
  height: 100dvh;
  background: #07111f;
  color: #fff;
  overflow: auto;
  padding: calc(env(safe-area-inset-top) + 1rem) 1rem calc(env(safe-area-inset-bottom) + 1rem);
}

.trip-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.trip-map-header h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.trip-map-header .eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.65;
  font-weight: 800;
}

.trip-map-close {
  border: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-size: 1.8rem;
  line-height: 1;
}

.trip-map-legend {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.3rem 0 0.8rem;
  margin: 0 -0.1rem;
  -webkit-overflow-scrolling: touch;
}

.trip-map-legend-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.trip-map-legend-item span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  display: inline-block;
}

.trip-map {
  height: 52dvh;
  min-height: 380px;
  border-radius: 1.4rem;
  overflow: hidden;
  background: #162033;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.trip-map-pin-wrap {
  background: transparent;
  border: 0;
}

.trip-map-pin {
  width: 28px;
  height: 28px;
  background: var(--pin-color);
  border: 2px solid white;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.trip-map-pin span {
  display: block;
  width: 9px;
  height: 9px;
  margin: 7px;
  background: white;
  border-radius: 999px;
}

.trip-map-popup {
  color: #0f172a;
  min-width: 180px;
}

.trip-map-popup strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.trip-map-popup span {
  display: block;
  color: #475569;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.trip-map-popup p {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.25;
}

.trip-map-popup a {
  display: inline-block;
  background: #c1121f;
  color: white !important;
  padding: 0.45rem 0.65rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 800;
}

.trip-map-list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
}

.trip-map-location-card {
  border-radius: 1.1rem;
  padding: 0.9rem;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.10);
}

.trip-map-location-top {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.trip-map-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  margin-top: 0.22rem;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.8);
}

.trip-map-location-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.15;
}

.trip-map-location-card p {
  margin: 0.2rem 0 0;
}

.trip-map-location-top p {
  opacity: 0.68;
  font-size: 0.78rem;
  font-weight: 700;
}

.trip-map-note {
  opacity: 0.86;
  font-size: 0.85rem;
  line-height: 1.35;
  margin: 0.65rem 0 !important;
}

.trip-map-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c1121f;
  color: white !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-weight: 900;
  font-size: 0.82rem;
}

.trip-map-card-button::before {
  content: "📍";
  margin-right: 0.35rem;
}

@media (max-width: 390px) {
  .trip-map {
    min-height: 330px;
    height: 48dvh;
  }

  .trip-map-panel {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}



/* HOME BASE GOLD STAR MAP MARKER */
.trip-map-star-wrap {
  background: transparent !important;
  border: 0 !important;
}

.trip-map-star {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--star-color);
  font-size: 34px;
  line-height: 1;
  text-shadow:
    0 0 0 #ffffff,
    0 2px 0 #ffffff,
    2px 0 0 #ffffff,
    0 -2px 0 #ffffff,
    -2px 0 0 #ffffff,
    0 6px 14px rgba(0,0,0,0.45);
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.35));
}

.trip-map-location-card:first-child .trip-map-dot {
  border-radius: 0;
  width: 1rem;
  height: 1rem;
  clip-path: polygon(50% 0%, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 70%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
  border: 0;
}


/* CLICKABLE TRIP MAP CARDS AND GOLD STAR HOME BASE */
.trip-map-location-card {
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.trip-map-location-card:active {
  transform: scale(0.985);
}

.trip-map-location-card:focus {
  outline: 3px solid rgba(245, 179, 1, 0.55);
  outline-offset: 3px;
}

.trip-map-location-card.home-base {
  border-color: rgba(245, 179, 1, 0.55);
  background: rgba(245, 179, 1, 0.12);
}

.trip-map-location-card.home-base .trip-map-dot {
  border-radius: 0 !important;
  width: 1.05rem !important;
  height: 1.05rem !important;
  border: 0 !important;
  clip-path: polygon(50% 0%, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 70%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
}

.trip-map-star-wrap {
  background: transparent !important;
  border: 0 !important;
}

.trip-map-star {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--star-color);
  font-size: 40px;
  line-height: 1;
  text-shadow:
    0 0 0 #ffffff,
    0 2px 0 #ffffff,
    2px 0 0 #ffffff,
    0 -2px 0 #ffffff,
    -2px 0 0 #ffffff,
    0 7px 16px rgba(0,0,0,0.55);
  filter: drop-shadow(0 5px 11px rgba(0,0,0,0.42));
}


/* HARD FIX: HOME BASE GOLD STAR + CLICKABLE MAP CARDS */
.trip-map-home-star-leaflet {
  background: transparent !important;
  border: 0 !important;
}

.trip-map-home-star {
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #f5b301 !important;
  font-size: 44px !important;
  line-height: 1 !important;
  text-shadow:
    0 0 0 #ffffff,
    0 2px 0 #ffffff,
    2px 0 0 #ffffff,
    0 -2px 0 #ffffff,
    -2px 0 0 #ffffff,
    0 7px 16px rgba(0,0,0,0.6) !important;
  filter: drop-shadow(0 5px 11px rgba(0,0,0,0.48)) !important;
}

.home-base-legend .legend-star {
  color: #f5b301 !important;
  background: transparent !important;
  font-size: 1rem;
  width: auto;
  height: auto;
  line-height: 1;
}

.trip-map-location-card {
  cursor: pointer !important;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease !important;
}

.trip-map-location-card:active {
  transform: scale(0.985);
}

.trip-map-location-card.home-base {
  border-color: rgba(245, 179, 1, 0.65) !important;
  background: rgba(245, 179, 1, 0.12) !important;
}

.trip-map-list-star {
  color: #f5b301 !important;
  background: transparent !important;
  border: 0 !important;
  width: 1rem !important;
  height: 1rem !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
}

.trip-map-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.trip-map-zoom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5b301 !important;
  color: #07111f !important;
  border: 0 !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-weight: 900;
  font-size: 0.82rem;
}

.trip-map-zoom-button::before {
  content: "🎯";
  margin-right: 0.35rem;
}


/* REAL MAP WEBSITE TRIPADVISOR BUTTON FIX */
.trip-map-card-button.website-button,
.trip-map-popup .website-button {
  background: #0b3b91 !important;
  background-color: #0b3b91 !important;
  color: #ffffff !important;
}

.trip-map-card-button.tripadvisor-button,
.trip-map-popup .tripadvisor-button {
  background: #00a680 !important;
  background-color: #00a680 !important;
  color: #ffffff !important;
}

.trip-map-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.trip-map-popup-actions a {
  display: inline-block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 800;
}

.trip-map-card-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
  align-items: center !important;
}


/* LIVE TIME TEMP STYLES */
.live-temp {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 900;
  color: #c1121f;
  letter-spacing: 0.02em;
}

.time-card h2,
.card h2 {
  white-space: nowrap;
}


/* ADDRESS AND WORKING WEATHER STYLES */
.trip-map-address {
  margin: 0.7rem 0 0 !important;
  font-size: 0.94rem;
  line-height: 1.32;
  color: rgba(255,255,255,0.94);
}

.trip-map-popup-address {
  margin: 0.35rem 0 0.45rem !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
  color: #334155 !important;
  font-weight: 700;
}

.live-weather {
  margin-top: 0.3rem;
}

.weather-current {
  color: #c1121f;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.1;
}

.weather-forecast {
  margin-top: 0.1rem;
  color: #657187;
  font-size: 0.62rem;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}




/* DIRECT LIVE WEATHER DATA STYLES */
.live-weather {
  margin-top: 0.3rem;
}

.weather-current {
  color: #c1121f;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
}

.weather-forecast {
  margin-top: 0.12rem;
  color: #657187;
  font-size: 0.62rem;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.weather-source {
  margin-top: 0.12rem;
  color: #8a94a7;
  font-size: 0.52rem;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* LIVE WEATHER REBUILD FINAL STYLES */
.live-weather {
  margin-top: 0.3rem;
}

.weather-current {
  color: #c1121f;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
}

.weather-forecast {
  margin-top: 0.12rem;
  color: #657187;
  font-size: 0.62rem;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.weather-source {
  margin-top: 0.12rem;
  color: #8a94a7;
  font-size: 0.52rem;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

// WEATHERAPI_KEY_PLACEHOLDER


/* Remove leftover weather text if any cached DOM styling survives */
.live-weather,
.weather-current,
.weather-forecast,
.weather-source,
.weather-fallback,
.live-temp {
  display: none !important;
}


/* CLEAN RAINBOW UNION JACK-INSPIRED TOP HEADER */
body > header,
.app-shell > header,
.site-header,
.app-header {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background:
    linear-gradient(180deg,
      #e40303 0%,
      #e40303 16.66%,
      #ff8c00 16.66%,
      #ff8c00 33.33%,
      #ffed00 33.33%,
      #ffed00 50%,
      #008026 50%,
      #008026 66.66%,
      #004dff 66.66%,
      #004dff 83.33%,
      #750787 83.33%,
      #750787 100%) !important;
  border-bottom: 0 !important;
}

/* dark veil for legibility */
body > header::after,
.app-shell > header::after,
.site-header::after,
.app-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 22, 72, 0.78), rgba(0, 22, 72, 0.28) 46%, rgba(0, 22, 72, 0.78)),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.32));
}

/* crisp Union Jack-inspired white linework, intentionally contained and not over-bright */
body > header::before,
.app-shell > header::before,
.site-header::before,
.app-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.52;
  background:
    linear-gradient(32deg, transparent 0 44%, #ffffff 44% 47%, transparent 47% 100%),
    linear-gradient(-32deg, transparent 0 44%, #ffffff 44% 47%, transparent 47% 100%),
    linear-gradient(90deg, transparent 0 47.8%, #ffffff 47.8% 52.2%, transparent 52.2% 100%),
    linear-gradient(0deg, transparent 0 42%, #ffffff 42% 58%, transparent 58% 100%);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.18));
}

body > header > *,
.app-shell > header > *,
.site-header > *,
.app-header > * {
  position: relative !important;
  z-index: 2 !important;
}

body > header h1,
.app-shell > header h1,
.site-header h1,
.app-header h1,
body > header .logo,
.app-shell > header .logo,
.site-header .logo,
.app-header .logo,
body > header .brand,
.app-shell > header .brand,
.site-header .brand,
.app-header .brand {
  color: #ffffff !important;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.55),
    0 5px 16px rgba(0,0,0,0.65),
    0 0 2px rgba(0,0,0,0.95) !important;
}

body > header p,
.app-shell > header p,
.site-header p,
.app-header p,
body > header .trip-dates,
.app-shell > header .trip-dates,
.site-header .trip-dates,
.app-header .trip-dates {
  color: #ffffff !important;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.45),
    0 5px 14px rgba(0,0,0,0.62) !important;
}

/* Make the date pills readable against the rainbow header */
body > header button,
.app-shell > header button,
.site-header button,
.app-header button {
  backdrop-filter: blur(8px);
}

/* Ensure weather remains removed */
.live-weather,
.weather-current,
.weather-forecast,
.weather-source,
.weather-fallback,
.live-temp {
  display: none !important;
}


/* RESTORED MAP MINIMUM STYLES */
.trip-map-launch-wrap {
  display: flex;
  justify-content: center;
  padding: 0.6rem 1rem 1.1rem;
}

.trip-map-launch {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 3rem;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(90deg, #cf123e, #7c3aed);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  cursor: pointer;
}

.trip-map-backdrop,
.trip-map-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 11, 37, 0.78);
  overflow-y: auto;
  padding: 1rem;
}

.trip-map-backdrop[hidden],
.trip-map-modal-backdrop[hidden] {
  display: none !important;
}

.trip-map-modal,
.trip-map-sheet {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #061126;
  color: #fff;
  border-radius: 2rem;
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

#tripMap,
.trip-map-canvas {
  width: 100%;
  min-height: 520px;
  border-radius: 1.3rem;
  overflow: hidden;
}

.trip-map-location-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.4rem;
  padding: 1rem;
  margin-top: 1rem;
}

.trip-map-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .75rem;
}

.trip-map-card-actions a,
.trip-map-card-actions button,
.trip-map-popup-actions a {
  border: 0;
  border-radius: 999px;
  padding: .7rem 1rem;
  font-weight: 950;
  color: white;
  background: #c1121f;
  text-decoration: none;
}

.tripadvisor-button {
  background: #00a878 !important;
}

.website-button {
  background: #06398f !important;
}


/* RAINBOW GAY NIGHTLIFE MAP MARKERS */
.trip-map-pin-rainbow {
  width: 34px;
  height: 44px;
  position: relative;
  background:
    linear-gradient(
      180deg,
      #e40303 0% 16.66%,
      #ff8c00 16.66% 33.33%,
      #ffed00 33.33% 50%,
      #008026 50% 66.66%,
      #2448ff 66.66% 83.33%,
      #732982 83.33% 100%
    ) !important;
  clip-path: path("M17 0C7.6 0 0 7.6 0 17c0 12.8 17 27 17 27s17-14.2 17-27C34 7.6 26.4 0 17 0Z");
  box-shadow: 0 8px 18px rgba(0,0,0,.30);
}

.trip-map-pin-rainbow::before {
  content: "";
  position: absolute;
  inset: 5px 5px 14px 5px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.10);
}

.trip-map-pin-rainbow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #732982;
}

.legend-rainbow-dot,
.map-filter-dot.legend-rainbow-dot {
  background:
    linear-gradient(
      180deg,
      #e40303 0% 16.66%,
      #ff8c00 16.66% 33.33%,
      #ffed00 33.33% 50%,
      #008026 50% 66.66%,
      #2448ff 66.66% 83.33%,
      #732982 83.33% 100%
    ) !important;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.trip-map-category-chip:has(.legend-rainbow-dot),
.trip-map-filter:has(.legend-rainbow-dot) {
  background: rgba(255,255,255,.13);
}


.trip-map-pin[style*="rainbow"] {
  background:
    linear-gradient(
      180deg,
      #e40303 0% 16.66%,
      #ff8c00 16.66% 33.33%,
      #ffed00 33.33% 50%,
      #008026 50% 66.66%,
      #2448ff 66.66% 83.33%,
      #732982 83.33% 100%
    ) !important;
}


/* FORCE RAINBOW LEGEND FOR GAY NIGHTLIFE */
.trip-map-filters button:nth-child(3),
.trip-map-legend-chip:nth-child(3),
.trip-map-category-chip:nth-child(3) {
  position: relative;
  overflow: hidden;
}

.trip-map-filters button:nth-child(3)::before,
.trip-map-legend-chip:nth-child(3)::before,
.trip-map-category-chip:nth-child(3)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #e40303 0%,
    #ff8c00 20%,
    #ffed00 40%,
    #008026 60%,
    #2448ff 80%,
    #732982 100%
  );
  opacity: 0.95;
  z-index: 0;
}

.trip-map-filters button:nth-child(3) span,
.trip-map-filters button:nth-child(3),
.trip-map-legend-chip:nth-child(3),
.trip-map-category-chip:nth-child(3) {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
}

.trip-map-filters button:nth-child(3) > *,
.trip-map-legend-chip:nth-child(3) > *,
.trip-map-category-chip:nth-child(3) > * {
  position: relative;
  z-index: 1;
}


/* Rainbow dots for Gay Nightlife cards */
.category-dot.gay-nightlife,
.timeline-dot.gay-nightlife,
.location-dot.gay-nightlife,
.card-dot.gay-nightlife,
.event-dot.gay-nightlife,
.gay-nightlife-dot,
.gay-nightlife .category-dot,
.gay-nightlife-card .category-dot {
  background: linear-gradient(
    180deg,
    #e40303 0% 16.66%,
    #ff8c00 16.66% 33.33%,
    #ffed00 33.33% 50%,
    #008026 50% 66.66%,
    #2448ff 66.66% 83.33%,
    #732982 83.33% 100%
  ) !important;
  border: 2px solid rgba(255,255,255,.9) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.35) !important;
}

/* Fallback targeting for nightlife cards */
.event-card[data-category="Gay Nightlife"] .category-indicator,
.event-card[data-category="Gay Nightlife"] .event-type-dot,
.event-card[data-category="Gay Nightlife"] .dot,
.event-card.gay-nightlife .dot {
  background: linear-gradient(
    180deg,
    #e40303 0% 16.66%,
    #ff8c00 16.66% 33.33%,
    #ffed00 33.33% 50%,
    #008026 50% 66.66%,
    #2448ff 66.66% 83.33%,
    #732982 83.33% 100%
  ) !important;
  border: 2px solid rgba(255,255,255,.9) !important;
}


/* EXACT FORCE: RAINBOW LEGEND + GAY NIGHTLIFE CARD DOTS */
.trip-map-rainbow-dot {
  width: 0.95rem !important;
  height: 0.95rem !important;
  border-radius: 999px !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  background:
    linear-gradient(
      180deg,
      #e40303 0% 16.66%,
      #ff8c00 16.66% 33.33%,
      #ffed00 33.33% 50%,
      #008026 50% 66.66%,
      #2448ff 66.66% 83.33%,
      #732982 83.33% 100%
    ) !important;
  border: 2px solid rgba(255,255,255,.92) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.35) !important;
}

.trip-map-legend-item.gay-nightlife-legend .trip-map-rainbow-dot {
  width: 0.8rem !important;
  height: 0.8rem !important;
}

.trip-map-location-card.gay-nightlife-card .trip-map-dot {
  background:
    linear-gradient(
      180deg,
      #e40303 0% 16.66%,
      #ff8c00 16.66% 33.33%,
      #ffed00 33.33% 50%,
      #008026 50% 66.66%,
      #2448ff 66.66% 83.33%,
      #732982 83.33% 100%
    ) !important;
  border: 2px solid rgba(255,255,255,.92) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.35) !important;
}

/* fallback: any old inline background:rainbow dots */
.trip-map-dot[style*="rainbow"],
.trip-map-legend-item span[style*="rainbow"] {
  background:
    linear-gradient(
      180deg,
      #e40303 0% 16.66%,
      #ff8c00 16.66% 33.33%,
      #ffed00 33.33% 50%,
      #008026 50% 66.66%,
      #2448ff 66.66% 83.33%,
      #732982 83.33% 100%
    ) !important;
  border: 2px solid rgba(255,255,255,.92) !important;
}


/* MOBILE DETAIL CLOSE BUTTON FIX */
.detail-backdrop {
  padding-top: max(16px, env(safe-area-inset-top)) !important;
  padding-right: max(12px, env(safe-area-inset-right)) !important;
}

.detail-sheet {
  position: relative !important;
}

.close-btn,
#closeDetail {
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
  right: calc(env(safe-area-inset-right, 0px) + 16px) !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  border-radius: 999px !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

.close-btn::before,
#closeDetail::before {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  border-radius: 999px !important;
}

/* Keep the close button accessible in iPhone Safari and Add-to-Home-Screen mode */
@supports (padding: max(0px)) {
  .close-btn,
  #closeDetail {
    top: max(16px, calc(env(safe-area-inset-top) + 12px)) !important;
    right: max(16px, calc(env(safe-area-inset-right) + 12px)) !important;
  }
}

@media (max-width: 520px) {
  .close-btn,
  #closeDetail {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    font-size: 38px !important;
  }

  .detail-sheet {
    padding-top: 0 !important;
  }
}


/* FORCED CATEGORY ICON MAP MARKERS - 2026-05-14
   Gay Nightlife rainbow markers intentionally preserved. */
.trip-map-category-icon-wrap {
  background: transparent !important;
  border: 0 !important;
}

.trip-map-category-icon-marker {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--category-color);
  border: 3px solid #ffffff;
  box-shadow: 0 7px 16px rgba(0,0,0,.38);
}

.trip-map-category-icon-marker span {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.28));
}

.trip-map-legend-icon {
  width: 1.35rem !important;
  height: 1.35rem !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--category-color) !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.85) !important;
  font-size: .82rem !important;
  line-height: 1 !important;
}

.trip-map-card-category-icon {
  width: 1.45rem !important;
  height: 1.45rem !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--category-color) !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.9) !important;
  font-size: .85rem !important;
  line-height: 1 !important;
}

.trip-map-location-card.home-base .trip-map-dot.trip-map-list-star {
  width: 1.45rem !important;
  height: 1.45rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffc400 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 1.4rem !important;
  margin-top: 0 !important;
}

.trip-map-legend-item.home-base-legend .legend-star {
  width: 1.35rem !important;
  height: 1.35rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffc400 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 1.2rem !important;
}


/* FORCED GAY NIGHTLIFE CIRCLE ICONS - 2026-05-14
   Replace map-marker/reticule shape with the same circular treatment as other categories. */
.trip-map-rainbow-pin-wrap,
.trip-map-rainbow-circle-wrap {
  background: transparent !important;
  border: 0 !important;
}

.trip-map-rainbow-circle-marker,
.trip-map-pin-rainbow {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  clip-path: none !important;
  display: block !important;
  position: relative !important;
  background: linear-gradient(
    135deg,
    #e40303 0% 16.66%,
    #ff8c00 16.66% 33.33%,
    #ffed00 33.33% 50%,
    #008026 50% 66.66%,
    #2448ff 66.66% 83.33%,
    #732982 83.33% 100%
  ) !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 7px 16px rgba(0,0,0,.38) !important;
  overflow: hidden !important;
}

.trip-map-rainbow-circle-marker::before,
.trip-map-rainbow-circle-marker::after,
.trip-map-pin-rainbow::before,
.trip-map-pin-rainbow::after {
  content: none !important;
  display: none !important;
}

.trip-map-legend-item.gay-nightlife-legend .trip-map-rainbow-dot,
.trip-map-location-card.gay-nightlife-card .trip-map-dot,
.trip-map-dot.trip-map-rainbow-dot,
.trip-map-rainbow-dot {
  border-radius: 999px !important;
  background: linear-gradient(
    135deg,
    #e40303 0% 16.66%,
    #ff8c00 16.66% 33.33%,
    #ffed00 33.33% 50%,
    #008026 50% 66.66%,
    #2448ff 66.66% 83.33%,
    #732982 83.33% 100%
  ) !important;
  border: 2px solid rgba(255,255,255,.92) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.35) !important;
}

.trip-map-location-card.gay-nightlife-card .trip-map-dot {
  width: 1.45rem !important;
  height: 1.45rem !important;
  flex: 0 0 1.45rem !important;
}

/* Trip Map single-category legend filters - 2026-05-14 */
.trip-map-legend .trip-map-filter-button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.trip-map-legend .trip-map-filter-button:active {
  transform: scale(.97);
}

.trip-map-legend .trip-map-filter-button.is-active {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 0 0 2px rgba(255,255,255,.13), 0 8px 20px rgba(0,0,0,.24);
}

.trip-map-legend .trip-map-filter-button:not(.is-active) {
  opacity: .78;
}

.trip-map-legend .trip-map-filter-button:not(.is-active):hover,
.trip-map-legend .trip-map-filter-button:not(.is-active):focus-visible {
  opacity: 1;
}

.trip-map-legend-all-icon {
  width: 1.35rem !important;
  height: 1.35rem !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.85) !important;
  font-size: .85rem !important;
  line-height: 1 !important;
}

.trip-map-location-card[hidden] {
  display: none !important;
}

/* Uber app buttons: black Uber-branded treatment */
#detailActions a[href*="m.uber.com"],
#detailActions a[href*="openUberDestination"],
.actions a[href*="m.uber.com"],
.actions a[href*="openUberDestination"] {
  background: #000000 !important;
  background-color: #000000 !important;
  border: 2px solid #000000 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#detailActions a[href*="m.uber.com"]::before,
#detailActions a[href*="openUberDestination"]::before,
.actions a[href*="m.uber.com"]::before,
.actions a[href*="openUberDestination"]::before {
  content: "Uber";
  display: inline-block;
  margin-right: 0.45em;
  font-weight: 950;
  background: linear-gradient(90deg,#ff3131,#ff8a00,#ffe600,#39d353,#00c2ff,#7b61ff,#ff4fd8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* Batch refinements 2026-05-15 */
.entry-body {
  align-items: stretch;
}
.entry-thumb {
  display: block;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 780px) {
  .entry-thumb {
    max-height: 180px;
  }
}


/* batch visual fixes 20260515 */
.entry-media, .entry-image, .card-media, .itinerary-image {
  overflow: hidden !important;
}
.entry-media img, .entry-image img, .card-media img, .itinerary-image img, .entry img {
  object-fit: cover;
}
.entries .entry-card img {
  object-fit: cover;
}


/* Gold confirmed event treatment - applied only to itinerary entries with status Confirmed */
.entry-card.status-confirmed .entry-time {
  position: relative;
  overflow: hidden;
  color: #fff8df;
  text-shadow: 0 2px 8px rgba(89, 52, 0, .42);
  background:
    radial-gradient(circle at 18% 35%, rgba(255,255,255,.62) 0 1.5px, transparent 2px),
    radial-gradient(circle at 52% 18%, rgba(255,255,255,.52) 0 1px, transparent 1.8px),
    radial-gradient(circle at 83% 58%, rgba(255,255,255,.48) 0 1.2px, transparent 2px),
    linear-gradient(115deg, #8b5a09 0%, #c58a16 21%, #f4d36a 43%, #b4770a 67%, #f7df82 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(89,52,0,.28);
}

.entry-card.status-confirmed .entry-time::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,.42) 48%, rgba(255,255,255,0) 64%, transparent 100%);
  transform: translateX(-120%);
  animation: confirmedGoldSheen 5.5s ease-in-out infinite;
}

.entry-card.status-confirmed .entry-time::before {
  content: "✦";
  position: absolute;
  right: 18%;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.9);
  font-size: 16px;
  text-shadow: 0 0 10px rgba(255,255,255,.8), 0 0 18px rgba(255,214,102,.75);
  opacity: .85;
}

.tag.confirmed {
  color: #6f4300;
  background: linear-gradient(135deg, #fff8cf 0%, #f7d66a 45%, #d79a1f 100%);
  border: 1px solid rgba(181, 124, 18, .38);
  box-shadow: 0 3px 10px rgba(206, 151, 35, .24), inset 0 1px 0 rgba(255,255,255,.65);
}

.tag.confirmed::before {
  content: "★";
  margin-right: 5px;
  color: #b47a09;
  text-shadow: 0 0 8px rgba(255, 214, 102, .55);
}

@keyframes confirmedGoldSheen {
  0%, 55% { transform: translateX(-125%); opacity: 0; }
  63% { opacity: .9; }
  82% { transform: translateX(125%); opacity: 0; }
  100% { transform: translateX(125%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-card.status-confirmed .entry-time::after { animation: none; display: none; }
}

/* Gold confirmed-event treatment — applied globally to confirmed itinerary cards */
.entry-card.status-confirmed .entry-time {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 18% 35%, rgba(255,255,255,.95) 0 1.5px, transparent 2px),
    radial-gradient(circle at 58% 28%, rgba(255,255,255,.9) 0 1.25px, transparent 2px),
    radial-gradient(circle at 82% 62%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    linear-gradient(110deg, #8f5f09 0%, #c48a16 22%, #f8d86a 44%, #b87508 70%, #8a5a08 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(60,35,0,.45) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(83,48,0,.25) !important;
}

.entry-card.status-confirmed .entry-time::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, transparent 34%, rgba(255,255,255,.42) 47%, transparent 60%, transparent 100%);
  transform: translateX(-120%);
  animation: confirmedGoldSheen 4.5s ease-in-out infinite;
}

.entry-card.status-confirmed .tag.confirmed,
.tag.confirmed {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.95) 0 1px, transparent 2px),
    linear-gradient(135deg, #fff6c7 0%, #f7d46a 38%, #c68b17 100%) !important;
  color: #6b4300 !important;
  border: 1px solid rgba(185,124,11,.35) !important;
  box-shadow: 0 2px 8px rgba(198,139,23,.25), inset 0 1px 0 rgba(255,255,255,.7) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.45) !important;
}

.entry-card.status-confirmed .tag.confirmed::before,
.tag.confirmed::before {
  content: "★";
  margin-right: 5px;
  color: #b77900;
  text-shadow: 0 0 7px rgba(255,215,90,.85);
}

@keyframes confirmedGoldSheen {
  0%, 62% { transform: translateX(-120%); opacity: 0; }
  72% { opacity: .9; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* =========================================================
   DESKTOP CONFIRMED GOLD HEADER FORCE FIX - 20260515
   Desktop was showing the gold CONFIRMED pill but keeping blue
   time bars. This targets cards by the actual rendered confirmed
   pill, so it works even if the status-confirmed class is missing
   or a desktop path renders the card differently.
========================================================= */
.entry-card:has(.tag.confirmed) > .entry-time,
.entries .entry-card:has(.tag.confirmed) .entry-time,
button.entry-card:has(.tag.confirmed) .entry-time {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background:
    radial-gradient(circle at 18% 35%, rgba(255,255,255,.95) 0 1.5px, transparent 2px),
    radial-gradient(circle at 58% 28%, rgba(255,255,255,.9) 0 1.25px, transparent 2px),
    radial-gradient(circle at 82% 62%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    linear-gradient(110deg, #8f5f09 0%, #c48a16 22%, #f8d86a 44%, #b87508 70%, #8a5a08 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(60,35,0,.45) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(83,48,0,.25) !important;
}

.entry-card:has(.tag.confirmed) > .entry-time::after,
.entries .entry-card:has(.tag.confirmed) .entry-time::after,
button.entry-card:has(.tag.confirmed) .entry-time::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(115deg, transparent 0%, transparent 34%, rgba(255,255,255,.42) 47%, transparent 60%, transparent 100%) !important;
  transform: translateX(-120%);
  animation: confirmedGoldSheen 4.5s ease-in-out infinite;
  z-index: -1;
}

.entry-card:has(.tag.confirmed) > .entry-time::before,
.entries .entry-card:has(.tag.confirmed) .entry-time::before,
button.entry-card:has(.tag.confirmed) .entry-time::before {
  content: "✦" !important;
  position: absolute !important;
  right: 18% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: rgba(255,255,255,.9) !important;
  font-size: 16px !important;
  text-shadow: 0 0 10px rgba(255,255,255,.8), 0 0 18px rgba(255,214,102,.75) !important;
  opacity: .85 !important;
}


/* Header London Baby logo replacement - contained for desktop/mobile */
.app-header .header-row {
  align-items: center !important;
}
.app-header .header-logo-image {
  display: block !important;
  width: clamp(64px, 11vw, 118px) !important;
  height: clamp(64px, 11vw, 118px) !important;
  max-width: 34vw !important;
  object-fit: contain !important;
  border-radius: 999px !important;
  filter:
    drop-shadow(0 3px 2px rgba(0,0,0,0.55))
    drop-shadow(0 0 12px rgba(255, 29, 148, 0.38)) !important;
  flex: 0 0 auto !important;
}
@media (max-width: 700px) {
  .app-header {
    padding-top: calc(10px + env(safe-area-inset-top)) !important;
  }
  .app-header .header-row {
    gap: 10px !important;
    min-height: 58px !important;
  }
  .app-header .header-logo-image {
    width: 72px !important;
    height: 72px !important;
    max-width: 28vw !important;
  }
  .app-header .date-lockup {
    font-size: 9px !important;
    letter-spacing: .2em !important;
    max-width: 58vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
@media (max-width: 420px) {
  .app-header .header-logo-image {
    width: 62px !important;
    height: 62px !important;
  }
  .app-header .header-row {
    align-items: center !important;
  }
}

/* =========================================================
   FIXED APP HEADER SHELL - 2026-05-16
   Makes the logo/date/actions header stay frozen while only
   the itinerary content pane scrolls beneath it.
========================================================= */
html,
body {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  padding-bottom: 0;
}

#app.app-shell {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
}

#app.app-shell > .app-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  flex: 0 0 auto;
  width: 100%;
  z-index: 1000;
  transform: translateZ(0);
}

#app.app-shell > .main {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  margin-left: auto;
  margin-right: auto;
}

#app.app-shell > .main .hero {
  margin-top: 0;
}

.detail-backdrop,
.trip-map-backdrop,
.nearby-concierge-backdrop,
.tier1-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 5000 !important;
}

/* Purple ticket badge shown beside Confirmed on ticketed itinerary cards */
.tag.tickets-inside {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 45%, #c026d3 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: 0 8px 18px rgba(147, 51, 234, .26), inset 0 1px 0 rgba(255,255,255,.24) !important;
}
.tag.tickets-inside::before {
  content: "🎟️";
  margin-right: .25rem;
}
