/* Travel collection: shared visual system and mobile-first layouts. */
@font-face {
  font-family: "Mappick Rounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fredoka-600.ttf") format("truetype");
}
:root {
  --ink: #172c30;
  --ink-soft: #617477;
  --ink-faint: #849597;
  --paper: #f6f9f9;
  --card-sunken: #edf3f3;
  --line: #e0e9e9;
  --line-strong: #bdcece;
  --pine: #087f83;
  --pine-deep: #06676a;
  --pine-tint: #e2f3f2;
  --brass: #b86a05;
  --brass-tint: #fff1ce;
  --brick: #ce4550;
  --brick-tint: #fff0f1;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r-sm: 8px;
  --r-md: 8px;
  --r-lg: 16px;
  --shadow-1: 0 2px 8px rgba(23, 44, 48, .04);
  --shadow-2: 0 5px 20px rgba(23, 44, 48, .08);
  --shadow-3: 0 12px 40px rgba(23, 44, 48, .18);
  --nav-height: 66px;
  --safe-top: env(safe-area-inset-top, 0px);
  --app-top-inset: calc(var(--safe-top) + 12px);
}
* { letter-spacing: 0 !important; }
body { padding-top: var(--app-top-inset); padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 16px); }
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: var(--safe-top); background: var(--paper); z-index: 1200; pointer-events: none; }
button, a, input, textarea, select { outline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); }
.app-container, .nav-inner { max-width: 760px; }
.screen { padding: 8px 20px 24px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }
.page-heading h1 { font-size: 26px; line-height: 1.35; font-weight: 800; }
.page-heading > div { min-width: 0; }
.page-heading .btn-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-brand { display: flex; align-items: center; gap: 14px; padding: 4px 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.settings-brand img { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; }
.settings-brand-name { font-family: "Mappick Rounded", ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 600; font-size: 36px; line-height: 1.2; color: #087ec3; background: linear-gradient(90deg, #1874ff 0%, #109bd4 52%, #00afb9 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; min-width: 0; }
.page-heading p { color: var(--text-sub); font-size: 13px; line-height: 1.6; margin-top: 5px; }
.collection-count { flex-shrink: 0; margin-top: 9px; font-size: 12px; font-weight: 700; color: var(--primary); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; font-size: 15px; font-weight: 750; }
.section-heading span { color: var(--text-sub); font-size: 12px; font-weight: 500; }
.screen .card { background: transparent; border: 0; padding: 0; border-radius: 0; box-shadow: none; margin-bottom: 28px; }
.card-title, .screen-title-sm { font-size: 18px; font-weight: 750; line-height: 1.4; }
.card-desc, .confirm-note { line-height: 1.7; }
.input-field { font-size: 16px; padding: 14px; border-width: 1px; background: #fff; border-color: var(--line-strong); }
.input-field:focus { box-shadow: 0 0 0 3px #e2f3f2; }
.field-label { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.field-group { margin-bottom: 18px; }
.btn-primary { background: var(--primary); border: 0; box-shadow: none; min-height: 48px; font-size: 15px; }
.btn-secondary { min-height: 44px; background: #fff; border-width: 1px; font-size: 14px; }
.btn-icon, .modal-close { width: 44px; height: 44px; background: #fff; border: 1px solid var(--border); }
.btn-icon .icon, .modal-close .icon { width: 20px; height: 20px; }
.app-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid #e0e9e9;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px #172c3014;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.app-back-button .icon { width: 20px; height: 20px; }
.app-back-button:active { background: var(--card-sunken); transform: scale(.94); }
.chip { min-height: 40px; border-radius: 8px; border: 1px solid var(--border); font-size: 12px; background: #fff; }
.chip.active { background: var(--primary-light); color: var(--primary); border-color: #a4d8d6; }
.add-header-row { margin: 0 0 24px; }
.add-header-row .chip-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.add-header-row .chip { flex-direction: column; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 4px; min-height: 76px; font-size: 12px; }
.add-header-row .chip .icon { width: 22px; height: 22px; }
.add-header-row .chip:nth-child(2) .icon { color: #4079bf; }
.add-header-row .chip:nth-child(3) .icon { color: #d96651; }
.add-header-row .chip:nth-child(4) .icon { color: #a56c13; }
.add-header-row .chip.active { background: #fff; box-shadow: inset 0 -3px 0 var(--primary); }
#addModeVideo { padding-top: 4px; }
#addModeVideo > .card:first-child { border-top: 1px solid var(--border); padding-top: 24px; }
.search-field { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; height: 48px; }
.search-field > .icon { width: 19px; height: 19px; color: var(--ink-soft); }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; height: 100%; }
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.search-clear { background: none; border: 0; width: 32px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.search-clear[hidden], [hidden] { display: none !important; }
.destination-rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.destination-rail::-webkit-scrollbar { display: none; }
.destination-tile { flex: 0 0 156px; display: flex; gap: 10px; align-items: center; padding: 6px; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 8px; scroll-snap-align: start; min-width: 0; }
.destination-tile.active { border-color: var(--primary); background: var(--primary-light); }
.destination-tile img, .destination-placeholder { width: 50px; height: 58px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.destination-placeholder { display: flex; align-items: center; justify-content: center; background: #edf3f3; color: var(--primary); }
.destination-label { min-width: 0; flex: 1; }
.destination-label strong { font-size: 13px; font-weight: 750; display: block; overflow-wrap: anywhere; }
.destination-label small { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.list-toolbar-row { gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.list-order-controls { gap: 8px; }
.chip-group { gap: 0; background: #eaf0f0; padding: 3px; border-radius: 8px; }
.chip-group .chip { padding: 7px 10px; border: 0; min-height: 34px; background: transparent; color: var(--ink-soft); }
.chip-group .chip.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.chip-fav-toggle { width: 42px; height: 42px; padding: 0; }
.chip-fav-toggle.active { color: var(--favorite); background: var(--favorite-light); border-color: #e2bb63; }
.filter-toggle-btn.has-active::after { display: none; }
.filter-count { display: inline-flex; justify-content: center; align-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; }
.active-list-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.active-list-filters[hidden] { display: none; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border: 1px solid #b6dedd; border-radius: 6px; background: var(--pine-tint); color: var(--pine-deep); font-size: 12px; max-width: 100%; }
.active-filter span:first-child { overflow-wrap: anywhere; min-width: 0; }
.active-filter .icon { width: 14px; height: 14px; flex-shrink: 0; }
.filter-reset { border: 0; background: transparent; color: var(--ink-soft); min-height: 44px; padding: 6px 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
body.filter-sheet-open { overflow: hidden; }
.filter-sheet { padding: 0; display: flex; flex-direction: column; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 24px); }
.filter-sheet .modal-header { margin: 0; padding: 16px 20px; flex-shrink: 0; }
.filter-sheet-body { padding: 20px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.filter-sheet select { width: 100%; height: 50px; text-overflow: ellipsis; }
.filter-sheet .field-label { display: block; font-size: 13px; color: var(--ink); font-weight: 700; }
.filter-categories { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-category-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.filter-category-option { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; cursor: pointer; background: #fff; }
.filter-category-option:first-child { grid-column: 1 / -1; }
.filter-category-option:has(input:checked) { background: var(--pine-tint); border-color: var(--primary); color: var(--pine-deep); }
.filter-category-option input { accent-color: var(--primary); width: 17px; height: 17px; flex-shrink: 0; }
.filter-category-option span { overflow-wrap: anywhere; }
.filter-sheet-footer { display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 20px); border-top: 1px solid var(--border); flex-shrink: 0; background: #fff; }
.filter-sheet-footer .btn-primary { flex: 1; width: auto; min-width: 0; padding: 10px 12px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 12px; }
.collection-toolbar h2 { font-size: 15px; font-weight: 750; }
.collection-toolbar small { color: var(--ink-soft); font-weight: 500; margin-left: 6px; font-size: 12px; }
.view-toggle-group { border-radius: 8px; }
.view-toggle-btn { width: 38px; height: 36px; align-items: center; justify-content: center; }
.view-toggle-btn .icon { width: 18px; height: 18px; }
#spotList.compact-grid { gap: 14px 12px; }
.spot-card-compact { padding: 0; box-shadow: none; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.spc-image { margin: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.spc-image img { transition: transform .25s ease; }
.spot-country-tag { position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 20px); padding: 5px 8px; border: 1px solid #ffffffb3; border-radius: 6px; background: #fffffff2; box-shadow: 0 2px 8px #0000001a; color: #075d9c; font-size: 12px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; pointer-events: none; }
.spc-image .spot-country-tag { top: 8px; left: 8px; max-width: calc(100% - 60px); padding: 4px 6px; font-size: 11px; }
.spot-list-view .spc-image .spot-country-tag { top: 50px; max-width: calc(100% - 16px); }
.spc-fav-overlay { width: 36px; height: 36px; color: #617477; box-shadow: 0 2px 6px #0002; }
.spc-fav-overlay.active { color: var(--favorite); background: #fff8e9; }
.spc-fav-overlay .icon { width: 18px; height: 18px; }
.spc-name { font-size: 14px; line-height: 1.5; font-weight: 750; padding: 10px 11px 0; white-space: normal; overflow-wrap: anywhere; min-height: 31px; }
.spc-name-sub { margin: 3px 11px 0; font-size: 11px; overflow-wrap: anywhere; }
.spc-location { font-size: 11px; color: var(--ink-soft); margin: 5px 11px; line-height: 1.5; overflow-wrap: anywhere; }
.spc-hours { margin: 3px 11px; padding: 0; font-size: 11px; min-height: 0; color: var(--primary); }
.spc-hours:empty { display: none; }
.spc-actions { padding: 6px 7px 8px; margin: 0; border: 0; gap: 4px; }
.spc-actions-left { gap: 0; }
.spc-action-btn { min-width: 36px; height: 36px; background: transparent; border-radius: 6px; color: var(--ink-soft); }
.spc-action-btn .icon { width: 17px; height: 17px; }
.spc-action-btn.del { background: transparent; color: #87999a; }
.spc-category-badge-overlay { border-radius: 4px; padding: 4px 7px; font-size: 10px; box-shadow: none; }
.spc-category-badge-overlay.cat-food { background: #fff0e9; color: #b74932; }
.spc-category-badge-overlay.cat-activity { background: #e9f3fe; color: #3466a2; }
.spc-category-badge-overlay.cat-sight { background: #e8f6f1; color: #237e62; }
.spc-category-badge-overlay.cat-facility { background: #fff3d8; color: #85600f; }
#spotList.spot-list-view { display: grid; gap: 10px; }
.spot-list-view .spot-card-compact { display: grid; grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; }
.spot-list-view .spc-image { grid-column: 1; grid-row: 1 / 6; height: 100%; min-height: 150px; aspect-ratio: auto; }
.spot-list-view .spc-name, .spot-list-view .spc-name-sub, .spot-list-view .spc-location, .spot-list-view .spc-hours, .spot-list-view .spc-actions { grid-column: 2; }
.spot-list-view .spc-name { padding-top: 12px; }
.spot-list-view .spc-actions { justify-content: space-between; }
.spot-card-compact .spc-name { height: 44px; min-height: 44px; padding-top: 7px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spot-card-compact .spc-name-sub { height: auto; min-height: 0; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-card-compact .spc-location { height: auto; min-height: 0; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-card-compact .spc-hours { display: block; height: auto; min-height: 0; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-card-compact .spc-actions { min-height: 42px; height: auto; flex: 0 0 auto; }
.spot-card-compact .spc-country { display: inline-flex; align-items: center; min-width: 0; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--pine-deep); }
.spot-card-compact .spc-favorite-overlay { position: absolute; z-index: 2; top: 7px; right: 7px; width: 34px; min-width: 34px; height: 34px; border-radius: 50%; background: #fffffff2; color: #617477; box-shadow: 0 1px 5px #0003; }
.spot-card-compact .spc-favorite-overlay.active { color: var(--favorite); background: #fff8e9; }
.spot-card-compact .spc-actions-left { min-width: 0; }
@media(max-width:380px) { .spot-card-compact .spc-actions-left .spc-action-btn { width: 30px; min-width: 30px; } .spot-card-compact .spc-country { max-width: 64px; font-size: 10px; } }
.spc-favorite.active { color: #ba7b08; background: #fff6dd; }
.spc-country-genre { margin: 0; padding: 0 11px 10px; height: 28px; min-height: 28px; line-height: 18px; text-align: right; font-size: 10px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-list-view .spc-country-genre { grid-column: 2; }
.spot-list-view .spc-image { grid-row: 1 / -1; }
.empty-state { padding: 36px 16px; }
.empty-state .icon { color: var(--primary); }
.empty-state-title { font-size: 16px; }
.empty-state .btn-secondary { width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; margin-top: 16px; color: var(--primary); }
.loading-spots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.loading-tile { height: 220px; background: #e7eeee; border-radius: 8px; animation: loadingPulse 1.2s ease-in-out infinite alternate; }
@keyframes loadingPulse { to { opacity: .45; } }
#screen-map { padding: 0; }
.map-container { border-radius: 0; box-shadow: none; height: calc(100vh - var(--app-top-inset) - var(--nav-height) - env(safe-area-inset-bottom, 0px) - 16px); height: calc(100dvh - var(--app-top-inset) - var(--nav-height) - env(safe-area-inset-bottom, 0px) - 16px); }
.map-header-bar { top: 12px; left: 12px; right: 12px; padding: 0; border-radius: 0; background: transparent; border: 0; box-shadow: none; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.map-search-field { display: flex; align-items: center; height: 54px; width: 100%; min-width: 0; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 3px 14px #172c301c; padding: 0 4px; }
.map-search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px #b6dedd, 0 3px 14px #172c301c; }
.map-search-field input { flex: 1; min-width: 0; height: 50px; padding: 8px 0; font-size: 16px; border: 0; outline: none; background: transparent; color: var(--ink); }
.map-search-field input::-webkit-search-cancel-button { display: none; }
.map-header-bar .btn-icon { background: transparent; border: 0; width: 44px; height: 44px; color: var(--primary); }
.map-header-bar .btn-icon[hidden] { display: none; }
.map-header-actions { display: flex; align-items: center; gap: 8px; }
.map-tool, .map-header-actions .btn-map-list { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 650; box-shadow: var(--shadow-1); flex-shrink: 0; }
#mapFavoriteToggleBtn { width: 44px; padding: 0; }
.map-tool .icon { width: 18px; height: 18px; }
.map-tool.active { color: var(--brass); background: var(--brass-tint); border-color: #e2bb63; }
.map-tool.pin-mode-active { background: var(--pine-tint); color: var(--primary); border-color: #a4d8d6; }
.map-result-status { margin-left: auto; padding: 6px 8px; font-size: 11px; font-weight: 600; color: var(--ink-soft); background: #ffffffe8; border-radius: 4px; white-space: nowrap; }
.map-search-results { width: 100%; max-height: min(48dvh, 360px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-2); }
.map-search-results[hidden] { display: none; }
.map-search-caption { padding: 12px 14px 8px; color: var(--ink-soft); font-size: 12px; }
.map-search-result { width: 100%; display: flex; align-items: center; gap: 10px; background: transparent; padding: 10px 14px; min-height: 64px; border: 0; border-top: 1px solid var(--border); text-align: left; color: var(--ink); }
.map-search-result img, .map-search-result-icon { width: 40px; height: 44px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.map-search-result-icon { display: grid; place-items: center; background: var(--pine-tint); color: var(--primary); }
.map-search-result-name { flex: 1; min-width: 0; }
.map-search-result-name strong { display: block; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.map-search-result-name small { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-soft); overflow-wrap: anywhere; }
.map-search-result > .icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary); }
.map-search-area { display: block; width: 100%; text-align: left; padding: 14px; min-height: 48px; background: transparent; color: var(--primary); font-size: 14px; border: 0; overflow-wrap: anywhere; }
.select-dropdown { height: 40px; background: #f1f6f6; border: 0; font-size: 12px; max-width: 116px; }
.btn-map-list { border: 0; height: 40px; padding: 8px 10px; background: var(--primary); color: #fff; }
.map-search-expand { top: 76px; }
.map-btn-location { bottom: 34px; width: 48px; height: 48px; }
.leaflet-control-attribution { font-size: 10px !important; }
.map-info-panel { border-radius: 8px; }
body.spot-detail-open { overflow: hidden; }
#spotDetailModal { background: #edf3f3; backdrop-filter: none; }
#spotDetailModal .spot-detail-sheet { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 760px; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-radius: 0; overflow: hidden; animation: none; }
.spot-detail-toolbar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; pointer-events: none; }
.spot-detail-tools-right { display: flex; gap: 8px; margin-left: auto; pointer-events: auto; }
.detail-scrolled .spot-detail-toolbar { background: #fff; border-bottom: 1px solid var(--border); }
.spot-detail-tool { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #e0e9e9; border-radius: 50%; background: #fff; color: var(--ink); pointer-events: auto; box-shadow: 0 2px 8px #172c3014; }
.spot-detail-tool .icon { width: 20px; height: 20px; }
.spot-detail-tool.active { background: #fff8e9; color: var(--brass); border-color: #e2bb63; }
.spot-detail-actions-menu { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 64px); right: 16px; min-width: 200px; max-width: calc(100% - 32px); padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-3); pointer-events: auto; }
.spot-detail-actions-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; background: transparent; border: 0; color: var(--ink); text-align: left; font-size: 14px; border-radius: 4px; }
.spot-detail-actions-menu button:hover { background: var(--card-sunken); }
.spot-detail-actions-menu .danger { color: var(--brick); }
.spot-detail-actions-menu .icon { width: 18px; height: 18px; }
.spot-detail-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#spotDetailModal .spot-image-carousel { width: 100%; margin: 0; padding: 0; height: min(42dvh, 360px); min-height: 220px; border-radius: 0; }
#spotDetailModal .spot-image-slide { height: 100%; aspect-ratio: auto; }
#spotDetailModal .spot-image-slide img { width: 100%; height: 100%; object-fit: cover; }
.spot-detail-photo-empty { position: relative; display: grid; place-items: center; height: calc(env(safe-area-inset-top, 0px) + 104px); background: #edf3f3; color: var(--ink-faint); }
.spot-detail-photo-empty > .icon { width: 32px; height: 32px; margin-top: 36px; }
.spot-detail-copy { padding: 24px 24px 32px; min-width: 0; }
.spot-detail-eyebrow { color: #b74932; font-size: 12px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; overflow-wrap: anywhere; }
.spot-detail-overview h2 { font-size: 26px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; color: var(--ink); }
.spot-detail-name-sub { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-top: 8px; overflow-wrap: anywhere; }
.spot-detail-location { display: flex; align-items: flex-start; gap: 5px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin-top: 10px; overflow-wrap: anywhere; }
.spot-detail-location .icon { width: 15px; height: 15px; margin-top: 3px; flex-shrink: 0; }
.spot-detail-branch { font-size: 12px; color: var(--ink-soft); margin-top: 8px; overflow-wrap: anywhere; }
.spot-detail-overview .status-pill { margin-top: 12px; }
.spot-detail-retry { display: inline-flex; align-items: center; margin: 8px 0 0 8px; padding: 6px 0; border: 0; background: transparent; color: var(--primary); font-size: 13px; font-weight: 700; }
.spot-detail-retry:disabled { opacity: .5; }
.spot-detail-description { margin-top: 20px; font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.spot-info-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin-top: 20px; padding: 3px; border-radius: 8px; background: #eaf2f5; }
.spot-info-switch button { min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 700; }
.spot-info-switch button[aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: 0 1px 5px #17384018; }
.spot-info-panel[hidden] { display: none; }
.spot-info-panel .spot-detail-description { margin: 12px 0 0; }
.spot-info-panel.spot-detail-practical { margin: 0; padding: 14px 0 0; }
.spot-info-switch + .spot-info-panel + .spot-info-panel + .spot-detail-memo { margin-top: 16px; }
.spot-detail-section { border-top: 1px solid var(--border); padding: 22px 0; margin-top: 22px; }
.spot-detail-section h3 { font-size: 13px; font-weight: 700; color: var(--ink-soft); line-height: 1.5; }
.spot-detail-address { display: flex; align-items: flex-start; gap: 12px; }
.spot-detail-address > .icon { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.spot-detail-address > div { min-width: 0; }
.spot-detail-address p { font-size: 14px; line-height: 1.6; margin: 4px 0 0; overflow-wrap: anywhere; white-space: normal; }
.spot-detail-address small { display: block; font-size: 12px; margin-top: 6px; color: var(--ink-soft); }
.spot-detail-address a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-size: 13px; color: var(--primary); font-weight: 600; }
.spot-detail-address a .icon { width: 14px; height: 14px; }
.spot-detail-hours { margin-top: 12px; padding-left: 32px; }
.spot-detail-practical { padding: 14px 0; margin-top: 14px; }
.hours-heading { display: flex; gap: 12px; align-items: center; }
.hours-week { display: grid; gap: 4px; margin: 8px 0 0; font-size: 13px; }
.hours-week > div { display: flex; gap: 12px; }
.hours-week dt { flex: 0 0 20px; color: var(--ink-soft); }
.hours-week dd { margin: 0; overflow-wrap: anywhere; }
.hours-reference { font-size: 12px; white-space: pre-line; margin: 8px 0 0; color: var(--ink-soft); }
.spot-detail-hours .spot-info-item { align-items: flex-start; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 1.7; padding: 0; margin-top: 6px; }
.spot-detail-hours .spot-info-item > .icon { display: none; }
.spot-detail-hours .spot-info-item span { overflow-wrap: anywhere; }
.spot-detail-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spot-detail-section-heading .spot-detail-tool { box-shadow: none; border: 0; color: var(--primary); }
.spot-detail-memo { margin-top: 0; padding-top: 12px; }
.spot-detail-memo p { font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }
.spot-detail-memo-add { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--primary); min-height: 44px; padding: 0; font-size: 14px; }
.spot-detail-memo-add .icon { width: 16px; height: 16px; }
.spot-detail-videos .video-links-accordion { margin: 0; }
.spot-detail-footer { display: flex; gap: 12px; flex-shrink: 0; padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 12px); background: #fff; border-top: 1px solid var(--border); }
.spot-detail-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0; border-radius: 8px; font-size: 14px; font-weight: 700; }
.spot-detail-footer .icon { width: 19px; height: 19px; }
.spot-detail-footer button > span:first-child { display: flex; }
.spot-detail-map-btn { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); width: 130px; flex-shrink: 0; }
.spot-detail-add-btn { flex: 1; min-width: 0; width: auto; padding: 10px 12px; }
#spotDetailModal.map-detail:not(.detail-expanded) { background: transparent; pointer-events: none; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 32px); }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-sheet { pointer-events: auto; max-width: 600px; height: auto; max-height: min(44dvh, 360px); margin: 0 12px; border: 1px solid var(--border); border-radius: 8px; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-toolbar { position: relative; flex-shrink: 0; padding: 6px 10px 0; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-tool { width: 40px; height: 40px; border: 0; box-shadow: none; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-actions-menu { top: 48px; right: 10px; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-body { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; align-content: start; padding: 12px 16px 16px; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-image-carousel, #spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-photo-empty { height: 124px; min-height: 0; border-radius: 6px; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-photo-empty > .icon { margin: 0; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-copy { padding: 0; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-eyebrow { font-size: 11px; margin-bottom: 5px; }
#spotDetailModal.map-detail:not(.detail-expanded) h2 { font-size: 18px; line-height: 1.4; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-name-sub { font-size: 12px; margin-top: 5px; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-location { font-size: 12px; margin-top: 6px; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-description { margin-top: 10px; font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-section, #spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-videos { display: none; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-info-switch, #spotDetailModal.map-detail:not(.detail-expanded) .spot-info-panel.spot-detail-practical { display: none; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-footer { padding: 10px 16px; gap: 8px; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-detail-footer button { min-height: 44px; font-size: 13px; }
#spotMemoModal, #addToScheduleModal { z-index: 3100; }
.map-detail-open .map-btn-location { bottom: auto; top: 132px; }
.trip-cover-preview { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.trip-cover-upload { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; cursor: pointer; }
.trip-cover-upload .icon { width: 18px; height: 18px; }
.placard-status { color: #a8a294; font-size: 16px; text-align: center; overflow-wrap: anywhere; }
.placard-edit { width: auto; padding: 10px 16px; margin-top: 16px; }
.placard-sheet { overflow-y: auto; }
.placard-sheet { padding-top: calc(env(safe-area-inset-top, 0px) + 72px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); justify-content: safe center; }
.placard-content, .placard-edit, .placard-status { flex-shrink: 0; }
.placard-main-name, .placard-address { overflow-wrap: anywhere; }
#placardEditorModal { z-index: 5100; }
@media (max-width: 360px) {
  .placard-main-name { font-size: 36px; }
  .placard-address { font-size: 18px; }
}
.trip-list-heading { margin-bottom: 8px; }
.trip-list-heading h1 { font-size: 26px; }
.trip-create-actions { display: flex; gap: 8px; margin: 18px 0 24px; }
.trip-create-actions .btn-fab-add { flex: 1; justify-content: center; min-height: 44px; border-radius: 8px; font-size: 13px; box-shadow: none; }
.trip-card { position: relative; overflow: hidden; padding: 0; border-radius: 8px; margin-bottom: 16px; box-shadow: none; }
.trip-card.archived { opacity: 1; }
.trip-card-cover { width: 100%; height: 160px; object-fit: cover; display: block; }
.trip-card-cover-placeholder { height: 84px; background: #e3f2f2; display: flex; align-items: center; padding: 0 18px; gap: 12px; color: var(--primary); }
.trip-card-cover-placeholder .icon { width: 28px; height: 28px; }
.trip-card-cover-placeholder span:last-child { font-size: 18px; font-weight: 750; }
.trip-card-content { padding: 16px; }
.trip-card-name { font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.trip-card-dest, .trip-card-dates { font-size: 12px; color: var(--ink-soft); }
.trip-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.trip-card-count { margin: 0; background: transparent; color: var(--ink-soft); padding: 0; font-size: 12px; }
.trip-card-badge { margin: 0; border-radius: 4px; padding: 5px 8px; }
.trip-card-badge.done { background: #edf1f1; }
.trip-card-arrow { color: var(--primary); width: 18px; height: 18px; }
.trip-pin-btn { width: 40px; height: 40px; }
.trip-list-section-title { font-size: 15px; color: var(--ink); margin: 24px 0 12px; }
.archive-label { font-size: 11px; color: var(--ink-soft); font-weight: 500; margin-left: 10px; }
.trip-detail-header { flex-wrap: wrap; gap: 6px; padding: 6px 0 14px; margin-bottom: 0; }
.trip-detail-titles { flex-basis: calc(100% - 56px); }
.trip-detail-header > #tripShareBtn { margin-left: 50px; }
.trip-detail-name { font-size: 24px; line-height: 1.4; overflow-wrap: anywhere; }
.trip-detail-meta { font-size: 12px; line-height: 1.6; margin-top: 5px; }
.trip-quick-actions { margin: 12px 0 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); gap: 0; }
.trip-quick-action-btn { border: 0; background: transparent; box-shadow: none; border-radius: 0; align-items: center; padding: 14px 6px; min-width: 0; }
.trip-quick-action-btn + .trip-quick-action-btn { border-left: 1px solid var(--border); }
.tqa-emoji { color: var(--primary); }
.tqa-emoji .icon { width: 20px; height: 20px; }
.tqa-label { font-size: 12px; }
.schedule-quick-add { gap: 8px; }
.btn-quick-add { width: 48px; height: 48px; border-radius: 8px; }
.trip-day-nav { display: flex; gap: 8px; overflow-x: auto; position: sticky; top: var(--app-top-inset); z-index: 20; padding: 12px 0; margin-bottom: 16px; background: var(--paper); scrollbar-width: none; }
.trip-day-tab { min-width: 76px; height: 58px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink-soft); }
.trip-day-tab small { font-size: 10px; }
.trip-day-tab strong { font-size: 15px; }
.trip-day-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.trip-day-section { margin-bottom: 28px; }
.trip-day-title { display: flex; align-items: center; gap: 8px; border: 0; font-size: 16px; font-weight: 750; padding-bottom: 8px; }
.day-number { background: var(--primary-light); color: var(--primary); font-size: 11px; padding: 6px 8px; border-radius: 4px; }
.trip-item-row { position: relative; background: #fff; padding: 12px 8px 12px 4px; border: 1px solid var(--border); border-radius: 8px; min-height: 88px; gap: 8px; }
.trip-item-photo { width: 56px; height: 64px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.trip-item-photo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--card-sunken); color: var(--primary); }
.trip-item-main { display: flex; align-items: center; gap: 10px; }
.trip-item-text { min-width: 0; flex: 1; }
.trip-item-name { white-space: normal; line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.trip-item-sub { margin-top: 5px; font-size: 11px; }
.trip-item-time { padding: 0; background: transparent; display: block; min-width: 0; text-align: left; margin-bottom: 3px; font-size: 11px; }
.trip-item-btn { width: 40px; height: 40px; }
.trip-item-drag-handle { width: 16px; min-height: 44px; }
.trip-transit-row { border-left: 1px dashed #b9cccc; margin: 0 0 0 32px; padding: 6px 0 6px 16px; }
.trip-transit-btn { min-height: 32px; font-size: 11px; }
.trip-day-add-btn { min-height: 44px; color: var(--primary); background: #edf7f6; border: 1px dashed #afd1ce; border-radius: 8px; width: 100%; margin-top: 8px; }
.trip-day-empty { padding: 16px 0; }
.trip-loading, .trip-load-error { padding: 24px 0; color: var(--ink-soft); line-height: 1.8; }
.trip-loading .loading-tile { height: 88px; margin: 10px 0; }
.bottom-nav { background: #fffffff5; border-top: 1px solid var(--border); box-shadow: 0 -4px 24px #172c3005; }
.nav-item { height: 100%; color: #708588; min-width: 0; position: relative; }
.nav-pill { padding: 8px 4px; gap: 5px; width: 100%; border-radius: 0; }
.nav-item.active .nav-pill { background: transparent; }
.nav-item.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; background: var(--primary); border-radius: 0 0 3px 3px; }
.nav-item .icon { width: 23px; height: 23px; }
.nav-pill > span:last-child { font-size: 11px; line-height: 1.3; white-space: nowrap; }
.nav-item[data-screen="add"] .nav-pill > .icon { background: #fff0e9; color: #c6553d; border-radius: 50%; width: 32px; height: 32px; padding: 6px; margin: -4px 0 -1px; }
.modal-sheet { border-radius: 16px 16px 0 0; }
.modal-title { font-size: 18px; font-weight: 750; }
.toast { border-radius: 8px; width: max-content; max-width: min(88%, 480px); overflow-wrap: anywhere; line-height: 1.6; background: var(--ink); font-size: 13px; }
#screen-add .card-desc, #aiScheduleView .card-desc { display: none; }
.placard-main-name { font-size: 48px; }
.placard-address { font-size: 20px; }
.placard-jp-name { font-size: 16px; }
@media (min-width: 700px) {
  .screen { padding-left: 28px; padding-right: 28px; }
  #spotList.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tripList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #tripList > .empty-state, #tripList > .trip-list-section-title { grid-column: 1 / -1; }
  .trip-card { margin-bottom: 0; }
}
@media (max-width: 360px) {
  .screen { padding-left: 14px; padding-right: 14px; }
  .page-heading h1 { font-size: 24px; }
  .list-order-controls { gap: 4px; }
  .chip-group .chip { padding-left: 8px; padding-right: 8px; }
  .list-toolbar-row .filter-toggle-btn { padding-left: 9px; padding-right: 9px; }
  .map-header-left .btn-icon { width: 36px; }
  .map-header-right { gap: 4px; }
  .map-header-actions { gap: 6px; }
  .map-tool, .map-header-actions .btn-map-list { padding-left: 9px; padding-right: 9px; font-size: 12px; }
  .map-result-status { padding: 6px 4px; font-size: 10px; }
  .filter-sheet-footer { gap: 6px; padding-left: 14px; padding-right: 14px; }
  .filter-sheet-footer .btn-primary { font-size: 13px; }
  .select-dropdown { max-width: 100px; padding-left: 6px; padding-right: 6px; }
  .trip-item-photo { width: 44px; height: 54px; }
  .trip-item-main { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* The launch artwork is transient and never delays data loading. */
.app-launch { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #f7fbff; opacity: 1; transition: opacity 220ms ease; overflow: hidden; touch-action: manipulation; }
.app-launch[hidden] { display: none; }
.app-launch-scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.04); transition: opacity 520ms ease, transform 900ms cubic-bezier(.22, .61, .36, 1); }
.app-launch::after { content: ""; position: absolute; inset: auto 0 0; height: 48%; background: linear-gradient(to bottom, rgba(247,251,255,1) 0%, rgba(247,251,255,.18) 38%, rgba(247,251,255,0) 100%); pointer-events: none; }
.app-launch-brand { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: -24vh; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity 460ms ease, transform 620ms cubic-bezier(.22, .61, .36, 1); }
.app-launch-icon { width: 112px; height: 112px; object-fit: cover; border-radius: 24px; box-shadow: 0 16px 36px rgba(15, 105, 190, .2); margin-bottom: 16px; }
.app-launch-name { flex-shrink: 0; font-family: "Mappick Rounded", ui-rounded, sans-serif; font-size: 54px; line-height: 1.2; font-weight: 600; letter-spacing: 0; color: #087ec3; background: linear-gradient(90deg, #176fff 0%, #079dda 54%, #00bfae 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.app-launch-reading { flex-shrink: 0; margin-top: 12px; color: #526978; font-size: 13px; line-height: 1.6; font-weight: 700; letter-spacing: 0; }
.app-launch.image-ready .app-launch-scene { opacity: 1; transform: scale(1); }
.app-launch.image-ready .app-launch-brand { opacity: 1; transform: translateY(0) scale(1); }
.app-launch.leaving { pointer-events: auto; }
.app-launch.leaving .app-launch-brand { opacity: 0; transform: translateY(-8px) scale(1.015); }
.app-launch.leaving .app-launch-scene { opacity: 0; }
.app-launch.clearing { opacity: 0; }
/* Keep duplicate login lettering hidden until the launch overlay has gone. */
#appLaunch:not([hidden]) ~ #authGate .auth-content { visibility: hidden; }
.spot-image-source { position: absolute; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 4px; color: #fff; background: rgba(0, 0, 0, .62); font-size: 11px; text-decoration: none; }
.spot-image-source .icon { width: 12px; height: 12px; }
.spot-image-count { bottom: 42px; right: 10px; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-image-label { display: none; }
#spotDetailModal.map-detail:not(.detail-expanded) .spot-image-source { font-size: 10px; padding: 3px 5px; right: 6px; bottom: 6px; }
.spot-image-unavailable { display: grid; place-items: center; background: #e9eff0; color: #566167; }
.spot-image-error { font-size: 13px; padding: 16px; text-align: center; }
@media (min-width: 700px) { .app-launch-scene { height: 52%; } .app-launch-brand { margin-top: -18vh; } }
@media (prefers-reduced-motion: reduce) { .app-launch, .app-launch-scene, .app-launch-brand { transition: none; } .app-launch.leaving .app-launch-brand { transform: none; } }
.intake-root, .intake-drafts { margin-bottom: 20px; }
.intake-notice {font-size:13px;line-height:1.6;color:#52616c;margin:10px 0;}
.intake-form {display:grid;gap:12px;margin-top:16px;min-width:0;}
.intake-form label {display:grid;gap:6px;font-size:14px;}
.intake-form label:has(input[type=checkbox]) {display:flex;align-items:flex-start;gap:10px;line-height:1.6;}
.intake-form button, .intake-drafts button {white-space:normal;overflow-wrap:anywhere;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:14px;}
.intake-start[hidden] {display:none;}
.intake-actions {display:flex;flex-wrap:wrap;gap:8px;}
.intake-actions > button {flex:1;min-width:120px;}
.intake-photos {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.intake-photos img {width:100%;height:140px;object-fit:cover;border-radius:8px;}
.intake-map {height:240px;width:100%;border-radius:8px;z-index:0;}
.intake-drafts {display:grid;gap:8px;border-top:1px solid #dce6ec;padding-top:16px;}
.intake-drafts h3 {margin:0;font-size:16px;}
#intakeNames, #intakePlaces {display:grid;gap:8px;min-width:0;}
.intake-confirm {padding:12px;background:#e8f5ff;border-radius:8px;}
.intake-root[aria-busy=true] {opacity:.75;pointer-events:none;}
.intake-entry {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.intake-entry > button {min-width:0;min-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#0765bd;background:#edf7ff;border:1px solid #b8daf5;border-radius:8px;}
.intake-entry > button:last-child {color:#087c79;background:#eafaf7;border-color:#b4e5dc;}
.intake-entry svg {width:26px;height:26px;}
.intake-essential-fields {display:grid;gap:12px;min-width:0;}
.intake-essential-fields input {width:100%;min-width:0;box-sizing:border-box;}
.intake-progress {padding:12px;color:#075a9f;background:#edf7ff;border-radius:8px;font-size:14px;line-height:1.5;}
.intake-error {color:#a62936;background:#fff1f2;}
.intake-form[hidden], .intake-progress[hidden] {display:none;}
