:root {
  --bg: #f4f1ea;
  --dark: #1b1b1b;
  --accent: #1f6b5c;
  --accent-2: #f9b25a;
  --card: #ffffff;
  --muted: #6b6b6b;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--dark);
  background: #f7efe0;
}

.home-body {
  background: #e7f3ee;
}

.home-body .hero-section {
  background: #e7f3ee;
}

.home-body .hero-gradient {
  display: none;
}

h1,
h2,
h3 {
  font-family: "Spectral", serif;
}

.site-header {
  background: linear-gradient(to right, #1c6858 0%, #257a64 50%, #2f8b71 100%);
  border-bottom: 1px solid #175547;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .navbar-brand,
.site-header .nav-link {
  color: #fff;
}

.site-header .navbar-brand.brand-title,
.site-header .navbar-brand.flag-badge {
  color: #1f6b5c;
}

.site-header .flag-badge {
  color: #1f6b5c;
}

.site-header .nav-link.active,
.site-header .nav-link:hover {
  color: #f9b25a;
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-title {
  font-family: "Spectral", serif;
  letter-spacing: 2px;
  font-weight: 700;
  color: #165448;
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.28rem 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(31, 107, 92, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12),
              0 6px 14px rgba(16, 74, 64, 0.08);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.flag-badge::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: #1f6b5c;
  opacity: 0.35;
  z-index: 0;
  clip-path: polygon(
    0% 8%, 6% 6%, 14% 8%, 22% 6%, 30% 8%, 38% 6%, 46% 8%, 54% 6%, 62% 8%, 70% 6%, 78% 8%, 86% 6%, 94% 8%, 100% 6%,
    100% 94%, 94% 92%, 86% 94%, 78% 92%, 70% 94%, 62% 92%, 54% 94%, 46% 92%, 38% 94%, 30% 92%, 22% 94%, 14% 92%, 6% 94%, 0% 92%
  );
  filter: blur(0.2px);
  pointer-events: none;
}

.flag-badge > * {
  position: relative;
  z-index: 1;
}

.flag-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(31, 107, 92, 0.14) 1.5px, transparent 2px),
    radial-gradient(circle at 32% 68%, rgba(31, 107, 92, 0.12) 1.2px, transparent 2px),
    radial-gradient(circle at 58% 35%, rgba(31, 107, 92, 0.12) 1.4px, transparent 2px),
    radial-gradient(circle at 82% 60%, rgba(31, 107, 92, 0.12) 1.3px, transparent 2px),
    radial-gradient(circle at 48% 12%, rgba(31, 107, 92, 0.1) 1.2px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(31, 107, 92, 0.1) 1.4px, transparent 2px),
    radial-gradient(circle at 20% 80%, rgba(31, 107, 92, 0.12) 1.3px, transparent 2px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.flag-icon {
  width: 34px;
  height: 32px;
  border-radius: 0;
  object-fit: contain;
  border: none;
  background: none;
}


.nav-link {
  color: var(--dark);
  font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
  color: var(--accent);
}

.hero-section {
  position: relative;
  padding: 2.5rem 0 5rem;
  overflow: hidden;
  background: #f7efe0;
}

.hero-slider {
  margin-top: 0;
  transform: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
}

.hero-section h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  margin-bottom: 1rem;
}

.hero-section .lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-left {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.benin-flag {
  width: 200px;
  max-width: 200px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(31, 107, 92, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  margin-top: -56px;
  animation: flag-wave 1.2s ease-in-out infinite;
  transform-origin: left center;
}

.flag-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: #1f6b5c;
  margin: 0;
}

@keyframes flag-wave {
  0% {
    transform: perspective(500px) rotateY(0deg);
  }
  50% {
    transform: perspective(500px) rotateY(8deg);
  }
  100% {
    transform: perspective(500px) rotateY(0deg);
  }
}

.mini-map {
  width: 100%;
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 107, 92, 0.25);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.2rem;
  max-width: 280px;
  position: relative;
  z-index: 1;
}

.map-cta {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  padding: 0.45rem 1rem;
  background: #3a8a79;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 3;
}

.map-cta:hover {
  background: #175547;
  color: #fff;
}

.hero-section {
  z-index: 0;
}

.leaflet-container {
  z-index: 0;
}

.hero-meta {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.geo-help .accordion-button {
  font-family: "Spectral", serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f6b5c;
  background: #f1ede4;
  border-radius: 16px;
}

.geo-help .accordion-button:not(.collapsed) {
  background: #e8f1ec;
  color: #175547;
  box-shadow: inset 0 -1px 0 rgba(31, 107, 92, 0.2);
}

.geo-help .accordion-body {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(31, 107, 92, 0.12);
}

.hero-search .form-control {
  border-radius: 999px 0 0 999px;
  border-color: #d1bfa0;
}

.hero-search .btn-dark {
  border-radius: 0 999px 999px 0;
}

.hero-search .btn-dark {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-search .btn-dark:hover,
.hero-search .btn-dark:focus {
  background: #175547;
  border-color: #175547;
}

.toilet-search {
  display: flex;
  justify-content: flex-end;
}
.toilet-search .input-group {
  width: 500px;
  max-width: 500px;
  margin-left: auto;
}


.hero-search-right {
  width: 100%;
  max-width: 540px;
  margin: 0 0 1rem 0;
}

.hero-search-top {
  margin-top: 0;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.hero-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.hero-location-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.map-cta-inline {
  position: static;
  margin: 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

.map-cta-loop {
  overflow: hidden;
}

.map-cta-icon-pin {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: #3d8bd6;
  transform: rotate(-45deg);
  display: inline-block;
  margin-right: 0.4rem;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.map-cta-icon-pin::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
}

.map-cta-loop .map-cta-text {
  display: inline-block;
  white-space: nowrap;
  animation: cta-slide 6s linear infinite;
}

@keyframes cta-slide {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.map-cta-fade {
  animation: cta-fade 1.6s ease-in-out infinite;
}

@keyframes cta-fade {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero-search-bar .hero-search-right {
  margin-left: auto;
}

.hero-location {
  margin: 0;
}

@media (max-width: 768px) {
  .hero-search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-search-right {
    max-width: 100%;
  }
  .hero-search .input-group {
    width: 100%;
  }
  .map-cta-inline {
    width: 100%;
    justify-content: center;
  }
  body {
    background: #f7efe0;
  }
  .hero-section {
    background: #f7efe0;
  }
  .hero-section::after {
    display: none;
  }
}

.hero-right {
  margin-top: 0;
  display: block;
}

.hero-slider {
  margin-top: 0;
}

@media (min-width: 992px) {
  .hero-slider {
    max-width: 540px;
    margin-left: auto;
  }
}

@media (min-width: 992px) {
  .hero-slider {
    margin-top: -10px;
  }
}

.meta-pill {
  background: #f1ede4;
  color: #4d4330;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

.meta-pill:hover {
  color: #1f6b5c;
  background: #e8d7bf;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.75rem;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

.hero-slider .slider-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 12%;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  filter: invert(1);
}

.hero-card-top {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pill {
  background: #f1ede4;
  color: #4d4330;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.hero-card-body h2 {
  font-size: 1.5rem;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  font-weight: 700;
  font-size: 1.2rem;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-actions .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #175547;
  border-color: #175547;
}

.hero-actions .btn-outline-light {
  color: var(--dark);
  border-color: #d1bfa0;
}

.hero-gradient {
  position: absolute;
  right: -10%;
  top: -30%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(249, 178, 90, 0.4), transparent 70%);
  z-index: -1;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #e7f3ee !important;
}

.section-title {
  margin-bottom: 2rem;
}

.map-placeholder {
  background: #dbe8e3;
  border-radius: 18px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #2f4f46;
}

.feature-list {
  padding-left: 1.2rem;
  color: var(--muted);
}

.toilet-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.toilet-card img {
  height: 180px;
  object-fit: cover;
}

.image-placeholder {
  height: 180px;
  display: grid;
  place-items: center;
  background: #e8d7bf;
  color: #6b5a45;
  font-weight: 600;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.photo-grid.light img {
  height: 140px;
  box-shadow: 0 8px 18px rgba(249, 178, 90, 0.25);
  border: 1px solid rgba(249, 178, 90, 0.35);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(249, 178, 90, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: #f9b25a;
  color: #1b1b1b;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

.toilet-card h3 {
  font-size: 1.2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tags span {
  background: #f1ede4;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.info-panel {
  background: var(--card);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.info-panel ul {
  margin-bottom: 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  gap: 1.2rem;
  background: var(--card);
  padding: 1.5rem;
  border-radius: 16px;
}

.stats-grid strong {
  font-size: 1.5rem;
}

.stats-grid span {
  display: block;
  color: var(--muted);
}

.contact-card {
  background: #1f6b5c;
  color: #fff;
  padding: 2rem;
  border-radius: 18px;
}

.contact-line {
  font-weight: 500;
}

.site-footer {
  padding: 3.5rem 0 2.5rem;
  background: #171717;
  color: #f4efe6;
}

.site-footer a {
  color: #f4efe6;
  text-decoration: none;
}

.footer-brand {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: #cdbf9f;
}

.footer-text {
  color: #d9d3c8;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #f9b25a;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.footer-badges span {
  background: rgba(249, 178, 90, 0.18);
  color: #f9b25a;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(249, 178, 90, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #cfc7b8;
}

.site-footer .dot {
  margin: 0 0.5rem;
}

.admin-body {
  background: var(--bg);
  min-height: 100vh;
}

.admin-login {
  padding: 4rem 0 5rem;
}

.admin-dashboard {
  padding: 3.5rem 0 5rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.admin-sidebar {
  background: #fef6e8;
  border-right: 1px solid #ead8bf;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.brand-mark {
  background: transparent;
  color: inherit;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-brand span {
  display: block;
  font-size: 0.8rem;
  color: #8b7a63;
}

.sidebar-nav {
  display: grid;
  gap: 0.6rem;
}

.sidebar-nav a {
  text-decoration: none;
  color: #3d3324;
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: #e8d7bf;
  color: #1f6b5c;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 0.8rem;
}

.small-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9a8570;
  margin-bottom: 0.2rem;
}

.small-value {
  font-size: 0.9rem;
  color: #3d3324;
}

.admin-content {
  padding: 2.5rem 3rem 3.5rem;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-topbar h1 {
  font-size: 2rem;
  margin-bottom: 0;
}

.topbar-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}

.stat-card,
.chart-card,
.task-card,
.info-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.stat-card {
  grid-column: span 3;
}

.stat-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #7a6751;
}

.stat-pill {
  background: rgba(31, 107, 92, 0.12);
  color: #1f6b5c;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

.stat-card h2 {
  font-size: 1.8rem;
  margin: 0.8rem 0 0.4rem;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.chart-card {
  grid-column: span 4;
}

.chart-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bar-chart {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.4rem;
  align-items: end;
}

.bar-chart span {
  background: linear-gradient(180deg, #1f6b5c, #7cb39d);
  border-radius: 8px 8px 4px 4px;
}

.donut {
  display: grid;
  place-items: center;
  position: relative;
  height: 170px;
}

.donut-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(#1f6b5c 0 76%, #ead8bf 76% 100%);
}

.donut-center {
  position: absolute;
  background: #fff;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: #7a6751;
}

.donut-center strong {
  font-size: 1.1rem;
  color: #1f6b5c;
}

.task-card {
  grid-column: span 5;
}

.task-card ul {
  padding-left: 1.1rem;
  margin: 1rem 0;
  color: var(--muted);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.info-card {
  grid-column: span 3;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: #7a6751;
}

.info-row strong {
  color: #1f6b5c;
}

.signalements-card {
  padding: 2rem;
}

.messages-card {
  padding: 2rem;
}

.signalement-thumb {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(31, 107, 92, 0.25);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.signalements-table thead th {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a6751;
}

.messages-table thead th {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a6751;
}

.signalement-row {
  border-bottom: 1px solid #efe6d8;
  position: relative;
}

.signalement-id {
  font-weight: 600;
  color: #1f6b5c;
}

.signalement-toilette {
  color: #3d3324;
  font-weight: 500;
}

.signalement-toilette span {
  color: #9a8570;
  font-weight: 400;
  margin-left: 0.4rem;
}

.action-cell {
  min-width: 190px;
}

.signalement-row td {
  padding-bottom: 52px;
}

.message-preview {
  color: #4d4330;
  font-size: 0.92rem;
}

.message-detail-row td {
  padding-top: 0;
}

.message-detail {
  background: #f1ede4;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #3e3628;
  border: 1px solid rgba(31, 107, 92, 0.15);
}

.message-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7a6751;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.message-reply {
  margin-top: 0.8rem;
  background: #fff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(31, 107, 92, 0.12);
}

.message-reply-text {
  color: #2f261a;
}

.reply-form textarea {
  border-radius: 12px;
}

.messages-list {
  display: grid;
  gap: 0.9rem;
}

.message-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(31, 107, 92, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.message-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  background: #f6f1e7;
  border-bottom: 1px solid rgba(31, 107, 92, 0.12);
}

.message-summary::-webkit-details-marker {
  display: none;
}

.message-name {
  font-weight: 600;
  color: #1f6b5c;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #7a6751;
}

.summary-archive {
  margin: 0;
}

.summary-archive .btn {
  padding: 0.2rem 0.6rem;
}

.message-body {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.message-attachment img.message-image {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(31, 107, 92, 0.2);
  cursor: pointer;
}

.actions-wrap {
  position: absolute;
  right: 16px;
  bottom: 12px;
}

.status-badge {
  background: #e8d7bf;
  color: #5a4a36;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .stat-card {
    grid-column: span 6;
  }
  .chart-card {
    grid-column: span 6;
  }
  .task-card {
    grid-column: span 12;
  }
  .info-card {
    grid-column: span 12;
  }
}

@media (max-width: 991px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .sidebar-nav {
    grid-auto-flow: column;
    overflow-x: auto;
    grid-template-columns: repeat(6, max-content);
  }
  .admin-content {
    padding: 2rem 1.5rem 3rem;
  }
  .stat-card,
  .chart-card {
    grid-column: span 12;
  }
}

.dashboard-hero {
  background: #fef6e8;
  border-radius: 26px;
  padding: 2rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #ead8bf;
}

.dashboard-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.dashboard-subtitle {
  color: var(--muted);
  margin-bottom: 0;
}

.admin-badge {
  background: #f1ede4;
  color: #4d4330;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-user {
  color: #5b4d3a;
  font-size: 0.9rem;
}

.stat-card h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.stat-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-icon {
  font-size: 1.3rem;
  background: rgba(31, 107, 92, 0.12);
  color: #1f6b5c;
  padding: 0.35rem 0.6rem;
  border-radius: 12px;
}

.task-chip {
  background: rgba(249, 178, 90, 0.2);
  color: #a55c08;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9a8570;
}

.info-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.admin-card {
  background: var(--card);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

.admin-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.admin-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.admin-card .form-control {
  border-radius: 12px;
  border-color: #d1bfa0;
  background: #fef6e8;
  color: var(--dark);
}

.admin-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(31, 107, 92, 0.2);
  background: #fff6e2;
}

.admin-card .btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.admin-card .btn-primary:hover,
.admin-card .btn-primary:focus,
.admin-card .btn-primary:active {
  background: #175547 !important;
  border-color: #175547 !important;
}

.admin-card .form-label {
  color: #3d3324;
  font-weight: 500;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .hero-card-footer {
    flex-direction: column;
  }
}
