html, body { height: 100%; margin: 0; }
#map { height: 100vh; width: 100vw; background: #f4f4f4; }

/* Modal PDF */
.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 5000; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-card {
  position: relative;
  width: min(1000px, 92vw);
  height: min(700px, 88vh);
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid #e6e6e6;
}
.modal-title { font-weight: 600;font-family: Arial, Helvetica, sans-serif; }
.modal-frame { flex: 1; width: 100%; border: 0; }

/* Botón */
.btn { padding: 6px 10px; border: 1px solid #ccc; background: #fff; border-radius: 8px; }

/* Menú contextual */
.ctx.hidden { display: none; }
.ctx {
  position: fixed;
  z-index: 6000;
  min-width: 220px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  overflow: hidden;
}
.ctx .item {
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  font-family: Arial, Helvetica, sans-serif;
}
.ctx .item:hover { background: #f3f3f3; }
.ctx .item.is-unavailable {
  cursor: help;
  color: #8a8f98;
  background: #f8f8f8;
}
.ctx .item.is-unavailable:hover { background: #f0f2f5; }
.ctx .item.is-passive {
  cursor: default;
  color: #8a8f98;
}
.ctx .item.is-passive:hover { background: #fff; }
.ctx .title { padding: 10px 12px; font-weight: 700; border-bottom: 1px solid #eee;font-family: Arial, Helvetica, sans-serif; }

.notice-dialog.hidden { display: none; }
.notice-dialog {
  position: fixed;
  inset: 0;
  z-index: 7000;
}
.notice-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}
.notice-dialog-card {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  margin: 12vh auto 0;
  padding: 24px 24px 20px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}
.notice-dialog-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #e8f0fb;
  color: #004a98;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.notice-dialog-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}
.notice-dialog-message {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.45;
  color: #475569;
}
.notice-dialog-btn {
  margin-top: 18px;
  padding: 8px 18px;
  border-color: #004a98;
  background: #004a98;
  color: #ffffff;
}
