/* === Root Variables === */
:root {
  --color-bg: #2c2f33;
  --color-bg-section: #3a3d41;
  --color-text: #f8f9fa;
  --color-border: #555;
  --color-secondary: #a0a0a0;
  --color-secondary-hover: #8c8c8c;
  --color-accent: #007280;
  --font-main: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* === Base Styles === */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: var(--font-main);
}

body.no-scroll {
  overflow: hidden;
}

input, textarea, select {
  font-size: 16px;
}

.text-primary {
  color: var(--color-text) !important;
}

.text-turquoise {
  color: var(--color-accent) !important;
}

/* === Typography Elements === */
.form-label,
.form-control,
.form-text,
.card-subtitle,
.card-text,
.btn,
.alert,
.card-title {
  font-size: 0.85rem;
  font-family: inherit;
}

.card-title {
  font-weight: 700;
  font-size: 1rem;
}

.form-text.small-hint {
  font-size: 0.7rem;
}

/* === Containers === */
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.col {
  scroll-margin-top: 100px;
}

/* === Map Styling === */
#map {
  height: 390px;
  border-radius: 0.5rem;
  border: 1px solid #fff;
}

.leaflet-container,
.leaflet-container .leaflet-control,
.leaflet-popup-content {
  font-family: inherit;
}

#map .leaflet-control-attribution {
  font-size: 9px;
  line-height: 1.2;
  opacity: 0.85;
}

/* === Cards === */
.card-img-top {
  object-fit: cover;
  height: 280px;
  width: 100%;
  display: block;
  cursor: pointer;
}

@media (max-width: 576px) {
  .card-img-top {
    height: 200px;
  }
}

/* === Form Section === */
.form-section {
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* === Buttons === */
.btn-secondary-custom {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.btn-secondary-custom:hover {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
}

/* === Success Message === */
#successMsg {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin-top: 1rem;
}

#successMsg.show {
  opacity: 1;
  pointer-events: auto;
  height: auto;
}

/* === Image Modal === */
#imageModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

#imageModal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* === Image Wrapper & Badge === */
.image-wrapper {
  position: relative;
}

.credit-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.51rem;
  font-family: var(--font-main);
  color: #fff;
  padding: 1px 4px;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
}

/* === Fav Button === */
.fav-toggle-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: none;
  border: none;
  color: #ccc;
}

.fav-toggle-btn i {
  font-size: 1.2rem;
  pointer-events: none;
}

/* === Modal Header === */
.modal-header {
  padding-bottom: 0;
}

.modal-title {
  margin-bottom: 0;
}

/* === Bottom Navigation === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1f2124;
  border-top: 1px solid #444;
  z-index: 1050;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 4px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 7px);
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body.is-webapp .bottom-nav {
    padding-bottom: calc(env(safe-area-inset-bottom) + 22px);
  }
}

.bottom-nav .nav-icon {
  flex-grow: 1;
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 0;
}

.bottom-nav .nav-icon i {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.bottom-nav .nav-icon small {
  font-size: 0.58rem;
  opacity: 0.7;
  line-height: 1;
}

.bottom-nav .nav-icon:focus,
.bottom-nav .nav-icon:focus-visible {
  outline: none;
  box-shadow: none;
}

/* === Lucide SVG Icons === */
.bottom-nav .nav-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  margin-bottom: 6px;
  color: var(--color-accent);
  stroke: currentColor;
  /* Optional: stroke-width: 1.75; */
}

/* === Branding === */
.brand-logo {
  width: 105px;
  height: 28px;
  display: inline-block;
  margin-left: 0.5rem;
}

/* === Easter Egg Message === */
#easterEggMessage {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-bg-section);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  z-index: 9999;
  font-size: 0.85rem;
  font-family: var(--font-main);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* === Card Hover Highlight === */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 3;
}
