/* ============================================================
   08 — GOOGLE MAPS
   Konsep: undangan sebagai peta. Peta ilustrasi SVG, pin tempat,
   pencarian, rute animasi, dan bottom sheet ala Google Maps.
   ============================================================ */
:root {
  --gm-blue: #1a73e8;
  --gm-blue-deep: #0b57d0;
  --gm-green: #188038;
  --gm-red: #d93025;
  --gm-yellow: #f9ab00;
  --gm-text: #202124;
  --gm-muted: #5f6368;
  --gm-line: #dadce0;
  --gm-soft: #f8f9fa;
  --gm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gm-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.gm-body {
  font-family: var(--gm-font);
  color: var(--gm-text);
  background: #e9ebe4;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.gm-app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  --sheet-h: 34%;
  --sheet-h-expanded: 82%;
}
.gm-app.is-expanded { --sheet-h: var(--sheet-h-expanded); }

/* ---------- MAP ---------- */
.gm-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e9ebe4;
}
.gm-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.72) 0, rgba(255, 255, 255, 0) 150px),
    radial-gradient(120% 80% at 50% 100%, rgba(32, 33, 36, 0.08), transparent 55%);
}
.gm-map__canvas {
  position: absolute;
  inset: -1px;
  transform: scale(1);
  transform-origin: 50% 46%;
  transition: transform 0.6s var(--gm-ease);
  will-change: transform;
}
.gm-map__base {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.96);
}

/* Pins */
.gm-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%);
  z-index: 6;
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gm-text);
  transition: transform 0.25s var(--gm-ease), opacity 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.gm-pin__bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pin, var(--gm-red));
  border: 2.5px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  position: relative;
  transition: transform 0.25s var(--gm-ease), box-shadow 0.25s;
}
.gm-pin__bubble::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--pin, var(--gm-red));
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 2px 0;
}
.gm-pin__bubble svg { width: 19px; height: 19px; fill: #fff; }
.gm-pin__label {
  margin-top: 6px;
  background: #fff;
  color: #3c4043;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.gm-pin:hover, .gm-pin:focus-visible { transform: translate(-50%, -100%) scale(1.08); }
.gm-pin:hover .gm-pin__bubble, .gm-pin:focus-visible .gm-pin__bubble {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}
.gm-pin.is-active { transform: translate(-50%, -100%) scale(1.12); z-index: 8; }
.gm-pin.is-active .gm-pin__label { background: #202124; color: #fff; }
.gm-pin[hidden] { display: none; }
.gm-pin[data-cat="akad"] { --pin: #ea4335; }
.gm-pin[data-cat="resepsi"] { --pin: #1a73e8; }
.gm-pin[data-cat="cerita"] { --pin: #f9ab00; }
.gm-pin[data-cat="galeri"] { --pin: #a142f4; }
.gm-pin[data-cat="rsvp"] { --pin: #188038; }

.gm-you {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 0;
  display: grid;
  place-items: center;
}
.gm-you__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.2);
  animation: gmPulse 2.6s ease-out infinite;
}
.gm-you__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1a73e8;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.5);
  position: relative;
}
@keyframes gmPulse {
  0% { transform: scale(0.45); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Route */
.gm-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.gm-route.is-visible { opacity: 1; }
.gm-route__car {
  position: absolute;
  z-index: 7;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--gm-blue);
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gm-route__car.is-visible { opacity: 1; }
.gm-route__car svg { width: 14px; height: 14px; fill: #fff; }

/* ---------- TOP BAR ---------- */
.gm-top {
  position: absolute;
  z-index: 20;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gm-search {
  flex: 1;
  min-width: 0;
  height: 48px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.3);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.gm-search:focus-within { box-shadow: 0 3px 14px rgba(26, 115, 232, 0.35); }
.gm-search__icon svg { width: 20px; height: 20px; fill: #5f6368; display: block; }
.gm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--gm-text);
}
.gm-search input::placeholder { color: #80868b; }
.gm-search input::-webkit-search-cancel-button { display: none; }
.gm-search__clear {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.gm-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.3);
  background: #fff;
}
.gm-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CHIPS ---------- */
.gm-chips {
  position: absolute;
  z-index: 19;
  top: calc(max(14px, env(safe-area-inset-top)) + 58px);
  left: 14px;
  right: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 14px 6px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gm-chips::-webkit-scrollbar { display: none; }
.gm-chips button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(218, 220, 224, 0.9);
  border-radius: 16px;
  background: #fff;
  color: #3c4043;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.18);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gm-chips button.is-active {
  background: #e8f0fe;
  color: #1967d2;
  border-color: transparent;
}

/* ---------- CONTROLS ---------- */
.gm-zoom {
  position: absolute;
  z-index: 18;
  right: 14px;
  top: 48%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gm-zoom button {
  width: 40px;
  height: 40px;
  border: 0;
  border-bottom: 1px solid #e8eaed;
  background: #fff;
  color: #5f6368;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.gm-zoom button:last-child { border-bottom: 0; }
.gm-zoom button:hover { background: #f1f3f4; }
.gm-zoom svg { width: 17px; height: 17px; fill: #5f6368; }
.gm-locate {
  position: absolute;
  z-index: 18;
  right: 14px;
  bottom: calc(var(--sheet-h) + 16px);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.3);
  display: grid;
  place-items: center;
  color: #5f6368;
  transition: bottom 0.45s var(--gm-ease), background 0.2s;
}
.gm-locate:hover { background: #f1f3f4; }
.gm-locate svg { width: 21px; height: 21px; fill: currentColor; }

/* ---------- ROUTE BAR ---------- */
.gm-routebar {
  position: absolute;
  z-index: 35;
  left: 12px;
  right: 12px;
  bottom: calc(var(--sheet-h) + 12px);
  min-height: 60px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(60, 64, 67, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  transition: bottom 0.45s var(--gm-ease), opacity 0.3s;
  animation: gmBarIn 0.35s var(--gm-ease);
}
@keyframes gmBarIn { from { opacity: 0; transform: translateY(10px); } }
.gm-routebar[hidden] { display: none; }
.gm-routebar__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f0fe;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.gm-routebar__icon svg { width: 18px; height: 18px; fill: var(--gm-blue); }
.gm-routebar__text { flex: 1; min-width: 0; }
.gm-routebar__text strong { display: block; font-size: 12.5px; font-weight: 500; }
.gm-routebar__text em { font-style: normal; font-size: 11px; color: var(--gm-muted); }
.gm-routebar__start {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  background: var(--gm-blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.gm-routebar__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 16px;
  line-height: 1;
}

/* ---------- BOTTOM SHEET ---------- */
.gm-sheet {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sheet-h);
  min-height: 168px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 26px rgba(32, 33, 36, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.48s var(--gm-ease);
}
.gm-sheet__head {
  flex: 0 0 auto;
  padding: 7px 14px 9px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  gap: 10px;
  touch-action: none;
  position: relative;
  cursor: grab;
}
.gm-sheet__grab {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #dadce0;
}
.gm-sheet__titles { flex: 1; min-width: 0; padding-top: 5px; }
.gm-sheet__titles h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gm-sheet__titles p {
  font-size: 10.5px;
  color: var(--gm-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gm-sheet__toggle {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  color: #5f6368;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--gm-ease), background 0.2s;
}
.gm-sheet__toggle:hover { background: #e8eaed; }
.gm-sheet__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gm-app.is-expanded .gm-sheet__toggle { transform: rotate(180deg); }
.gm-sheet__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 16px calc(26px + env(safe-area-inset-bottom));
  scrollbar-width: thin;
  scrollbar-color: #dadce0 transparent;
}
.gm-panel { display: none; }
.gm-panel.is-active { display: block; animation: gmPanel 0.32s var(--gm-ease); }
@keyframes gmPanel { from { opacity: 0; transform: translateY(6px); } }

/* ---------- SHARED PIECES ---------- */
.gm-intro { padding: 2px 0 4px; }
.gm-chip-static {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f0fe;
  color: #1967d2;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 4px;
}
.gm-intro p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--gm-muted);
  margin-top: 7px;
}
.gm-intro b { color: var(--gm-text); font-weight: 500; }

/* Couple favorites */
.gm-fav {
  display: flex;
  gap: 12px;
  padding: 11px;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  margin-top: 10px;
  background: #fff;
}
.gm-fav__photo {
  flex: 0 0 auto;
  width: 86px;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f3f4;
}
.gm-fav__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.gm-fav__body { min-width: 0; }
.gm-fav__role {
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gm-muted);
}
.gm-fav h3 { font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; margin: 1px 0 3px; }
.gm-fav__parents { font-size: 9.5px; line-height: 1.45; color: var(--gm-muted); }
.gm-fav__bio { font-size: 11px; line-height: 1.5; margin-top: 5px; }
.gm-fav__ig {
  display: inline-block;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--gm-blue);
  text-decoration: none;
}
.gm-fav__ig:hover { text-decoration: underline; }

/* Countdown */
.gm-countdown {
  margin-top: 12px;
  border-radius: 14px;
  padding: 13px 14px;
  color: #fff;
  background:
    radial-gradient(100% 150% at 100% 0%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(135deg, #1a73e8, #0b57d0);
  box-shadow: 0 10px 24px -16px rgba(26, 115, 232, 0.8);
}
.gm-countdown__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 7px;
}
.gm-countdown__live { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; }
.gm-countdown__live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #81c995;
  box-shadow: 0 0 6px #81c995;
}
.gm-countdown__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gm-countdown__row span { display: flex; flex-direction: column; line-height: 1.05; }
.gm-countdown__row b { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gm-countdown__row em { font-style: normal; font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.66; }

/* Quick links */
.gm-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.gm-quick button {
  height: 40px;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: var(--gm-soft);
  color: #3c4043;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.gm-quick button:hover { background: #f1f3f4; border-color: #dadce0; }
.gm-quick button span { color: var(--gm-blue); font-size: 14px; }

/* Closing */
.gm-closing {
  margin-top: 14px;
  border: 1px solid #e8eaed;
  background: var(--gm-soft);
  border-radius: 14px;
  padding: 18px 16px 14px;
  text-align: center;
}
.gm-closing__hash {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--gm-blue);
  margin-bottom: 8px;
}
.gm-closing blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12.5px;
  line-height: 1.6;
  font-style: italic;
  color: #3c4043;
  padding: 0 4px;
}
.gm-closing__msg { font-size: 10.5px; line-height: 1.6; color: var(--gm-muted); margin-top: 10px; }
.gm-closing__thanks { font-size: 10.5px; color: var(--gm-muted); margin-top: 6px; }
.gm-closing__back {
  display: inline-block;
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gm-muted);
  text-decoration: none;
}
.gm-closing__back:hover { color: var(--gm-blue); }

/* Place cards */
.gm-place { padding-top: 4px; }
.gm-place__photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 156px;
  background: #f1f3f4;
}
.gm-place__photo img { width: 100%; height: 100%; object-fit: cover; }
.gm-place__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #3c4043;
  font-size: 9.5px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.gm-place__body { padding: 11px 2px 0; }
.gm-place__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gm-place__top h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.gm-rating { font-size: 10.5px; color: #3c4043; white-space: nowrap; }
.gm-rating { color: #f9ab00; }
.gm-place__cat { font-size: 11.5px; color: var(--gm-muted); margin-top: 1px; }
.gm-place__open { font-size: 11.5px; color: var(--gm-green); margin-top: 5px; }
.gm-place__addr { font-size: 12.5px; line-height: 1.5; margin-top: 5px; }
.gm-place__actions { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0 9px; }
.gm-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--gm-line);
  border-radius: 17px;
  background: #fff;
  color: #3c4043;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.gm-btn:hover { background: #f8f9fa; border-color: #c7cacd; }
.gm-btn--primary { background: var(--gm-blue); border-color: var(--gm-blue); color: #fff; }
.gm-btn--primary:hover { background: var(--gm-blue-deep); border-color: var(--gm-blue-deep); }
.gm-btn--quiet { border-color: transparent; color: var(--gm-blue); background: transparent; padding: 0 8px; }
.gm-btn--quiet:hover { background: #e8f0fe; }
.gm-btn--full { width: 100%; height: 42px; border-radius: 21px; margin-top: 4px; }
.gm-place__note {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gm-muted);
  padding-top: 8px;
  border-top: 1px solid #f1f3f4;
}
.gm-place__review {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.55;
  font-style: italic;
  color: var(--gm-muted);
  background: var(--gm-soft);
  border-radius: 8px;
  padding: 9px 10px;
}
.gm-photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.gm-photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.gm-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #fef7e0;
  border: 1px solid #feefc3;
  color: #6b5200;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 10px;
  padding: 10px 11px;
  margin-top: 10px;
}
.gm-tip span { flex: 0 0 auto; }

/* Story timeline */
.gm-timeline { position: relative; padding: 4px 0 0 18px; margin-top: 4px; }
.gm-timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #1a73e8, #a142f4, #f9ab00);
  border-radius: 2px;
  opacity: 0.45;
}
.gm-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 10px;
  padding-bottom: 16px;
}
.gm-timeline li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gm-blue);
}
.gm-timeline__date {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gm-blue);
}
.gm-timeline h3 { font-size: 13.5px; font-weight: 500; margin: 2px 0 3px; }
.gm-timeline p { font-size: 11px; line-height: 1.55; color: var(--gm-muted); }
.gm-timeline img { width: 54px; height: 54px; object-fit: cover; border-radius: 7px; }

/* Gallery */
.gm-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 8px; }
.gm-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 5px; background: #f1f3f4; }
.gm-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--gm-ease), filter 0.3s; }
.gm-gallery a:hover img { transform: scale(1.06); filter: brightness(0.86); }
.gm-gallery__hint { font-size: 10.5px; color: var(--gm-muted); text-align: center; margin-top: 12px; }

/* Form */
.gm-form { margin-top: 10px; }
.gm-field { display: block; margin-bottom: 11px; }
.gm-field > span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gm-muted);
  margin-bottom: 4px;
}
.gm-field input, .gm-field select, .gm-field textarea {
  width: 100%;
  border: 1px solid var(--gm-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
  color: var(--gm-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gm-field input:focus, .gm-field select:focus, .gm-field textarea:focus {
  outline: none;
  border-color: var(--gm-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.16);
}
.gm-form__note { font-size: 10px; line-height: 1.5; color: var(--gm-muted); text-align: center; margin-top: 8px; }

/* Results */
.gm-results { margin-top: 6px; }
.gm-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid #f1f3f4;
  background: none;
  text-align: left;
  transition: background 0.2s;
}
.gm-result:hover { background: #f8f9fa; }
.gm-result__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  flex: 0 0 auto;
}
.gm-result__icon[data-cat="akad"] { background: #ea4335; }
.gm-result__icon[data-cat="resepsi"] { background: #1a73e8; }
.gm-result__icon[data-cat="cerita"] { background: #f9ab00; }
.gm-result__icon[data-cat="galeri"] { background: #a142f4; }
.gm-result__icon[data-cat="rsvp"] { background: #188038; }
.gm-result__body { flex: 1; min-width: 0; }
.gm-result__body strong { display: block; font-size: 12.5px; font-weight: 500; }
.gm-result__body em { font-style: normal; font-size: 10.5px; color: var(--gm-muted); }
.gm-result__go { color: #9aa0a6; font-size: 15px; }
.gm-results__empty { font-size: 12px; line-height: 1.55; color: var(--gm-muted); padding: 18px 0; text-align: center; }

/* ---------- TOAST ---------- */
.gm-toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(var(--sheet-h) + 18px);
  transform: translateX(-50%);
  background: #323232;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  max-width: calc(100vw - 40px);
  text-align: center;
  animation: gmToast 0.25s var(--gm-ease);
  transition: bottom 0.45s var(--gm-ease);
}
.gm-toast[hidden] { display: none; }
@keyframes gmToast { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- GATE ---------- */
.gm-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  transition: opacity 0.55s ease, visibility 0.55s;
}
.gm-gate.is-closed { opacity: 0; visibility: hidden; pointer-events: none; }
.gm-gate__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 20%, rgba(232, 240, 254, 0.25), transparent 65%),
    rgba(32, 33, 36, 0.42);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  backdrop-filter: blur(7px) saturate(1.1);
}
.gm-gate__card {
  position: relative;
  width: min(432px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 24px 22px 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  animation: gmGateIn 0.6s var(--gm-ease);
}
@keyframes gmGateIn { from { opacity: 0; transform: translateY(22px) scale(0.98); } }
.gm-gate__logo { display: flex; align-items: center; gap: 8px; }
.gm-gate__pin {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ea4335;
  box-shadow: 0 4px 10px -3px rgba(234, 67, 53, 0.6);
}
.gm-gate__pin svg { width: 20px; height: 20px; fill: #fff; }
.gm-gate__logo > span:last-child {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.gm-gate__logo em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa0a6;
}
.gm-gate__eyebrow {
  margin-top: 20px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gm-blue);
  font-weight: 500;
}
.gm-gate__title {
  margin-top: 5px;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.gm-gate__title em { font-style: normal; color: var(--gm-blue); }
.gm-gate__guest { margin-top: 11px; font-size: 12px; color: var(--gm-muted); }
.gm-gate__guest b { color: var(--gm-text); font-weight: 500; }
.gm-gate__search {
  margin-top: 17px;
  height: 48px;
  border: 1px solid var(--gm-line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gm-gate__search:focus-within {
  border-color: var(--gm-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}
.gm-gate__search > span svg { width: 19px; height: 19px; fill: #5f6368; display: block; }
.gm-gate__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 13.5px;
  background: none;
}
.gm-gate__search input::-webkit-search-cancel-button { display: none; }
.gm-gate__search button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: #e8f0fe;
  color: #1967d2;
  font-size: 12px;
  font-weight: 500;
}
.gm-gate__error { color: var(--gm-red); font-size: 10.5px; margin-top: 7px; }
.gm-gate__recent { margin-top: 16px; }
.gm-gate__recent > span {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa0a6;
  margin-bottom: 3px;
}
.gm-gate__recent button {
  width: 100%;
  height: 37px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #f1f3f4;
  background: none;
  color: #3c4043;
  font-size: 12.5px;
  text-align: left;
  transition: background 0.2s;
}
.gm-gate__recent button:hover { background: #f8f9fa; }
.gm-gate__recent i {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #f1f3f4;
  color: var(--gm-blue);
  font-style: normal;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.gm-gate__start {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 23px;
  background: var(--gm-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin-top: 15px;
  box-shadow: 0 10px 24px -12px rgba(26, 115, 232, 0.8);
  transition: background 0.2s, transform 0.2s;
}
.gm-gate__start:hover { background: var(--gm-blue-deep); transform: translateY(-1px); }
.gm-gate__meta { font-size: 10px; color: var(--gm-muted); text-align: center; margin-top: 10px; }
.gm-gate__back {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa0a6;
  text-decoration: none;
}
.gm-gate__back:hover { color: var(--gm-blue); }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 900px) {
  .gm-app::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 438px;
    background: #f6f8fc;
    border-right: 1px solid #e0e3e7;
    z-index: 0;
  }
  .gm-map { left: 438px; }
  .gm-top {
    left: 18px;
    right: auto;
    width: 420px;
    top: 18px;
  }
  .gm-chips {
    left: 18px;
    right: auto;
    width: 420px;
    top: 76px;
    flex-wrap: wrap;
    overflow: visible;
    padding-right: 0;
  }
  .gm-sheet {
    left: 18px;
    right: auto;
    top: 126px;
    bottom: 18px;
    width: 420px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px -12px rgba(32, 33, 36, 0.35);
  }
  .gm-sheet__grab { display: none; }
  .gm-sheet__titles { padding-top: 0; }
  .gm-sheet__head { padding: 12px 16px; }
  .gm-sheet__toggle { display: none; }
  .gm-sheet__body { padding: 14px 18px 24px; }
  .gm-zoom { right: 20px; }
  .gm-locate { right: 20px; bottom: 20px; }
  .gm-routebar { left: 458px; right: 20px; bottom: 20px; }
  .gm-toast { left: calc(50% + 220px); bottom: 20px; }
  .gm-gate { place-items: center; }
  .gm-gate__card { padding: 28px 26px 20px; }
  .gm-fav__photo { width: 96px; height: 116px; }
}
@media (max-width: 380px) {
  .gm-top { left: 10px; right: 10px; gap: 7px; }
  .gm-chips { left: 10px; }
  .gm-sheet__body { padding-left: 12px; padding-right: 12px; }
  .gm-fav__photo { width: 76px; height: 98px; }
  .gm-gate { padding: 12px; }
  .gm-gate__card { padding: 20px 17px 15px; }
  .gm-gate__recent button { height: 34px; }
}
@media (max-height: 640px) {
  .gm-sheet { min-height: 150px; }
  .gm-gate { place-items: start center; padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .gm-you__pulse { animation: none !important; opacity: 0.5; }
  .gm-map__canvas, .gm-sheet, .gm-routebar, .gm-locate, .gm-toast { transition-duration: 0.01ms !important; }
  .gm-gate__card, .gm-panel.is-active, .gm-routebar { animation: none !important; }
}
