/* Day planner (Coastal Experience page) — hygge / Scandinavian, pebble shapes. */

.trip-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .trip-grid { grid-template-columns: 410px minmax(0, 1fr); align-items: start; } }

.trip-card {
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2.5rem;
  box-shadow: var(--warm-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
}
@media (min-width: 640px) { .trip-card { padding: 2rem; } }
.trip-card h3 { margin: 0 0 .25rem; font-size: 1.35rem; }
.trip-sub { margin: 0 0 1rem; color: var(--ink-soft); font-size: .9rem; }

/* Filter chips */
.trip-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.trip-chip {
  border: 0; border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  font: 700 .82rem/1 'Plus Jakarta Sans', sans-serif; color: var(--ink);
  background: var(--neu-bg); box-shadow: 4px 4px 9px var(--neu-dark), -4px -4px 9px var(--neu-light);
  transition: box-shadow .2s ease;
}
.trip-chip[aria-pressed="true"] { box-shadow: inset 3px 3px 7px var(--neu-dark), inset -3px -3px 7px var(--neu-light); color: var(--teal); }

/* Library */
.trip-lib { list-style: none; margin: 0; padding: .35rem .35rem .75rem; display: grid; gap: .9rem; }
@media (min-width: 1024px) { .trip-lib { max-height: 720px; overflow-y: auto; } }
.lib-item {
  display: grid; grid-template-columns: auto 50px minmax(0, 1fr) auto; gap: .65rem; align-items: center;
  padding: .8rem .85rem .8rem .5rem; border-radius: 2rem; background: var(--neu-bg);
  box-shadow: 5px 5px 12px var(--neu-dark), -5px -5px 12px var(--neu-light);
  cursor: grab; touch-action: pan-y;
}
.lib-item, .stop-card { -webkit-user-select: none; user-select: none; }
.lib-item:active { cursor: grabbing; }
.lib-item .drag { color: #6F7F85; display: grid; place-items: center; }
.thumb { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); box-shadow: inset 2px 2px 5px rgba(0,0,0,.08); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .material-symbols-outlined { font-size: 26px; }
.lib-item strong, .stop-card strong { display: block; font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.2; }
.lib-item .meta span, .stop-card .meta span { display: block; font-size: .76rem; color: var(--ink-soft); margin-top: .2rem; }
.round-btn {
  width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: var(--neu-bg); color: var(--ink);
  box-shadow: 4px 4px 9px var(--neu-dark), -4px -4px 9px var(--neu-light);
  transition: box-shadow .2s ease, transform .2s ease;
}
.round-btn:hover { transform: translateY(-1px); }
.round-btn:active { box-shadow: inset 3px 3px 7px var(--neu-dark), inset -3px -3px 7px var(--neu-light); transform: none; }
.round-btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.round-btn.add { background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(0, 106, 103, .28); }
.round-btn .material-symbols-outlined { font-size: 22px; }
.round-btn.sm { width: 36px; height: 36px; }
.round-btn.sm .material-symbols-outlined { font-size: 19px; }

/* Day tabs */
.trip-days { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.trip-tab {
  border: 0; border-radius: 999px; padding: .65rem 1.2rem; cursor: pointer; font: 700 .88rem/1 'Plus Jakarta Sans', sans-serif; color: var(--ink-soft);
  background: var(--neu-bg); box-shadow: 4px 4px 9px var(--neu-dark), -4px -4px 9px var(--neu-light);
}
.trip-tab[aria-selected="true"] { color: #fff; background: var(--teal); box-shadow: 0 8px 18px rgba(0, 106, 103, .28); }
.trip-link { background: none; border: 0; padding: .5rem .25rem; cursor: pointer; font: 700 .82rem 'Plus Jakarta Sans', sans-serif; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.trip-link[disabled] { opacity: .45; cursor: not-allowed; text-decoration: none; }
.trip-templates { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin-bottom: 1.25rem; font-size: .82rem; color: var(--ink-soft); }

/* Timeline */
.trip-node {
  display: flex; align-items: center; gap: .75rem; padding: .8rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: var(--neu-bg); box-shadow: inset 4px 4px 9px var(--neu-dark), inset -4px -4px 9px var(--neu-light);
}
.trip-node .material-symbols-outlined { color: var(--red); }
.trip-list { list-style: none; margin: .25rem 0; padding: 0; min-height: 96px; display: grid; gap: 0; }
.trip-list:empty {
  display: grid; place-items: center; text-align: center; margin: .9rem 0; padding: 1.5rem; border: 2px dashed #C9BBA2; border-radius: 2rem; color: var(--ink-soft); font-weight: 600; font-size: .9rem;
}
.trip-list:empty::before { content: 'Drag a place here, or tap + on a place. Or start from a template above.'; max-width: 26ch; }
.leg { display: flex; align-items: center; gap: .45rem; width: fit-content; margin: .55rem 0 .55rem 1.5rem; padding: .35rem .85rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--ink-soft); background: var(--sand-tint); }
.leg .material-symbols-outlined { font-size: 16px; color: var(--sand); }
.stop-card {
  display: grid; grid-template-columns: auto auto 1fr; gap: .75rem; align-items: center; padding: .85rem .9rem .85rem .6rem; border-radius: 2rem; background: var(--neu-bg);
  box-shadow: 5px 5px 12px var(--neu-dark), -5px -5px 12px var(--neu-light); cursor: grab; touch-action: pan-y;
}
.stop-card .drag { color: #6F7F85; display: grid; place-items: center; }
.stop-card .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: var(--teal); }
.stop-card .ctrl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; padding-top: .35rem; }
@media (min-width: 700px) { .stop-card { grid-template-columns: auto auto minmax(0, 1fr) auto; } .stop-card .ctrl { grid-column: auto; padding-top: 0; flex-wrap: nowrap; } }
.trip-move {
  appearance: none; -webkit-appearance: none; border: 2px solid var(--field-edge); border-radius: 999px; background: var(--neu-bg); color: var(--ink);
  padding: .4rem 1.8rem .4rem .9rem; font: 700 .78rem 'Plus Jakarta Sans', sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2533' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 14px;
}
.is-ghost { opacity: .35; }
.sortable-chosen { box-shadow: 0 16px 36px rgba(110, 82, 44, .25) !important; }
.sortable-fallback { opacity: .95 !important; }

/* Summary */
.trip-summary { display: grid; gap: .6rem; margin-top: 1.25rem; }
.trip-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.trip-stat { padding: .85rem .6rem; border-radius: 1.5rem; text-align: center; background: var(--neu-bg); box-shadow: inset 3px 3px 7px var(--neu-dark), inset -3px -3px 7px var(--neu-light); }
.trip-stat b { display: block; font-family: var(--display); font-variation-settings: 'SOFT' 100; font-size: 1.2rem; font-weight: 600; }
.trip-stat span { font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.trip-warn { font-size: .85rem; font-weight: 700; color: #7A5A00; background: var(--sand-tint); padding: .65rem 1rem; border-radius: 1.25rem; }
.trip-fine { font-size: .74rem; color: var(--ink-soft); margin: 0; }
.trip-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.trip-actions .msc-btn { min-height: 44px; padding: .65rem 1.2rem; font-size: .85rem; }

/* Map */
.trip-map { height: 340px; border-radius: 2.5rem; overflow: hidden; isolation: isolate; box-shadow: var(--warm-shadow); border: 4px solid rgba(255, 250, 242, .9); margin-bottom: 1.5rem; background: #E7E0D2; }
@media (min-width: 640px) { .trip-map { height: 400px; } }
.trip-map .leaflet-tile-pane { filter: sepia(.28) saturate(.85) hue-rotate(-6deg) contrast(.97); }
.leaflet-container { font-family: 'Plus Jakarta Sans', sans-serif; }
.pin { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 6px 14px rgba(10, 37, 51, .3); border: 2px solid #fff; }
.pin-home { background: var(--red); width: 42px; height: 42px; }
.pin-home .material-symbols-outlined { font-size: 22px; }
.pin-place { background: #fff; color: var(--teal); width: 28px; height: 28px; border-color: var(--teal); }
.pin-place .material-symbols-outlined { font-size: 16px; }
.pin-stop { background: var(--teal); width: 34px; height: 34px; }
.trip-pop button { margin-top: .4rem; border: 0; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; background: var(--teal); color: #fff; font: 700 .78rem 'Plus Jakarta Sans', sans-serif; }

.trip-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 70; padding: .8rem 1.4rem; border-radius: 999px; background: rgba(10, 37, 51, .92); color: #fff; font-weight: 700; font-size: .88rem; max-width: 92vw; text-align: center; }
.trip-toast a { color: #FBD98B; text-decoration: underline; margin-left: .5rem; }

/* Videos gallery */
.vid-row { display: grid; gap: 1.25rem; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1rem; }
@media (min-width: 768px) { .vid-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.vid-card { scroll-snap-align: start; position: relative; border-radius: 2.5rem 2.5rem 2rem 2rem; overflow: hidden; background: #1c2b32; box-shadow: var(--warm-shadow); aspect-ratio: 4 / 5; isolation: isolate; }
.vid-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-card .cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.25rem 1.1rem; color: #fff; background: linear-gradient(to top, rgba(10, 37, 51, .86), transparent); pointer-events: none; }
.vid-card .cap strong { display: block; font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 600; font-size: 1.15rem; }
.vid-card .cap span { font-size: .72rem; opacity: .85; display: block; margin-top: .2rem; }
.vid-card .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; z-index: 2;
  display: grid; place-items: center; background: rgba(255, 250, 242, .92); color: var(--teal); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.vid-card .play .material-symbols-outlined { font-size: 34px; font-variation-settings: 'FILL' 1; }
.vid-card.is-playing .play { opacity: 0; pointer-events: none; }
.vid-card.is-playing .cap { opacity: 0; transition: opacity .3s; }

@media (prefers-reduced-motion: reduce) { .lib-item, .stop-card, .round-btn { transition: none !important; } }
