/* Shared styles for every page of the application */

:root {
    --app-width: 350px;
    --app-gutter: 16px;
    --app-background: #f6f4ee;
    --app-surface: #ffffff;
    --app-text: #202820;
    --app-muted: #72766d;
    --app-primary: #244fe5;
    --app-primary-soft: #edf0ff;
    --app-green: #55705b;
    --app-line: #dedfd8;
    --app-danger: #c62828;
    --app-success: #2e7d32;
    --app-radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--app-background);
    color: var(--app-text);
    font-family: "Space Grotesk", sans-serif;
}

body {
    min-height: 100vh;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--app-primary);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgb(36 79 229 / 25%);
    outline-offset: 3px;
}

/* Shared brand header */

.site-header {
    width: 100%;
    max-width: var(--app-width);
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px var(--app-gutter);
}

.site-header > div {
    display: flex;
    align-items: center;
}

.site-header > div:first-child {
    gap: 7px;
}

.site-header h1 {
    margin: 0;
    color: var(--app-primary);
    font-size: 24px;
    line-height: 1;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.ubicacion {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ubicacion i {
    color: var(--app-primary);
    font-size: 12px;
}

#opciones {
    max-width: 112px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--app-text);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    cursor: pointer;
}

/* Authentication pages */

.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-page .hero {
    width: 100%;
    text-align: center;
}

.auth-page .imatge {
    width: 100%;
    max-width: var(--app-width);
    margin: 0 auto;
}

.auth-page #imgBici {
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.auth-page main {
    width: 100%;
    max-width: var(--app-width);
    margin: 0 auto;
    padding: 0 var(--app-gutter);
    text-align: left;
}

.auth-page main h1 {
    margin: 0;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.05;
}

.auth-page main > p {
    margin: 7px 0 16px;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.auth-page form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.auth-page label {
    color: var(--app-text);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.auth-page input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    color: var(--app-text);
    font-family: "Inter", sans-serif;
}

.auth-page form a {
    align-self: flex-end;
    color: var(--app-primary);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    text-decoration: none;
}

.auth-page .btn {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border: 1px solid var(--app-primary);
    border-radius: var(--app-radius);
    background: var(--app-primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.auth-page .btn:disabled {
    border-color: #646860;
    background: var(--app-muted);
    cursor: not-allowed;
}

.auth-page .error,
.auth-page .bien {
    margin: 0;
    font-size: 12px;
}

.auth-page .error {
    color: var(--app-danger);
}

.auth-page .bien {
    color: var(--app-success);
}

.auth-footer {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
    font-family: "Inter", sans-serif;
}

.auth-footer p,
.auth-footer a {
    margin: 0;
    font-size: 13px;
}

.auth-footer p {
    color: var(--app-muted);
}

.auth-footer a {
    color: var(--app-primary);
    font-weight: 700;
    text-decoration: none;
}

/* Exploration, map and reservation pages */

.app-page,
.shop-page-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 86px;
}

.map-page {
    min-height: 100vh;
    padding-bottom: 84px;
}

.map-page > .site-header {
    flex: 0 0 auto;
}

.map-content {
    width: 100%;
    max-width: var(--app-width);
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 2px 0 0;
}

.map-heading,
.map-search {
    width: calc(100% - 32px);
    margin-right: auto;
    margin-left: auto;
}

.map-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 10px;
}

.map-heading h2 {
    margin: 0;
    font-size: clamp(22px, 7.4vw, 26px);
    line-height: 1.1;
}

.map-list-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0 6px 8px;
    border: 0;
    background: transparent;
    color: var(--app-primary);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.map-search {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 0 12px;
    border: 1px solid var(--app-line);
    border-radius: 11px;
    background: var(--app-surface);
    color: var(--app-muted);
}

.map-search > i {
    font-size: 12px;
}

.map-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--app-text);
    font-family: "Inter", sans-serif;
    font-size: 11px;
}

.map-search button {
    padding: 5px 0 5px 7px;
    border: 0;
    background: transparent;
    color: var(--app-muted);
    cursor: pointer;
}

.map-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #e9e8dc;
}

.map-page #map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 0;
    background: #e9e8dc;
}

.map-page .leaflet-tile {
    filter: saturate(0.42) sepia(0.15);
}

.shop-marker-icon {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--app-primary);
    font-size: 14px;
}

.shop-marker-icon i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--app-surface);
    box-shadow: 0 2px 8px rgb(32 40 32 / 20%);
}

.map-count {
    position: absolute;
    z-index: 500;
    top: 14px;
    left: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--app-surface);
    box-shadow: 0 2px 9px rgb(32 40 32 / 10%);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
}

.map-location-button {
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 500;
    right: 15px;
    bottom: 198px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--app-surface);
    box-shadow: 0 2px 9px rgb(32 40 32 / 14%);
    color: var(--app-primary);
    font-size: 16px;
    cursor: pointer;
}

.nearest-shop {
    width: calc(100% - 32px);
    max-width: calc(var(--app-width) - 32px);
    position: fixed;
    z-index: 1100;
    right: 0;
    bottom: 88px;
    left: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: 0 4px 18px rgb(32 40 32 / 14%);
}

.nearest-shop[hidden] {
    display: none;
}

.nearest-shop-close {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--app-background);
    color: var(--app-muted);
    cursor: pointer;
}

.nearest-shop-image {
    width: 60px;
    height: 68px;
    grid-row: span 2;
    border-radius: 9px;
    object-fit: cover;
}

.nearest-shop-info {
    min-width: 0;
}

.nearest-shop-label {
    margin: 0 0 3px;
    color: var(--app-primary);
    font-family: "Inter", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nearest-shop-info h3 {
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearest-shop-info > p:not(.nearest-shop-label) {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearest-shop-info .nearest-shop-distance {
    color: var(--app-text) !important;
    font-weight: 600;
}

.nearest-shop-distance i {
    color: var(--app-primary);
}

.route-status {
    margin: 3px 0 0;
    color: var(--app-danger);
    font-family: "Inter", sans-serif;
    font-size: 9px;
}

.route-status:empty {
    display: none;
}

.nearest-shop-button {
    min-height: 40px;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: var(--app-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.map-shop-list {
    position: absolute;
    z-index: 600;
    top: 58px;
    right: 12px;
    left: 12px;
    max-height: 45%;
    overflow-y: auto;
    border-radius: 12px;
    background: var(--app-surface);
    box-shadow: 0 4px 18px rgb(32 40 32 / 18%);
}

.map-shop-list[hidden] {
    display: none;
}

/* Map list category buttons */
.map-list-tabs {
    position: sticky;
    z-index: 1;
    top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--app-line);
    background: var(--app-surface);
}

.map-list-tabs button {
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: var(--app-background);
    color: var(--app-text);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.map-list-tabs button[aria-pressed="true"] {
    border-color: var(--app-primary);
    background: var(--app-primary);
    color: #ffffff;
}

.map-shop-list-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--app-line);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.map-shop-list-item strong {
    font-size: 13px;
}

.map-shop-list-item span {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.map-note {
    width: calc(100% - 32px);
    margin: 7px auto 8px;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 9px;
}

.map-page .app-footer a[href="index.php?r=map"] {
    color: var(--app-primary);
}

.app-page > nav,
.app-page > #filtratje,
.app-page > #map,
.app-page > .profile-content {
    width: calc(100% - 32px);
    max-width: 318px;
}

.profile-content {
    padding: 16px 0 24px;
}

.profile-heading {
    margin-bottom: 20px;
}

.profile-eyebrow {
    margin: 0 0 6px;
    color: var(--app-primary);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.profile-heading h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
}

.profile-heading > p:last-child {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 18px 14px;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: var(--app-surface);
}

.profile-avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 25px;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.profile-details {
    width: 100%;
}

.profile-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-line);
}

.profile-row span {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 11px;
}

.profile-row strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 600;
}

.profile-config {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--app-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.profile-config i:last-child {
    margin-left: auto;
    font-size: 12px;
}

.admin-images-section {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: var(--app-surface);
}

.admin-images-heading h2 {
    margin: 0;
    font-size: 19px;
}

.admin-images-heading > p:last-child {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.45;
}

.admin-image-form {
    display: grid;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid var(--app-line);
}

.admin-image-form label {
    font-size: 12px;
    font-weight: 600;
}

.admin-image-form select,
.admin-image-form input {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--app-line);
    border-radius: 9px;
    background: #fff;
    font: inherit;
}

.admin-image-form input[type="file"] {
    height: auto;
}

.admin-image-form button {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: var(--app-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.admin-image-preview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 9px;
}

.photo-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
}

.photo-message-ok {
    background: #e8f7ed;
    color: #176b35;
}

.photo-message-error {
    background: #fff0ed;
    color: #9c3025;
}

.profile-photo-section {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: var(--app-surface);
}

.profile-photo-section h2 {
    margin: 0;
    font-size: 19px;
}

.profile-photo-section > div > p:last-child {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.45;
}

#camera-form {
    display: grid;
    gap: 12px;
}

#profile-camera,
#profile-photo-preview {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    background: #111;
}

#profile-camera {
    transform: scaleX(-1);
}

.camera-status {
    min-height: 18px;
    margin: 0;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.45;
}

.profile-photo-file {
    font-size: 12px;
    font-weight: 600;
}

#profile-photo-file {
    width: 100%;
    font: inherit;
    font-size: 12px;
}

.profile-photo-actions {
    display: grid;
    gap: 9px;
}

.profile-photo-actions button {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: var(--app-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.reservations-section {
    margin-top: 26px;
}

.reservations-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.reservations-heading h2 {
    margin: 0;
    font-size: 19px;
}

.reservations-empty {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px dashed var(--app-line);
    border-radius: var(--app-radius);
    background: rgb(255 255 255 / 45%);
    color: var(--app-muted);
    text-align: center;
}

.reservations-empty i {
    color: var(--app-primary);
    font-size: 20px;
}

.reservations-empty p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.app-page > nav h1 {
    margin: 14px 0 0;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.08;
    text-align: left;
}

.app-page > nav p {
    margin: 7px 0 0;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.search-box {
    width: 100%;
    display: flex;
    margin: 20px auto;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    background: var(--app-surface);
}

.search-box input {
    width: 100%;
    min-width: 0;
    padding: 11px 12px 11px 0;
    border: 0;
    outline: 0;
    border-radius: var(--app-radius);
    background: transparent;
}

.search-box button {
    display: grid;
    place-items: center;
    padding: 11px 12px;
    border: 0;
    background: transparent;
    color: var(--app-text);
    cursor: pointer;
}

#filtratje {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

#filtratje .btn {
    min-width: 0;
    height: 35px;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid #ccc7c7;
    border-radius: 999px;
    background: #f1f2f6;
    color: var(--app-text);
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

#filtratje .btn[aria-pressed="true"],
#filtratje .btn[aria-expanded="true"] {
    border-color: var(--app-primary);
    background: var(--app-primary);
    color: #ffffff;
}

#filtratje .btn:hover:not([aria-pressed="true"]):not([aria-expanded="true"]),
#filtratje .btn:focus-visible:not([aria-pressed="true"]):not([aria-expanded="true"]) {
    border-color: #aaaeb8;
    background: #f1f2f6;
    color: var(--app-text);
}

.filters-panel,
.nearby-shops {
    width: calc(100% - 32px);
    max-width: 318px;
}

.filters-panel {
    margin-top: 12px;
    padding: 15px;
    border: 1px solid var(--app-line);
    border-radius: 15px;
    background: var(--app-surface);
    font-family: "Inter", sans-serif;
}

.filters-panel[hidden] {
    display: none;
}

.filter-field {
    display: grid;
    gap: 7px;
}

.filter-field label,
.filter-check {
    color: var(--app-text);
    font-size: 12px;
    font-weight: 600;
}

.filter-field select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--app-line);
    border-radius: 9px;
    background: var(--app-background);
    color: var(--app-text);
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    font-weight: 500;
}

.filter-check input {
    accent-color: var(--app-primary);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
}

.filter-actions button {
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.filter-clear {
    background: var(--app-background);
    color: var(--app-text);
}

.filter-apply {
    background: var(--app-primary);
    color: #ffffff;
}

.nearby-shops {
    margin-top: 25px;
    padding-bottom: 18px;
}

.nearby-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.nearby-heading .eyebrow {
    margin: 0 0 4px;
    color: var(--app-primary);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nearby-heading h2 {
    margin: 0;
    font-size: 23px;
}

.location-status {
    margin: 0 0 3px;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    white-space: nowrap;
}

.shop-list {
    display: grid;
    gap: 10px;
}

.nearby-shop-card {
    min-height: 98px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: var(--app-surface);
    color: var(--app-text);
    text-decoration: none;
}

.nearby-shop-card:hover {
    border-color: var(--app-primary);
    box-shadow: 0 4px 12px rgb(35 42 35 / 8%);
}

.shop-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.shop-card-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-card-info strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-address,
.shop-metadata {
    overflow: hidden;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-electric-count,
.shop-arrow {
    color: var(--app-primary);
}

.shops-empty,
.empty-bikes {
    margin: 14px 0;
    padding: 18px;
    border: 1px dashed var(--app-line);
    border-radius: 16px;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

#map {
    height: 350px;
    overflow: hidden;
    border-radius: 18px;
}

/* Shared application footer */

.app-footer {
    width: 100%;
    max-width: var(--app-width);
    min-height: 76px;
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 14px var(--app-gutter) 10px;
    border-top: 1px solid var(--app-line);
    background: rgb(246 244 238 / 96%);
    backdrop-filter: blur(8px);
}

.app-footer button,
.app-footer a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--app-text);
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.sustainability-content {
    width: calc(100% - 32px);
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 0 110px;
}

.sustainability-heading {
    margin-bottom: 20px;
}

.sustainability-heading h1 {
    margin: 0;
    font-size: 30px;
}

.sustainability-heading > p:last-child,
.sustainability-section > p {
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.6;
}

.sustainability-section {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.sustainability-section h2,
.sustainability-card h2 {
    margin: 0;
    font-size: 20px;
}

.sustainability-card {
    padding: 16px;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: var(--app-surface);
}

.sustainability-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.sustainability-card p,
.sustainability-card li {
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.6;
}

.sustainability-card p {
    margin: 8px 0 0;
}

.sustainability-card ul {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding-left: 20px;
}

.sustainability-card strong {
    color: var(--app-text);
}

.sustainability-card code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sustainability-card pre {
    background: #0f172a;
    color: #f1f5f9;
    padding: 12px 14px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.5;
    margin: 10px 0 0;
}

.sustainability-card pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.sustainability-note {
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.6;
}

.sustainability-note a {
    color: var(--app-primary);
}

.carbon-badge-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 14px 0;
}

.carbon-badge-box .carbon-score {
    font-size: 26px;
    font-weight: 700;
    color: #166534;
}

.carbon-badge-box .carbon-tag {
    background: #22c55e;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.carbon-calc-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--app-line);
}

.carbon-calc-box label {
    display: block;
    font-size: 13px;
    color: var(--app-text);
}

.carbon-calc-box input[type="range"] {
    width: 100%;
    margin: 10px 0 6px;
    accent-color: #22c55e;
}

.app-footer button:hover,
.app-footer button:focus-visible,
.app-footer a:hover,
.app-footer a:focus-visible {
    color: var(--app-primary);
}

/* Shop page */

.shop-page {
    width: 100%;
    max-width: var(--app-width);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: var(--app-background);
    text-align: left;
}

.shop-header {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--app-gutter);
}

.back-link {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--app-text);
    font-size: 14px;
    text-decoration: none;
}

.back-circle {
    width: 44px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--app-surface);
}

.favorite-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-text);
    cursor: pointer;
}

.favorite-button i {
    font-size: 18px;
}

.favorite-button[aria-pressed="true"] {
    color: #d52f54;
}

.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.shop-cart-link {
    width: 38px;
    height: 38px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--app-surface);
    color: var(--app-primary);
    text-decoration: none;
}

.shop-cart-link[hidden] {
    display: none;
}

.shop-cart-link span {
    min-width: 16px;
    height: 16px;
    position: absolute;
    top: -3px;
    right: -3px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--app-primary);
    color: #ffffff;
    font: 700 9px "Inter", sans-serif;
}

.shop-hero {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.shop-content {
    width: 100%;
    padding: 29px var(--app-gutter) 110px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 11px;
}

.badge {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 650;
}

.badge-primary {
    background: var(--app-primary-soft);
    color: var(--app-primary);
}

.badge-muted {
    background: #eef0e9;
    color: var(--app-green);
}

.shop-info h1 {
    margin: 0 0 11px;
    font-size: 30px;
    line-height: 1.16;
    letter-spacing: -1.2px;
    overflow-wrap: anywhere;
}

.rating-row,
.address {
    display: flex;
    align-items: center;
}

.rating-row {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
}

.rating-row i {
    color: var(--app-primary);
}

.rating-row a {
    color: var(--app-muted);
    text-underline-offset: 3px;
}

.address {
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--app-muted);
    font-size: 13px;
}

.address i {
    width: 17px;
    text-align: center;
}

.description {
    margin: 0 0 12px;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.42;
}

.schedule {
    margin: 0;
    color: var(--app-green);
    font-size: 11px;
}

.bike-section {
    margin-top: 29px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(22px, 6vw, 24px);
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.section-heading span,
.section-help {
    color: var(--app-muted);
}

.section-heading span {
    flex: none;
    font-size: 14px;
}

.section-help {
    margin: 12px 0 11px;
    font-size: 12px;
}

.bike-list {
    display: grid;
    gap: 13px;
}

.bike-card {
    width: 100%;
    min-height: 142px;
    display: grid;
    grid-template-columns: 137px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 21px;
    background: var(--app-surface);
    box-shadow: 0 1px 2px rgb(35 42 35 / 3%);
    color: var(--app-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.bike-card-selected {
    padding: 11px;
    border: 2px solid var(--app-primary);
}

.bike-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(35 42 35 / 9%);
}

.bike-image-wrapper {
    width: 137px;
    height: 116px;
    position: relative;
    display: block;
}

.bike-image-wrapper > img {
    width: 137px;
    height: 116px;
    border-radius: 15px;
    object-fit: cover;
}

.electric-badge {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--app-primary);
    box-shadow: 0 2px 7px rgb(32 40 32 / 20%);
    color: #ffffff;
    font-size: 11px;
}

.bike-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bike-name {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.1;
}

.bike-description {
    display: -webkit-box;
    margin-bottom: 7px;
    overflow: hidden;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bike-type {
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--app-muted);
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bike-details h3 {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.08;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}

.bike-price {
    margin: 0;
    color: var(--app-muted);
    font-size: 12px;
}

.bike-card-selected .bike-price,
.bike-card-selected .card-arrow {
    color: var(--app-primary);
}

.card-arrow {
    font-size: 14px;
}

.show-all {
    display: block;
    margin: 13px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-primary);
    font-size: 12px;
    cursor: pointer;
}

/* Bicycle detail page */

.bike-detail-body {
    display: flex;
    justify-content: center;
    background: var(--app-background);
}

.bike-detail-page {
    width: 100%;
    max-width: var(--app-width);
    min-height: 100vh;
    position: relative;
    padding-bottom: 148px;
    background: var(--app-background);
    color: var(--app-text);
}

.bike-detail-header {
    height: 66px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px var(--app-gutter);
}

.bike-detail-header > strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bike-back,
.bike-favorite {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--app-surface);
    color: var(--app-text);
    text-decoration: none;
    cursor: pointer;
}

.bike-favorite {
    background: transparent;
    font-size: 19px;
}

.bike-favorite[aria-pressed="true"] {
    color: #d52f54;
}

.bike-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bike-cart-link {
    width: 38px;
    height: 42px;
    position: relative;
    display: grid;
    place-items: center;
    color: var(--app-text);
    text-decoration: none;
}

.bike-cart-link span {
    min-width: 16px;
    height: 16px;
    position: absolute;
    top: 1px;
    right: 0;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--app-background);
    border-radius: 999px;
    background: var(--app-primary);
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 8px;
    font-weight: 700;
}

.bike-cart-link span[hidden] {
    display: none;
}

.bike-gallery {
    padding: 0 var(--app-gutter);
}

.bike-swiper {
    width: 100%;
    padding-bottom: 29px;
}

.gallery-slide {
    height: 276px;
    border-radius: 20px;
    background: #ecebe5;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 276px;
    object-fit: contain;
}

.gallery-slide-center img {
    transform: scale(1.06);
}

.gallery-slide-side img {
    object-position: 58% center;
    transform: scale(1.12);
}

.bike-swiper .swiper-pagination {
    bottom: 7px;
}

.bike-swiper .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    background: #d8dbd4;
    opacity: 1;
    transition: width 180ms ease, background 180ms ease;
}

.bike-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 999px;
    background: var(--app-primary);
}

.bike-detail-content {
    padding: 12px var(--app-gutter) 20px;
}

.detail-bike-type {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.detail-bike-type[hidden] {
    display: none;
}

.bike-detail-content h1 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -1px;
}

.detail-description {
    margin: 0;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

.included-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 0;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 11px;
}

.included-note i {
    color: var(--app-green);
}

.bike-booking-bar {
    width: 100%;
    max-width: var(--app-width);
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
    padding: 12px var(--app-gutter) 15px;
    border-top: 1px solid var(--app-line);
    background: rgb(246 244 238 / 97%);
    backdrop-filter: blur(8px);
}

#booking-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--app-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

#booking-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.detail-error {
    margin: 18px var(--app-gutter);
    padding: 14px;
    border: 1px solid var(--app-danger);
    border-radius: 10px;
    color: var(--app-danger);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    text-align: center;
}

/* Multi-bike cart */

.app-page > .cart-content {
    width: calc(100% - 32px);
    max-width: 318px;
}

.cart-content {
    padding: 15px 0 28px;
}

.cart-heading > p {
    margin: 0 0 5px;
    color: var(--app-primary);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.cart-heading h1 {
    margin: 0;
    font-size: 29px;
    line-height: 1.1;
}

.cart-heading > span {
    display: block;
    margin-top: 7px;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

.cart-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 11px;
}

.cart-section-heading h2,
.cart-options h2 {
    margin: 0;
    font-size: 19px;
}

.cart-section-heading span {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.cart-list {
    display: grid;
    gap: 10px;
}

.cart-bike-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--app-line);
    border-radius: 15px;
    background: var(--app-surface);
}

.cart-bike-card > img {
    width: 72px;
    height: 72px;
    border-radius: 11px;
    object-fit: cover;
}

.cart-bike-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-bike-info > span,
.cart-bike-info > small {
    overflow: hidden;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-bike-info > strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-cart-bike {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--app-background);
    color: var(--app-danger);
    cursor: pointer;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 25px 15px;
    border: 1px dashed var(--app-line);
    border-radius: 15px;
    color: var(--app-muted);
    text-align: center;
}

.cart-empty[hidden],
.cart-review-actions[hidden],
.cart-options[hidden] {
    display: none;
}

.cart-empty > i {
    color: var(--app-primary);
    font-size: 22px;
}

.cart-empty strong {
    color: var(--app-text);
    font-size: 14px;
}

.cart-empty p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 11px;
}

.cart-empty a {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cart-review-actions {
    margin-top: 16px;
}

#continue-to-rates,
#continue-reservation {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    background: var(--app-primary);
    color: #ffffff;
    font-weight: 650;
    cursor: pointer;
}

.cart-options {
    margin-top: 22px;
    padding: 0;
}

.back-to-cart {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 13px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-primary);
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
}

.schedule-heading {
    margin-bottom: 17px;
}

.schedule-heading h2 {
    margin: 0;
    font-size: 29px;
    line-height: 1.06;
}

.schedule-heading p {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    line-height: 1.45;
}

.schedule-card {
    margin-bottom: 11px;
    padding: 14px;
    border-radius: 15px;
    background: var(--app-surface);
}

.schedule-grid {
    display: grid;
    gap: 11px;
}

.schedule-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 11px;
    font-size: 13px;
}

.schedule-card h3 i,
.schedule-card > small {
    color: var(--app-primary);
}

.schedule-field {
    min-height: 43px;
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px !important;
    padding: 0 11px;
    border-radius: 9px;
    background: var(--app-background);
}

.schedule-field > i {
    width: 16px;
    color: var(--app-muted);
    text-align: center;
}

.schedule-field input,
.schedule-field select {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--app-text);
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.schedule-time select {
    font-family: "Space Grotesk", sans-serif;
    font-size: 23px;
    font-weight: 650;
}

.schedule-card > small {
    font-family: "Inter", sans-serif;
    font-size: 9px;
}

.schedule-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 2px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.schedule-duration i {
    color: var(--app-primary);
}

.matched-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    border-radius: 13px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
}

.matched-rate > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.matched-rate span,
.matched-rate small {
    font-family: "Inter", sans-serif;
    font-size: 9px;
}

.matched-rate strong {
    font-size: 14px;
}

.matched-rate b {
    flex: none;
    font-size: 17px;
}

.cart-options label {
    display: block;
    margin: 13px 0 6px;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.cart-options input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--app-line);
    border-radius: 9px;
    background: var(--app-background);
    color: var(--app-text);
}

.cart-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 17px 0 11px;
}

.cart-total-row span {
    font-family: "Inter", sans-serif;
    font-size: 11px;
}

.cart-total-row strong {
    color: var(--app-primary);
    font-size: 22px;
}

.cart-price-note {
    margin: 3px 0 13px;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 9px;
}

.cart-message {
    min-height: 16px;
    margin: 8px 0 0;
    color: var(--app-green);
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.add-more-bikes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

/* Reservation confirmation */

.visually-hidden {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.confirmation-body {
    display: flex;
    justify-content: center;
    background: var(--app-background);
}

.confirmation-page {
    width: 100%;
    max-width: var(--app-width);
    min-height: 100vh;
    padding: 0 var(--app-gutter) 108px;
}

.confirmation-header {
    height: 68px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.confirmation-header a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--app-surface);
    color: var(--app-text);
    text-decoration: none;
}

.confirmation-header strong {
    font-size: 15px;
}

.confirmation-header > span {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.confirmation-intro {
    margin: 16px 0 19px;
}

.confirmation-intro h1 {
    margin: 0;
    font-size: 31px;
}

.confirmation-intro p {
    margin: 5px 0 0;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.confirmation-bikes {
    display: grid;
    gap: 9px;
}

.confirmation-bike {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 17px;
    background: var(--app-surface);
}

.confirmation-bike img {
    width: 88px;
    height: 78px;
    border-radius: 13px;
    object-fit: cover;
}

.confirmation-bike > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.confirmation-bike strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirmation-bike span {
    overflow: hidden;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirmation-bike small {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 6px;
    background: #eef0e9;
    color: var(--app-green);
    font-family: "Inter", sans-serif;
    font-size: 8px;
}

.confirmation-schedule {
    margin-top: 15px;
    padding: 15px;
    border-radius: 17px;
    background: var(--app-surface);
}

.confirmation-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confirmation-rate-row span {
    padding: 6px 8px;
    border-radius: 7px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 10px;
    font-weight: 700;
}

.confirmation-rate-row a {
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.confirmation-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.confirmation-times > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.confirmation-times span {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 8px;
    font-weight: 600;
}

.confirmation-times strong {
    font-size: 13px;
}

.confirmation-times b {
    font-size: 27px;
}

.confirmation-schedule > p {
    margin: 16px 0 0;
    padding-top: 11px;
    border-top: 1px solid var(--app-line);
    color: var(--app-primary);
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.confirmation-insurance {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 43px;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    padding: 14px;
    border: 1px solid var(--app-primary);
    border-radius: 17px;
    background: var(--app-primary-soft);
    cursor: pointer;
}

.confirmation-shield {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--app-primary);
}

.confirmation-insurance > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.confirmation-insurance strong {
    font-size: 13px;
}

.confirmation-insurance small {
    color: var(--app-primary);
    font-family: "Inter", sans-serif;
    font-size: 9px;
}

.confirmation-insurance input {
    width: 43px;
    height: 24px;
    position: relative;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    background: #c7cbc3;
    cursor: pointer;
}

.confirmation-insurance input::after {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
    transition: transform 160ms ease;
}

.confirmation-insurance input:checked {
    background: var(--app-primary);
}

.confirmation-insurance input:checked::after {
    transform: translateX(19px);
}

.price-breakdown {
    margin-top: 21px;
}

.price-breakdown h2 {
    margin: 0 0 11px;
    font-size: 22px;
}

#price-lines {
    display: grid;
    gap: 8px;
}

#price-lines p,
.confirmation-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

#price-lines span {
    font-family: "Inter", sans-serif;
    font-size: 11px;
}

#price-lines strong {
    flex: none;
    font-size: 12px;
}

.confirmation-total {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--app-line);
}

.confirmation-total strong {
    font-size: 16px;
}

.confirmation-total b {
    color: var(--app-primary);
    font-size: 25px;
}

.price-breakdown > p,
.confirmation-terms {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    line-height: 1.45;
}

.confirmation-terms {
    margin: 23px 0 0;
}

.confirmation-action {
    width: 100%;
    max-width: var(--app-width);
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
    padding: 12px var(--app-gutter) 15px;
    border-top: 1px solid var(--app-line);
    background: rgb(246 244 238 / 97%);
}

#confirm-reservation-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--app-primary);
    color: #ffffff;
    font-weight: 650;
    cursor: pointer;
}

#confirm-reservation-button:disabled {
    opacity: 0.65;
}

#confirmation-message {
    margin: 6px 0 0;
    color: var(--app-green);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    text-align: center;
}

.saved-reservations {
    margin-top: 26px;
}

.saved-reservations-list {
    display: grid;
    gap: 9px;
}

.saved-reservation-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: var(--app-surface);
}

.saved-reservation-card > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
}

.saved-reservation-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.saved-reservation-card strong,
.saved-reservation-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-reservation-card strong {
    font-size: 13px;
}

.saved-reservation-card small {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 8px;
}

.saved-reservation-card b {
    color: var(--app-green);
    font-size: 9px;
}

.cancel-reservation {
    padding: 6px 8px;
    border: 1px solid #b54a3b;
    border-radius: 8px;
    background: transparent;
    color: #b54a3b;
    font: 600 9px "Inter", sans-serif;
    cursor: pointer;
}

.saved-reservations-empty {
    padding: 16px;
    border: 1px dashed var(--app-line);
    border-radius: 14px;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    text-align: center;
}

.saved-reservations-empty[hidden] {
    display: none;
}

.incident-list {
    display: grid;
    gap: 12px;
}

.incident-card {
    padding: 14px;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: var(--app-surface);
}

.incident-card h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.incident-card > p,
.incident-reported p {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.incident-form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.incident-form label {
    font: 600 11px "Inter", sans-serif;
}

.incident-form textarea {
    width: 100%;
    min-height: 84px;
    padding: 10px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #ffffff;
    resize: vertical;
}

.incident-form button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--app-primary);
    color: #ffffff;
    cursor: pointer;
}

.incident-reported {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: var(--app-primary-soft);
}

.incident-reported strong {
    color: var(--app-primary);
    font-size: 11px;
}

.incident-reported p {
    margin-bottom: 0;
}

.admin-incident > div p {
    margin: 5px 0;
}

/* Reservation success */

.success-body {
    display: flex;
    justify-content: center;
    background: var(--app-background);
}

.success-page {
    width: 100%;
    max-width: var(--app-width);
    min-height: 100vh;
    padding: 0 var(--app-gutter) 26px;
}

.success-header {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.success-header > div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--app-primary);
}

.success-header img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.success-header strong {
    font-size: 23px;
}

.success-header > span {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.success-check {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--app-primary);
    color: #ffffff;
    font-size: 19px;
}

.success-intro {
    margin: 15px 0 20px;
}

.success-intro h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
}

.success-intro p {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

.reservation-ticket {
    overflow: hidden;
    border-radius: 17px;
    background: var(--app-surface);
}

.reservation-ticket > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: var(--app-primary);
    color: #ffffff;
    font-size: 10px;
}

.ticket-content {
    padding: 16px;
}

.locator-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--app-line);
}

.locator-row span {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 8px;
}

.locator-row strong {
    font-size: 16px;
}

.success-bike-names {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 700;
}

#success-rate-summary {
    margin: 5px 0 0;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.success-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.success-times > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.success-times span {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 8px;
}

.success-times strong {
    font-size: 12px;
}

.success-times b {
    font-size: 25px;
}

.success-ticket-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--app-line);
}

.success-ticket-total span {
    font-family: "Inter", sans-serif;
    font-size: 10px;
}

.success-ticket-total strong {
    font-size: 13px;
}

.success-pickup {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.success-pickup > i {
    color: var(--app-primary);
}

.success-pickup > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.success-pickup strong {
    font-size: 12px;
}

.success-pickup span,
.success-pickup small {
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 9px;
}

.success-document {
    display: flex;
    gap: 9px;
    margin: 15px 0;
    padding: 12px;
    border-radius: 11px;
    background: #eef0e9;
    color: var(--app-green);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    line-height: 1.4;
}

.success-primary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border-radius: 10px;
    background: var(--app-primary);
    color: #ffffff;
    font-weight: 650;
    text-decoration: none;
}

.success-secondary {
    display: block;
    margin-top: 13px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.success-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 10px;
}

.success-downloads button {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--app-primary);
    border-radius: 10px;
    background: transparent;
    color: var(--app-primary);
    font: 650 10px "Space Grotesk", sans-serif;
    cursor: pointer;
}

.success-downloads button:hover,
.success-downloads button:focus-visible {
    background: #e9edff;
}

.success-downloads button:disabled {
    border-color: var(--app-line);
    color: var(--app-muted);
    cursor: wait;
}

.success-downloads button i {
    font-size: 15px;
}

.invoice-render-container {
    position: fixed;
    top: 0;
    left: -10000px;
    width: 720px;
    background: #ffffff;
    pointer-events: none;
}

.cart-shop-warning {
    margin: 12px var(--app-gutter) 92px;
    padding: 12px;
    border-radius: 10px;
    background: #fff1ed;
    text-align: center;
}

/* Administration */

.admin-content {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 24px 20px 100px;
}

.admin-heading h1,
.admin-section h2 {
    margin: 0 0 8px;
}

.admin-section > h3 {
    margin: 26px 0 12px;
    font-size: 17px;
}

.admin-section > h4 {
    margin: 18px 0 10px;
    color: var(--app-muted);
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.admin-nav a,
.admin-nav button,
.admin-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 9px;
    background: var(--app-primary);
    color: white;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.admin-nav button[aria-pressed="true"] {
    background: var(--app-green);
}

.admin-panel-link {
    margin: 16px 0;
}

.admin-section[hidden] {
    display: none;
}

.admin-section {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: var(--app-surface);
    scroll-margin-top: 20px;
}

.admin-form,
.admin-row,
.admin-filter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    align-items: end;
    gap: 10px;
}

.admin-form {
    margin: 14px 0 20px;
    padding: 14px;
    border-radius: 10px;
    background: var(--app-background);
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-row {
    padding: 12px 0;
    border-top: 1px solid var(--app-line);
}

.admin-form label,
.admin-row label {
    display: grid;
    gap: 5px;
    font: 600 11px "Inter", sans-serif;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-row input,
.admin-row select,
.admin-row textarea,
.admin-filter input,
.admin-filter select,
.rating-form input,
.rating-form select,
.rating-form textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px;
    border: 1px solid var(--app-line);
    border-radius: 7px;
    background: white;
}

.admin-row textarea {
    min-height: 80px;
    resize: vertical;
}

.admin-edit-list {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.admin-edit-form[hidden] {
    display: none;
}

.admin-edit-help {
    margin: -4px 0 10px;
    color: var(--app-muted);
    font: 11px "Inter", sans-serif;
}

.admin-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font: 600 11px "Inter", sans-serif;
    cursor: pointer;
}

.admin-edit-card {
    padding: 14px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #faf9f5;
}

.admin-edit-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-edit-heading > div {
    display: grid;
    gap: 4px;
}

.admin-edit-heading strong {
    font-size: 13px;
}

.admin-edit-heading small {
    color: var(--app-muted);
    font: 11px "Inter", sans-serif;
}

.admin-edit-heading > span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font: 700 10px "Inter", sans-serif;
}

.admin-rating-fields,
.admin-reply-fields {
    display: grid;
    align-items: end;
    gap: 12px;
}

.admin-rating-fields {
    grid-template-columns: minmax(130px, 1fr) minmax(220px, 1.5fr) minmax(110px, 0.6fr);
}

.admin-rating-fields > .admin-edit-actions {
    grid-column: 1 / -1;
    justify-self: end;
}

.admin-reply-fields {
    grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.5fr) auto;
}

.admin-edit-card label {
    display: grid;
    gap: 6px;
    color: var(--app-text);
    font: 600 11px "Inter", sans-serif;
}

.admin-edit-card input,
.admin-edit-card select,
.admin-edit-card textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--app-text);
    font: 12px "Inter", sans-serif;
}

.admin-edit-card textarea {
    min-height: 76px;
    resize: vertical;
}

.admin-edit-card button {
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--app-primary);
    color: #ffffff;
    font: 600 11px "Inter", sans-serif;
    cursor: pointer;
}

.admin-edit-actions {
    display: flex;
    gap: 8px;
}

.admin-edit-actions button {
    flex: 1;
}

.admin-edit-card .admin-edit-cancel {
    background: #e7e8e2;
    color: var(--app-text);
}

.admin-edit-card .admin-delete {
    background: #b54a3b;
}

.admin-form button,
.admin-row button,
.admin-filter button,
.rating-form button {
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: var(--app-primary);
    color: white;
    cursor: pointer;
}

.admin-actions {
    display: flex;
    gap: 6px;
}

.admin-actions .admin-delete {
    background: #b54a3b;
}

.admin-message {
    padding: 12px;
    border-radius: 8px;
}

.admin-message-ok {
    background: #e6f4ea;
    color: #276738;
}

.admin-message-error {
    background: #fff1ed;
    color: #9b3026;
}

.admin-comment p {
    margin: 5px 0;
}

/* Ratings */

.ratings-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--app-line);
}

.rating-form {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.rating-form label {
    display: grid;
    gap: 5px;
    font: 600 11px "Inter", sans-serif;
}

.rating-form textarea {
    min-height: 90px;
    resize: vertical;
}

.rating-list {
    display: grid;
    gap: 10px;
}

.rating-card {
    padding: 12px;
    border: 1px solid var(--app-line);
    border-radius: 10px;
}

.rating-card strong {
    color: var(--app-primary);
}

.rating-comments {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.rating-comment {
    padding: 9px 11px;
    border-left: 3px solid var(--app-primary);
    border-radius: 5px;
    background: var(--app-background);
}

.rating-comment p {
    margin: 0 0 4px;
}

.comment-form {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.comment-form label {
    font: 600 10px "Inter", sans-serif;
}

.comment-form textarea {
    min-height: 70px;
    padding: 8px;
    border: 1px solid var(--app-line);
    border-radius: 7px;
    resize: vertical;
}

.comment-form button {
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: var(--app-primary);
    color: white;
    cursor: pointer;
}

.rating-message {
    padding: 10px;
    border-radius: 8px;
    background: #e6f4ea;
    color: #276738;
}

.rating-error {
    background: #fff1ed;
    color: #9b3026;
}

@media (max-width: 340px) {
    :root {
        --app-gutter: 13px;
    }

    .site-header h1 {
        font-size: 22px;
    }

    .app-footer button {
        min-width: 48px;
        font-size: 11px;
    }

    .bike-card {
        grid-template-columns: 88px minmax(0, 1fr) 12px;
        gap: 8px;
        padding: 9px;
    }

    .bike-card-selected {
        padding: 8px;
    }

    .bike-card > img {
        width: 100%;
        height: 92px;
    }

    .bike-details h3 {
        font-size: 18px;
    }
}

/* Responsive layout */

@media (max-width: 599px) {
    .site-header {
        margin-inline: auto;
    }

    .auth-page {
        justify-content: flex-start;
    }

    .auth-page .hero {
        padding-bottom: 12px;
    }

    .auth-footer {
        flex-wrap: wrap;
        justify-content: center;
        padding-inline: 16px;
    }

    .saved-reservation-card {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .saved-reservation-card > b,
    .saved-reservation-card > .cancel-reservation {
        grid-column: 2;
        justify-self: start;
    }

    .success-downloads {
        grid-template-columns: 1fr;
    }

    .admin-content {
        padding: 18px 12px 100px;
    }

    .admin-section {
        padding: 13px;
    }

    .admin-form,
    .admin-row,
    .admin-filter {
        grid-template-columns: 1fr;
    }

    .admin-rating-fields,
    .admin-reply-fields {
        grid-template-columns: 1fr;
    }

    .admin-rating-fields > .admin-edit-actions {
        grid-column: auto;
        justify-self: stretch;
    }

    .admin-edit-actions {
        flex-wrap: wrap;
    }

    .admin-edit-actions button {
        flex: 1 1 110px;
    }

    .admin-edit-actions button {
        flex: 1;
    }

    .admin-actions {
        flex-wrap: wrap;
    }

    .admin-actions button {
        flex: 1 1 120px;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .admin-nav a,
    .admin-nav button {
        justify-content: center;
        text-align: center;
    }
}

@media (min-width: 600px) {
    :root {
        --app-width: 720px;
        --app-gutter: 24px;
    }

    .site-header,
    .app-footer {
        margin-inline: auto;
    }

    .site-header {
        min-height: 70px;
    }

    .site-header h1 {
        font-size: 28px;
    }

    .avatar {
        width: 38px;
        height: 38px;
    }

    #opciones {
        max-width: 180px;
        font-size: 13px;
    }

    .app-page > nav,
    .app-page > #filtratje,
    .app-page > #map,
    .app-page > .profile-content,
    .app-page > .cart-content,
    .filters-panel,
    .nearby-shops {
        width: calc(100% - 48px);
        max-width: 672px;
    }

    .app-page > nav h1,
    .auth-page main h1 {
        font-size: clamp(38px, 6vw, 50px);
    }

    .shop-list,
    .bike-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nearby-shop-card {
        height: 100%;
    }

    .bike-card {
        min-height: 132px;
        grid-template-columns: 110px minmax(0, 1fr) 14px;
    }

    .bike-image-wrapper,
    .bike-image-wrapper > img {
        width: 110px;
        height: 110px;
    }

    .profile-content,
    .cart-content {
        padding-top: 28px;
    }

    .profile-card {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        align-items: start;
        gap: 0 22px;
        padding: 24px;
    }

    .profile-avatar {
        width: 82px;
        height: 82px;
        grid-row: span 2;
        margin: 0;
        font-size: 31px;
    }

    .profile-config {
        grid-column: 2;
    }

    .admin-images-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-images-heading,
    .admin-images-section > .photo-message {
        grid-column: 1 / -1;
    }

    .admin-image-form {
        align-content: start;
    }

    .map-content {
        width: calc(100% - 48px);
        max-width: 672px;
        padding-top: 12px;
    }

    .map-heading,
    .map-search,
    .map-note {
        width: 100%;
    }

    .map-stage {
        min-height: 540px;
        border-radius: 18px;
    }

    .map-page #map {
        border-radius: 18px;
    }

    .map-location-button {
        bottom: 22px;
    }

    .nearest-shop {
        max-width: 500px;
    }

    .shop-page {
        max-width: 720px;
    }

    .shop-hero {
        height: 310px;
    }

    .shop-content {
        padding: 28px 24px 105px;
    }

    .bike-detail-page {
        max-width: 720px;
    }

    .bike-detail-header {
        height: 76px;
    }

    .gallery-slide,
    .gallery-slide img {
        height: 390px;
    }

    .bike-detail-content {
        padding-block: 24px 32px;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-card {
        height: 100%;
        margin-bottom: 0;
    }

    .cart-list,
    .confirmation-bikes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .confirmation-page,
    .success-page {
        max-width: 680px;
    }

    .confirmation-action {
        max-width: 680px;
    }

    .success-intro h1,
    .confirmation-intro h1 {
        font-size: 40px;
    }

    .admin-content {
        padding-inline: 24px;
    }

    .rating-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    :root {
        --app-width: 1120px;
        --app-gutter: 32px;
    }

    .site-header,
    .app-footer {
        max-width: 1120px;
    }

    .auth-page {
        min-height: 100vh;
        justify-content: flex-start;
    }

    .auth-page .hero {
        width: calc(100% - 64px);
        max-width: 1050px;
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
        align-items: stretch;
        gap: 46px;
        margin: 28px auto 20px;
    }

    .auth-page .imatge {
        max-width: none;
        min-height: 600px;
    }

    .auth-page #imgBici {
        height: 100%;
        object-fit: cover;
    }

    .auth-page main {
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 30px 0;
    }

    .auth-footer {
        margin-top: auto;
    }

    .app-page > nav,
    .app-page > #filtratje,
    .filters-panel,
    .nearby-shops {
        width: calc(100% - 64px);
        max-width: 1056px;
    }

    .app-page > nav h1 {
        max-width: 700px;
        font-size: 58px;
    }

    .app-page > nav p {
        font-size: 16px;
    }

    .search-box {
        max-width: 620px;
        margin-left: 0;
    }

    #filtratje {
        justify-content: flex-start;
    }

    #filtratje .btn {
        max-width: 180px;
        flex: 0 1 180px;
    }

    .filters-panel {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) auto;
        align-items: end;
        gap: 20px;
    }

    .filters-panel[hidden] {
        display: none;
    }

    .filter-check,
    .filter-actions {
        margin-top: 0;
    }

    .shop-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .map-content {
        width: calc(100% - 64px);
        max-width: 1056px;
    }

    .map-stage {
        min-height: 620px;
    }

    .map-shop-list {
        right: auto;
        width: 360px;
        max-height: calc(100% - 82px);
    }

    .app-page > .profile-content {
        width: calc(100% - 64px);
        max-width: 820px;
    }

    .shop-page {
        max-width: 1120px;
    }

    .shop-hero {
        height: 360px;
    }

    .shop-content {
        display: grid;
        grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.6fr);
        align-items: start;
        gap: 28px 42px;
        padding: 36px 40px 115px;
    }

    .shop-info {
        grid-column: 1;
        grid-row: 1 / span 2;
        position: sticky;
        top: 24px;
    }

    .bike-section,
    .ratings-section {
        grid-column: 2;
        margin-top: 0;
    }

    .bike-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bike-card {
        grid-template-columns: 105px minmax(0, 1fr) 14px;
    }

    .bike-image-wrapper,
    .bike-image-wrapper > img {
        width: 105px;
        height: 112px;
    }

    .bike-detail-page {
        max-width: 960px;
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
        align-content: start;
        gap: 0 20px;
    }

    .bike-detail-header {
        grid-column: 1 / -1;
    }

    .bike-gallery {
        grid-column: 1;
        padding-right: 0;
    }

    .bike-detail-content {
        grid-column: 2;
        align-self: center;
        padding: 35px 32px;
    }

    .bike-detail-content h1 {
        font-size: 42px;
    }

    .bike-detail-page > .detail-error {
        grid-column: 1 / -1;
    }

    .bike-booking-bar {
        max-width: 960px;
    }

    .app-page > .cart-content {
        width: calc(100% - 64px);
        max-width: 900px;
    }

    .cart-heading h1 {
        font-size: 46px;
    }

    .cart-empty {
        min-height: 250px;
    }

    .saved-reservations-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .confirmation-page,
    .success-page,
    .confirmation-action {
        max-width: 760px;
    }

    .admin-content {
        max-width: 1120px;
        padding-inline: 32px;
    }

    .admin-form,
    .admin-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .admin-reservation,
    .admin-comment {
        grid-template-columns: minmax(320px, 2fr) minmax(170px, 0.8fr) auto;
    }
}

@media (min-width: 1280px) {
    .site-header,
    .app-footer,
    .shop-page {
        border-right: 1px solid var(--app-line);
        border-left: 1px solid var(--app-line);
    }

    .map-content {
        max-width: 1180px;
    }
}

/* Reservation invoice */
.invoice-sheet {
    box-sizing: border-box;
    width: 720px;
    min-height: 980px;
    padding: 54px;
    background: #fff;
    color: #202720;
    font-family: Arial, sans-serif;
}

.invoice-sheet * {
    box-sizing: border-box;
}

.invoice-brand,
.invoice-heading,
.invoice-meta,
.invoice-summary,
.invoice-total {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.invoice-brand {
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 3px solid #3454e8;
    color: #3454e8;
}

.invoice-brand strong {
    font-size: 30px;
    letter-spacing: -0.8px;
}

.invoice-brand span {
    color: #687068;
    font-size: 12px;
}

.invoice-heading {
    margin-top: 34px;
    align-items: flex-start;
}

.invoice-heading h1 {
    margin: 0;
    font-size: 34px;
}

.invoice-heading p,
.invoice-meta p {
    margin: 5px 0 0;
    color: #727872;
    font-size: 12px;
    line-height: 1.5;
}

.invoice-number {
    text-align: right;
}

.invoice-number strong {
    display: block;
    font-size: 18px;
}

.invoice-meta {
    margin: 32px 0;
    padding: 22px;
    border-radius: 14px;
    background: #f4f3ef;
}

.invoice-meta > div {
    flex: 1;
}

.invoice-label {
    display: block;
    margin-bottom: 7px;
    color: #727872;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.invoice-meta strong {
    font-size: 14px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th {
    padding: 12px 8px;
    border-bottom: 1px solid #dcded8;
    color: #727872;
    font-size: 10px;
    text-align: left;
    text-transform: uppercase;
}

.invoice-table td {
    padding: 16px 8px;
    border-bottom: 1px solid #ecece8;
    font-size: 13px;
}

.invoice-table th:last-child,
.invoice-table td:last-child {
    text-align: right;
}

.invoice-table small {
    display: block;
    margin-top: 4px;
    color: #727872;
}

.invoice-summary {
    width: 310px;
    margin: 30px 0 0 auto;
    flex-direction: column;
    gap: 10px;
}

.invoice-summary p,
.invoice-total {
    margin: 0;
}

.invoice-summary p {
    display: flex;
    justify-content: space-between;
    color: #4d534d;
    font-size: 13px;
}

.invoice-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid #202720;
    align-items: baseline;
    font-size: 20px;
    font-weight: 700;
}

.invoice-total strong {
    color: #3454e8;
    font-size: 27px;
}

.invoice-footer {
    margin-top: 70px;
    padding-top: 18px;
    border-top: 1px solid #dcded8;
    color: #727872;
    font-size: 10px;
    line-height: 1.6;
}
