/* Master Plan page — Bayt Al Maqam theme */
.mp-hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(59, 62, 45, 0.94) 0%, rgba(59, 62, 45, 0.78) 100%),
    url("../../images/Sumou/f%C4%B1rsat.png") center / cover no-repeat;
  min-height: 42vh;
  padding-bottom: 72px;
}
.mp-hero .navbar-wrap { position: relative; z-index: 1000; }
.mp-hero-inner { padding-top: 120px; max-width: 760px; }
.mp-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  font-family: Geist, Arial, sans-serif; font-size: 13px; color: rgba(255,255,255,.9);
}
.mp-chip svg { width: 14px; height: 14px; opacity: .8; }

.mp-section { background: #f5f6f1; padding: 72px 0 40px; color: #3b3e2d; font-family: Geist, Arial, sans-serif; }
.mp-section + .mp-section { padding-top: 32px; }
.mp-section:last-of-type { padding-bottom: 96px; }
.mp-eyebrow { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9da585; }
.mp-h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; color: #3b3e2d; }
.mp-lead { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.65; color: #63655d; }

.mp-overview { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.mp-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mp-highlights li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: #fff; border: 1px solid #e4e6dc; font-size: 15px; color: #3b3e2d;
}
.mp-highlights li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #9da585; }

.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: #e4e6dc; border: 1px solid #e4e6dc; }
.mp-stat { background: #fff; padding: 22px 20px; }
.mp-stat-num { font-size: 30px; letter-spacing: -.03em; color: #3b3e2d; font-variant-numeric: tabular-nums; }
.mp-stat-label { margin-top: 6px; font-size: 13px; color: #63655d; }

/* Map */
.mp-map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.mp-map-wrap { position: relative; border: 1px solid #d9dccf; background: #292b21; overflow: hidden; }
.mp-map { width: 100%; height: min(72vh, 680px); min-height: 440px; background: #292b21; }
.mp-map-wrap:fullscreen { border: 0; }
.mp-map-wrap:fullscreen .mp-map { height: 100vh; }

.mp-search {
  position: absolute; top: 12px; right: 12px; z-index: 800; display: flex; align-items: center; gap: 8px;
  width: min(280px, calc(100% - 80px)); padding: 0 12px; height: 42px;
  background: rgba(41, 43, 33, .9); border: 1px solid rgba(255,255,255,.14); color: #fff;
  backdrop-filter: blur(6px);
}
.mp-search svg { width: 16px; height: 16px; flex: none; opacity: .7; }
.mp-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font: 14px Geist, Arial, sans-serif; }
.mp-search input::placeholder { color: rgba(255,255,255,.6); }
.mp-search-msg { position: absolute; top: 58px; right: 12px; z-index: 800; padding: 8px 12px; background: #3b3e2d; color: #fff; font: 13px Geist, Arial, sans-serif; display: none; }

.mp-tools { position: absolute; top: 12px; left: 12px; z-index: 800; display: flex; flex-direction: column; gap: 8px; }
.mp-btn {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  background: rgba(41, 43, 33, .9); border: 1px solid rgba(255,255,255,.14); color: #fff; padding: 0;
}
.mp-btn:hover { background: #3b3e2d; }
.mp-btn svg { width: 18px; height: 18px; }
.mp-basemap { position: absolute; bottom: 14px; left: 12px; z-index: 800; display: flex; background: rgba(41,43,33,.9); border: 1px solid rgba(255,255,255,.14); }
.mp-basemap button { border: 0; background: transparent; color: rgba(255,255,255,.75); padding: 8px 14px; font: 13px Geist, Arial, sans-serif; cursor: pointer; }
.mp-basemap button.is-active { background: #c3c7b2; color: #292b21; }

.mp-loading { position: absolute; inset: 0; z-index: 900; display: grid; place-items: center; color: #c3c7b2; font: 14px Geist, Arial, sans-serif; background: #292b21; }

/* Leaflet overrides */
.mp-map .leaflet-control-zoom { border: 1px solid rgba(255,255,255,.14) !important; border-radius: 0 !important; margin: 104px 0 0 12px !important; }
.mp-map .leaflet-control-zoom a { background: rgba(41,43,33,.9) !important; color: #fff !important; border-color: rgba(255,255,255,.14) !important; border-radius: 0 !important; width: 38px !important; height: 38px !important; line-height: 38px !important; }
.mp-map .leaflet-control-attribution { font: 10px Geist, Arial, sans-serif; background: rgba(245,246,241,.8); }
.mp-map .leaflet-popup-content-wrapper { border-radius: 0; background: #292b21; color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.mp-map .leaflet-popup-tip { background: #292b21; }
.mp-map .leaflet-popup-content { margin: 16px 18px; font: 13px Geist, Arial, sans-serif; min-width: 210px; }
.mp-map .leaflet-popup-close-button { color: #c3c7b2 !important; }
.mp-pop-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 12px; padding-right: 14px; }
.mp-pop-title i { width: 12px; height: 12px; flex: none; border: 1px solid rgba(255,255,255,.4); }
.mp-pop-row { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.08); }
.mp-pop-row span:first-child { color: #c3c7b2; }
.mp-pop-row span:last-child { font-variant-numeric: tabular-nums; }
.mp-pop-note { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,.55); }
.mp-pop-cta { display: block; margin-top: 12px; padding: 9px 12px; text-align: center; background: #c3c7b2; color: #292b21 !important; text-decoration: none; font-size: 13px; }
.mp-label { background: none; border: 0; box-shadow: none; color: #292b21; font: 600 10px Geist, Arial, sans-serif; text-shadow: 0 0 2px rgba(255,255,255,.9); padding: 0; }
.mp-label::before { display: none; }

/* Legend */
.mp-legend { margin-top: 18px; padding: 20px 22px; background: #fff; border: 1px solid #e4e6dc; }
.mp-legend-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.mp-legend-title { font-size: 14px; color: #3b3e2d; }
.mp-legend-reset { border: 0; background: none; color: #63655d; font: 13px Geist, Arial, sans-serif; text-decoration: underline; cursor: pointer; padding: 0; }
.mp-legend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 18px; }
.mp-legend-item { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border: 0; background: none; text-align: left; cursor: pointer; font: 13px Geist, Arial, sans-serif; color: #3b3e2d; }
.mp-legend-item i { width: 14px; height: 14px; flex: none; border: 1px solid rgba(0,0,0,.12); }
.mp-legend-item em { margin-left: auto; font-style: normal; color: #9da585; font-variant-numeric: tabular-nums; }
.mp-legend-item.is-off { opacity: .35; }
.mp-legend-item.is-static { cursor: default; }

/* Table */
.mp-table-tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 16px; }
.mp-input, .mp-select {
  height: 44px; padding: 0 14px; border: 1px solid #d9dccf; background: #fff; color: #3b3e2d;
  font: 14px Geist, Arial, sans-serif; border-radius: 0; outline: 0;
}
.mp-input { flex: 1 1 220px; }
.mp-select { flex: 0 1 260px; }
.mp-input:focus, .mp-select:focus { border-color: #9da585; }
.mp-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e4e6dc; }
.mp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.mp-table th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #63655d; padding: 14px 16px; border-bottom: 1px solid #e4e6dc; background: #fafbf7; }
.mp-table td, .mp-table th { white-space: nowrap; }
.mp-table td { padding: 12px 16px; border-bottom: 1px solid #eef0e8; font-variant-numeric: tabular-nums; }
.mp-table tr:last-child td { border-bottom: 0; }
.mp-table tr:hover td { background: #fafbf7; }
.mp-type { display: inline-flex; align-items: center; gap: 8px; }
.mp-type i { width: 10px; height: 10px; border: 1px solid rgba(0,0,0,.12); }
.mp-view { border: 1px solid #d9dccf; background: none; padding: 6px 12px; cursor: pointer; font: 13px Geist, Arial, sans-serif; color: #3b3e2d; }
.mp-view:hover { background: #3b3e2d; color: #fff; border-color: #3b3e2d; }
.mp-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: #63655d; }
.mp-pager-btns { display: flex; gap: 8px; }
.mp-pager button { border: 1px solid #d9dccf; background: #fff; padding: 8px 14px; cursor: pointer; font: 13px Geist, Arial, sans-serif; color: #3b3e2d; }
.mp-pager button:disabled { opacity: .4; cursor: default; }
.mp-disclosure { margin-top: 28px; padding: 18px 20px; border-left: 3px solid #9da585; background: #fff; font-size: 13px; line-height: 1.6; color: #63655d; }

@media (max-width: 991px) {
  .mp-overview { grid-template-columns: 1fr; gap: 28px; }
  .mp-legend-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-stats { grid-template-columns: repeat(2, 1fr); }
  .mp-hero-inner { padding-top: 148px; }
}
@media (max-width: 767px) {
  .mp-hero { min-height: 0; padding-bottom: 48px; }
  .mp-hero-inner { padding-top: 132px; }
  .mp-section { padding: 48px 0 28px; }
  .mp-map { height: 70vh; min-height: 420px; }
  .mp-legend-grid { grid-template-columns: 1fr; }
  .mp-search { left: 62px; right: 12px; width: auto; }
}
