/* =========================================
   Product Rent Page (product-padel-rent.html)
   ========================================= */

/* Mode banner */
.pr-mode-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin: 6px 0 24px;
    border-radius: var(--radius-lg);
    background: var(--primary-blue-light, rgba(0, 102, 255, 0.06));
    border: 1px solid rgba(0, 102, 255, 0.18);
    font-size: var(--text-sm);
    color: var(--text-body);
}
.pr-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--primary-blue);
    color: white;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.pr-mode-badge i { width: 12px; height: 12px; }
.pr-mode-text { flex: 1; min-width: 240px; }
.pr-mode-text a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}
.pr-mode-text a:hover { text-decoration: underline; }

/* Layout: product summary + booking form */
.pr-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
    margin-bottom: 60px;
}

/* ---- Left: product summary ---- */
.pr-product {
    position: sticky;
    top: 90px;
    align-self: start;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.pr-image-wrap {
    position: relative;
    background: var(--bg-light);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.pr-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pr-image-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-blue);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-md);
}
.pr-image-badge i { width: 12px; height: 12px; }

.pr-product-info {
    padding: 20px 22px 22px;
}
.pr-brand {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}
.pr-name {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 6px 0 14px;
    color: var(--text-dark);
}
.pr-rate {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--primary-blue-light, rgba(0, 102, 255, 0.08));
}
.pr-rate-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
}
.pr-rate-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pr-highlights {
    list-style: none;
    padding: 0;
    margin: 18px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pr-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--text-body);
}
.pr-highlights i {
    width: 16px;
    height: 16px;
    color: #16A34A;
    flex-shrink: 0;
}

.pr-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
}
.pr-detail-link:hover { text-decoration: underline; }
.pr-detail-link i { width: 14px; height: 14px; }

/* ---- Right: booking form ---- */
.pr-form {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pr-step { display: flex; flex-direction: column; gap: 10px; }
.pr-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pr-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pr-step-head h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.pr-step-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pr-step-hint i { width: 13px; height: 13px; }

/* Location */
.pr-loc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pr-loc-opt {
    background: white;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}
.pr-loc-opt > i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.pr-loc-opt .pr-loc-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
}
.pr-loc-opt .pr-loc-addr {
    font-size: 0.74rem;
    color: var(--text-muted);
}
.pr-loc-opt:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.04);
}
.pr-loc-opt.is-selected,
.pr-loc-opt.is-selected:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.08);
}
.pr-loc-opt.is-selected > i,
.pr-loc-opt.is-selected .pr-loc-name { color: var(--primary-blue); }

/* Date strip */
.pr-date-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}
.pr-date-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 8px 4px;
    background: white;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: inherit;
}
.pr-date-cell:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.04);
}
.pr-date-cell.is-selected,
.pr-date-cell.is-selected:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: white;
}
.pr-date-dow { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }
.pr-date-num { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); }
.pr-date-mon { font-size: 0.65rem; color: var(--text-muted); }
.pr-date-cell.is-selected .pr-date-dow,
.pr-date-cell.is-selected .pr-date-num,
.pr-date-cell.is-selected .pr-date-mon { color: white; }

/* Time grid */
.pr-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}
.pr-time-cell {
    padding: 10px 6px;
    background: white;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: inherit;
}
.pr-time-cell:hover:not(:disabled) {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.04);
}
.pr-time-cell.is-selected,
.pr-time-cell.is-selected:hover:not(:disabled) {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: white;
}
.pr-time-cell.is-disabled,
.pr-time-cell:disabled {
    background: var(--bg-light);
    color: var(--text-faint);
    cursor: not-allowed;
    text-decoration: line-through;
}
.pr-time-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pr-time-empty i { width: 14px; height: 14px; }

/* Duration */
.pr-dur-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pr-dur-opt {
    background: white;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.12s ease;
    font-family: inherit;
    position: relative;
}
.pr-dur-opt strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}
.pr-dur-opt span {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.pr-dur-opt:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.04);
}
.pr-dur-opt.is-selected,
.pr-dur-opt.is-selected:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.08);
}
.pr-dur-opt.is-selected strong { color: var(--primary-blue); }
.pr-dur-save {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: #DCFCE7;
    color: #16A34A;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Quantity */
.pr-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.pr-qty-label { font-size: 0.92rem; color: var(--text-body); }
.pr-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.pr-qty-btn {
    width: 36px;
    height: 36px;
    background: white;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
}
.pr-qty-btn:hover:not(:disabled) {
    background: var(--bg-light);
    color: var(--primary-blue);
}
.pr-qty-btn:disabled { color: var(--text-faint); cursor: not-allowed; }
.pr-qty-val {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    font-weight: 700;
    color: var(--text-dark);
    font-family: inherit;
    background: white;
}

/* Summary */
.pr-summary {
    margin-top: 4px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pr-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-body);
}
.pr-sum-row strong { color: var(--text-dark); font-weight: 700; }
.pr-sum-divider { height: 1px; background: var(--border-light); margin: 4px 0; }
.pr-sum-total span { font-weight: 600; }
.pr-sum-total strong {
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 800;
}

.pr-cta {
    width: 100%;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pr-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pr-cta-hint {
    margin: 4px 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pr-cta-hint i { width: 13px; height: 13px; }
.pr-cta-hint.is-ready { color: #16A34A; }

.pr-deposit {
    margin: 4px 0 0;
    font-size: 0.74rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 980px) {
    .pr-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .pr-product { position: static; }
}

@media (max-width: 640px) {
    .pr-form { padding: 18px; gap: 20px; }
    .pr-loc-grid,
    .pr-dur-grid { grid-template-columns: 1fr; }
    .pr-date-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pr-time-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
    .pr-name { font-size: 1.15rem; }
    .pr-rate-amount { font-size: 1.2rem; }
}
