/* --- Premium Design System for Deniz Nasıl? --- */

:root {
  --primary: #0e8388;
  --primary-light: #e6f4f4;
  --text: #073b4c;
  --text-muted: #688b97;
  --bg-page: #fcfbf9;
  --bg-card: #ffffff;
  --line: #edf1ee;
  
  /* Status Colors */
  --green: #2ec4b6;
  --green-light: #e7faf8;
  --orange: #ff9f1c;
  --orange-light: #fff5e7;
  --red: #e71d36;
  --red-light: #ffebee;
  
  --shadow-sm: 0 2px 8px rgba(7, 59, 76, 0.05);
  --shadow-md: 0 6px 18px rgba(7, 59, 76, 0.08);
  --shadow-lg: 0 12px 32px rgba(7, 59, 76, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & General */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background-color: #f3f2ee; /* Deskton centering background */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* Mobile Container Wrapper (Centered on Desktop) */
body > * {
  width: 100%;
  max-width: 480px;
}

body {
  /* Center the app content */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Main App Wrapper */
.app-header, 
.search-section, 
.app-main, 
.bottom-navigation,
dialog,
.toast,
.detail-backdrop,
.beach-detail {
  max-width: 480px;
  width: 100%;
}

/* Page Background */
.app-main {
  background-color: var(--bg-page);
  min-height: calc(100vh - 180px);
  padding-bottom: 90px; /* Space for bottom nav */
  flex: 1;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* App Header Styling */
.app-header {
  background-color: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand-logo img, .header-logo-img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.brand-text .brand-navy {
  color: #0f2c59;
}

.brand-text .brand-teal {
  color: #0284c7;
}

.brand-text p {
  font-size: 11px;
  color: #0284c7;
  font-weight: 600;
  letter-spacing: -0.1px;
  margin-top: 2px;
}

[data-theme="dark"] .brand-text .brand-navy {
  color: #f8fafc !important;
}

[data-theme="dark"] .brand-text p {
  color: #38bdf8 !important;
}

.bell-button {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: var(--transition);
}

.bell-button:active {
  transform: scale(0.95);
  background-color: var(--bg-page);
}

.bell-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  background-color: var(--red);
  border-radius: 50%;
}

/* Search Section */
.search-section {
  background-color: var(--bg-card);
  padding: 12px 20px 16px;
  position: relative;
  z-index: 1999;
}

.search-bar-wrapper {
  display: flex;
  align-items: center;
  background-color: #f7f6f2;
  border-radius: 30px;
  padding: 4px 6px 4px 16px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.search-bar-wrapper:focus-within {
  background-color: var(--bg-card);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.search-bar-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
}

.search-bar-wrapper input::placeholder {
  color: var(--text-muted);
}

.location-target-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.location-target-btn:active {
  transform: scale(0.9);
}

/* Search Dropdown styling */
.search-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 20px;
  right: 20px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 101;
  border: 1px solid var(--line);
}

.search-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover, .search-item:active {
  background-color: var(--primary-light);
}

.search-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.search-item-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-item-state {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Tab Switching Content styling */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Map Preview Card */
.map-preview-card {
  margin: 16px 20px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.mini-map-container {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.mini-map-overlay-click {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: pointer;
}

.map-overlay-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background-color: var(--bg-card);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.map-overlay-btn:active {
  transform: scale(0.95);
  background-color: #f7f6f2;
}

/* Featured Beach Section */
.featured-section {
  padding: 0 20px 24px;
}

.featured-card {
  background-color: var(--bg-card);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  overflow: hidden;
}

.featured-img-wrapper {
  height: 200px;
  position: relative;
  background-color: #f0ede6;
}

.featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge-score {
  position: absolute;
  top: 14px;
  left: 14px;
  height: auto;
  width: auto;
  max-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.featured-badge-time {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background-color: rgba(15, 23, 42, 0.85);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.featured-body {
  padding: 20px;
}

.featured-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.featured-title-row h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.bookmark-btn {
  color: var(--text-muted);
  transition: var(--transition);
}

.bookmark-btn.active {
  color: var(--primary);
}

.bookmark-btn:active {
  transform: scale(0.85);
}

.featured-loc-row {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
}

.featured-report-pill {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  margin-top: 14px;
}

/* Featured Details Grid (8 Cells) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.grid-cell {
  background-color: #faf9f6;
  border-radius: 8px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.grid-cell svg {
  color: var(--primary);
  margin-bottom: 4px;
}

.cell-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
}

.cell-val {
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

/* Custom value styling classes */
.cell-val.val-green { color: var(--green); }
.cell-val.val-orange { color: var(--orange); }
.cell-val.val-red { color: var(--red); }
.cell-val.val-muted { color: var(--text-muted); }

.detail-btn {
  margin-top: 20px;
  width: 100%;
  background-color: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 30px;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-btn:active {
  transform: translateY(1px);
  background-color: #0b696d;
}

/* Nearby section heading and scroll container */
.nearby-section-header {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nearby-section-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.see-all-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.nearby-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 20px 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.nearby-scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbars for slick mobile app styling */
}

/* Nearby Card Styling */
.nearby-card {
  flex: 0 0 160px;
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.nearby-card:active {
  transform: scale(0.98);
}

/* All Beaches Screen Styling */
.all-beaches-filter-bar {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.all-beaches-filter-bar input,
.all-beaches-filter-bar select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: var(--bg-card);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  box-sizing: border-box;
}

.all-beaches-filter-row {
  display: flex;
  gap: 10px;
}

.all-beaches-filter-row select {
  flex: 1;
}

.all-beaches-grid {
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.all-beach-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.all-beach-card:active {
  transform: scale(0.98);
}

.all-beach-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background-color: var(--bg-body);
}

.all-beach-info {
  flex: 1;
  min-width: 0;
}

.all-beach-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.all-beach-loc {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.all-beach-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.all-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background-color: var(--bg-body);
  color: var(--text);
}

.all-badge.blue-flag {
  background-color: #e3f2fd;
  color: #1976d2;
}

.all-beach-score-badge {
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Premium Vector Star & Score Pill Styling */
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.score-pill .score-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.score-star-icon {
  flex-shrink: 0;
  display: inline-block;
}

/* High-Contrast Vibrant Gradient Badges */
.badge-great {
  background: linear-gradient(135deg, #059669, #0d9488) !important;
  color: #ffffff !important;
  border: none !important;
}

.badge-great .score-star-icon {
  color: #ffffff;
}

.badge-moderate {
  background: linear-gradient(135deg, #d97706, #ea580c) !important;
  color: #ffffff !important;
  border: none !important;
}

.badge-moderate .score-star-icon {
  color: #ffffff;
}

.badge-poor {
  background: linear-gradient(135deg, #e11d48, #c026d3) !important;
  color: #ffffff !important;
  border: none !important;
}

.badge-poor .score-star-icon {
  color: #ffffff;
}

/* Report Freshness Indicators */
.freshness-live {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.freshness-old {
  background-color: var(--bg-body) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--line);
}

.nearby-meta-freshness {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nearby-meta-freshness.freshness-live {
  color: #059669 !important;
  background-color: transparent !important;
  border: none !important;
}

.nearby-meta-freshness.freshness-old {
  color: var(--text-muted) !important;
  background-color: transparent !important;
  border: none !important;
}

/* Report Snippet on Beach Cards */
.all-beach-report-snippet {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text);
  background-color: var(--bg-body);
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}

.all-beach-report-snippet.muted {
  color: var(--text-muted);
  background-color: transparent;
  padding: 4px 0 0;
  font-size: 10px;
}

.all-beach-report-snippet .report-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
  flex: none;
}

.all-beach-report-snippet .report-user {
  font-weight: 700;
  color: var(--primary);
  flex: none;
}

.all-beach-report-snippet .report-text {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.all-beach-report-snippet .report-time {
  color: var(--text-muted);
  font-size: 10px;
  flex: none;
}

.nearby-img-wrapper {
  height: 96px;
  position: relative;
  background-color: #f0ede6;
}

.nearby-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nearby-score-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  max-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nearby-body {
  padding: 10px;
}

.nearby-body h4 {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-meta-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}

.nearby-meta-detail {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* CTA Banner style */
.cta-banner {
  margin: 0 20px 24px;
  background-color: var(--primary-light);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-illustration {
  color: var(--primary);
  flex: none;
}

.cta-content {
  flex: 1;
}

.cta-content h3 {
  font-size: 14px;
  font-weight: 700;
}

.cta-content p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cta-btn {
  background-color: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
}

/* TAB 2: Full Map View */
.map-view-container {
  height: calc(100vh - 180px);
  position: relative;
}

#beachMap {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-legend-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--bg-card);
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 600;
  z-index: 99;
  border: 1px solid var(--line);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.legend-dot.calm-dot { background-color: var(--green); margin-left: 0; }
.legend-dot.wave-dot { background-color: var(--orange); margin-left: 6px; }
.legend-dot.wind-dot { background-color: var(--red); margin-left: 6px; }

/* Custom Leaflet Map Pin styling */
.map-pin {
  width: 32px;
  height: 32px;
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-pin span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: white;
  transform: rotate(45deg);
}

.map-pin.calm { background-color: var(--green); }
.map-pin.wave { background-color: var(--orange); }
.map-pin.wind { background-color: var(--red); }

/* TAB 3: Favorites Grid */
.tab-header-padded {
  padding: 24px 20px 12px;
}

.tab-header-padded h2 {
  font-size: 20px;
  font-weight: 700;
}

.tab-header-padded p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.favorites-grid {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* TAB 4: More Options Styling */
.more-options-list {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.more-option-card {
  background-color: var(--bg-card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.more-option-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.more-option-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Slide-out / Bottom sheet details panel styling */
.beach-detail {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  background: var(--bg-page);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 15000; /* Higher than headers/nav to stack on top */
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex !important;
  flex-direction: column;
}

.beach-detail.show {
  right: 0;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 59, 76, 0.45);
  z-index: 14999; /* Higher than headers/nav */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.detail-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Detail Drawer Styling */
.detail-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.detail-header-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.detail-header-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

.detail-close {
  width: 36px;
  height: 36px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.detail-close:active {
  transform: scale(0.9);
  background-color: #d1eded;
}

.detail-fav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.detail-fav-btn.active {
  background-color: #ffebee;
  border-color: #ffcdd2;
  color: var(--red);
}

.detail-scroll {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 4px 20px;
}

.detail-gallery::-webkit-scrollbar {
  display: none;
}

.detail-gallery img {
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 200px;
  box-shadow: var(--shadow-sm);
}

.detail-status-banner {
  background-color: var(--bg-card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Feature grid items on details panel */
.detail-grid-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.reports-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-item-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.report-item-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(14, 131, 136, 0.12);
}

.user-details-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-name-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.user-verified-badge {
  font-size: 10px;
  font-weight: 600;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 3px;
}

.report-item-time {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #f8fafc;
  padding: 4px 8px;
  border-radius: 12px;
}

/* 2-Column Clean Structured Metrics Grid */
.report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.report-metric-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.report-metric-tile .metric-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.report-metric-tile .metric-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}

.report-metric-tile .metric-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.report-metric-tile .metric-value {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* User Note Speech/Quote Bubble */
.report-note-bubble {
  background-color: #f8fafc;
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}

.report-note-bubble p {
  margin: 0;
}

/* Standardized Green / Orange / Red Color Badges */
.tag-green, .val-green {
  background-color: #e8f5e9 !important;
  color: #2e7d32 !important;
  border-color: #a5d6a7 !important;
}

.tag-orange, .val-orange {
  background-color: #fff3e0 !important;
  color: #e65100 !important;
  border-color: #ffcc80 !important;
}

.tag-red, .val-red {
  background-color: #ffebee !important;
  color: #c62828 !important;
  border-color: #ef9a9a !important;
}

.tag-muted, .val-muted {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
}

.report-item-note {
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 8px;
  color: var(--text);
}

.report-item-image {
  width: 100%;
  max-height: 160px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--line);
}

.report-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-item-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.report-item-tag {
  background-color: #faf9f6;
  font-size: 9.5px;
  padding: 4px 8px;
  border-radius: 20px;
  color: var(--text-muted);
  border: 1px solid var(--line);
}

/* Inline Report Sub-panel */
.inline-report-section {
  background-color: var(--bg-card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.inline-report-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.inline-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.inline-form-grid label {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inline-form-grid input, .inline-form-grid textarea {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.inline-form-grid textarea {
  height: 50px;
  resize: none;
}

.inline-submit-btn {
  background-color: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-radius: 20px;
  margin-top: 6px;
}

/* Bottom Navigation Bar styling */
.bottom-navigation {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 72px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 998;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  width: 60px;
  transition: var(--transition);
}

.nav-item svg {
  color: var(--text-muted);
}

.nav-item.active, .nav-item.active svg {
  color: var(--primary);
}

.nav-item:active {
  transform: translateY(-2px);
}

/* Floating Action Button (FAB) */
.floating-fab-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  bottom: 12px;
  z-index: 1000;
  width: 72px;
}

.nav-fab-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(14, 131, 136, 0.4);
  transition: var(--transition);
}

.nav-fab-button:active {
  transform: scale(0.9);
}

.floating-fab-container span {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
}

/* Dialog Form Modal (Redesigned as Native Full-Screen Sheet) */
dialog#reportDialog, dialog#registerDialog {
  border: none;
  background-color: var(--bg-page);
  max-width: 480px;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0 auto;
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}

dialog#reportDialog form, dialog#registerDialog form {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

dialog#reportDialog[open], dialog#registerDialog[open] {
  display: flex;
}

dialog#reportDialog::backdrop, dialog#registerDialog::backdrop {
  background: rgba(7, 59, 76, 0.4);
  backdrop-filter: blur(2px);
}

.dialog-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  flex: none;
}

.dialog-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.dialog-back-btn, .dialog-help-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text);
  display: grid;
  place-items: center;
  transition: var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
}

/* Notifications Dialog */
.notifications-dialog {
  border: none;
  border-radius: 24px;
  background-color: var(--bg-page);
  width: 90%;
  max-width: 440px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  margin: auto;
  overflow: hidden;
  padding: 0;
}

.notifications-dialog::backdrop {
  background-color: rgba(7, 59, 76, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.notifications-body {
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background-color: var(--bg-card);
}

.notifications-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(14, 131, 136, 0.15);
  margin-bottom: 4px;
}

.notifications-empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.notifications-empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 320px;
}

.notif-cta-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 131, 136, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.notif-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 131, 136, 0.35);
}

.notif-cta-btn:active {
  transform: scale(0.96);
}

.dialog-back-btn:active, .dialog-help-btn:active {
  background-color: var(--bg-page);
  transform: scale(0.95);
}

.dialog-body {
  padding: 20px 20px 80px 20px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: var(--bg-page);
}

.dialog-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 10px;
}

/* Beach Header Card inside Form */
.report-beach-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.report-beach-card-left {
  display: flex;
  align-items: center;
}

.report-beach-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f0ede6;
}

.report-beach-info {
  margin-left: 12px;
}

.report-beach-info h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 !important;
}

.report-beach-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.change-beach-btn {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.change-beach-btn:active {
  transform: scale(0.95);
  background-color: var(--bg-page);
}

/* Direct Beach Select Dropdown Box */
.report-beach-select-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.report-beach-select-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 131, 136, 0.15);
}

.report-beach-select-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.select-dropdown-styled {
  position: relative;
  width: 100%;
}

.select-dropdown-styled select {
  width: 100%;
  padding: 12px 38px 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.select-dropdown-styled select:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

.select-dropdown-styled .select-arrow-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.change-beach-select {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text);
  background-color: var(--bg-card);
  margin-top: 8px;
  width: 100%;
}

/* Info Banner in Form */
.report-info-banner {
  background-color: var(--primary-light);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.info-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--primary);
  flex: 1;
}

.info-banner-text h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.info-banner-text p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.info-banner-right {
  color: var(--primary);
  opacity: 0.65;
  flex: none;
}

/* Reporter Input */
.form-label-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.form-label-name input {
  border: 1px solid var(--line);
  background-color: var(--bg-card);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}

/* Observation rows */
.observation-rows-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.observation-form-row {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(14, 131, 136, 0.02);
}

.row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.row-label svg {
  color: var(--primary);
}

/* Buttons choices groups */
.choice-group {
  display: flex;
  gap: 6px;
}

.choice-group.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.choice-btn {
  flex: 1;
  border: 1px solid var(--line);
  background-color: var(--bg-card);
  border-radius: 20px; /* Rounded pill style */
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.choice-btn:hover {
  border-color: #cbdcd8;
  background-color: #faf9f6;
}

.choice-btn .check-icon {
  display: none;
  flex: none;
}

/* Themed select states */
.choice-btn.selected .check-icon {
  display: inline-block;
}

.choice-btn.choice-green.selected {
  background-color: #e8f5e9;
  border-color: #81c784;
  color: #2e7d32;
}

.choice-btn.choice-blue.selected {
  background-color: #e3f2fd;
  border-color: #64b5f6;
  color: #1565c0;
}

.choice-btn.choice-orange.selected {
  background-color: #fff3e0;
  border-color: #ffb74d;
  color: #e65100;
}

.choice-btn.choice-red.selected {
  background-color: #ffebee;
  border-color: #e57373;
  color: #c62828;
}

/* Section titles in form */
.form-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.form-section-title svg {
  color: var(--primary);
}

/* Photo upload area */
.photo-upload-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.dashed-upload-box {
  width: 100%;
  border: 2px dashed var(--line);
  background-color: var(--bg-card);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.dashed-upload-box:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.dashed-upload-box:active {
  transform: scale(0.98);
}

.dashed-upload-box span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.dashed-upload-box p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.upload-preview-wrapper {
  width: 100%;
}

/* SEO FAQ & Knowledge Box in Beach Detail */
.detail-seo-faq {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.detail-seo-faq h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  transition: var(--transition);
}

.faq-accordion-item:hover {
  border-color: var(--primary);
}

.faq-accordion-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.faq-accordion-header svg {
  color: var(--primary);
  flex: none;
}

.faq-accordion-content {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.remove-preview-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(7, 59, 76, 0.85);
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  z-index: 2;
}

/* Short Note input */
.note-input-container {
  position: relative;
  width: 100%;
}

.note-input-container input {
  width: 100%;
  border: 1px solid var(--line);
  background-color: var(--bg-card);
  padding: 14px 48px 14px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  transition: var(--transition);
}

.note-input-container input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.note-input-container .char-counter {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Submit Report Button styling */
.submit-report-btn {
  width: 100%;
  background-color: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 6px;
  box-shadow: 0 4px 16px rgba(14, 131, 136, 0.35);
  transition: var(--transition);
  flex: none;
}

.submit-report-btn:active {
  transform: scale(0.98);
  background-color: #0b696d;
}

.form-footer-time {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  flex: none;
}

/* Toast Messages */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translate(-50%, 20px);
  background-color: var(--text);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  z-index: 1005;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  text-align: center;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Helpers */
.calm-text { color: var(--green) !important; background-color: var(--green-light) !important; }
.wave-text { color: var(--orange) !important; background-color: var(--orange-light) !important; }
.wind-text { color: var(--red) !important; background-color: var(--red-light) !important; }

/* Full Screen Image Lightbox Modal */
.image-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.image-lightbox-modal.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  z-index: 1000000;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.lightbox-container {
  max-width: 94vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
  transition: transform 0.25s ease;
}

.lightbox-caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  max-width: 600px;
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: none;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 20px;
}

.lightbox-nav-btn.next {
  right: 20px;
}

.lightbox-counter {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Multi-photo Grid in Comments & Reports */
.report-item-images-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-top: 8px;
  scroll-behavior: smooth;
}

.report-item-images-grid img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  flex: none;
  transition: transform 0.2s ease;
}

.report-item-images-grid img:hover {
  transform: scale(1.04);
}

/* Multi-photo Upload Preview Grid */
.upload-multi-preview-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.upload-preview-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex: none;
  background-color: var(--bg-card);
}

.upload-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-preview-thumb .remove-thumb-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.15s ease, background-color 0.15s ease;
  padding: 0;
  z-index: 5;
}

.upload-preview-thumb .remove-thumb-btn:hover {
  background: #e63946;
  transform: scale(1.15);
}

.upload-preview-thumb .remove-thumb-btn:active {
  transform: scale(0.9);
}

.upload-add-more-btn {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  border: 2px dashed var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  flex: none;
}

.upload-add-more-btn:hover {
  transform: scale(1.04);
  background: #ffffff;
  border-color: #0b696d;
}

.upload-add-more-btn:active {
  transform: scale(0.96);
}

/* Floating Map Location Button */
.map-locate-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.map-locate-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.map-locate-btn:active {
  transform: scale(0.96);
}

/* User Location Pulse Marker Pin on Leaflet Map */
.custom-user-pin {
  background: transparent;
  border: none;
}

.user-location-pin {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-location-dot {
  width: 14px;
  height: 14px;
  background-color: #0284c7;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.6);
  z-index: 2;
}

.user-location-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  background-color: rgba(2, 132, 199, 0.38);
  border-radius: 50%;
  animation: userLocationPulseAnim 2s infinite ease-out;
  z-index: 1;
}

@keyframes userLocationPulseAnim {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
