/* commute.css — botón + modal "¿Llegas al trabajo?" (commute.js).
   Compartido por la ficha de producto y el comparador. */

.pd-commute { display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
              padding: 13px 24px; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 600;
              font-size: 15px; background: transparent; color: #D4FF3D;
              border: 1px solid rgba(212,255,61,0.45); transition: background .25s ease, border-color .25s ease; }
.pd-commute:hover { background: rgba(212,255,61,0.1); border-color: #D4FF3D; }
@media (max-width: 720px) { .pd-buttons .pd-commute { flex: 1 1 100%; } }

/* variante compacta en las tarjetas de la tabla del comparador: mismo
   tamaño que el .tile-buy ("Buy on Amazon") que tiene arriba */
/* en la tabla del comparador los botones van apilados (Amazon arriba,
   "llego al trabajo" abajo) y a ancho completo, para ahorrar ancho con 3-4 motos */
.product-header .pd-commute { display: block; width: 100%; box-sizing: border-box;
                              text-align: center; white-space: normal; margin: 8px 0 0;
                              min-height: 0; padding: 9px 12px; font-size: 13px; border-radius: 8px; }

.cm-overlay { position: fixed; inset: 0; z-index: 200; overflow-y: auto;
              background: rgba(11,11,12,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
              display: flex; padding: clamp(14px, 3vw, 40px) 14px; }
.cm-overlay[hidden] { display: none; }   /* el display:flex de arriba le ganaba al atributo hidden */
.cm-panel { position: relative; margin: auto; width: 100%; max-width: 780px;
            background: #17181B; border: 1px solid rgba(242,243,240,0.12); border-radius: 20px;
            padding: clamp(22px, 4vw, 38px); }
.cm-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
        cursor: pointer; font-size: 20px; line-height: 1; color: #A9ADB4;
        background: rgba(242,243,240,0.06); border: 1px solid rgba(242,243,240,0.12);
        transition: color .2s ease, border-color .2s ease; }
.cm-x:hover { color: #F2F3F0; border-color: rgba(242,243,240,0.4); }
.cm-kicker { font-size: 13px; letter-spacing: 0.04em; color: #D4FF3D; margin-bottom: 12px; }
.cm-title { margin: 0 0 10px; font-family: 'Space Grotesk', ui-sans-serif, sans-serif; font-weight: 600;
            letter-spacing: -0.04em; line-height: 1; font-size: clamp(24px, 4vw, 36px); color: #F2F3F0; }
.cm-sub { margin: 0 0 22px; max-width: 52ch; font-size: 14px; color: #6E727A; line-height: 1.55; }

.cm-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.cm-field label { font-size: 13px; color: #A9ADB4; }
.cm-input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border-radius: 10px;
            font: inherit; font-size: 15px; color: #F2F3F0;
            background: rgba(11,11,12,0.7); border: 1px solid rgba(242,243,240,0.14);
            transition: border-color .2s ease; }
.cm-input:focus { outline: none; border-color: #D4FF3D; }

/* bici fija: viene del botón presionado, no se elige en el modal */
.cm-bike-fixed { display: flex; align-items: center; min-height: 48px; box-sizing: border-box;
                 padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 600;
                 color: #F2F3F0; line-height: 1.35;
                 background: rgba(212,255,61,0.06); border: 1px solid rgba(212,255,61,0.3); }

.cm-row2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
@media (max-width: 560px) { .cm-row2 { grid-template-columns: 1fr; gap: 0; } }

/* autocompletado de dirección (Nominatim) */
.cm-addr-wrap { position: relative; }
.cm-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 10;
              max-height: 250px; overflow-y: auto; border-radius: 12px;
              background: #0F1012; border: 1px solid rgba(242,243,240,0.15);
              box-shadow: 0 14px 40px rgba(0,0,0,0.55); }
.cm-sug-item { display: block; width: 100%; padding: 11px 14px; text-align: left; cursor: pointer;
               font: inherit; font-size: 13.5px; color: #A9ADB4; line-height: 1.4;
               background: transparent; border: 0; border-bottom: 1px solid rgba(242,243,240,0.06);
               transition: background .15s ease, color .15s ease; }
.cm-sug-item:last-child { border-bottom: 0; }
.cm-sug-item:hover { background: rgba(212,255,61,0.08); color: #F2F3F0; }

/* aviso visible: la dirección no se guarda en el sitio */
.cm-privacy { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 16px;
              padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
              color: #D4FF3D; line-height: 1.5;
              background: rgba(212,255,61,0.06); border: 1px solid rgba(212,255,61,0.35); }

.cm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cm-calc { min-height: 48px; padding: 13px 28px; border-radius: 10px; border: 0; cursor: pointer;
           font: inherit; font-weight: 700; font-size: 15px; background: #D4FF3D; color: #0B0B0C;
           transition: background .25s ease; }
.cm-calc:hover { background: #e4ff6b; }
.cm-calc:disabled { opacity: 0.6; cursor: wait; }
.cm-close { min-height: 48px; padding: 13px 28px; border-radius: 10px; cursor: pointer;
            font: inherit; font-weight: 600; font-size: 15px; background: #26272B; color: #F2F3F0;
            border: 1px solid rgba(242,243,240,0.12); transition: background .25s ease; }
.cm-close:hover { background: #333; }
.cm-error { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px;
            color: #ff8a8a; background: rgba(255,90,90,0.08); border: 1px solid rgba(255,90,90,0.3); }

/* resultado: titular con las millas + subtítulo ARRIBA del mapa,
   frase de distancia abajo */
.cm-result { margin-top: 24px; }
.cm-headline { margin: 0 0 6px; font-family: 'Space Grotesk', ui-sans-serif, sans-serif; font-weight: 600;
               letter-spacing: -0.04em; line-height: 1; font-size: clamp(30px, 5vw, 46px); color: #D4FF3D; }
.cm-note { margin: 0 0 16px; font-size: 13px; color: #6E727A; line-height: 1.5; }
#cm-map { height: clamp(450px, 55vh, 560px); border-radius: 14px; overflow: hidden;
          background: #0F1012; border: 1px solid rgba(242,243,240,0.12); }
.cm-verdict { margin: 16px 0 0; font-family: 'Space Grotesk', ui-sans-serif, sans-serif; font-weight: 600;
              letter-spacing: -0.02em; font-size: clamp(16px, 2vw, 19px); color: #F2F3F0; line-height: 1.4; }
