* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: #2b221b;
  color: #2c1e14;
  overflow: hidden;
}

#app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #38281d;
  color: #f4ede2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  border-bottom: 2px solid #8c7355;
}

.header-title h1 {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.header-title span {
  font-size: 0.8rem;
  color: #cbb49d;
  font-style: italic;
}

.header-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-filters select,
.header-filters input {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #8c7355;
  background: #fdfaf3;
  color: #2c1e14;
  font-family: inherit;
  font-size: 0.85rem;
}

#map {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #d8d0c5;
}

/* =========================================
   STYLE DE LA POPUPBOX SUR-MESURE
   ========================================= */

.leaflet-popup-content-wrapper {
  background: #fdfaf3;
  border: 2px solid #8c7355;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-content {
  margin: 0;
  line-height: 1.4;
  width: 300px !important;
}

.noble-popup-card {
  display: flex;
  flex-direction: column;
}

.noble-popup-banner {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center top;
  position: relative;
  border-bottom: 2px solid #8c7355;
  background-color: #5c4738;
}

.noble-popup-crest {
  position: absolute;
  bottom: -20px;
  right: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fdfaf3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  background: #fff;
  object-fit: contain;
}

.noble-popup-body {
  padding: 16px 16px 14px 16px;
}

.noble-popup-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #8c7355;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.noble-popup-title {
  font-size: 17px;
  font-weight: bold;
  color: #2b1f16;
  margin-bottom: 4px;
}

.noble-popup-meta {
  font-size: 12px;
  color: #6a5746;
  margin-bottom: 8px;
  font-style: italic;
}

.noble-popup-divider {
  border: 0;
  height: 1px;
  background: #e2d5c3;
  margin: 10px 0;
}

.noble-popup-bio {
  font-size: 13px;
  color: #3d3226;
  line-height: 1.5;
  text-align: justify;
}

/* Punaise personnalisée */
.custom-pin {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: #8c2d19;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -20px 0 0 -20px;
  border: 2px solid #fdfaf3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.custom-pin::after {
  content: '';
  width: 10px;
  height: 10px;
  margin: 5px 0 0 5px;
  background: #fdfaf3;
  position: absolute;
  border-radius: 50%;
}
