: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:Arial, Helvetica, 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;
  }

}