/* STYLESHEET CHO TRANG CHI TIẾT HỒ CÂU (SINGLE-LAKE.PHP) */
:root {
  --primary-yellow: #f7c223;
  --primary-yellow-dark: #e5b119;
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-red: #ef4444;
  --accent-blue: #0288d1;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-gray: #334155;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --radius-card: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.single-lake-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  height: auto;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* TOP NAVIGATION */
.lake-nav {
  background: var(--text-dark);
  color: #ffffff;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.lake-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lake-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  font-size: 1.4rem;
}

.brand-text {
  color: var(--primary-yellow);
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link-btn:hover {
  background: var(--primary-yellow);
  color: var(--text-dark);
}

/* MAIN CONTENT LAYOUT */
.lake-page-main {
  padding: 24px 16px 48px;
  min-height: calc(100vh - 140px);
}

.lake-content-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* BREADCRUMBS */
.lake-breadcrumbs {
  margin-bottom: 20px;
}

.lake-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lake-breadcrumbs a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.lake-breadcrumbs a:hover {
  text-decoration: underline;
}

.crumb-separator {
  color: #94a3b8;
}

.current-crumb {
  color: var(--text-dark);
  font-weight: 600;
}

/* HERO HEADER CARD */
.lake-hero-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.hero-header-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-allowed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-restricted {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.gps-badge {
  background: #f1f5f9;
  color: var(--text-gray);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: monospace;
}

.lake-main-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 10px;
}

.lake-address-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 24px;
}

.lake-address-line svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-red);
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary {
  background: var(--primary-yellow);
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(247, 194, 35, 0.3);
}

.cta-primary:hover {
  background: var(--primary-yellow-dark);
  transform: translateY(-1px);
}

.cta-secondary {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.cta-secondary:hover {
  background: #059669;
  transform: translateY(-1px);
}

.cta-outline {
  background: #f8fafc;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.cta-outline:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* GRID LAYOUT: 2 COLUMNS */
.lake-grid-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .lake-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* BENTO STATS GRID */
.bento-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .bento-stats-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.icon-emerald { background: #ecfdf5; }
.icon-blue { background: #e0f2fe; }
.icon-amber { background: #fffbeb; }
.icon-purple { background: #f3e8ff; }

.bento-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bento-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.bento-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ARTICLE / CONTENT CARD */
.lake-detail-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.lake-media-box {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  background: #1e293b;
}

.lake-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lake-article-body {
  padding: 28px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.section-icon {
  font-size: 1.2rem;
}

.lake-text-content {
  color: var(--text-gray);
  font-size: 0.98rem;
  line-height: 1.7;
}

.empty-desc {
  color: var(--text-muted);
  font-style: italic;
}

/* WEATHER CARD */
.lake-weather-card {
  background: linear-gradient(135deg, #0288d1 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.lake-weather-card .section-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.weather-loading-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 0.92rem;
  opacity: 0.9;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.weather-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 576px) {
  .weather-display-grid {
    grid-template-columns: 1fr;
  }
}

.weather-main-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.weather-temp-icon {
  font-size: 2.8rem;
}

.weather-temp-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.weather-status-text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 4px;
}

.weather-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.weather-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.w-label { opacity: 0.85; }
.w-val { font-weight: 700; }

/* RIGHT COLUMN: MAP & NEARBY */
.lake-map-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

#single-lake-map {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
  z-index: 1;
}

.map-external-links {
  display: flex;
  gap: 10px;
}

.map-link-btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  background: #f1f5f9;
  color: var(--text-gray);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.map-link-btn:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

/* NEARBY LAKES CARD */
.nearby-lakes-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

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

.nearby-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nearby-item-card:hover {
  transform: translateX(4px);
  border-color: var(--primary-yellow-dark);
  background: #ffffff;
}

.nearby-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.nearby-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-ok { color: var(--accent-emerald-dark); }
.status-no { color: var(--accent-red); }

.nearby-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.nearby-item-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.nearby-item-title a:hover {
  color: var(--accent-blue);
}

.nearby-item-address {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
}

.nearby-item-card:hover .nearby-arrow-btn {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow);
}

/* FOOTER */
.lake-footer {
  background: var(--text-dark);
  color: #94a3b8;
  padding: 32px 24px;
  text-align: center;
  font-size: 0.88rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-sub {
  margin-top: 8px;
}

.footer-sub a {
  color: var(--primary-yellow);
  text-decoration: none;
}

.footer-sub a:hover {
  text-decoration: underline;
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.3s ease forwards;
}

@keyframes toast-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hidden { display: none !important; }
