@import url("variables.css");
/* assets/css/styles.css */

/* Mobile-first Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--gray-50);
  color: var(--primary);
  /* padding: 1rem; */
  line-height: 1.5;
  padding-bottom: 8rem;
}

h1, h2, h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

form {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

/* Centered form container used on auth pages */
.form-container {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

label {
  display: block;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  font-size: 1.3rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea,
input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-400);
  border-radius: 6px;
  font-size: 1rem;
}

button {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--primary-hover);
}

button:disabled {
  background-color: var(--gray-400);
  /* var(--gray-700) provides sufficient contrast with --gray-400 */
  color: var(--gray-700);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Icon button used by map controls */
.icon-btn {
  border: 0;
  background: none;
  padding: 0.25rem;
  cursor: pointer;
}
.icon-btn:hover {
  background: none;
}

/* Generic link styled as a regular button */
a.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
a.btn:hover {
  background-color: var(--primary-hover);
}

/* Pause button */
.pause-button {
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
}

.pause-button svg {
  width: 1em;
  height: 1em;
  margin-right: 0.5rem;
}


/* Image display container */
img {
  max-width: 90%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 6px;
}

/* Responsive for landscape photo alignment */
.photo-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow: hidden;
  background: var(--gray-250);
  padding: 0.5rem;
  border-radius: 6px;
}

.optional-photo-wrapper {
  margin-bottom: 1rem;
}

.optional-preview {
  margin-top: 0.5rem;
}



.location_name{
  background-color: var(--primary);
  color: white;
}

/* Subheading showing establishment type on view page */
.establishment-type {
  font-size: 1.2rem;
  color: var(--gray-800);
}
.category-info {
  font-size: 0.9rem;
  color: var(--gray-500);
}


/* Responsive layout tweaks */
@media (min-width: 768px) {

  form {
    max-width: 500px;
    margin: auto;
  }
}

/* Utility spacing */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 2rem; }
.my-6 { margin: 2rem 0; }
.mb-6 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.info-classification {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: #fff;
}

.classification-options {
  text-align: left;
  margin-left: 10rem;
}

@media (max-width: 767px) {
  .classification-options {
    text-align: left;
    margin-left: 4rem;
  }
}

.classification-options label {
  display: block;
}

.top-nav {
  background-color: var(--primary);
  padding: 10px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1030; /* ensure menu appears above breadcrumb */
}

.hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1.7rem;
  border-radius: 6px;
}

.hamburger:hover {
  background-color: var(--primary-hover);
}

.hamburger svg.hb {
  width: 24px;
  height: 24px;
}

.lang-switcher {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(24px + 1rem);
  margin-right: 0.5rem;
  gap: 2px;
}

.lang-btn {
  flex: 1;
  padding: 0;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

.lang-btn:hover {
  background-color: var(--primary-hover);
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--primary);
  z-index: 1030; /* align with .top-nav for proper stacking */
  min-width: 12rem;
  /* text-align: center */;
}

.nav-links.show {
  display: flex;
}

/* Optional: make links look nice */
.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px; /* space between icon and text */
  text-decoration: none;
  color: white;
  padding: 0px 0px 0px 10px;
}

.nav-links img {
  height: 20px;
}

.nav-section {
  color: white;
  font-weight: 600;
  padding: 0px 0px 0px 10px;
  display: block;
}

.nav-links .sub-link {
  margin-left: 1rem;
}


.nav-links a:hover {
  background-color: var(--primary);
  border-radius: 5px;
}

.photo-button-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
}

.photo-button-icon img {
  height: 20px;
  width: 20px;
}

.photo-button-icon.disabled {
  background-color: var(--gray-400);
  /* Increase contrast for accessibility */
  color: var(--gray-700);
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}
.photo-button-icon.disabled img { opacity: 0.7; }


.field-blocker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
}

/* spacing for submit buttons */
.save-button {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
}

/* spacing below ramp form */
#ramp_tool {
  margin-bottom: 2rem;
}



.section-block {
    margin: 2rem 0;
    padding: 1rem;
    border-top: 1px solid var(--gray-300);
    background-color: var(--primary);
    color: var(--white);
}

.section-block h3 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    color: var(--white);
}

/* Center the list of section details */
.section-block ul {
    padding-left: 0;
    list-style-position: inside;
    text-align: center;
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.photo-entry {
    max-width: 300px;
}
.photo-entry img {
    margin: 1rem auto;
}

/* Indent sub-checkboxes under a parent checkbox */
.sub-checkbox {
  display: block;
  margin-left: 1.5rem;
}

/* Dashboard buttons for improved accessibility */
.dashboard-links {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 80%;
}

@media (min-width: 768px) {
  .dashboard-links {
    max-width: 400px;
  }
}

.dashboard-button {
  display: block;
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.dashboard-button:hover {
  background-color: var(--primary-hover);
}

/* Small inline button used in finalize page */
.small-button {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
}


/* Home page specific styles */
body.home {
  background-color: var(--white);
}

.logo-img {
  height: auto;
  max-height: 80px;
  transition: transform 0.3s ease;
  transform-origin: top left;
}


.logo-img.shrink {
  transform: scale(0.5);
}

/* thin line under the logo */
.logo-header {
  border-bottom: 1px solid var(--primary);
  height: 80px;
}

.sandbox-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: #ffcc00;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  z-index: 1100;
}

.has-sandbox-banner .logo-header {
  margin-top: 40px;
}

@media (min-width: 768px) {
  .logo-img {
    width: 350px;
  }
  .logo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0 1rem;
  }
  .home .home-button {
    width: auto;
    display: inline-block;
  }
}

@media (max-width: 767px) {
  .logo-img {
    width: 100%;
  }
  .logo-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0 1rem;
    position: relative;
  }
  .top-nav {
    margin-top: 0;
    margin-left: auto;
    text-align: left;
    position: relative;
  }
  .nav-links {
    min-width: 12rem;
  }
  .home .home-button {
    display: block;
    margin: 0 0.2rem;
  }
}



.home-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.home-text {
  font-size: 1.25rem;
}

/* Explainer video */
.video-wrap {
  max-width: 1176px;   /* or 100% if you prefer edge-to-edge */
  margin: 2rem auto;
  position: relative;
}
.video {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* keeps 3:2 shape before metadata loads */
  background: #000;
  border-radius: 12px; /* optional */
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 5rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  border: none;
}

@media (min-width: 768px) {
  .video-play-button {
    display: flex;
  }
}

/* Style for map screenshot on home page */
.map-capture {
  display: block;
  margin: 1rem auto;
  width: 100%;
  height: auto;
  max-width: 1176px;
}

/* Limit width of home page content */
body.home main {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.sign-in-container {
  position: static;
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .sign-in-container {
    margin-top: 0;
    margin-left: auto;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .sign-in-container {
    margin-top: 0;
  }
}


/* Volunteer info section on login page */
.volunteer-info {
  color: var(--primary);
  font-size: 1.2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .volunteer-info {
    max-width: 70%;
  }
}


.volunteer-info ul.acr-bullet-list {
  list-style: disc;
  padding-left: 2rem;
  display: inline-block;
  text-align: left;
}

.volunteer-info ul.acr-bullet-list li {
  margin-bottom: 0.5rem;
}

/* About page intro text width and size */
.about-info {
  font-size: 1.2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .about-info {
    max-width: 60%;
  }
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--gray-200);
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  z-index: 999;
}

/* Required field styles */

.required-label::after {
  content: ' *';
  color: var(--primary);
}

.required-hint {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Breadcrumb navigation */
.breadcrumb {
  background-color: var(--gray-200);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  position: relative;
  z-index: 1020;
}
.breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li + li:before {
  content: '/';
  margin: 0 0.5rem;
  color: var(--gray-700);
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Map page breadcrumb spacing */
body.map-page .breadcrumb {
  position: fixed;
  top: 81px;
  left: 0;
  right: 0;
}

/* Progress indicator */
.progress-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin: 0.5rem 0;
}
.progress-indicator .progress-step {
  width: 48px;
  max-width: 48px;
  aspect-ratio: 214.5 / 39.6;
  background: var(--gray-400);
}
.progress-indicator .section-start {
  clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
}
.progress-indicator .section-continued {
  clip-path: polygon(91.8% 98.7%, 0.5% 98.7%, 8.4% 50%, 0.5% 1.3%, 91.8% 1.3%, 99.7% 50%);
}
.progress-indicator .completed {
  background: var(--primary);
}

/* FAQ styles */
.faq { max-width: 90%; margin: 2rem auto; }
.faq-item + .faq-item { margin-top: 1rem; }
.faq-question { display:flex; justify-content:space-between; align-items:center; width:100%; background-color:var(--primary); color:var(--white); padding:0 1rem; border:none; border-radius:6px; font-size:1.1rem; cursor:pointer; }
.faq-question:hover { background-color:var(--primary-hover); }
.faq-question img { width:24px; height:24px; margin-left:1rem; }
.faq-answer { max-height:0; overflow:hidden; opacity:0; transition:max-height .3s ease, opacity .3s ease, padding .3s ease; padding:0 1rem; }
.faq-item.open .faq-answer { max-height:300px; opacity:1; padding:1rem; }
.faq-item.open .faq-question { background-color:var(--white); color:var(--primary); border:1px solid var(--primary); }
@media (min-width:768px){ .faq{ max-width:600px; } }
/* Standard text layout for informational pages */
.page-content,
.about-info,
.volunteer-info,
body.home main,
.faq {
  font-size: 1.2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .page-content,
  .about-info,
  .volunteer-info,
  body.home main,
  .faq {
    max-width: 70%;
  }
}

/* Heading with inline button */
.title-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.validation-msg {
  display: none;
  font-size: 0.9rem;
  color: #d9534f;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}
.text-error { color: #d9534f; }
.text-blue { color: blue; }

.success-pill {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 1rem auto;
}
.success-pill a { color: var(--white); }
.success-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.success-pill-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

input.invalid {
  border-color: #d9534f;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem auto;
}

th,
td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

th {
  background: var(--primary);
  color: #fff;
}

#attempted_map {
  height: 400px;
  margin: 1rem 0;
}

#leads_map {
  height: 400px;
  margin: 1rem 0;
}

.icon-24 {
  width: 24px;
  height: 24px;
}

.inline-icon {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  cursor: pointer;
}

/* Standard icon styling used in forms */
.form-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-left: 0.5rem;
  display: inline-block;
}

/* Inline messages paired with a form icon */
.form-message {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hidden {
  display: none;
}

/* Location name pill */
.location-pill {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  width: 90%;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .location-pill {
    width: 60%;
  }
}

/* Category pills */
.category-group {
  text-align: left;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.category-pill {
  background-color: var(--gray-200);
  color: var(--primary);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin: 0.25rem;
}

.type-pill {
  background-color: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin: 0.25rem;
}

.type-pill img.category-icon {
  height: 20px;
  margin-right: 0.5rem;
}

.type-label {
  margin-left: 0.25rem;
}

/* Bathroom list alignment */
.section-bathroom ul {
  display: inline-block;
  text-align: left;
}

/* Full-width location header */
.location-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  width: 100%;
  font-size: 1.5rem;
}

/* Grouping for main details section */
.main-details {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
}

.main-details h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-details h3 .edit-icon {
  height: 1em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.main-details .location-bar {
  background-color: transparent;
  padding: 0;
  font-size: 1.5rem;
  width: 100%;
}

.main-details .category-line {
  color: var(--white);
}

.main-details-content {
  width: 70%;
  margin: 0 auto;
  text-align: left;
}

.main-details-content .category-line {
  justify-content: flex-start;
}

/* Category line below location */
.category-line {
  display: flex;
  align-items: center; /* vertically center items */
  justify-content: center; /* horizontally center the entire block */
  margin-top: 0.5rem;
  gap: 0.5rem; /* optional spacing between icon and text */
}

.category-line .marker-icon {
  width: 50px; /* adjust as needed */
  height: auto;
  background-color: #fff;
  border: 5px solid #fff;
}

.category-labels span {
  display: inline;
}

@media (max-width: 767px) {
  .category-line {
    align-items: flex-start;
  }
  .category-line .category-labels span {
    display: block;
  }
}

/* Generic info box */
.info-box {
  background-color: var(--gray-100);
  padding: 0.5rem 1rem;
  display: block;
  text-align: left;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .info-box {
    max-width: 60%;
  }
}

.lang-btn.active {
  background-color: var(--gray-400);
  border-color: var(--gray-400);
  cursor: default;
  pointer-events: none;
}
.lang-btn.active:hover {
  background-color: var(--gray-400);
}
