/* =================================================================
   Elways Theme — Mobile-First
   Airbnb CSS Guide: kebab-case, one declaration per line,
   classes over IDs, no !important unless overriding inline styles
   Breakpoints: base (<769px), tablet (769px+), desktop (1025px+)
   ================================================================= */

/* --- Base / Global --- */
body {
  background-color: var(--background);
  margin: 0;
}

h1 {
  font-size: 36px !important;
  font-weight: 600;
  padding-bottom: 4px;
  margin-top: 22px;
  margin-bottom: 12px;
  color: var(--accent);
}

h2 {
  font-size: 32px !important;
  font-weight: 600;
  padding-bottom: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--accent);
}

/* --- Page containment --- */
/* Default: restrict all page content to 1000px */
.site-content {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 16px;
}

/* Full-width pages (SRP, homepage): remove restriction */
.allowFull > .site-content {
  max-width: none;
  padding: 24px;
}

/* --- Content blocks --- */
.content-block {
  color: var(--foreground);
  padding: 8px;
  padding-bottom: 15px;
}

.content-block--centered {
  text-align: center;
}

.content-columns {
  display: flex;
  gap: 24px;
}

.content-col,
.text-image-first,
.text-image-second,
.image-text-first,
.image-text-second {
  flex: 1;
  min-width: 0;
}

.content-col summary {
  margin-bottom: 0.3rem;
  cursor: pointer;
}

.content-col details > p {
  font-size: 13px;
}

.image-text-first {
  order: 2;
}

.image-text-second {
  order: 1;
}

/* Prevent child margins from collapsing through .page-wrapper */
.page-wrapper {
  display: flow-root;
}

/* --- Site header --- */
.site-header {
  position: relative;
  z-index: 10;
}

/* --- Containment --- */
.full-width,
.allowFull {
  max-width: none;
}

.container {
  margin: auto;
}

/* Width style classes — mapped from Text content type "Width Style" field */
.text-contained {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.text-narrow {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* --- Content overlap --- */
.overlap {
  display: none;
}

/* --- Graphic links (fullsize card overrides) --- */

/* Card container */
.box-link-holder {
  gap: 16px;
  padding: 24px 16px;
}

/* Card — rounded, dark gradient, no blue hover */
.box-link-box.full {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: none;
  margin: 0;
  min-height: 280px;
  width: auto;
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  background-color: transparent;
  background-blend-mode: normal;
  background-size: cover;
  transition: transform 0.3s ease;
}

.box-link-box.full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  pointer-events: none;
  border-radius: 16px;
  transition: background 0.3s ease;
}

.box-link-box.full:hover {
  transform: scale(1.02);
  background-size: cover;
  background-color: transparent;
  background-blend-mode: normal;
}

.box-link-box.full:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
}

/* Text — bottom-left, over gradient */
.box-link-box.full .box-text-holder {
  position: relative;
  z-index: 1;
  padding: 24px;
  text-align: left;
  width: 100%;
  background-color: transparent;
}

.box-link-box.full .box-headline {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  text-align: left;
  margin: 0 0 4px;
}

.box-link-box.full .box-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
}

.box-link-box.full .box-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  color: #fff;
  background-color: var(--accent, #4169E1);
  border-radius: 500px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease;
}

.box-link-box.full .box-link:hover {
  background-color: var(--accent-hover, #3358c4);
  color: #fff;
}

/* Non-fullsize graphic link defaults */
.box-headline {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.text-bsizer-1 {
  text-align: center;
  padding-bottom: 20px;
}

.text-bsizer-5 {
  margin-top: 100px;
  margin-bottom: 50px;
  text-align: center;
}

/* --- Brands bar --- */
.brandbarholder {
  width: 100%;
  background-color: #000;
}

/* --- Carousel --- */
.carousel-slide {
  object-fit: contain;
  top: 0;
}

.img-Banner {
  object-fit: contain;
}

/* --- Forms (Figma-matched) --- */
form {
  padding: 0;
}

/* Form card container — only dotCMS form widgets, not search bars */
.site-content form:not(.ew-search) {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.1);
  padding: 24px;
  max-width: 846px;
  margin: 0 auto;
}

/* Required field indicator — only on dotCMS form widgets */
.site-content form:not(.ew-search)::before {
  content: "*indicates required field";
  display: block;
  text-align: center;
  font-size: 14px;
  color: #717182;
  margin-bottom: 24px;
}

/* Red asterisks on required fields */
.dot-label__required-mark {
  color: rgb(251, 44, 54);
}

/* Labels */
.site-content form:not(.ew-search) label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  margin-bottom: 8px;
}

/* Text inputs */
.site-content form:not(.ew-search) input[type="text"],
.site-content form:not(.ew-search) input[type="email"],
.site-content form:not(.ew-search) input[type="tel"],
.site-content form:not(.ew-search) input[type="number"],
.site-content form:not(.ew-search) input[type="url"],
.site-content form:not(.ew-search) input[type="password"],
.site-content form:not(.ew-search) select {
  width: 100%;
  height: 36px;
  background: #f3f3f5;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #0a0a0a;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.site-content form:not(.ew-search) input:focus,
.site-content form:not(.ew-search) select:focus,
.site-content form:not(.ew-search) textarea:focus {
  border-color: var(--accent, #155dfc);
  outline: none;
}

/* Textarea */
.site-content form:not(.ew-search) textarea {
  width: 100%;
  min-height: 100px;
  background: #f3f3f5;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: #0a0a0a;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}

/* Required asterisks */
.site-content form:not(.ew-search) .dot-field__required-mark {
  color: #fb2c36;
}

/* Field rows — 2-column grid on tablet+ */
.site-content form:not(.ew-search) .dot-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Buttons */
.site-content form:not(.ew-search) .dot-form__buttons,
.site-content form:not(.ew-search) .form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 24px;
}
.site-content form:not(.ew-search) button[type="reset"],
.site-content form:not(.ew-search) input[type="reset"] {
  height: 36px;
  padding: 0 17px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  cursor: pointer;
}
.site-content form:not(.ew-search) button[type="submit"],
.site-content form:not(.ew-search) input[type="submit"] {
  height: 36px;
  padding: 0;
  background: var(--accent, #155dfc);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.site-content form:not(.ew-search) button[type="submit"]:hover,
.site-content form:not(.ew-search) input[type="submit"]:hover {
  background: var(--accent-hover, #1247c4);
}

/* Checkbox rows */
.site-content form:not(.ew-search) input[type="checkbox"] {
  accent-color: var(--accent, #155dfc);
}

.hydrated {
  background-color: #fff;
  color: #000;
}

/* dotCMS form widget overrides */
.dot-pristine {
  max-width: none;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

@media (min-width: 769px) {
  .site-content form:not(.ew-search) .dot-form__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Helper classes --- */
.hover-cursor {
  cursor: pointer;
}

.button {
  display: inline-block;
  background-color: var(--accent, #155dfc);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.button:hover {
  background-color: var(--accent-hover, #1247c4);
  color: #fff;
}

.social {
  width: 40px;
  height: 40px;
  color: var(--accent);
  font-size: 36px;
}

.input-field select {
  width: 160px;
  display: inline-block;
}

.yellow-link {
  color: yellow;
}

/* --- Edit mode --- */
.widget-help {
  height: 20px;
  max-height: 20px;
  width: 20px;
  max-width: 20px;
  display: inline-block;
  overflow: hidden;
}

.help-question {
  height: 20px;
  width: auto;
}

.right-edit {
  float: right;
  max-width: 200px;
  background-color: #ddffff;
}

.widget-help:hover {
  width: 100%;
  max-width: max-content;
  display: block;
  background-color: #fff;
  color: #000;
  border-radius: 35px;
  border: 2px solid #000;
  padding: 10px;
  font-size: 16px;
  max-height: max-content;
  height: auto;
}

/* --- Content-specific overrides --- */
.bclass-31943d78e64b1a912cb34cb1bcf96d53 {
  border: none;
  flex-basis: 20%;
  color: #fff;
}

.cb-side-ec874c3eb431b8869c313f6ff4dfdf8c {
  background-color: #000;
}

.cb-img-ec874c3eb431b8869c313f6ff4dfdf8c {
  vertical-align: center;
  padding-left: 10px;
  position: relative;
  top: 20%;
}

.bsizer-3 .box-headline {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 26px;
}

/* --- Brands carousel --- */
.brand-carousel {
  background-color: #fff;
}

/* =================================================================
   TABLET (769px+)
   ================================================================= */
@media (min-width: 769px) {
  .overlap {
    display: block;
    position: relative;
    z-index: 2;
    margin-top: -60px;
  }
}

/* =================================================================
   MOBILE/TABLET OVERRIDES (max-width: 1024px)
   ================================================================= */
@media (max-width: 1024px) {
  #page-hero {
    margin-top: 0;
  }

  .content-columns {
    display: block;
  }

  .box-link-box.full .box-text-holder {
    background-color: transparent;
  }

  .push-left {
    margin-left: 0;
  }

  .featured-inventory-holder {
    display: block;
  }

  .text-bsizer-5 {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .box-text-holder {
    background-color: transparent;
  }
}

/* =================================================================
   MOBILE ONLY (<769px) — stack graphic link cards
   ================================================================= */
@media (max-width: 768px) {
  .box-link-box.full {
    min-height: 240px;
    width: 100%;
    flex: 0 0 100%;
    align-self: stretch;
  }
}

/* =================================================================
   DESKTOP (1025px+)
   ================================================================= */
@media (min-width: 1025px) {
  .overlap {
    margin-top: -80px;
  }
}
