/* assets/css/styles.css */

/* Mobile-first Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #f9fafb;
  color: #202B52;
  /* padding: 1rem; */
  line-height: 1.5;
  padding-bottom: 8rem;
}

h1, h2, h3 {
  color: #111;
  margin-bottom: 0.5rem;
}

form {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

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 #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

button {
  background-color: #202B52;
  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: #205247;
}

button:disabled {
  background-color: #cccccc;
  color: #666666;
  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: #202B52;
  color: #fff;
  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: #004a82;
}


/* 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: #eee;
  padding: 0.5rem;
  border-radius: 6px;
}

.optional-photo-wrapper {
  margin-bottom: 1rem;
}

.optional-preview {
  margin-top: 0.5rem;
}



.location_name{
  background-color: #202B52;
  color: white;
}

/* Subheading showing establishment type on view page */
.establishment-type {
  font-size: 1.2rem;
  color: #333;
}
.category-info {
  font-size: 0.9rem;
  color: #666;
}


/* 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; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.top-nav {
  background-color: #202B52;
  padding: 10px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  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: #004a82;
}

.hamburger svg.hb {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #202B52;
  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: #202B52;
  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: #202B52;
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
}

.photo-button-icon img {
  height: 20px;
  width: 20px;
}

.photo-button-icon.disabled {
  background-color: #cccccc;
  color: #666;
  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 #e0e0e0;
    background-color: #202B52;
    color: #fff;
}

.section-block h3 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    color: #fff;
}

/* 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;
}

/* 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: #202B52;
  color: #fff;
  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: #004a82;
}

/* 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: #fff;
}

.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 #202B52;
  height: 80px;
}

@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,
  .sign-in-container {
    margin-top: 0;
    margin-left: auto;

    text-align: left;
  }
  .top-nav {
    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: #202B52;
}

.home-text {
  font-size: 1.25rem;
}

/* Style for map screenshot on home page */
.map-capture {
  display: block;
  margin: 1rem auto;
}

/* 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 (min-width: 768px) {
  .sign-in-container {
    margin-top: 0;
  }
}

/* Volunteer info section on login page */
.volunteer-info {
  color: #1D304F;
  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;
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f1f1f1;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  z-index: 999;
}

/* Required field styles */

.required-label::after {
  content: ' *';
  color: #202B52;
}

.required-hint {
  font-size: 0.9rem;
  color: #202B52;
  margin-bottom: 0.5rem;
}

/* Breadcrumb navigation */
.breadcrumb {
  background-color: #f1f1f1;
  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: #555;
}
.breadcrumb a {
  color: #202B52;
  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: #ccc;
}
.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: #202B52;
}
