/* Group rides board — /rides/ and /es/salidas/ */
[hidden] { display: none !important; }
.rides-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.rides-ruleslink { font-weight: 600; }
.rides-notice { margin: 0; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid #c9a227; border-radius: 0 10px 10px 0; background: var(--surface); max-width: 52rem; }
.rides-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); margin-top: 0.75rem; }
.ride { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.ride-when { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ride h3 { font-size: 1.2rem; margin: 0; overflow-wrap: anywhere; }
.ride-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.9rem; margin: 0; font-size: 0.95rem; }
.ride-meta dt { color: var(--muted); font-size: 0.85rem; padding-top: 0.1rem; }
.ride-meta dd { margin: 0; overflow-wrap: anywhere; }
.ride-notes { margin: 0; font-size: 0.95rem; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.ride-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.25rem; }
.ride-spots { font-weight: 600; }
.ride-spots.is-full { color: var(--muted); }
.ride .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.ride-status { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); align-self: flex-start; }
.ride-flag { padding: 0.55rem 0.75rem; border-radius: 6px; background: var(--todo-bg); color: var(--todo-ink); font-weight: 600; font-size: 0.92rem; }
.ride-riders { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }
.ride-riders li { overflow-wrap: anywhere; }
.rides-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.rides-dialog { border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.25rem, 4vw, 2rem); background: var(--bg); color: var(--ink); width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); }
.rides-dialog::backdrop { background: rgb(4 14 20 / 0.6); }
.choices-1 { grid-template-columns: minmax(0, 1fr); }
.rides-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: rr; }
.rides-rules li { counter-increment: rr; padding-left: 2.6rem; position: relative; }
.rides-rules li::before { content: counter(rr); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sky); color: var(--sky-ink); font-family: var(--mono); font-weight: 500; display: grid; place-items: center; font-size: 0.85rem; }
.rides-rules h3 { margin: 0 0 0.35rem; }
.rides-rules p { margin: 0; }
.rides-key { max-width: 22rem; }
input[type=time], input[type=password] { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; padding: 0.7rem 0.8rem; width: 100%; min-width: 0; }
.rides-dialog .form { max-width: none; }
/* Accounts, prices and organiser tools */
.ride-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; flex-wrap: wrap; }
.ride-price { font-weight: 700; white-space: nowrap; }
.ride-price.is-free { color: var(--muted); font-weight: 600; }
.ride-tag { font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.ride-tag.is-in { color: var(--ink); }
.ride-noshow { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.6rem; font-size: 0.88rem; }
.rides-two { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.rides-price-note, .rides-commission { margin: 0; font-weight: 600; }
.rides-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.rides-table th, .rides-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.rides-bar .rides-pct { width: 5.5rem; margin-left: 0.4rem; }
.rides-pct, .rides-month { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; padding: 0.45rem 0.6rem; }

/* Buen Roller Bikes' own listings (GetYourGuide-style pages) */
.listing-gallery { display: grid; gap: 0.5rem; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 9rem)); }
.listing-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--line); }
.listing-gallery img:first-child { grid-row: span 2; }
@media (max-width: 640px) { .listing-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 14rem 7rem; } .listing-gallery img:first-child { grid-column: span 2; grid-row: auto; } .listing-gallery img:nth-child(n+4) { display: none; } }
.listing-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0; }
.pill { font-family: var(--mono); font-size: 0.75rem; padding: 0.2rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.listing-facts { margin: 0; display: grid; gap: 0.9rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.listing-facts dt { font-weight: 700; }
.listing-facts dd { margin: 0.15rem 0 0; color: var(--muted); }
.crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.crosses li { padding-left: 1.6rem; position: relative; }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 0.1rem; top: 0.75em; width: 0.8rem; height: 2px; background: #b5462f; transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.listing-docs, .listing-steps { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.85rem; }
.listing-docs p { margin: 0.2rem 0 0; color: var(--muted); }
.listing-docs-wrap { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sky, #4fa3d8); border-radius: 0 10px 10px 0; padding: 1.25rem; }
.listing-price { margin: 0; font-size: 1.05rem; }
.listing-price strong { font-size: 1.9rem; }
.listing-progress { display: grid; gap: 0.4rem; }
.listing-progress p { margin: 0; }
.listing-bar { height: 0.55rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.listing-bar span { display: block; height: 100%; width: 0; background: var(--sky, #4fa3d8); transition: width .4s; }
.listing-box .form { gap: 0.85rem; }
.listing-small { font-size: 0.82rem; margin: 0; }
.listing-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); margin-top: 0.75rem; }
.listing-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--navy-3, #2b4a6f); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; }
.listing-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.listing-card > div { padding: 1.1rem 1.25rem 1.25rem; }
.listing-card h3 { margin: 0; font-size: 1.2rem; }
.listing-card p { margin: 0; }
.listing-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.5rem; }
.listing-card-foot strong { font-size: 1.3rem; }
.ride.is-past { opacity: 0.6; }
.listing-sticky { display: none; }
@media (max-width: 900px) {
  .listing-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .listing-sticky strong { font-size: 1.3rem; }
  body[data-listing] main { padding-bottom: 4.5rem; }
  #listing-form { scroll-margin-top: 6rem; }
}
.listing-addons, .listing-dates { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.listing-addons legend, .listing-dates legend { font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.listing-date { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.listing-date small { margin-left: auto; }
.listing-date:has(input:checked) { border-color: var(--navy-3, #2b4a6f); box-shadow: inset 0 0 0 1px var(--navy-3, #2b4a6f); }
.listing-date:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.ride-weekly{display:inline-block;margin-left:.5em;padding:.05em .5em;border-radius:999px;font-size:.75em;font-weight:600;background:#e6f2ec;color:#21573d;vertical-align:middle}
.rep-slot{display:inline-flex;gap:.25rem;align-items:center}
#p-rep-times{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}
#p-rep-times input[type=time]{width:auto}
#post-repeat{margin:1rem 0}
.rides-group{padding-top:1.5rem;border-top:2px solid var(--line,#d8dee4)}
.rides-group-head h2{margin:0 0 .25rem}
.ride-langs{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;margin:.1rem 0 .4rem}
.ride-lang{display:inline-block;min-width:1.9em;text-align:center;padding:.1em .45em;border-radius:6px;font:600 .72rem/1.4 "IBM Plex Mono",monospace;background:#e8eef4;color:#173247;border:1px solid #cdd8e2}
/* On phones, keep the "Questions?" chat button above the sticky booking bar so it never covers the Book button */
@media (max-width: 900px) {
  body:has(.listing-sticky) .brbc-btn { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
}
.google-btn{min-height:44px}
.or-line{display:flex;align-items:center;gap:.6rem;color:var(--muted,#5a6b78);font-size:.85rem;margin:.6rem 0 .2rem}
.or-line::before,.or-line::after{content:"";flex:1;border-top:1px solid var(--line,#d8dee4)}

/* Rider declaration (digital waiver) */
.waiver { border: 1px solid var(--line, #dfe6ec); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.waiver legend { font-weight: 600; padding: 0 4px; }
.waiver-text { max-height: 190px; overflow-y: auto; background: #f4f7f9; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: #33444f; }
.waiver-text p { margin: 0 0 8px; } .waiver-text p:last-child { margin-bottom: 0; }
.waiver-text:focus { outline: 2px solid #a2c7e2; }
.waiver-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.waiver-links li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.waiver-url { flex: 1 1 180px; min-width: 0; font-size: 13px; padding: 6px 8px; border: 1px solid #dfe6ec; border-radius: 6px; }
.waiver-ok { color: #1d7a46; } .waiver-missing { color: #b4441f; }
.waiver-cell { min-width: 190px; }
.waiver-page { max-width: 720px; }
.waiver-page .waiver-text { max-height: none; }

/* Route card on the uplift page */
.route-card-link { display: block; max-width: 380px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(6, 28, 40, .18); }
.route-card-link img { display: block; width: 100%; height: auto; }

.rent-panel { gap: 0.4rem; padding: 0.75rem; border-radius: 10px; background: color-mix(in srgb, var(--sky) 12%, transparent); }
.rent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; }
.rent-row span { min-width: 6.25rem; font-weight: 600; }
@media (max-width: 560px) { .rent-row span { flex-basis: 100%; } .rent-row .btn { flex: 1 1 0; min-width: 0; padding-left: 0.4rem; padding-right: 0.4rem; } }
.rent-note { margin: 0 0 0.25rem; padding: 0.6rem 0.75rem; border-left: 4px solid var(--sky); background: var(--surface, #fff); border-radius: 6px; font-weight: 600; }
.listing-trust { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.75rem 0 0; padding: 0.6rem 0.75rem; font-size: 0.9rem; line-height: 1.4; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.listing-trust::before { content: ""; flex: none; width: 1rem; height: 1rem; margin-top: 0.1rem; background: var(--navy-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.bundle-offer { margin: 0.5rem 0 0; padding: 0.7rem 0.85rem; border-radius: 10px; background: color-mix(in srgb, var(--sky) 14%, transparent); font-size: 0.95rem; }
.bundle-offer a { font-weight: 600; white-space: nowrap; }
