/* RPG Parking front end. Layout follows the client's booking-flow mockup; colours and font come from the site theme (navy #0F2A44, cyan #00AEEF, Plus Jakarta Sans). */
.rpgp{--ink:#0F2A44;--muted:#5B6B7B;--bg:#F5F7FA;--card:#FFFFFF;--line:#DCE0E0;--line2:#DCE0E0;--soft:#E6EEF4;--brown:#00AEEF;--gold:#00AEEF;--green:#00AEEF;--green-d:#0F2A44;--green-t:#0089BF;--green-bg:#EAF8FE;--red:#C3C9CF;--red-d:#5C6670;--red-bg:#EEF1F4;--amber:#0F2A44;--amber-d:#0F2A44;--amber-bg:#EAF8FE;background:var(--bg);color:var(--ink)}
.rpgp *{box-sizing:border-box}
.rpgp a{color:var(--brown)}
.rpgp button{font-family:inherit;cursor:pointer}
.rpgp button:disabled,.rpgp button[aria-disabled=true].rpgp-btn{cursor:not-allowed;opacity:.45}
.rpgp-wrap{max-width:1200px;margin:0 auto;padding:32px 24px 64px}
.rpgp-page{display:flex;flex-direction:column;gap:28px}
.rpgp-stack{display:flex;flex-direction:column;gap:18px}
.rpgp-h1{margin:0;font-size:36px;font-weight:800;line-height:1.15;color:var(--ink);letter-spacing:-.5px}
.rpgp-h1--sm{font-size:30px}
.rpgp-h2{margin:0 0 10px;font-size:22px;font-weight:800;color:var(--ink)}
.rpgp-h3{margin:4px 0 0;font-size:18px;font-weight:800;color:var(--ink)}
.rpgp-lead{margin:0;font-size:17px;line-height:1.5;color:var(--muted)}
.rpgp-muted{margin:0;color:var(--muted);font-size:15px;line-height:1.5}
.rpgp-small{font-size:13px}
.rpgp-open{color:var(--green-t)}
.rpgp-card{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 40px rgba(15,42,68,.06)}

/* Steps */
.rpgp-steps{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.rpgp-step{margin:0;padding:10px 16px;border-radius:999px;font-size:14px;font-weight:700;border:1px solid var(--line);background:var(--card);color:var(--muted)}
.rpgp-step.is-done{background:var(--green-bg);color:var(--green-d);border-color:var(--green)}
.rpgp-step.is-active{background:var(--ink);color:#fff;border-color:var(--ink)}

/* Intro */
.rpgp-intro{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:20px}
.rpgp-intro__text{display:flex;flex-direction:column;gap:8px;max-width:680px}
.rpgp-term{background:var(--ink);color:#fff;border-radius:14px;padding:14px 18px;display:flex;flex-direction:column;gap:2px}
.rpgp-term span{font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--gold)}
.rpgp-term strong{font-size:17px;font-weight:700;color:#fff}

/* Filters */
.rpgp-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.rpgp-chips,.rpgp-seasons{display:flex;flex-wrap:wrap;gap:10px}
.rpgp-chip{height:44px;padding:0 18px;border-radius:999px;font-size:15px;font-weight:700;background:var(--card);color:var(--ink)!important;border:1px solid var(--line2);display:inline-flex;align-items:center;text-decoration:none}
.rpgp-chip.is-on{background:var(--ink);color:#fff!important;border-color:var(--ink)}
.rpgp-toolbar .rpgp-muted{margin-left:6px}

/* Lot cards */
.rpgp-lots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.rpgp-lot{display:flex;flex-direction:column;gap:14px;padding:22px;color:var(--ink)!important;text-decoration:none!important;transition:border-color .2s,box-shadow .2s,transform .2s}
.rpgp-lot:hover,.rpgp-lot:focus-visible{border-color:var(--brown);box-shadow:0 15px 50px rgba(15,42,68,.12);transform:translateY(-2px)}
.rpgp-lot[hidden]{display:none}
.rpgp-lot__img{display:block;margin:-22px -22px 0;aspect-ratio:16/8;border-radius:15px 15px 0 0;background:var(--soft) center/cover no-repeat}
.rpgp-lot__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.rpgp-lot__title{font-size:20px;font-weight:800;line-height:1.25}
.rpgp-lot__price{font-size:16px;font-weight:800;white-space:nowrap}
.rpgp-lot__price small{font-size:inherit;font-weight:500;color:var(--muted)}
.rpgp-lot__loc{flex-grow:1;font-size:14px;line-height:1.45;color:var(--muted)}
.rpgp-bar{display:block;width:100%;height:10px;background:var(--soft);border-radius:999px;overflow:hidden}
.rpgp-bar span{display:block;height:10px;background:var(--green);border-radius:999px}
.rpgp-lot__foot{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:32px;font-size:15px;line-height:1.4}
.rpgp-link{color:var(--brown);font-weight:700;white-space:nowrap}
.rpgp-pill{display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:999px;background:var(--amber-bg);color:var(--amber-d);font-size:13px;font-weight:700;line-height:1}
.rpgp-empty{padding:32px;text-align:center}.rpgp-empty h2{margin:0 0 8px;font-size:22px}
.rpgp-empty-filter,.rpgp-help{margin:0;color:var(--muted);font-size:15px}
.rpgp-empty-filter{text-align:center}

/* Lot page */
.rpgp-layout{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.rpgp-main{flex:999 1 600px;min-width:0;display:flex;flex-direction:column;gap:18px}
.rpgp-lothead{display:flex;flex-direction:column;gap:6px}
.rpgp-back{align-self:flex-start;background:none;border:0;padding:0;font-size:15px;font-weight:600;color:var(--brown);text-decoration:none}
.rpgp-back:hover{text-decoration:underline}
.rpgp-lotlinks{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:6px 0 0;font-size:15px;line-height:1.4}
.rpgp-lotlinks span{font-weight:700}
.rpgp-lotlinks a{font-weight:600}
.rpgp-maphead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.rpgp-count{margin:0;font-size:16px}
.rpgp-legend{display:flex;flex-wrap:wrap;gap:14px;list-style:none;margin:0;padding:0;font-size:14px}
.rpgp-legend li{display:flex;align-items:center;gap:6px;margin:0;line-height:1}
.rpgp-sw{display:inline-block;flex:0 0 16px;width:16px;height:16px;border-radius:4px;border:2px solid}
.rpgp-map{padding:22px;display:flex;flex-direction:column;gap:18px}
.rpgp-row{display:flex;flex-direction:column;gap:10px}
.rpgp-rowlabel{margin:0;font-size:13px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.rpgp-spots{display:flex;flex-wrap:wrap;gap:8px}
.rpgp-spot{min-width:66px;height:78px;padding:4px 6px;border-radius:10px;border:2px solid;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:inherit;text-align:center}
.rpgp-spot b{font-size:16px;line-height:1.1}
.rpgp-spot small{font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase}
.rpgp-spot:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.rpgp-s-open{background:#fff;border-color:var(--green);color:var(--ink)}
.rpgp-spot.rpgp-s-open:hover{background:#D6F1FC}
.rpgp-s-pick{background:var(--green);border-color:var(--green);color:#fff}
.rpgp-s-leased{background:var(--red-bg);border-color:var(--red);color:var(--red-d)}
.rpgp-s-held{background:#fff;border-color:var(--ink);border-style:dashed;color:var(--ink)}
.rpgp-s-blocked{background:repeating-linear-gradient(135deg,#F4F5F6 0 6px,#E6E9EC 6px 12px);border-color:#A7AEB5;color:#50575e}
.rpgp-lane{height:40px;border-radius:8px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;letter-spacing:3px;text-transform:uppercase}
.rpgp-info{margin:0;padding:14px 18px;border-radius:12px;background:#EAF8FE;border-left:4px solid var(--green);color:var(--ink);font-size:15px;font-weight:600;line-height:1.45}
.rpgp-note{margin:0;padding:12px 16px;border-radius:10px;background:#EAF8FE;border-left:4px solid var(--green);color:var(--ink);font-size:15px;font-weight:600}
.rpgp-ok{margin:0;padding:14px 16px;border-radius:12px;background:var(--green-bg);color:var(--green-d);font-size:15px;font-weight:700}
.rpgp-error{margin:0;padding:12px 16px;border-radius:10px;background:#FCE8E6;color:#8A1F11;font-size:15px;font-weight:600}

/* Side card */
.rpgp-side{flex:1 1 320px;padding:24px;display:flex;flex-direction:column;gap:18px;position:sticky;top:110px}
.rpgp-side h2{margin:0;font-size:20px;font-weight:800;color:var(--ink)}
.rpgp-kv{margin:0;display:flex;flex-direction:column;gap:10px}
.rpgp-kv--line{padding-bottom:14px;border-bottom:1px solid var(--soft)}
.rpgp-kv div{display:flex;justify-content:space-between;gap:10px;font-size:15px}
.rpgp-kv dt{color:var(--muted)}
.rpgp-kv dd{margin:0;font-weight:700;text-align:right}
.rpgp-plans{display:flex;flex-direction:column;gap:10px}
.rpgp-plan{text-align:left;padding:14px 16px;border-radius:12px;background:#fff;border:2px solid var(--line);color:var(--ink);display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:16px}
.rpgp-plan span{display:flex;flex-direction:column;gap:2px;line-height:1.35}
.rpgp-plan b{font-weight:700}
.rpgp-plan small{font-size:13px;color:var(--muted)}
.rpgp-plan strong{font-weight:800;white-space:nowrap}
.rpgp-plan.is-on{background:#EAF8FE;border-color:var(--green)}
.rpgp-total{display:flex;justify-content:space-between;font-size:18px;font-weight:800;padding-top:14px;border-top:1px solid var(--soft)}

/* Buttons */
.rpgp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 28px;border:0;border-radius:8px;background:var(--green);color:#fff!important;font-size:16px;font-weight:700;text-decoration:none!important;transition:background .2s}
.rpgp-btn:hover:not(:disabled){background:var(--ink)}
.rpgp-btn--go{align-self:flex-start}
.rpgp-btn--amber{background:var(--ink)}
.rpgp-btn--amber:hover:not(:disabled){background:var(--green)}

/* Details form */
.rpgp-form{padding:28px;display:flex;flex-direction:column;gap:20px}
.rpgp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rpgp-f{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;border:0;font-size:14px;font-weight:600;color:var(--ink)}
.rpgp-f legend{padding:0;margin:0 0 6px;font-size:14px;font-weight:600;line-height:1.4;color:var(--ink);border:0;width:auto;float:none}
.rpgp-f input,.rpgp-f select{height:46px;padding:0 14px;border:1px solid var(--line2);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:400;width:100%}
.rpgp-f input:focus,.rpgp-f select:focus{outline:2px solid var(--green);outline-offset:1px;border-color:var(--green)}
.rpgp-radios{display:flex;gap:10px}
.rpgp-radios label{flex:1;height:46px;border:1px solid var(--line2);border-radius:10px;display:flex;align-items:center;gap:8px;padding:0 14px;font-weight:500;cursor:pointer;background:#fff}
.rpgp .rpgp-f input[type=radio]{width:18px;height:18px;min-width:18px;padding:0;margin:0;accent-color:#00AEEF}
.rpgp-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.45;color:var(--ink)}
.rpgp-check input{width:20px;height:20px;flex:0 0 auto;margin:0;accent-color:#00AEEF}
.rpgp-secure{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;color:var(--muted)}

/* About the lot */
.rpgp-about{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.rpgp-about__text{padding:24px}
.rpgp-about__text p{color:var(--muted);line-height:1.6}
.rpgp-about__img{display:block;width:100%;height:auto;max-height:260px;object-fit:cover;border-radius:12px;margin-bottom:16px}
.rpgp-about__map{overflow:hidden;min-height:340px}
.rpgp-about__map iframe{display:block;width:100%;height:100%;min-height:340px;border:0}

/* Confirmation */
.rpgp-done{max-width:620px;margin:0 auto;width:100%;padding:40px 32px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.rpgp-box{width:100%;background:var(--bg);border-radius:14px;padding:20px;text-align:left}
.rpgp-spinner{width:44px;height:44px;border-radius:50%;border:4px solid var(--green-bg);border-top-color:var(--green);animation:rpgp-spin 1s linear infinite}
@keyframes rpgp-spin{to{transform:rotate(360deg)}}
.rpgp-done svg circle{fill:#EAF8FE}
.rpgp-done svg polyline{stroke:#00AEEF}

@media (max-width:1024px){.rpgp-lots{grid-template-columns:repeat(2,minmax(0,1fr))}.rpgp-side{position:static}}
@media (max-width:767px){.rpgp-wrap{padding:24px 16px 48px}.rpgp-h1{font-size:28px}.rpgp-h1--sm{font-size:24px}.rpgp-lead{font-size:16px}.rpgp-lots,.rpgp-grid,.rpgp-about{grid-template-columns:1fr}.rpgp-map,.rpgp-form,.rpgp-side{padding:18px}.rpgp-spot{min-width:calc(25% - 6px)}.rpgp-steps{gap:6px}.rpgp-step{padding:8px 12px;font-size:13px}.rpgp-btn--go{align-self:stretch}.rpgp-toolbar .rpgp-muted{margin-left:0;width:100%}}

/* Compact hero (site style) */
.rpgp-hero{position:relative;background:#0F2A44 var(--rpgp-hero) center/cover no-repeat;color:#fff;text-align:center;padding:56px 24px}
.rpgp-hero:before{content:"";position:absolute;inset:0;background:#0F2A44;opacity:.84}
.rpgp-hero__in{position:relative;max-width:900px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:12px}
.rpgp-eyebrow{margin:0;color:#00AEEF;font-size:14px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.rpgp-hero__title{margin:0;color:#fff;font-size:42px;line-height:1.15;font-weight:800;letter-spacing:-.5px}
.rpgp-hero__lead{margin:0;color:rgba(255,255,255,.9);font-size:17px;line-height:1.6;max-width:720px}
.rpgp-hero .rpgp-term{margin-top:6px;align-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.25)}
.rpgp-hero .rpgp-lotlinks{justify-content:center;margin:4px 0 0;color:#fff}
.rpgp-hero .rpgp-lotlinks a{color:#00AEEF}
.rpgp-hero .rpgp-lotlinks a:hover{color:#fff}
@media (max-width:767px){.rpgp-hero{padding:40px 16px}.rpgp-hero__title{font-size:30px;letter-spacing:0}.rpgp-hero__lead{font-size:15px}}

/* v0.2.2: booked and unavailable spots in dark blue */
.rpgp-s-leased{background:#0F2A44;border-color:#0F2A44;color:#fff}
.rpgp-s-blocked{background:repeating-linear-gradient(135deg,#0F2A44 0 6px,#244463 6px 12px);border-color:#0F2A44;color:#fff}
.rpgp-s-held{background:#FFF7E6;border-color:#0F2A44;border-style:dashed;color:#0F2A44}
.rpgp-spot.rpgp-s-leased,.rpgp-spot.rpgp-s-blocked{cursor:not-allowed}
.rpgp-spot.rpgp-s-open{cursor:pointer;box-shadow:0 2px 0 rgba(0,174,239,.15)}
.rpgp-spot.rpgp-s-open:hover{transform:translateY(-1px)}
.rpgp-spot.rpgp-s-pick{box-shadow:0 0 0 3px rgba(0,174,239,.3)}

/* Row header: name, available count, small bar */
.rpgp-rowhead{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.rpgp-rowhead .rpgp-rowlabel{font-size:14px;color:#0F2A44}
.rpgp-rowcount{margin:0;font-size:14px;color:#5B6B7B}
.rpgp-rowcount strong{color:#0089BF}
.rpgp-rowbar{flex:0 0 120px;height:6px;border-radius:999px;background:#E6EEF4;overflow:hidden}
.rpgp-rowbar span{display:block;height:100%;background:#00AEEF}
.rpgp-row+.rpgp-row{padding-top:18px;border-top:1px solid #EEF1F4}

/* Hero: stats and buttons */
.rpgp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%;max-width:820px;margin:10px 0 0;padding:0;list-style:none}
.rpgp-stats li{margin:0;padding:14px 10px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);display:flex;flex-direction:column;gap:2px}
.rpgp-stats strong{font-size:22px;font-weight:800;color:#fff;line-height:1.2}
.rpgp-stats span{font-size:13px;color:rgba(255,255,255,.8)}
.rpgp-hero__cta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:8px}
.rpgp-btn--ghost{background:transparent;border:2px solid rgba(255,255,255,.7)}
.rpgp-btn--ghost:hover:not(:disabled){background:#fff;color:#0F2A44!important;border-color:#fff}
.rpgp-hero .rpgp-lotlinks span+span:before{content:"·";margin-right:18px;color:rgba(255,255,255,.6)}
.rpgp-btn--outline{height:44px;padding:0 16px;background:#fff;color:#0F2A44!important;border:1px solid #DCE0E0;font-size:15px}
.rpgp-btn--outline:hover:not(:disabled){background:#0F2A44;color:#fff!important;border-color:#0F2A44}
.rpgp-btn svg{flex:0 0 auto}

/* Lot page: lot switcher + layout buttons */
.rpgp-lothead{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.rpgp-switch{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:600;color:#5B6B7B}
.rpgp-switch select{height:40px;padding:0 34px 0 12px;border:1px solid #DCE0E0;border-radius:8px;background:#fff;color:#0F2A44;font:inherit;font-size:14px;font-weight:600}
.rpgp-maptools{display:flex;flex-wrap:wrap;gap:10px}

/* How it works + FAQ */
.rpgp-how,.rpgp-faq{scroll-margin-top:120px}
.rpgp-how__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.rpgp-how__list li{margin:0;padding:22px;display:flex;flex-direction:column;gap:8px}
.rpgp-how__list h3{margin:0;font-size:17px;font-weight:800;color:#0F2A44}
.rpgp-how__list p{margin:0;font-size:14px;line-height:1.55;color:#5B6B7B}
.rpgp-how__n{width:36px;height:36px;border-radius:50%;background:#EAF8FE;color:#00AEEF;font-weight:800;display:flex;align-items:center;justify-content:center}
.rpgp-faq__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.rpgp-faq details{padding:0}
.rpgp-faq summary{cursor:pointer;list-style:none;padding:16px 48px 16px 20px;position:relative;font-size:16px;font-weight:700;color:#0F2A44}
.rpgp-faq summary::-webkit-details-marker{display:none}
.rpgp-faq summary:after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;background:#EAF8FE;color:#00AEEF;font-size:18px;line-height:26px;text-align:center}
.rpgp-faq details[open] summary:after{content:"\2212"}
.rpgp-faq details p{margin:0;padding:0 20px 18px;font-size:15px;line-height:1.6;color:#5B6B7B}
.rpgp-lots{scroll-margin-top:120px}

/* Layout viewer modal */
html.rpgp-lock,html.rpgp-lock body{overflow:hidden}
.rpgp-modal{position:fixed;inset:0;z-index:100000;background:rgba(15,42,68,.78);display:flex;align-items:center;justify-content:center;padding:20px}
.rpgp-modal[hidden]{display:none}
.rpgp-modal__box{width:min(1200px,100%);height:min(860px,100%);background:#fff;border-radius:16px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.rpgp-modal__head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:14px 16px 14px 22px;border-bottom:3px solid #00AEEF}
.rpgp-modal__head h2{margin:0;flex:1 1 auto;font-size:19px;font-weight:800;color:#0F2A44}
.rpgp-tabs{display:flex;gap:6px;padding:4px;border-radius:999px;background:#F2F5F8}
.rpgp-tabs button{height:36px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:#5B6B7B;font:inherit;font-size:14px;font-weight:700}
.rpgp-tabs button.is-on{background:#0F2A44;color:#fff}
.rpgp-modal__close{width:40px;height:40px;border:0;border-radius:50%;background:#F2F5F8;color:#0F2A44;font-size:24px;line-height:1}
.rpgp-modal__close:hover{background:#00AEEF;color:#fff}
.rpgp-viewer{position:relative;flex:1 1 auto;overflow:hidden;background:#EEF2F6;touch-action:none;cursor:grab;user-select:none}
.rpgp-viewer.is-drag{cursor:grabbing}
.rpgp-viewer__stage{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
.rpgp-viewer__stage img{display:block;max-width:none;width:auto;height:auto;pointer-events:none;border-radius:6px;box-shadow:0 6px 24px rgba(15,42,68,.15)}
.rpgp-bigmap{width:1000px;padding:28px;background:#fff;border-radius:14px;display:flex;flex-direction:column;gap:18px;box-shadow:0 6px 24px rgba(15,42,68,.12)}
.rpgp-bigmap .rpgp-spot{min-width:74px;height:82px}
.rpgp-zoom{position:absolute;right:16px;bottom:16px;display:flex;flex-direction:column;gap:6px}
.rpgp-zoom button{width:46px;height:46px;border:0;border-radius:10px;background:#fff;color:#0F2A44;font:inherit;font-size:22px;font-weight:700;box-shadow:0 4px 14px rgba(15,42,68,.18)}
.rpgp-zoom button[data-zoom=fit]{font-size:13px}
.rpgp-zoom button:hover{background:#00AEEF;color:#fff}
.rpgp-viewer__hint{position:absolute;left:16px;bottom:16px;margin:0;padding:6px 12px;border-radius:999px;background:rgba(15,42,68,.8);color:#fff;font-size:12px;pointer-events:none}
.rpgp-modal__foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;padding:12px 22px;border-top:1px solid #EEF1F4}
.rpgp-modal__foot .rpgp-legend{font-size:13px}
.rpgp-modal__note{margin:0;flex:1 1 220px;font-size:14px;font-weight:600;color:#0F2A44}
.rpgp-modal__full{font-size:14px;font-weight:700;color:#00AEEF;text-decoration:none}

@media (max-width:1024px){.rpgp-how__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){.rpgp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rpgp-stats strong{font-size:18px}.rpgp-hero__cta{width:100%}.rpgp-hero__cta .rpgp-btn{flex:1 1 100%}.rpgp-how__list,.rpgp-faq__list{grid-template-columns:1fr}.rpgp-rowbar{flex-basis:80px}.rpgp-maptools .rpgp-btn{flex:1 1 100%}.rpgp-switch{width:100%}.rpgp-switch select{flex:1}.rpgp-modal{padding:0}.rpgp-modal__box{height:100%;border-radius:0}.rpgp-modal__head{padding:10px 12px}.rpgp-modal__head h2{font-size:16px;flex-basis:calc(100% - 56px)}.rpgp-tabs{order:3;width:100%}.rpgp-tabs button{flex:1}.rpgp-viewer__hint{display:none}.rpgp-modal__foot{padding:10px 12px;gap:6px 12px}}

/* v0.3: start date, duration cards, upfront vs auto-pay */
.rpgp-opt{display:flex;flex-direction:column;gap:8px}
.rpgp-opt__h{margin:0;font-size:14px;font-weight:700;color:#0F2A44}
.rpgp-select{height:46px;width:100%;padding:0 12px;border:1px solid #DCE0E0;border-radius:10px;background:#fff;color:#0F2A44;font:inherit;font-size:15px;font-weight:600}
.rpgp-select:disabled{background:#F5F7FA;opacity:1}
.rpgp-durs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rpgp-dur{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:2px solid #DCE0E0;border-radius:12px;background:#fff;color:#0F2A44;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.rpgp-dur b{font-size:14px;font-weight:700}
.rpgp-dur strong{font-size:17px;font-weight:800}
.rpgp-dur small{font-size:12px;color:#5B6B7B}
.rpgp-dur:hover{border-color:#00AEEF}
.rpgp-dur.is-on{border-color:#00AEEF;background:#EAF8FE;box-shadow:inset 0 0 0 1px #00AEEF}
.rpgp-kv--box{padding:14px 16px;border-radius:12px;background:#F5F7FA}
.rpgp-qnote{margin-top:-8px}
.rpgp-map.is-loading{opacity:.55;transition:opacity .2s}

/* Manage my parking */
.rpgp-manage{max-width:760px;align-items:stretch;text-align:left}
.rpgp-manage .rpgp-hero__cta{justify-content:flex-start;margin:0}
.rpgp-manage form{margin:0}
.rpgp-status{display:inline-block;align-self:flex-start;margin:0;padding:4px 12px;border-radius:999px;background:#EAF8FE;color:#0F2A44;font-size:13px;font-weight:700}
.rpgp-status--payment_failed,.rpgp-status--failed{background:#FCE8E6;color:#8A1F11}
.rpgp-status--cancelled,.rpgp-status--refunded{background:#EEF1F4;color:#5C6670}
.rpgp-status--paid,.rpgp-status--confirmed{background:#E3F6EC;color:#14532D}
.rpgp-tablewrap{overflow-x:auto}
.rpgp-table{width:100%;border-collapse:collapse;font-size:14px}
.rpgp-table th,.rpgp-table td{padding:10px 8px;border-bottom:1px solid #EEF1F4;text-align:left;vertical-align:middle}
.rpgp-table th{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:#5B6B7B}
@media (max-width:767px){.rpgp-durs{grid-template-columns:repeat(2,minmax(0,1fr))}.rpgp-manage .rpgp-hero__cta form,.rpgp-manage .rpgp-hero__cta .rpgp-btn{width:100%}}
/* v0.3: duration list rows */
.rpgp-durs{grid-template-columns:1fr!important;gap:8px}
.rpgp-dur{display:grid;grid-template-columns:1fr auto;grid-template-areas:'m p' 'u p';align-items:center;column-gap:12px;row-gap:0;padding:10px 14px}
.rpgp-dur b{grid-area:m;font-size:15px}
.rpgp-dur small{grid-area:u}
.rpgp-dur strong{grid-area:p;font-size:17px}

/* Layout window: close button (clean X, no theme hover/focus colours) */
.rpgp-modal__head{padding-right:18px}
.rpgp .rpgp-modal__close,.rpgp-modal .rpgp-modal__close{position:relative;flex:0 0 40px;width:40px;height:40px;min-width:0;margin:0;padding:0;border:0;border-radius:50%;background:#F2F5F8;color:#0F2A44;font-size:0;line-height:0;box-shadow:none;cursor:pointer;transition:background .15s}
.rpgp-modal .rpgp-modal__close:before,.rpgp-modal .rpgp-modal__close:after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
.rpgp-modal .rpgp-modal__close:after{transform:translate(-50%,-50%) rotate(-45deg)}
.rpgp-modal .rpgp-modal__close:hover{background:#0F2A44;color:#fff}
.rpgp-modal .rpgp-modal__close:focus{background:#F2F5F8;color:#0F2A44;outline:none}
.rpgp-modal .rpgp-modal__close:focus-visible{outline:2px solid #00AEEF;outline-offset:2px}
.rpgp-modal .rpgp-modal__close:hover:focus{background:#0F2A44;color:#fff}

/* Booking form: checkboxes centred with their text */
.rpgp-check{align-items:center}
.rpgp .rpgp-check input[type=checkbox]{margin:0!important;align-self:center}

/* About the lot: location map + parking layout in one card */
.rpgp-about__map{display:flex;flex-direction:column}
.rpgp-maptabs{display:flex;gap:6px;padding:10px;border-bottom:1px solid var(--line);background:#fff}
.rpgp-maptabs button{flex:1;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-weight:700;font-size:14px;cursor:pointer;line-height:1.2}
.rpgp-maptabs button.is-on{background:var(--ink);border-color:var(--ink);color:#fff}
.rpgp-mt-pane{flex:1;display:flex;flex-direction:column;min-height:340px}
.rpgp-mt-pane[hidden]{display:none}
.rpgp-mt-pane--loc iframe{flex:1}
.rpgp-mt-pane--layout{padding:12px;gap:12px}
.rpgp-about__layoutimg{flex:1;display:flex;align-items:center;justify-content:center;width:100%;padding:0;margin:0;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:zoom-in;overflow:hidden}
.rpgp-about__layoutimg img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}
.rpgp-about__layoutbtns{display:flex;flex-wrap:wrap;gap:10px}
.rpgp-about__layoutbtns .rpgp-btn{flex:1}
@media (max-width:767px){.rpgp-about__layoutbtns .rpgp-btn{flex:1 1 100%}}

/* Archive: steps and lot filters on one line */
.rpgp-topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px}
.rpgp-topbar .rpgp-steps,.rpgp-topbar .rpgp-toolbar{margin:0}
.rpgp-topbar .rpgp-toolbar .rpgp-muted{margin-top:0;margin-bottom:0}
.rpgp-topbar .rpgp-steps,.rpgp-topbar .rpgp-chips{gap:8px}
.rpgp-topbar .rpgp-step{padding:9px 14px;font-size:13px}
.rpgp-topbar .rpgp-chip{height:38px;padding:0 16px;font-size:14px}
.rpgp-topbar .rpgp-toolbar{gap:8px 12px}
.rpgp-topbar .rpgp-toolbar .rpgp-muted{margin-left:0;font-size:14px}

/* v0.3.1: spot colours (leased = red, on hold = amber dashed) */
.rpgp-s-leased{background:#FDECEC;border-color:#E5484D;color:#B42318}
.rpgp-s-held{background:#FFF4E0;border-color:#F59E0B;border-style:dashed;color:#92400E}
.rpgp-s-blocked{background:#FDECEC;border-color:#E5484D;color:#B42318}

/* Spot availability in the layout window: plain up/down scroll, no zoom or sideways drag */
.rpgp-viewer.is-grid{overflow-x:hidden;overflow-y:auto;touch-action:pan-y;cursor:default;user-select:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.rpgp-viewer.is-grid .rpgp-viewer__stage{position:static;transform:none!important;padding:16px}
.rpgp-viewer.is-grid .rpgp-bigmap{width:auto;max-width:1000px;margin:0 auto}
.rpgp-viewer.is-grid .rpgp-spots{flex-wrap:wrap}
.rpgp-viewer.is-grid .rpgp-zoom,.rpgp-viewer.is-grid .rpgp-viewer__hint{display:none}
@media (max-width:767px){.rpgp-viewer.is-grid .rpgp-viewer__stage{padding:10px}.rpgp-viewer.is-grid .rpgp-bigmap{padding:16px}.rpgp-viewer.is-grid .rpgp-bigmap .rpgp-spot{min-width:64px;height:72px}}

/* Open full image: the lot map fills the screen */
.rpgp-modal__full{cursor:pointer}

/* Lot page opens at the spot picker, below the hero */
#rpgp-pick{scroll-margin-top:0}
.admin-bar #rpgp-pick{scroll-margin-top:32px}
@media (max-width:782px){.admin-bar #rpgp-pick{scroll-margin-top:46px}}
/* Full screen layout window */
.rpgp-modal.is-max{padding:0!important;z-index:999999}
.rpgp-modal.is-max .rpgp-modal__box{width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;border-radius:0}
.rpgp-modal__full{background:none;border:0;padding:0;font:inherit;font-size:14px;font-weight:700;color:#00AEEF;cursor:pointer;margin-left:auto}
.rpgp-modal__full:hover{color:#0F2A44}

/* v0.3.2: alignment polish across the booking pages */
/* Lot page head: "All lots" link centred with the lot switcher */
.rpgp-lothead{align-items:center}
.rpgp-lothead .rpgp-back{align-self:center;display:inline-flex;align-items:center;gap:6px;height:40px;line-height:1}
.rpgp-form > .rpgp-back{display:inline-flex;align-items:center;gap:6px;line-height:1.2}
/* Steps: same height and centred text everywhere */
.rpgp-step{display:inline-flex;align-items:center;justify-content:center;height:40px;padding-top:0;padding-bottom:0;line-height:1}
.rpgp-topbar .rpgp-step{height:38px;padding-top:0;padding-bottom:0}
.rpgp-topbar .rpgp-toolbar .rpgp-muted{line-height:38px}
/* Map header: count and colour key on one centred line */
.rpgp-maphead{align-items:center;row-gap:10px}
.rpgp-count{line-height:1.4}
.rpgp-legend li{white-space:nowrap}
.rpgp-sw{box-sizing:border-box}
.rpgp-maptools .rpgp-btn{line-height:1}
/* Form fields: every label, legend and box lines up on the same rows */
.rpgp-grid{align-items:start}
.rpgp .rpgp-f{min-width:0;line-height:1.4}
.rpgp .rpgp-f legend{display:block;line-height:1.4;margin:0 0 6px;padding:0}
.rpgp .rpgp-f input:not([type=radio]):not([type=checkbox]),.rpgp .rpgp-f select{height:48px;min-height:48px;margin:0;line-height:normal;box-shadow:none}
.rpgp .rpgp-f select{padding-right:36px}
.rpgp .rpgp-radios{gap:10px}
.rpgp .rpgp-radios label{height:48px;min-height:48px;margin:0;line-height:1.2;font-size:15px}
.rpgp .rpgp-radios label:has(input:checked){border-color:#00AEEF;background:#EAF8FE}
.rpgp .rpgp-h3{margin:8px 0 0}
/* Checkboxes: box lines up with the first line of its text */
.rpgp .rpgp-check{align-items:flex-start;margin:0}
.rpgp .rpgp-check input[type=checkbox]{align-self:flex-start;margin:0!important}
.rpgp .rpgp-check span{padding-top:0;line-height:20px}
/* Side card rows */
.rpgp-kv div{align-items:baseline}
.rpgp-total{align-items:baseline}
.rpgp-side .rpgp-btn{width:100%}
.rpgp-side .rpgp-f input:not([type=radio]):not([type=checkbox]){height:48px}
/* Lot cards */
.rpgp-lot__foot .rpgp-link{display:inline-flex;align-items:center;gap:4px}
/* Confirmation / manage pages */
.rpgp-done .rpgp-kv div{align-items:baseline}
.rpgp-done .rpgp-hero__cta{justify-content:center;align-items:center}
.rpgp-manage .rpgp-hero__cta{justify-content:flex-start}
.rpgp-hero__cta form{display:flex}
/* Modal footer: key, note and full-screen button on one line */
.rpgp-modal__foot{align-items:center}
.rpgp-modal__foot .rpgp-legend li{line-height:1.2}
.rpgp-modal__full{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
@media (max-width:767px){
.rpgp-lothead .rpgp-back{height:auto}
.rpgp-maphead{flex-direction:column;align-items:flex-start}
.rpgp-modal__full{margin-left:0}
}

/* Confirmation & result cards: both buttons the same size (Manage my parking / Back to all lots). */
.rpgp-done .rpgp-hero__cta .rpgp-btn,.rpgp-done .rpgp-hero__cta .rpgp-btn--outline{height:52px;padding:0 28px;font-size:16px;line-height:1;box-sizing:border-box}


/* Lot page: spot map card and the Your lease card end at the same line. */
.rpgp-layout{align-items:stretch}
.rpgp-main>#rpgp-step-map{flex:1 1 auto}
#rpgp-step-map>#rpgp-map{flex:1 1 auto}
