.nmf-wrap {
	--nmf-bg: #0d1b2a;
	--nmf-card: #16283d;
	--nmf-border: #26405c;
	--nmf-text: #eef3f8;
	--nmf-text-muted: #9fb1c4;
	--nmf-gold: #e0b23a;
	--nmf-gold-text: #2a2005;
	--nmf-oficial: #3fae5c;
	--nmf-presupuesto: #d69a2d;
	--nmf-orientativa: #6b7c8f;

	background: var(--nmf-bg);
	color: var(--nmf-text);
	padding: 20px;
	border-radius: 14px;
	font-family: Arial, Helvetica, sans-serif;
	max-width: 100%;
	box-sizing: border-box;
}
.nmf-wrap * { box-sizing: border-box; }

.nmf-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 14px; }
.nmf-filter-group { display: flex; flex-direction: column; gap: 6px; }
.nmf-filter-label { font-size: 12px; color: var(--nmf-text-muted); }
.nmf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nmf-chip {
	background: var(--nmf-card); color: var(--nmf-text); border: 1px solid var(--nmf-border);
	border-radius: 20px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.nmf-chip.is-active { background: var(--nmf-gold); color: var(--nmf-gold-text); border-color: var(--nmf-gold); }

.nmf-btn {
	background: var(--nmf-card); color: var(--nmf-text); border: 1px solid var(--nmf-border);
	border-radius: 8px; padding: 10px 16px; font-size: 13px; cursor: pointer;
}
.nmf-btn-gold { background: var(--nmf-gold); color: var(--nmf-gold-text); border-color: var(--nmf-gold); font-weight: bold; }

.nmf-varita { background: var(--nmf-card); border: 1px solid var(--nmf-border); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.nmf-varita-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.nmf-varita-grid label { display: flex; flex-direction: column; font-size: 12px; color: var(--nmf-text-muted); gap: 4px; }
.nmf-varita-grid input { padding: 8px; border-radius: 6px; border: 1px solid var(--nmf-border); background: #0d1b2a; color: var(--nmf-text); }

.nmf-map { height: 420px; border-radius: 10px; margin-bottom: 18px; }

.nmf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.nmf-card {
	background: var(--nmf-card); border: 1px solid var(--nmf-border); border-radius: 10px; padding: 14px;
	cursor: pointer; transition: border-color .15s ease;
}
.nmf-card:hover { border-color: var(--nmf-gold); }
.nmf-card h3 { margin: 0 0 4px; font-size: 15px; }
.nmf-card .nmf-card-loc { font-size: 12px; color: var(--nmf-text-muted); margin-bottom: 8px; }
.nmf-card .nmf-card-stats { display: flex; gap: 10px; font-size: 12px; color: var(--nmf-text-muted); flex-wrap: wrap; }
.nmf-card .nmf-score { display: inline-block; margin-top: 8px; background: var(--nmf-oficial); color: #06210d; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.nmf-hidden { display: none !important; }

.nmf-ficha-overlay {
	position: fixed; inset: 0; background: rgba(4, 10, 16, .72); z-index: 100000;
	align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.nmf-ficha-overlay[hidden] { display: none; }
.nmf-ficha-overlay:not([hidden]) { display: flex; }
.nmf-ficha { background: var(--nmf-bg); border: 1px solid var(--nmf-border); border-radius: 14px; padding: 22px; max-width: 640px; width: 100%; color: var(--nmf-text); }
.nmf-ficha h2 { margin: 0 0 2px; font-size: 20px; }
.nmf-ficha .nmf-ficha-loc { color: var(--nmf-text-muted); font-size: 13px; margin-bottom: 14px; }
.nmf-ficha-close { float: right; background: none; border: none; color: var(--nmf-text); font-size: 20px; cursor: pointer; }
.nmf-ficha-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.nmf-ficha-stats div { background: #0d1b2a; border-radius: 8px; padding: 8px; text-align: center; }
.nmf-ficha-stats .val { font-size: 15px; font-weight: bold; }
.nmf-ficha-stats .lbl { font-size: 10px; color: var(--nmf-text-muted); }
.nmf-ficha-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nmf-ficha-actions a, .nmf-ficha-actions button {
	background: #0d1b2a; border: 1px solid var(--nmf-border); color: var(--nmf-text);
	border-radius: 6px; padding: 6px 10px; font-size: 12px; text-decoration: none; cursor: pointer;
}
.nmf-tarifas-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 14px; }
.nmf-tarifas-table th, .nmf-tarifas-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--nmf-border); }
.nmf-badge { font-size: 10px; padding: 2px 8px; border-radius: 8px; color: #fff; }
.nmf-badge-oficial { background: var(--nmf-oficial); }
.nmf-badge-presupuesto { background: var(--nmf-presupuesto); }
.nmf-badge-orientativa { background: var(--nmf-orientativa); }
.nmf-servicios-list { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--nmf-text-muted); margin-bottom: 10px; }
.nmf-ficha-meta { font-size: 11px; color: var(--nmf-text-muted); border-top: 1px solid var(--nmf-border); padding-top: 10px; margin-top: 10px; }

.nmf-card-webcam { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; background: #4a1010; color: #ffb3b3; padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
.nmf-card-webcam i { width: 6px; height: 6px; border-radius: 50%; background: #ff5555; display: inline-block; }

.nmf-hero { padding: 4px 0 14px; position: relative; }
.nmf-hero h2 { margin: 0; font-size: 20px; }
.nmf-hero-loc { color: var(--nmf-text-muted); font-size: 13px; margin-top: 2px; }
.nmf-hero-webcam { position: absolute; top: 0; right: 30px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; background: #4a1010; color: #ffb3b3; padding: 4px 10px; border-radius: 12px; font-weight: bold; }
.nmf-hero-webcam i { width: 7px; height: 7px; border-radius: 50%; background: #ff5555; display: inline-block; }

.nmf-stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.nmf-stat-row > div { background: #0d1b2a; border-radius: 8px; padding: 8px; text-align: center; }
.nmf-stat-row .val { font-size: 14px; font-weight: bold; }
.nmf-stat-row .lbl { font-size: 10px; color: var(--nmf-text-muted); }

.nmf-ficha-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--nmf-border); padding-bottom: 10px; margin-bottom: 14px; }
.nmf-ficha-tab { background: none; border: 1px solid var(--nmf-border); color: var(--nmf-text-muted); font-size: 12px; padding: 6px 14px; border-radius: 20px; cursor: pointer; }
.nmf-ficha-tab.is-active { background: var(--nmf-gold); color: var(--nmf-gold-text); border-color: var(--nmf-gold); font-weight: bold; }

.nmf-tab-panel { display: none; }
.nmf-tab-panel.is-active { display: block; }

.nmf-info-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.nmf-info-table td { padding: 7px 4px; border-bottom: 1px solid var(--nmf-border); }
.nmf-info-table td:first-child { color: var(--nmf-text-muted); width: 45%; }

.nmf-coord-nota { font-size: 11px; color: var(--nmf-text-muted); margin-top: 6px; }
.nmf-empty { font-size: 13px; color: var(--nmf-text-muted); }

.nmf-webcam-frame { position: relative; width: 100%; padding-top: 56%; border-radius: 8px; overflow: hidden; background: #000; margin-bottom: 8px; }
.nmf-webcam-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
