:root{
  --deepGreen:#284b33;
  --green:#416a42;
  --cream:#f8f2e4;
  --light:#eef1df;
  --card:#fffdf7;
  --orange:#c86d3d;
  --text:#1d2b24;
}

*{
  box-sizing:border-box;
}

html{
  width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  width:100%;
  min-height:100vh;
  overflow-x:hidden;

  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;

  background:
    radial-gradient(
      circle at top center,
      #0d4a39 0%,
      #073a2e 45%,
      #042d24 100%
    );

  background-attachment:fixed;

  color:#f8f2e4;
}

/* HEADER */

.restroom-header{
  width:min(1100px, calc(100% - 24px));
  margin:0 auto;
  padding:12px 0 6px;
}

.restroom-header .back{
  display:inline-block;

  margin-bottom:6px;

  color:var(--deepGreen);
  font-weight:800;
  text-decoration:none;
}

.restroom-brand{
  width:100%;

  display:flex;
  justify-content:center;
  align-items:center;
}

.restroom-logo-image{
  display:block;

  width:360px;
  max-width:85vw;
  height:auto;

  margin:0 auto;
}


/* MAIN PAGE */

.shell{
  width:min(1080px, calc(100% - 24px));
  margin:0 auto;
  padding:10px 0 60px;
}


/* HERO CARD */

.hero-card{
  margin-bottom:28px;
  padding:24px;

  background:rgba(8,58,45,.72);

  border:1px solid rgba(126,190,157,.28);
  border-radius:20px;

  box-shadow:
    0 10px 28px rgba(0,0,0,.15);
}

.hero-card h2{
  margin:0 0 10px;
  color:#fff8e8;
}

.hero-card p{
  line-height:1.5;
  color:#fff8e8;
}

/* BUTTONS */

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;

  margin-top:16px;
}

.button,
button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:11px 16px;

  border:1px solid #52725a;
  border-radius:12px;

  background:#fffdf7;

  color:var(--deepGreen);

  font:inherit;
  font-weight:800;

  text-decoration:none;
  cursor:pointer;
}

.primary{
  border:0;

  background:linear-gradient(
    180deg,
    #d98a4e,
    #bd642f
  );

  color:white;
}

.status{
  margin-bottom:0;

  color:#657468;
  font-size:.9rem;
}


/* SECTION HEADINGS */

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px;

  margin:26px 2px 12px;
}

.section-title h2{
  margin:0;
  color:#fff8e8;
}

.section-title span{
  color:#b8d5c7;
  font-size:.85rem;
}

/* COUNTY LIST */

.county-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.county-grid a{
  padding:13px 14px;

  background:rgba(13,66,51,.78);

  border:1px solid rgba(126,190,157,.28);
  border-radius:12px;

  color:#fff8e8;

  font-weight:800;
  text-decoration:none;

  box-shadow:
    0 4px 12px rgba(0,0,0,.08);
}

.county-grid a:hover{
  background:rgba(20,86,65,.95);
}

/* LISTINGS */

.listing-grid{
  display:grid;
  gap:14px;
}

.listing{
  display:grid;
  grid-template-columns:150px 1fr;

  overflow:hidden;

  background:rgba(255,253,247,.96);

  border:1px solid #d8ddcf;
  border-radius:16px;

  box-shadow:
    0 8px 20px rgba(0,0,0,.06);
}

.thumb{
  width:150px;
  height:100%;
  min-height:160px;

  object-fit:cover;
}

.placeholder{
  display:grid;
  place-items:center;

  background:#dce7d7;

  font-size:2.6rem;
}

.listing-body{
  padding:16px;
}

.listing-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
}

.listing h3{
  margin:0;
  color:var(--deepGreen);
}

.listing-head p{
  margin:5px 0 0;

  color:#68766c;
  font-size:.9rem;
}

.score{
  color:#27864b;

  font-size:1.15rem;
  font-weight:900;
}

.score.negative{
  color:#b74943;
}


/* TAGS */

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;

  margin-top:10px;
}

.tags span{
  padding:5px 8px;

  background:#dcebd3;

  border-radius:999px;

  font-size:.75rem;
  font-weight:800;
}


/* LISTING TEXT */

.cost{
  margin:12px 0 5px;

  font-weight:800;
}

.notes{
  color:#4d5f53;
  line-height:1.5;
}


/* LISTING ACTIONS */

.listing-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;

  margin-top:12px;
}

.listing-actions a,
.listing-actions button{
  padding:8px 10px;

  border-radius:10px;

  font-size:.8rem;
}

.down{
  background:#7b3438;
  color:white;
}

.neutral{
  background:#476578;
  color:white;
}

.edit-own{
  color:#80551c;
}


/* COMMENTS */

.comments{
  margin-top:14px;
  padding-top:12px;

  border-top:1px solid #d9ddcf;
}

.comments summary{
  cursor:pointer;

  color:#80551c;
  font-weight:800;
}

.comments-list{
  display:grid;
  gap:8px;

  margin-top:10px;
}

.comment{
  display:flex;
  gap:10px;

  padding:10px;

  background:#f4f1e5;

  border-radius:10px;
}

.comment p{
  margin:0 0 4px;
}

.comment small{
  color:#6f7c72;
}

.comments-empty{
  padding-top:8px;

  color:#6f7c72;
}


/* EMPTY MESSAGE */

.empty{
  padding:36px 20px;

  text-align:center;

  background:rgba(255,253,247,.85);

  border:1px dashed #bdc8b7;
  border-radius:16px;

  color:#657468;
}


/* FORMS */

.form-card{
  padding:24px;

  background:rgba(255,253,247,.96);

  border:1px solid #d8ddcf;
  border-radius:18px;

  box-shadow:
    0 10px 28px rgba(0,0,0,.07);
}

.narrow{
  max-width:760px;
}

.field{
  display:grid;
  gap:6px;

  margin-bottom:14px;
}

.field label,
legend{
  font-weight:800;
}

input,
select,
textarea{
  width:100%;

  padding:11px 12px;

  border:1px solid #bdc8b7;
  border-radius:10px;

  background:white;

  color:var(--text);

  font:inherit;
}

.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.checks{
  display:grid;
  gap:9px;

  margin:15px 0;
}

.checks label{
  display:flex;
  align-items:center;
  gap:8px;
}

.checks input{
  width:auto;
}

fieldset{
  margin:16px 0;
  padding:14px;

  border:1px solid #c9d1c3;
  border-radius:12px;
}

.photo-preview{
  display:flex;
  flex-wrap:wrap;
  gap:8px;

  margin-top:10px;
}

.photo-preview img{
  width:90px;
  height:90px;

  object-fit:cover;

  border-radius:8px;
}


/* MODAL */

.modal-back{
  position:fixed;
  inset:0;
  z-index:9999;

  display:grid;
  place-items:center;

  padding:16px;

  background:rgba(0,0,0,.65);
}

.modal{
  width:min(520px, 100%);

  padding:20px;

  background:#fffdf7;

  border-radius:16px;

  box-shadow:
    0 20px 60px rgba(0,0,0,.35);
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;

  margin-top:12px;
}


/* MOBILE */

@media(max-width:700px){

  .restroom-header{
    width:calc(100% - 16px);
    padding:8px 0 4px;
  }

  .restroom-logo-image{
    width:240px;
    max-width:78vw;
  }

  .shell{
    width:calc(100% - 16px);
  }

  .hero-card{
    padding:18px;
  }

  .hero-actions{
    display:grid;
  }

  .hero-actions > *{
    width:100%;
  }

  .county-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .listing{
    grid-template-columns:90px 1fr;
  }

  .thumb{
    width:90px;
    min-height:130px;
  }

  .listing-body{
    padding:12px;
  }

  .two{
    grid-template-columns:1fr;
  }

}


/* SMALL PHONES */

@media(max-width:420px){

  .restroom-logo-image{
    width:210px;
    max-width:74vw;
  }

  .county-grid{
    grid-template-columns:1fr;
  }

}

/* Wistrade 2026 visual alignment */
.top{
  width:min(1080px,calc(100% - 28px));
  margin:0 auto;
  padding:34px 0 18px;
  display:flex;
  align-items:center;
  gap:22px;
}
.top .back{
  flex:0 0 auto;
  color:#e3a52f;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}
.top .back:hover{text-decoration:underline}
.top h1{margin:0;color:#f4f0de;font-size:clamp(2rem,4vw,2.7rem);line-height:1.05;letter-spacing:-.025em}
.top p{margin:7px 0 0;color:#b8c9bd;line-height:1.5}
.shell{width:min(1080px,calc(100% - 28px));padding:12px 0 64px}
.hero-card.compact{padding:20px;margin-bottom:26px}
.listing{color:#1d2b24}
.listing-body{padding:18px 20px}
.listing-head h3{font-size:1.13rem;line-height:1.25}
.tags{gap:7px;margin:11px 0 0}
.tags span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  background:#dcebd3;
  border:1px solid #bdd3b4;
  color:#274934;
  border-radius:999px;
  font-size:.76rem;
  font-weight:900;
  line-height:1.1;
}
.tags .type-tag{
  background:#174e3c;
  border-color:#174e3c;
  color:#fff8e8;
}
.tags .access-tag{
  background:#e3f0f7;
  border-color:#b7d3e1;
  color:#24536b;
}
.cost{color:#6b4c17;line-height:1.45}
.notes{margin:8px 0 0;color:#4d5f53;line-height:1.58}
.listing-actions a{color:#214f67;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.listing-actions button{font-weight:900}
.comments summary{color:#72501d}
.modal{color:#1d2b24}
.modal h3{color:#284b33}
.form-card{color:#1d2b24}
.form-card h1,.form-card h2,.form-card h3{color:#284b33}
.field label,legend{color:#284b33}
@media(max-width:700px){
  .top{width:calc(100% - 20px);padding:24px 0 14px;align-items:flex-start;gap:12px;flex-direction:column}
  .shell{width:calc(100% - 20px)}
  .listing-body{padding:13px}
}

/* =========================================================
   CORRECTION MODAL + ADMIN READABILITY FIXES
   These pages load assets/restrooms.css directly.
   ========================================================= */
.modal-help{
  margin:0 0 14px;
  color:#43564b;
  line-height:1.5;
}

.correction-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:0 0 16px;
}

.correction-options label{
  position:relative;
  display:block;
  margin:0;
  cursor:pointer;
}

.correction-options input[type="radio"]{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  margin:0 !important;
  padding:0 !important;
  opacity:0 !important;
  pointer-events:none;
}

.correction-options span{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:10px 12px;
  border:1px solid #c8d3ca;
  border-radius:10px;
  background:#eef3ed;
  color:#20372a;
  font-size:.92rem;
  font-weight:850;
  line-height:1.25;
}

.correction-options label:hover span{
  background:#e3eee6;
  border-color:#829b8c;
}

.correction-options input[type="radio"]:checked + span{
  background:#e3a52f;
  border-color:#c98716;
  color:#17271e;
  box-shadow:0 0 0 2px rgba(227,165,47,.20);
}

.correction-details-label{
  display:block;
  margin:2px 0 7px;
  color:#284b33 !important;
  font-weight:900;
}

.modal #corrDetails{
  display:block;
  width:100%;
  min-height:130px;
  margin:0 0 14px;
  background:#fff !important;
  color:#17271e !important;
  border:1px solid #879b8d !important;
  caret-color:#17271e;
  -webkit-text-fill-color:#17271e;
}

.modal #corrDetails::placeholder{
  color:#65786b !important;
  opacity:1;
  -webkit-text-fill-color:#65786b;
}

/* Admin pages */
body .admin-head{
  width:min(1080px,calc(100% - 28px));
  margin:0 auto;
  padding:34px 0 18px;
}

body .admin-head h1{color:#f4f0de !important}
body .admin-head p{color:#c1d1c7 !important}

.admin-row{
  margin:14px 0;
  padding:20px;
  background:#f7f4eb;
  border:1px solid #d8ddcf;
  border-radius:15px;
  color:#20362a !important;
  box-shadow:0 7px 22px rgba(0,0,0,.14);
}

.admin-row > strong{
  color:#173d2d !important;
  font-size:1.05rem;
}

.admin-row p{
  margin:10px 0 0;
  color:#324a3b !important;
  line-height:1.55;
}

.report-reason{
  color:#744b08 !important;
  font-weight:950 !important;
  text-transform:capitalize;
}

.report-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}

.report-actions form{margin:0}

.report-actions .button,
.report-actions button{
  min-height:44px;
  padding:9px 16px;
  font-weight:900;
}

body .report-actions .edit-admin,
body a.edit-admin,
body .button.edit-admin{
  background:#295872 !important;
  border-color:#3b7897 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

body .report-actions .danger-admin,
body .danger-admin{
  background:#873d40 !important;
  border-color:#a95256 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

body .report-actions form button:not(.danger-admin){
  background:#fffdf7 !important;
  border-color:#c5cdbf !important;
  color:#244334 !important;
  -webkit-text-fill-color:#244334 !important;
}

.empty-admin{
  color:#c1d1c7 !important;
  font-size:1rem;
}

/* Report callout on Edit Listing */
.admin-report{
  background:#fff1cc !important;
  border:1px solid #d49a2c !important;
  color:#392a10 !important;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.admin-report strong{color:#654100 !important}
.admin-report p{color:#392a10 !important;line-height:1.55}

/* Admin photo uploader */
.admin-photo-section{
  margin-top:24px;
  padding:22px;
  background:rgba(11,49,38,.82);
  border:1px solid rgba(255,255,255,.13);
  border-radius:16px;
}

.admin-photo-section h2{
  margin-top:0;
  color:#f4f0de;
}

.admin-photo-help,
.admin-photo-section .status{
  color:#c6d6cc !important;
  line-height:1.5;
}

.admin-photo-upload{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px 12px;
  align-items:end;
  margin:16px 0 20px;
  padding:16px;
  background:#f7f4eb;
  border-radius:12px;
  color:#20362a;
}

.admin-photo-upload label{
  grid-column:1 / -1;
  color:#244334;
}

.admin-photo-upload input[type="file"]{
  margin:0;
  background:#fff;
  color:#20362a;
}

.admin-photo-upload button{
  white-space:nowrap;
  color:#fff !important;
}

.admin-photo .danger,
.admin-photo button.danger{
  width:100%;
  background:#873d40 !important;
  border-color:#a95256 !important;
  color:#fff !important;
}

@media(max-width:700px){
  .correction-options{grid-template-columns:1fr}
  .admin-photo-upload{grid-template-columns:1fr}
  .admin-photo-upload button{width:100%}
  body .admin-head{width:calc(100% - 20px);padding:24px 0 14px}
}

/* Feedback / comment modal readability */
.modal textarea,
.modal #feedbackText{
  display:block;
  width:100%;
  min-height:130px;
  background:#fff !important;
  color:#17271e !important;
  border:1px solid #879b8d !important;
  caret-color:#17271e !important;
  -webkit-text-fill-color:#17271e !important;
  opacity:1 !important;
}

.modal textarea::placeholder,
.modal #feedbackText::placeholder{
  color:#65786b !important;
  opacity:1 !important;
  -webkit-text-fill-color:#65786b !important;
}

.modal p,
.modal label{
  color:#2f4337;
}

.comment{
  color:#20362a !important;
}

.comment p{
  color:#20362a !important;
  line-height:1.5;
}

.comment small{
  color:#66766b !important;
}
