@charset "UTF-8";

/*
  Visual-only glass layer. Layout and interaction rules remain in style.css
  and island-ui.css so every control, card and map marker keeps its position.
*/
:root {
  --ink: #173b36;
  --muted: #667b75;
  --accent: #2f7463;
  --accent-soft: rgba(214, 235, 225, 0.72);
  --bg: #eaf1ed;
  --surface: rgba(243, 247, 244, 0.68);
  --line: rgba(35, 83, 71, 0.15);
  --forest: #15483e;
  --lime: #d7eead;
  --paper: rgba(255, 255, 252, 0.72);
  --glass: rgba(255, 255, 252, 0.68);
  --glass-strong: rgba(255, 255, 252, 0.84);
  --glass-dark: rgba(16, 64, 55, 0.86);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 18px 50px rgba(39, 72, 63, 0.1);
  font-family: Manrope, Arial, sans-serif;
}

html {
  background: #e8efeb;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 9% 9%, rgba(209, 232, 218, 0.92), transparent 31rem),
    radial-gradient(circle at 92% 20%, rgba(235, 221, 190, 0.68), transparent 28rem),
    linear-gradient(145deg, #eef4f0 0%, #e7efec 52%, #f2eee5 100%);
  background-attachment: fixed;
}

.topbar {
  background: var(--glass-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 38px rgba(18, 57, 48, 0.13);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
}

.desktop-nav,
.topbar > .icon-button {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.desktop-nav button.active {
  background: rgba(222, 243, 184, 0.94);
  color: #143c33;
}

.workspace-head,
.workspace {
  position: relative;
}

.island-note {
  background: rgba(21, 72, 62, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 46px rgba(23, 64, 55, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.search-field,
.filter-button,
.category,
.sort select {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 28px rgba(45, 78, 68, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  backdrop-filter: blur(18px) saturate(118%);
}

.search-field:focus-within {
  background: var(--glass-strong);
  border-color: rgba(47, 116, 99, 0.42);
  box-shadow: 0 0 0 4px rgba(47, 116, 99, 0.1);
}

.filter-button {
  color: #f8fffc;
  background: rgba(21, 72, 62, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}

.filter-button:hover {
  background: rgba(33, 91, 77, 0.94);
}

.filter-button b {
  background: rgba(222, 243, 184, 0.96);
  color: var(--forest);
}

.category {
  color: #526b64;
}

.category:hover:not(.active) {
  color: var(--accent);
  background: rgba(255, 255, 252, 0.86);
}

.category.active {
  color: #173d34;
  background: rgba(215, 238, 173, 0.92);
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 25px rgba(49, 92, 71, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.place-card {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: 0 14px 42px rgba(42, 73, 64, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.64);
  /* Many cards render together; translucency is kept without a costly blur layer per card. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.place-card:hover {
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.place-id,
.save-button,
.photo-badge,
.gallery-count,
.gallery-nav {
  border: 1px solid rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.place-id {
  background: rgba(222, 243, 184, 0.88);
}

.save-button {
  background: rgba(255, 255, 252, 0.82);
}

.save-button.saved {
  background: rgba(215, 238, 173, 0.94);
}

.card-footer {
  border-color: rgba(35, 83, 71, 0.11);
}

.map-pane {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  backdrop-filter: blur(20px) saturate(115%);
}

.map-title {
  background: rgba(21, 72, 62, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.map-caption,
.map-status {
  background: rgba(255, 255, 252, 0.68);
}

.bottom-nav {
  background: rgba(18, 66, 57, 0.88);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 38px rgba(20, 59, 50, 0.2);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
}

dialog {
  background: rgba(255, 255, 252, 0.9);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 90px rgba(24, 58, 49, 0.22);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  backdrop-filter: blur(26px) saturate(120%);
}

dialog::backdrop {
  background: rgba(18, 48, 42, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.facts,
.practical,
.field-label select,
.secondary {
  background: rgba(229, 239, 232, 0.68);
  border-color: rgba(35, 83, 71, 0.12);
}

.detail-actions {
  background: rgba(255, 255, 252, 0.82);
  border-color: rgba(35, 83, 71, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.primary,
.detail-actions .primary {
  color: #173d34;
  background: rgba(215, 238, 173, 0.96);
}

.toast {
  background: rgba(18, 66, 57, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

[data-theme="dark"] {
  --ink: #eef6f1;
  --muted: #b4c7c0;
  --accent: #a8d4bd;
  --accent-soft: rgba(59, 92, 79, 0.62);
  --bg: #10251f;
  --surface: rgba(32, 57, 48, 0.7);
  --line: rgba(230, 246, 237, 0.14);
  --paper: rgba(24, 52, 42, 0.72);
  --glass: rgba(29, 58, 48, 0.68);
  --glass-strong: rgba(35, 69, 57, 0.84);
  --glass-border: rgba(231, 246, 237, 0.13);
  color-scheme: dark;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% 8%, rgba(42, 91, 73, 0.62), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(103, 87, 54, 0.28), transparent 28rem),
    #10251f;
}

[data-theme="dark"] .search-field,
[data-theme="dark"] .category,
[data-theme="dark"] .sort select,
[data-theme="dark"] .place-card,
[data-theme="dark"] .map-pane,
[data-theme="dark"] dialog {
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 48px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .category.active,
[data-theme="dark"] .primary,
[data-theme="dark"] .detail-actions .primary,
[data-theme="dark"] .save-button.saved {
  color: #173d34;
  background: rgba(215, 238, 173, 0.93);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .search-field,
  .category,
  .sort select,
  .place-card,
  .map-pane,
  dialog {
    background: rgba(255, 255, 252, 0.94);
  }
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 5% 5%, rgba(209, 232, 218, 0.9), transparent 22rem),
      linear-gradient(160deg, #eef4f0, #eeeae0);
    background-attachment: scroll;
  }

  .topbar {
    background: rgba(16, 64, 55, 0.9);
  }

  .place-card {
    background: rgba(255, 255, 252, 0.74);
  }

  .bottom-nav {
    background: rgba(18, 66, 57, 0.9);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .desktop-nav,
  .search-field,
  .filter-button,
  .category,
  .sort select,
  .place-card,
  .map-pane,
  .bottom-nav,
  dialog,
  .detail-actions {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .search-field,
  .category,
  .sort select,
  .place-card,
  .map-pane,
  dialog {
    background: #fffefa;
  }
}

/* ===== Pike Media flavor: blue-teal accent over the glass theme ===== */
:root{
  --pk-grad: linear-gradient(135deg, #5ab0ff 0%, #3fd0c9 100%);
  --pk-ink: #06121c;
  --accent: #0e8f9c;
  --accent-soft: rgba(90, 176, 255, 0.16);
}
.primary,
.detail-actions .primary,
.category.active,
.desktop-nav button.active,
[data-theme="dark"] .primary,
[data-theme="dark"] .detail-actions .primary,
[data-theme="dark"] .category.active,
[data-theme="dark"] .desktop-nav button.active{
  background: var(--pk-grad);
  color: var(--pk-ink);
  border-color: transparent;
}
.new-tag{ background: var(--pk-grad); color: var(--pk-ink); }
.star{ color: #0e8f9c; }
.save-button.saved,
.save-button[aria-pressed="true"]{ color: #ff5a6a; background: rgba(255,255,255,.95); }
.bottom-nav button.active{ color: #0e8f9c; }
.topbar{ position: relative; }
.topbar::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background: var(--pk-grad); }

/* ===== Cheerful tropical chrome (replaces murky forest green) + declutter ===== */
.topbar{ background: linear-gradient(135deg,#0b8aa0 0%,#16b39a 100%) !important; }
.filter-button{ background:#0b8aa0 !important; color:#ffffff !important; border-color:rgba(255,255,255,.22) !important; }
.map-title{ background:#0b8aa0 !important; }
.island-note{ background:#0b8aa0 !important; }
.hidden-tag{ background:rgba(11,138,160,.92) !important; }
/* hide decorative coordinates under the "Bali" badge */
.island-note span{ display:none !important; }
/* map pins: Google rating instead of id */
.thumb-pin b{ left:-8px !important; min-width:34px !important; padding:0 5px !important; font-size:11.5px !important; gap:1px; background:#0b8aa0 !important; transform:rotate(0) !important; }
.thumb-pin b i{ font-style:normal; color:#ffd34d; font-size:10px; }
