/* =========================================================
   County Laws (SCOPED)
   Everything is limited to: body.county-laws-page
   Uses global theme tokens from css/styles.css
   ========================================================= */

.county-laws-page{
  background: var(--primary-color);
  color: var(--text-color);
}

.county-laws-page .page-hero{
  padding: clamp(70px, 7vw, 110px) 0 40px;
  background:
    radial-gradient(900px 500px at 50% -80px, rgba(225, 191, 122, 0.14), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.35));
  border-bottom: 1px solid rgba(225, 191, 122, 0.18);
}

.county-laws-page .hero-inner{
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
}

.county-laws-page h1{
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.county-laws-page .subtitle{
  margin-top: 10px;
  max-width: 820px;
  color: rgba(247, 242, 232, 0.78);
  font-size: 1.15rem;
}

.county-laws-page .hero-divider{
  height: 1px;
  margin: 18px 0 18px;
  background: linear-gradient(to right, transparent, rgba(225,191,122,0.35), transparent);
}

.county-laws-page .quick-jumps{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.county-laws-page .jump{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(225, 191, 122, 0.22);
  background: rgba(0,0,0,0.28);
  color: rgba(247,242,232,0.85);
  cursor:pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
}

.county-laws-page .jump:hover{
  transform: translateY(-1px);
  border-color: rgba(225, 191, 122, 0.45);
  background: rgba(0,0,0,0.35);
}

/* Layout wrap */
.county-laws-page .page-wrap{
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
  padding: 28px 0 40px;
}

/* General info card */
.county-laws-page .section-card{
  border-radius: 18px;
  border: 1px solid rgba(225, 191, 122, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.15));
  box-shadow: 0 18px 70px rgba(0,0,0,0.26);
  overflow: hidden;
}

.county-laws-page .section-head{
  padding: 22px 22px 10px;
}

.county-laws-page .section-head h2{
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(247,242,232,0.92);
  font-size: 1.25rem;
}

.county-laws-page .section-head p{
  margin-top: 10px;
  color: rgba(247,242,232,0.74);
}

/* Tiles */
.county-laws-page .info-grid{
  padding: 18px 22px 22px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.county-laws-page .info-tile{
  border-radius: 16px;
  padding: 16px 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(225, 191, 122, 0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.county-laws-page .tile-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(225,191,122,0.12);
  border: 1px solid rgba(225,191,122,0.25);
  box-shadow: 0 0 12px rgba(225,191,122,0.20);
  margin-bottom: 10px;
}

.county-laws-page .tile-icon svg{
  width: 22px;
  height: 22px;
  color: rgba(225,191,122,0.95);
}

.county-laws-page .info-tile h3{
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 8px;
}

.county-laws-page .info-tile p{
  color: rgba(247,242,232,0.72);
  line-height: 1.6;
}

@media (max-width: 980px){
  .county-laws-page .info-grid{ grid-template-columns: 1fr; }
}

/* Filter bar */
.county-laws-page .filter-bar{
  margin: 18px 0 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.county-laws-page .search input{
  width: min(560px, 90vw);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(225, 191, 122, 0.22);
  background: rgba(0,0,0,0.25);
  color: rgba(247,242,232,0.92);
  outline: none;
}

.county-laws-page .hint{
  margin-top: 8px;
  color: rgba(247,242,232,0.65);
  font-size: 0.95rem;
}

.county-laws-page .btn-ghost{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(225, 191, 122, 0.22);
  background: rgba(0,0,0,0.22);
  color: rgba(247,242,232,0.85);
  cursor:pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  font-family: "Cinzel", serif;
}

.county-laws-page .btn-ghost:hover{
  transform: translateY(-1px);
  border-color: rgba(225, 191, 122, 0.45);
  background: rgba(0,0,0,0.30);
}

/* Accordion */
.county-laws-page .accordion{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.county-laws-page .acc-item{
  border-radius: 18px;
  border: 1px solid rgba(225, 191, 122, 0.18);
  background: rgba(0,0,0,0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  overflow:hidden;
}

.county-laws-page .acc-trigger{
  width:100%;
  text-align:left;
  padding: 16px 16px;
  background: transparent;
  border: none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.county-laws-page .acc-title{
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(247,242,232,0.9);
}

.county-laws-page .acc-sub{
  color: rgba(247,242,232,0.70);
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(225,191,122,0.18);
  background: rgba(225,191,122,0.08);
}

.county-laws-page .acc-panel{
  border-top: 1px solid rgba(225,191,122,0.14);
  background: rgba(0,0,0,0.16);
}

.county-laws-page .table-wrap{
  padding: 12px 10px 14px;
  overflow:auto;
}

/* Table */
.county-laws-page .law-table{
  width:100%;
  border-collapse: collapse;
  min-width: 900px;
}

.county-laws-page .law-table thead th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(247,242,232,0.72);
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(225,191,122,0.18);
  padding: 12px 10px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.county-laws-page .law-table tbody td{
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(247,242,232,0.86);
  vertical-align: top;
}

.county-laws-page .law-table tbody tr:hover td{
  background: rgba(225,191,122,0.06);
}

.county-laws-page .code-pill{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(225,191,122,0.12);
  border: 1px solid rgba(225,191,122,0.22);
  color: rgba(247,242,232,0.92);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 12px;
}

/* =========================================================
   Accordion polish (smooth open/close + fade)
   ========================================================= */

/* collapsed by default */
.county-laws-page .acc-panel{
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    grid-template-rows 260ms ease,
    opacity 200ms ease,
    transform 260ms ease;
  will-change: grid-template-rows, opacity, transform;
}

/* inner wrapper is what gets clipped */
.county-laws-page .acc-panel-inner{
  overflow: hidden;
}

/* expanded state */
.county-laws-page .acc-item.open .acc-panel{
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

/* Slight “lift” on hover for the header row */
.county-laws-page .acc-trigger{
  transition: background 180ms ease, transform 180ms ease;
}
.county-laws-page .acc-item:hover .acc-trigger{
  background: rgba(255,255,255,0.03);
}

/* Chevron feels snappier */
.county-laws-page .acc-chevron{
  transition: transform 220ms ease, opacity 220ms ease;
}

/* Optional: softer divider line when open */
.county-laws-page .acc-item.open .acc-panel{
  border-top: 1px solid rgba(225,191,122,0.16);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .county-laws-page .acc-panel,
  .county-laws-page .acc-trigger,
  .county-laws-page .acc-chevron{
    transition: none !important;
  }
}

/* =========================================================
   Contraband layout (category headers + item tiles)
   ========================================================= */

.county-laws-page .contraband-wrap{
  padding: 14px 10px 18px;
  display:flex;
  flex-direction:column;
  gap: 16px;
}

/* Category header bar (like screenshot) */
.county-laws-page .contraband-category{
  border-radius: 14px;
  border: 1px solid rgba(225,191,122,0.18);
  background: rgba(0,0,0,0.24);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  overflow:hidden;
}

.county-laws-page .contraband-cat-head{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.22);
  border-bottom: 1px solid rgba(225,191,122,0.14);
}

.county-laws-page .contraband-cat-bar{
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: rgba(225,191,122,0.75);
  box-shadow: 0 0 12px rgba(225,191,122,0.25);
}

.county-laws-page .contraband-cat-title{
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(247,242,232,0.92);
  font-size: 1.05rem;
}

.county-laws-page .contraband-grid{
  padding: 12px 14px 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px){
  .county-laws-page .contraband-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px){
  .county-laws-page .contraband-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .county-laws-page .contraband-grid{ grid-template-columns: 1fr; }
}

/* Item tile */
.county-laws-page .contraband-item{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.county-laws-page .contraband-item:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,0.28);
  border-color: rgba(225,191,122,0.22);
}

/* Status styling (green vs red) */
.county-laws-page .contraband-item.is-restricted{
  border-color: rgba(120, 220, 120, 0.28);
  background: rgba(20, 50, 20, 0.18);
}
.county-laws-page .contraband-item.is-illegal{
  border-color: rgba(255, 90, 90, 0.22);
  background: rgba(60, 15, 15, 0.18);
}

/* Icon bubble */
.county-laws-page .contraband-icon{
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  margin-top: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.county-laws-page .contraband-item.is-restricted .contraband-icon{
  background: rgba(120, 220, 120, 0.16);
  border-color: rgba(120, 220, 120, 0.28);
}
.county-laws-page .contraband-item.is-illegal .contraband-icon{
  background: rgba(255, 90, 90, 0.16);
  border-color: rgba(255, 90, 90, 0.24);
}

/* Text */
.county-laws-page .contraband-name{
  font-weight: 700;
  color: rgba(247,242,232,0.90);
  line-height: 1.2;
}

.county-laws-page .contraband-note{
  margin-top: 4px;
  color: rgba(247,242,232,0.65);
  font-size: 0.92rem;
}

.info-tile .info-list{
  margin: 10px 0 8px;
  padding-left: 18px;
  color: rgba(247,242,232,0.75);
}

.info-tile .info-list li{
  margin-bottom: 6px;
  line-height: 1.45;
}

.info-tile p + p {
  margin-top: 10px;
}