/* ═══════════════════════════════════════════════════════════
   FishingStay Index — "Ocean Premium" Page Styles
   Page-specific only; global.css handles design tokens & base
   ═══════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero-section {
  background: linear-gradient(160deg,
    #020817 0%,
    #051428 20%,
    #0a1f3d 45%,
    #0c3460 75%,
    #0c4a6e 100%);
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

/* Animated radial orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  animation: orb-drift 14s ease-in-out infinite;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  top: -160px; left: -120px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  top: 40px; right: -80px;
  animation-delay: -5s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: 60px; left: 40%;
  animation-delay: -9s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.08); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero eyebrow pill */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-full);
  color: var(--brand-300);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 8px var(--accent-400);
  animation: fs-pulse-ring 2s ease-out infinite;
  flex-shrink: 0;
}

/* ── STATS BAR ── */
.stats-bar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 2rem auto 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: 0.875rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  animation: fs-countUp 0.6s var(--ease-out) both;
}

.stat-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.live-user-badge {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  width: fit-content;
  max-width: calc(100vw - 2rem);
  margin: 0.95rem auto 0;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.22);
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.69rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.live-user-pulse {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 0 10px rgba(16, 185, 129, 0.62);
  flex-shrink: 0;
}

.live-user-badge[data-live-state="syncing"] .live-user-pulse {
  background: var(--warm-400);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12), 0 0 10px rgba(251, 191, 36, 0.5);
}

.live-user-badge[data-live-state="stale"] .live-user-pulse {
  background: var(--slate-400);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.live-user-badge strong {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.live-user-label {
  color: rgba(226, 232, 240, 0.68);
}

.live-user-sync {
  margin-left: 0.16rem;
  padding-left: 0.44rem;
  border-left: 1px solid rgba(226, 232, 240, 0.16);
  color: rgba(125, 211, 252, 0.92);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
}

.live-user-badge[data-live-state="syncing"] .live-user-sync {
  color: rgba(253, 224, 71, 0.92);
}

.live-user-badge[data-live-state="stale"] .live-user-sync {
  color: rgba(203, 213, 225, 0.72);
}

@media (max-width: 480px) {
  .stats-bar { padding: 0.75rem 0.75rem; gap: 0; }
  .stat-item { padding: 0 0.75rem; }
  .stat-value { font-size: 1.25rem; }
  .live-user-badge {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.72rem;
    font-size: 0.64rem;
  }
}

@media (max-width: 360px) {
  .stats-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  .stat-item { padding: 0.25rem 0.75rem; }
  .stat-divider { display: none; }
}

/* ── SEARCH BAR ── */
.search-container {
  max-width: 600px;
  margin: 1.75rem auto 0;
  padding: 0 1.25rem;
}

.search-form { width: 100%; }

.search-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-2xl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255,255,255,0.15);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease;
}
.search-inner:focus-within {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32), 0 0 0 2px rgba(14, 165, 233, 0.5);
  transform: translateY(-1px);
}

.search-icon {
  position: absolute;
  left: 1.125rem;
  color: var(--brand-500);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 1rem 1rem 1rem 2.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: 'Noto Sans KR', system-ui, sans-serif;
}
.search-input::placeholder { color: var(--text-muted); font-weight: 400; }

.search-btn {
  flex-shrink: 0;
  margin: 0.375rem;
  padding: 0.625rem 1.375rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}
.search-btn:hover {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.55);
  transform: translateY(-1px);
}
.search-btn:active { transform: scale(0.97); }

/* ── QUICK PILLS (hero) ── */
.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  text-decoration: none;
}
.quick-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.quick-pill.active {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(14, 165, 233, 0.45);
  color: var(--brand-200);
}

/* ── FILTER BAR ── */
.filter-bar-wrap {
  max-width: 80rem;
  margin: -1.5rem auto 0;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .filter-bar-wrap { padding: 0 1.5rem; }
}

.filter-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.875rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Region scroll row */
.region-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.region-row::-webkit-scrollbar { display: none; }

.region-chip-grid {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.region-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.region-chip-mobile {
  display: none;
}

/* Small chip variant */
.fs-chip-sm {
  padding: 0.3125rem 0.75rem;
  font-size: 0.6875rem;
}

/* ── VIEW TOGGLE ── */
.view-toggle {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  white-space: nowrap;
}
.view-btn-active {
  background: var(--brand-500);
  color: #fff;
}
.view-btn-inactive {
  background: #fff;
  color: var(--text-muted);
}
.view-btn-inactive:hover {
  background: var(--slate-50);
  color: var(--text-secondary);
}

/* ── NAV ── */
.nav-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration-fast) ease;
}
.nav-logo-icon:hover { background: rgba(14, 165, 233, 0.28); }

.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.active { color: #fff; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}
.mobile-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.section-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ── TRENDING CARD ── */
.trending-card {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) ease;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}
.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── SPOT CARD overrides ── */
.spot-card {
  text-decoration: none;
  display: block;
}

/* ── FOOTER SOCIAL ── */
.footer-social-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}
.footer-social-btn:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
  color: var(--brand-300);
}

.map-control-row {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.65rem;
  z-index: 10;
}

.map-locate-btn,
.map-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.map-locate-btn:active,
.map-reset-btn:active {
  transform: scale(0.98);
}

/* ── LOAD MORE BUTTON (override for cleaner look) ── */
#loadMoreWrap button {
  min-width: 200px;
}

/* ── LOGIN ERROR icon align ── */
#loginError { align-items: flex-start; }
#loginError span { flex: 1; }

/* ── Gradient text utility (page level) ── */
.gradient-brand {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}

/* ── Map view ── */
#mapView { z-index: 0; }

#mapSpotDetailPanel {
  z-index: 2147483647 !important;
  isolation: isolate;
}

body.map-detail-open {
  overflow: hidden;
}

body.map-detail-open #map {
  pointer-events: none;
}

body.map-detail-open #map .nmap_zoomcontrol,
body.map-detail-open #map .nmap_zoom_control,
body.map-detail-open #map .nmap_scalecontrol,
body.map-detail-open #map .nmap_scale_control,
body.map-detail-open #map .nmap_copyright,
body.map-detail-open #map .nmap_logo,
body.map-detail-open #map [class*="zoom"],
body.map-detail-open #map [class*="scale"],
body.map-detail-open #map [class*="copyright"],
body.map-detail-open #map [class*="logo"],
body.map-detail-open #map a[href*="naver"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── MOBILE HOMEPAGE REFINEMENT ── */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 0.15rem !important;
  }

  .hero-content-shell {
    width: 100%;
    padding-top: 1rem !important;
    padding-bottom: 0.65rem !important;
  }

  .wave-divider svg {
    height: 36px;
  }

  .hero-pill {
    padding: 0.3rem 0.78rem;
    font-size: 0.68rem;
  }

  .hero-content-shell h1 {
    font-size: 1.95rem;
    line-height: 1.04;
    margin-top: 0.75rem;
    margin-bottom: 0.65rem;
  }

  .hero-desc {
    max-width: 21rem;
    font-size: 0.84rem;
    line-height: 1.55;
    padding: 0 0.25rem;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 22.5rem;
    gap: 0.35rem;
    padding: 0.45rem;
    margin-top: 0.85rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 0.5rem 0.16rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
  }

  .stat-value {
    font-size: 1.24rem;
  }

  .stat-label {
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    min-height: auto;
    line-height: 1.1;
    font-size: 0.56rem;
    gap: 0.18rem;
    margin-top: 0.28rem;
  }

  .search-container {
    width: 100%;
    max-width: none;
    margin-top: 0.85rem;
    padding: 0;
  }

  .search-inner {
    width: 100%;
    min-width: 0;
    border-radius: 1.05rem;
  }

  .search-input {
    min-width: 0;
    font-size: 0.84rem;
    padding: 0.74rem 0.35rem 0.74rem 2.55rem;
  }

  .search-icon {
    left: 0.95rem;
    font-size: 0.92rem;
  }

  .search-btn {
    min-width: 2.65rem;
    padding: 0.58rem 0.78rem;
    margin: 0.25rem;
    border-radius: 0.82rem;
  }

  .filter-bar-wrap {
    width: 100%;
    margin-top: -0.65rem;
    padding: 0 0.85rem;
  }

  .filter-card {
    padding: 0.72rem;
    gap: 0.62rem;
    border-radius: 1.15rem;
  }

  .filter-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .filter-categories {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.42rem;
  }

  .filter-categories .fs-chip {
    min-height: 2.25rem;
    padding: 0.46rem 0.82rem;
  }

  .filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    width: 100%;
    gap: 0.48rem;
    align-items: stretch;
  }

  #sortSelect {
    width: 100%;
    min-width: 0;
    min-height: 2.35rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.78rem;
  }

  .view-toggle {
    width: 100%;
  }

  .view-toggle-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 0.58rem 0.58rem;
    gap: 0.36rem;
  }

  .view-toggle-text {
    display: inline !important;
  }

  .region-row {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .region-label {
    margin-right: 0;
  }

  .region-chip-grid {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
  }

  .region-chip-desktop {
    display: none;
  }

  .region-chip-mobile {
    display: inline;
  }

  .region-chip-grid .fs-chip-sm {
    flex: 0 0 auto;
    width: auto;
    min-width: 2.65rem;
    min-height: 2.1rem;
    padding: 0.34rem 0.62rem;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    font-size: 0.66rem;
    border-radius: 0.82rem;
  }

  #spotsGrid {
    gap: 0.75rem;
  }

  .spot-card {
    border-radius: 1rem;
    min-width: 0;
  }

  .spot-card-media {
    aspect-ratio: 1 / 1;
  }

  .spot-card-media img,
  .spot-card-media > div {
    transform: none !important;
  }

  .spot-card-badges {
    top: 0.5rem;
    left: 0.5rem;
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .spot-card-badges .fs-badge {
    padding: 0.22rem 0.45rem;
    font-size: 0.62rem;
    line-height: 1;
  }

  .spot-card-body {
    padding: 0.7rem;
  }

  .spot-card-title {
    font-size: 0.82rem;
    line-height: 1.28;
  }

  .spot-card-location {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .spot-card-footer {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    gap: 0.35rem;
  }

  .spot-card-footer .text-sm {
    font-size: 0.78rem;
  }

  .spot-card-footer .text-xs {
    font-size: 0.64rem;
  }

  .spot-card-cta {
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .footer-grid {
    gap: 1.75rem;
    margin-bottom: 2rem;
  }

  .footer-brand {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer-column {
    padding-top: 0.15rem;
  }

  .footer-social-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .fs-footer .max-w-7xl {
    padding-top: 2.75rem;
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .hero-content-shell h1 {
    font-size: 1.78rem;
  }

  .hero-desc {
    font-size: 0.78rem;
  }

  .stats-bar {
    gap: 0.28rem;
    padding: 0.38rem;
  }

  .stat-value {
    font-size: 1.12rem;
  }

  .stat-label {
    font-size: 0.52rem;
  }

  .filter-categories .fs-chip {
    padding-left: 0.66rem;
    padding-right: 0.5rem;
  }

  .map-control-row {
    top: 0.8rem;
    left: 0.8rem;
    gap: 0.5rem;
  }

  .map-locate-btn,
  .map-reset-btn {
    padding: 0.66rem 0.85rem;
  }
}
