/* Estilos compartidos del demo Ceiba Estancias */
:root {
  --selva: #0f3d2e; --selva-2: #1d5c45; --selva-3: #2f7a5c; --arena: #f4ede1; --arena-2: #ebe2d2; --terra: #c8553d; --oro: #d9a441; --oro-2: #f3e3bd;
  --ink: #1a1f1c; --ink-2: #4a524d; --ink-3: #8a918c; --line: #e8e3d9; --bg: #faf8f4; --card: #fff;
  --green: #0e8a55; --green-bg: #e5f5ec; --red: #c4382e; --red-bg: #fcebe9; --amber: #a86400; --amber-bg: #fff3dc; --blue: #2367a8; --blue-bg: #e7f0fa;
  --airbnb: #e0565b; --r: 16px; --sh: 0 6px 24px rgba(20, 30, 25, .08); --sh-2: 0 16px 44px rgba(20, 30, 25, .18);
  --f: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--f); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; font-size: 16px; color: var(--ink); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.ic { flex: none; display: block; }
svg { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform .12s, opacity .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-p { background: var(--selva); color: #fff; }
.btn-p:hover { background: var(--selva-2); }
.btn-t { background: var(--terra); color: #fff; }
.btn-o { background: var(--oro); color: #1b1405; }
.btn-l { background: var(--arena); color: var(--ink); }
.btn-w { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-block { width: 100%; }
.btn-s { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--selva); color: #fff; box-shadow: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.b-green { background: var(--green-bg); color: var(--green); }
.b-amber { background: var(--amber-bg); color: var(--amber); }
.b-red { background: var(--red-bg); color: var(--red); }
.b-blue { background: var(--blue-bg); color: var(--blue); }
.b-dark { background: var(--selva); color: #fff; }
.b-gold { background: var(--oro-2); color: #6b4b00; }
.b-gray { background: var(--arena); color: var(--ink-2); }
.b-airbnb { background: #fde8e8; color: #b8363b; }
.demo-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: repeating-linear-gradient(-45deg, #fff4d6 0 6px, #ffeebd 6px 12px); color: #7a5300; letter-spacing: .02em; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.estrella { color: var(--ink); display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.estrella svg { fill: currentColor; }
.foto { position: relative; overflow: hidden; background: var(--arena); }
.foto > svg, .foto > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Avisos tipo notificación del teléfono */
#ce-avisos { position: fixed; top: 10px; left: 0; right: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 10px; }
.ce-aviso { width: min(400px, 100%); display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 18px; padding: 12px 14px; box-shadow: var(--sh-2); font-size: 13px; line-height: 1.35; transform: translateY(-120%); opacity: 0; transition: .45s cubic-bezier(.2,.9,.3,1.2); }
.ce-aviso.in { transform: none; opacity: 1; }
.ce-aviso-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--selva); color: var(--oro); display: grid; place-items: center; flex: none; }
.ce-aviso-app { font-size: 10px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 1px; }

.skel { background: linear-gradient(90deg, #eee8dc 0, #f6f2ea 40%, #eee8dc 80%); background-size: 300% 100%; animation: skel 1.2s infinite; border-radius: 12px; }
@keyframes skel { to { background-position: -150% 0; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,164,65,0); } 30% { box-shadow: 0 0 0 6px rgba(217,164,65,.55); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }

.leaflet-container { font-family: var(--f); background: #e9efe9; }
.leaflet-tile-pane { filter: saturate(.6) contrast(1.02) brightness(1.03); }
.pin-precio { background: #fff; color: var(--ink); font: 800 12px var(--f); padding: 5px 9px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.25); white-space: nowrap; transform: translate(-50%, -50%); position: absolute; transition: .15s; border: 1.5px solid #fff; }
.pin-precio.on { background: var(--selva); color: #fff; transform: translate(-50%, -50%) scale(1.12); z-index: 5; }
.pin-precio.nuevo { background: var(--oro); color: #1b1405; animation: pop .5s; }
.pin-precio.ocupada { color: var(--ink-3); background: #f3f1ec; }
