/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

div.field_with_errors > label {
  color: red;
}

div.field_with_errors > :is(input, textarea, select) {
  border: 2px solid red;
  margin-bottom: 1rem;
}


/* History page */

.inset {
	padding: 1rem;
  margin-bottom: 1rem;
	border: 1px solid oklch(0.723 0.219 149.579);
	background-color: oklch(0.925 0.084 155.995);

  @media screen and (min-width: 600px) {
    width: 50%;
    float: left;
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

.inset p {
	margin-bottom: 0;
	font-style: italic;
}

.inset h3 {
	font-weight: bold;
	font-size: 1.3rem;
}

.map {
  width: 100%;

  @media screen and (min-width: 600px) {
    width: 44%;
    margin-bottom: 1rem;
  }
}


/* Switch */

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


/* Welcomes index page */

.welcomes-intro {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;

  @media (width >= 48rem) { flex-direction: row; }
}

.welcomes-intro-paragraph {
  width:100%;

  @media (width >= 48rem) { width: 50%; }
}

.welcomes-intro-images {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;

  @media (width >= 48rem) {
    width: 50%;
  }
}

.welcomes-intro-images-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  @media (width >= 48rem) {
    flex-direction: row;
  }
}

.welcomes-intro-images-inner img {
  display: block;
  width: 100%;

  @media (width >= 48rem) {
    width: 50%;
  }
}


/* Mobile menu */

.open {
  height: 100vh;
}

.mobile-menu {
  transition: 500ms height ease-in-out;
}


/* Businesses page */
.business {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 2rem;

  @media screen and (min-width: 600px) {
    flex-direction: row;
  }
}

.business > img {
  display: block;

  @media screen and (min-width: 600px) {
    width: 40%;
  }
}
