/* Gemanafushi.com — Site Styles & iPhone Safari Helpers (Phase 4) */

html,
body {
  margin: 0;
  overflow-x: hidden;
}

.glass-nav {
  background: rgba(5, 42, 48, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-overlay {
  background: linear-gradient(
    115deg,
    rgba(4, 34, 39, 0.84) 0%,
    rgba(6, 57, 64, 0.56) 48%,
    rgba(4, 34, 39, 0.78) 100%
  );
}

.hero-glass-card {
  background: rgba(6, 48, 55, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -12px rgba(6, 57, 64, 0.18);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-min-h {
  min-height: 90vh;
  min-height: 90svh;
}

.photo-credit-badge,
.credit-pill {
  background: rgba(6, 42, 48, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* iPhone Safari safe-area & input auto-zoom prevention */
input,
select,
textarea {
  font-size: 16px !important;
}

input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}

.safe-pb {
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
}

.safe-pt {
  padding-top: max(1rem, env(safe-area-inset-top, 1rem));
}

.tap-target,
.gema-tap-44 {
  min-height: 44px;
}

.tap-target {
  min-width: 44px;
}

/* Modal & Drawer Subtle Transitions */
@keyframes gemaFadeScale {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-animate {
  animation: gemaFadeScale 0.18s ease-out;
}

/* Utility Strip & Journey Planner Styles */
.utility-strip {
  background: linear-gradient(90deg, rgba(4, 34, 39, 0.98) 0%, rgba(6, 57, 64, 0.98) 100%);
}

.planner-route-card {
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.planner-route-card.is-selected {
  background: rgba(14, 165, 164, 0.18);
  border-color: #7ee8e5;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.45);
}

/* Subtle highlight pulse when Journey Planner pre-fills Haveeree Inn calculator */
@keyframes gemaHandoffPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(126, 232, 229, 0.75);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(126, 232, 229, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(126, 232, 229, 0);
  }
}

.handoff-highlight {
  animation: gemaHandoffPulse 1.3s ease-out 2;
  outline: 2px solid #7ee8e5;
  outline-offset: 2px;
}

/* Phase 4 — Latest Feed Strip, Dual Badges, Social Wall & Tier B Helpers */
.latest-strip-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 82%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .latest-strip-scroll {
    grid-auto-columns: minmax(280px, 46%);
  }
}

@media (min-width: 1024px) {
  .latest-strip-scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

.dual-credit-pill {
  background: rgba(6, 42, 48, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(126, 232, 229, 0.35);
}

.appreciate-btn.is-appreciated {
  background-color: #063940;
  color: #7ee8e5;
  border-color: #0ea5a4;
}

.social-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.tierb-trust-banner {
  background: linear-gradient(135deg, rgba(14, 165, 164, 0.12) 0%, rgba(6, 57, 64, 0.08) 100%);
  border: 1px solid rgba(14, 165, 164, 0.35);
}

/* Phase 5B — Live Marine Conditions Widget */
.gema-marine-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(14, 165, 164, 0.14) 100%);
  border: 1px solid rgba(126, 232, 229, 0.28);
}

.gema-marine-metric {
  background: rgba(4, 34, 39, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
