/* Local review: photo gallery, a single company search, artwork without outer panels. */
body[data-page=buy] .catalog-filter-toggle{width:215px;height:56px;font-size:32px}
body[data-page=buy] button.catalog-photos{width:100%;padding:0;margin:0;border:0;background:transparent;cursor:zoom-in}
body[data-page=buy] .catalog-car{transition:transform .18s ease,box-shadow .18s ease}
body[data-page=buy] .catalog-car:hover,body[data-page=buy] .catalog-car:focus-within{transform:translateY(-5px);box-shadow:0 8px 18px #0006,0 0 0 2px #ffd746}
body[data-page=buy] .catalog-photos:hover img{filter:brightness(1.08)}
.car-gallery{box-sizing:border-box;width:min(648px,94vw);max-height:94dvh;margin:auto;padding:18px;border:1px solid #ead5a7;border-radius:12px;background:#fff6df;color:#20333c;overflow:auto;box-shadow:0 16px 60px #0007}
.car-gallery::backdrop{background:#07131cd9}
.car-gallery header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.car-gallery h3{font:700 28px/1.2 var(--hand);margin:0 0 10px}
.car-gallery .gallery-close,.car-gallery nav button{min-width:44px;min-height:44px;font:28px/1 sans-serif;border:0;border-radius:6px;background:#ffdf58;color:#152835;cursor:pointer}
.car-gallery .gallery-image{display:block;width:100%;height:min(600px,60dvh);object-fit:contain;background:#13232b;border-radius:6px}
.car-gallery nav{display:flex;justify-content:center;align-items:center;gap:24px;margin:12px 0}
.car-gallery .gallery-details{display:block;margin:auto}
body:is([data-page=voices],[data-page=contact],[data-page=donate]) .page-back{display:none}
body:is([data-page=voices],[data-page=contact],[data-page=donate]) .route-page{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;color:#142c37;max-height:none;overflow:visible}
body[data-page=voices] .route-page{width:380px;margin:100px 190px 32px auto}
body[data-page=voices] .panel-title{font:700 40px/1.1 var(--hand);text-align:center;margin:0 0 8px;text-shadow:0 1px 3px #fff9}
body[data-page=voices] .panel-lead{display:none}
body[data-page=voices] .directory-search{margin-top:40px}
body[data-page=voices] .panel-title{white-space:nowrap;font-size:36px}
body:is([data-page=voices],[data-page=complain]) .directory-search>.yellow-button{min-width:100px;min-height:44px;font:700 23px/1 var(--hand);background:var(--yellow);color:#152835;border:1px solid #f4bf27;border-radius:7px;box-shadow:0 2px 4px #0003}
body:is([data-page=contact],[data-page=donate]) .route-page{width:340px;margin:110px 214px 32px auto}
body:is([data-page=contact],[data-page=donate]) .panel-title{font-size:38px;margin:0 0 10px}
body:is([data-page=contact],[data-page=donate]) :is(.contact-card,.support-card){background:none;border:0;box-shadow:none;padding:0}
body:is([data-page=contact],[data-page=donate]) .support-tabs{border:0;background:none;padding:0}
body[data-page]:not([data-page=sell]):is([data-page=voices],[data-page=contact],[data-page=donate]) .route-page{margin-top:108px;max-height:none;overflow:visible}
body:is([data-page=contact],[data-page=donate]) :is(.support-tabs,.route-links){display:none}
body:is([data-page=contact],[data-page=donate]) .panel-title{text-align:center}
body:is([data-page=contact],[data-page=donate]) .panel-lead{max-width:270px;font-size:13px;margin:24px 0 12px;line-height:1.4}
body:is([data-page=contact],[data-page=donate]) .contact-card>p{font-size:13px;overflow-wrap:anywhere;line-height:1.4}
body[data-page=contact] .form-grid{gap:10px}
body[data-page=contact] .field input{min-height:38px;padding:8px}
body[data-page=contact] .field textarea{min-height:80px;height:80px;padding:8px}
body[data-page=contact] .form-actions{margin-top:3px}
body[data-page=voices] #selected-company{font-size:23px;margin:12px 0 6px}
body[data-page=voices] :is(#selected-location,#selected-rating){font-size:13px;margin:7px 0}
body[data-page=voices] .company-stories{max-height:265px;overflow:auto;overscroll-behavior:contain}
body[data-page=voices] .company-story{font-size:14px;line-height:1.5}
body[data-page=donate] .support-card{font-size:14px;line-height:1.4}
body[data-page=donate] .support-card h3{font-size:20px;margin:12px 0 8px}
body[data-page=donate] .support-actions{gap:8px;margin:12px 0}
body[data-page=donate] .support-actions .yellow-button{padding:10px 14px;font-size:14px}
body[data-page=donate] .donation-status{padding:0;border:0;background:transparent;margin-top:12px}
@media(prefers-reduced-motion:reduce){body[data-page=buy] .catalog-car{transition:none}body[data-page=buy] .catalog-car:hover,body[data-page=buy] .catalog-car:focus-within{transform:none}}

/* Second owner review: captions belong to the illustrated objects. */
body[data-page=buy] .catalog-filter-toggle{display:grid;place-items:center;gap:0;padding:0;transform:none;font:700 30px/1 var(--hand);text-align:center}
body[data-page=buy] .catalog-filter-toggle svg{display:none}
body[data-page=buy] .catalog-filter-toggle span{display:block;transform:translateY(-2px)}
body[data-page=buy] .panel-title{width:560px;min-height:70px;display:grid;place-items:center;margin:0 auto 16px;padding:8px 22px 12px;background:url('/assets/brush-button-black.png') center/100% 100% no-repeat;color:var(--yellow);font-size:39px;text-shadow:none;transform:rotate(-1deg)}
body[data-page=voices] .panel-title{position:absolute;left:-258px;top:436px;width:90px;margin:0;padding:0;white-space:normal;font:700 19px/1.05 var(--hand);color:#fff2cf;text-shadow:0 1px 2px #512f18;transform:rotate(-6deg);text-align:center}
body[data-page=voices] .directory-search{margin-top:78px}
body:is([data-page=contact],[data-page=donate]) .panel-title{position:absolute;left:346px;top:253px;width:106px;margin:0;padding:0;font:700 25px/1.05 var(--hand);color:#24302e;text-shadow:none;transform:rotate(-6deg);text-align:center}
body:is([data-page=contact],[data-page=donate]) .panel-lead{margin-top:78px}
body[data-page=manage] .page-back{display:none}
body[data-page=manage]:not([data-page=sell]) .route-page{width:520px;min-height:490px;max-height:none;margin:118px 0 0 304px;padding:60px 64px 20px 40px;overflow:visible;background:transparent;border:0;border-radius:0;box-shadow:none;color:#35220c;transform:rotate(-3deg);transform-origin:50% 80%}
body[data-page=manage] .route-page:before{content:'';position:absolute;inset:0;z-index:-1;background:url('/assets/options-road-sign-v1.png') top center/100% auto no-repeat;pointer-events:none}
body[data-page=manage] .panel-title{margin:0 0 5px;text-align:center;font:700 31px/1.1 var(--hand);color:#35220c;text-shadow:none}
body[data-page=manage] .panel-lead{margin:0 0 8px;font-size:12px;line-height:1.3;color:#35220c;text-align:center}
body[data-page=manage] #manage-form .field{font-size:12px;gap:4px}
body[data-page=manage] #manage-form input{min-height:34px;height:34px;padding:6px 10px;background:#fff6dbe8;border:1px solid #774115}
body[data-page=manage] #manage-form .form-actions{justify-content:center;margin-top:9px}
body[data-page=manage] #manage-form .yellow-button{min-height:34px;padding:6px 17px;font:700 21px/1 var(--hand)}
body[data-page=manage] #manage-status:empty{display:none}
body[data-page=manage] #manage-result:not(:empty){background:#fff2dbeF;padding:15px;max-height:260px;overflow:auto;border-radius:5px;transform:rotate(3deg)}
body[data-page=manage] #manage-status:not(:empty){background:#fff2db;padding:8px;font-size:13px;border-radius:4px}

/* Final review: Quixote's flag, grounded signpost and the matching complaint page. */
body[data-page=buy] .panel-title{position:relative;width:560px;min-height:76px;margin-left:64px;margin-right:80px;padding:18px 20px;background:linear-gradient(to bottom,#aa151bbb 0 25%,#f1bf00ba 25% 75%,#aa151bbb 75% 100%);color:#34200b;font-size:35px;text-shadow:0 1px 1px #fff7;transform:rotate(-2deg);transform-origin:100% 0;clip-path:polygon(0 3%,100% 0,100% 100%,0 95%,4% 50%)}
body[data-page=buy] .panel-title:after{content:'';position:absolute;right:0;top:0;bottom:0;width:3px;background:#eed9acb3}
body[data-page=manage] .route-page:before{bottom:-30px;background-size:100% 100%}
body[data-page=complain] .page-back,body[data-page=complain] .panel-lead{display:none}
body[data-page=complain]:not([data-page=sell]) .route-page{position:relative;width:380px;margin:108px 190px 0 auto;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;max-height:none;overflow:visible;color:#142c37}
body[data-page=complain] .panel-title{position:absolute;left:-258px;top:436px;width:90px;margin:0;padding:0;text-align:center;font:700 24px/1.05 var(--hand);color:#fff2cf;text-shadow:0 1px 2px #512f18;transform:rotate(-6deg)}
body[data-page=complain] #company-directory{margin-top:78px;height:420px;overflow-y:auto;overscroll-behavior:contain;padding-right:8px;scrollbar-width:thin;scrollbar-color:#8b6136 transparent}
body[data-page=complain] :is(.complaint-steps,#catalog-note,#selected-website,#company-stories,#company-detail>hr),body[data-page=complain] #company-directory>.check-field,body[data-page=complain] #company-detail>.check-field{display:none}
body[data-page=complain] .directory-search{margin-top:0}
body[data-page=complain] .company-summaries{display:grid;grid-template-columns:1fr;gap:0;max-height:170px;overflow:auto;background:#fff7e6e8;border-radius:6px}
body[data-page=complain] .company-summary{border:0;border-bottom:1px solid #2342;background:transparent;border-radius:0;padding:10px;text-align:left;box-shadow:none}
body[data-page=complain] .company-summary:hover,body[data-page=complain] .company-summary:focus-visible{background:#ffdf58}
body[data-page=complain] .company-summary span{display:none}
body[data-page=complain] .proposal-box{margin:8px 0;padding:8px 0;border:0;background:transparent;font-size:13px}
body[data-page=complain] #selected-company{font-size:23px;margin:14px 0 6px}
body[data-page=complain] #selected-location{margin:0 0 12px}
body[data-page=complain] #company-detail>h3:not(#selected-company){font:700 24px/1.1 var(--hand);margin:12px 0 6px}
body[data-page=complain] #experience-form .form-grid{gap:9px}
body[data-page=complain] #experience-form .field:first-child{display:none}
body[data-page=complain] .field :is(input,select){min-height:36px;padding:7px}
body[data-page=complain] .field textarea{min-height:86px;padding:8px}
body[data-page=complain] #word-count{margin:0}
body[data-page=complain] .form-actions{margin-top:12px}
body[data-page=complain] .check-field{font-size:12px;line-height:1.4}
/* Owner's latest correction: Comprar keeps only the Buscar label. */
body[data-page=buy] .panel-title{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;background:none;transform:none}

/* Missing company: show proposal fields directly after a blank line. */
body[data-page=complain] #company-proposal[hidden]{display:none}
body[data-page=complain] .company-not-found #directory-count{margin-top:1.8em;margin-bottom:.5em}
body[data-page=complain] #directory-count:empty{display:none}
body[data-page=complain] .company-summaries:empty{display:none}
body[data-page=complain] #company-proposal>p:first-child{margin-top:0}

/* Sancho reacts above the photographs, using the saved agent score. */
body[data-page=buy] .catalog-sancho-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 10px}
body[data-page=buy] .catalog-sancho-row.single-car{grid-template-columns:1fr}
body[data-page=buy] .catalog-sancho-reaction{display:flex;align-items:center;justify-content:center;gap:8px}
body[data-page=buy] .catalog-sancho-reaction img{display:block;width:76px;height:76px;object-fit:cover;border-radius:50%;border:2px solid #ffd746;box-shadow:0 3px 8px #0005}
body[data-page=buy] .catalog-sancho-reaction span{background:#fff0bddf;color:#25352e;padding:4px 7px;border-radius:6px;font-weight:700;font-size:14px}
body[data-page=buy] .catalog-pagination{top:calc(50% + 43px)}
