/* =========================================================================
   Group B: lounges.html, become-a-retailer.html, contact.html
   Design: Lounges.dc.html, Retailer.dc.html, Contact.dc.html (1440 desktop).
   All sizes in em = design px / 16 (Osmo scaling). An element that sets its
   own font-size has its spacing divided by that px value.
   ========================================================================= */

:root {
  --gb-field-bg: #fff7e2;
  --gb-error: #9c2b1c;
  --gb-hover-bg: #f7e6bb;
  --gb-header: 2em;
  --gb-gutter: 0.75em;
}

.u-sr-gb {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.gb-wrap {
  padding-inline: var(--gb-gutter);
}

.gb-right {
  text-align: right;
}

.gb-kicker {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gb-kicker.is--gold {
  color: var(--color-gold);
}

/* ------------------------- Image hero (460px) ------------------------- */

.gb-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 28.75em; /* 460 */
  margin-top: calc(var(--gb-header) + 3px);
  padding: 0 var(--gb-gutter) 2em; /* 32 */
  color: var(--color-cream);
}

.gb-hero__title {
  max-width: 12.5em; /* 1000 @80 */
  font-size: 5em; /* 80 */
  line-height: 0.875; /* 70 */
  color: var(--color-cream);
}

.gb-hero__lead {
  max-width: 35em; /* 560 */
  margin-top: 0.875em; /* 14 */
  font-size: 1em;
  line-height: 1.25; /* 20 */
  font-weight: 700;
  color: var(--color-cream);
}

/* ------------------------- Buttons ------------------------- */

.btn-dark.gb-btn {
  min-height: 3.6667em; /* 44 @12 */
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.btn-dark.gb-btn.is--submit {
  align-self: flex-start;
  min-width: 18.4615em; /* 240 @13 */
  min-height: 3.6923em; /* 48 @13 */
  font-size: 0.8125em;
}

.btn-dark.gb-btn.is--cta {
  min-width: 16.6667em; /* 200 @12 */
}

.gb-tab.tab {
  min-height: 3.6667em; /* 44 @12 */
}

/* ------------------------- Fields ------------------------- */

.gb-field {
  display: flex;
  flex-direction: column;
  gap: 0.375em; /* 6 */
  min-width: 0;
}

.gb-field__label {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}

.gb-input {
  width: 100%;
  min-height: 2.9333em; /* 44 @15 */
  padding: 0 0.8em; /* 12 @15 */
  background: var(--gb-field-bg);
  border: 1px solid var(--color-rule);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.9375em; /* 15 */
  font-weight: 500;
  color: var(--color-dark);
}

.gb-input.is--area {
  display: block;
  padding: 0.8em;
  line-height: 1.3333;
  resize: vertical;
}

.gb-input.is--select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23050001' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 0.6667em auto;
  cursor: pointer;
}

.gb-input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.gb-input:focus {
  outline: 2px solid var(--color-dark);
  outline-offset: -1px;
  border-color: var(--color-dark);
}

.gb-input[aria-invalid="true"] {
  border-color: var(--gb-error);
  outline-color: var(--gb-error);
}

/* ------------------------- Forms (main.js [data-form] contract) ------------------------- */

.gb-form [hidden] {
  display: none !important;
}

.gb-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.875em; /* 14 */
}

.gb-form__title {
  margin-bottom: 0.2273em; /* 10 @44 */
  font-size: 2.75em; /* 44 */
  line-height: 1;
}

.gb-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75em; /* 12 */
}

.gb-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em 1.5em;
}

.gb-form__error {
  font-size: 0.875em;
  font-weight: 500;
  color: var(--gb-error);
}

.gb-form__success:focus {
  outline: none;
}

.gb-form__thanks {
  margin-bottom: 0.2273em; /* 10 @44 */
  font-size: 2.75em;
  line-height: 1;
}

.gb-form__note {
  font-size: 1em;
  font-weight: 500;
}

/* ------------------------- Two columns: form + aside ------------------------- */

.gb-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27.5em); /* 440 */
  gap: 3.75em; /* 60 */
  align-items: start;
  padding: 0 var(--gb-gutter);
}

.gb-cols.is--retailer {
  padding-top: 6.875em; /* 110 */
  padding-bottom: 10em; /* 160 */
}

.gb-cols.is--contact {
  padding-bottom: 7.5em; /* 120 */
}

.gb-aside {
  position: sticky;
  top: 2.75em; /* 44 */
  display: flex;
  flex-direction: column;
  gap: 0.875em; /* 14 */
  padding: 1.25em; /* 20 */
  border: 1px solid var(--color-line);
}

.gb-aside__title {
  font-size: 1.125em; /* 18 */
  font-weight: 700;
  text-transform: uppercase;
}

.gb-aside__text {
  font-size: 0.875em;
  line-height: 1.2857; /* 18 @14 */
  font-weight: 500;
}

.gb-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8571em; /* 12 @14 */
  font-size: 0.875em; /* 14 */
  font-weight: 500;
}

.gb-row .gb-kicker {
  font-size: 0.8571em; /* 12 @14 */
}

.gb-aside__img {
  width: 100%;
  height: auto;
  margin-top: 0.5em; /* 8 */
}

.gb-aside__img.is--cover {
  height: 13.75em; /* 220 */
  object-fit: cover;
}

/* ------------------------- Placeholder (map) ------------------------- */

.gb-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  background: var(--color-leaf);
  border: 1px solid var(--color-line);
  color: var(--color-gold);
  text-align: center;
}

.gb-map {
  position: relative;
  overflow: hidden;
  min-height: 40em; /* 640 */
}

.gb-map__label {
  position: relative;
  z-index: 1;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}

.gb-map__link {
  position: relative;
  z-index: 1;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}

.gb-map__pins {
  position: absolute;
  inset: 4em 5em;
}

.gb-map__pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  transform: translate(-50%, -0.3125em);
  transition: opacity 0.4s ease;
}

.gb-map__dot {
  width: 0.625em;
  height: 0.625em;
  border-radius: 50%;
  background: var(--color-dark);
  box-shadow: 0 0 0 0.1875em var(--color-leaf);
  transition: transform 0.4s var(--ease-osmo), background-color 0.3s ease;
}

.gb-map__pin[data-type="retail"] .gb-map__dot {
  background: var(--color-gold);
}

.gb-map__city {
  font-size: 0.625em; /* 10 */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-gold-muted);
}

.gb-map__pin[data-dim] {
  opacity: 0.2;
}

.gb-map__pin[data-active] .gb-map__dot {
  transform: scale(1.6);
}

.gb-map__pin[data-active] .gb-map__city {
  color: var(--color-dark);
}

/* ------------------------- Lounges: locator ------------------------- */

.gb-locator {
  padding-top: 2.5em; /* 40 */
  padding-bottom: 10em; /* 160 */
}

.gb-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5em; /* 8 */
  margin-bottom: 1.5em; /* 24 */
}

.gb-search__field {
  flex: 1 1 20em; /* 320 */
}

.gb-search__types {
  display: flex;
  gap: 0.375em; /* 6 */
}

.gb-search__status {
  margin: -0.8571em 0 1.1429em; /* -12 / 16 @14 */
  font-size: 0.875em;
  font-weight: 500;
  color: var(--color-hover);
}

.gb-search__status:empty {
  display: none;
}

.gb-locator__grid {
  display: grid;
  grid-template-columns: minmax(0, 27.5em) minmax(0, 1fr); /* 440 */
  gap: 0.5625em; /* 9 */
  min-height: 40em; /* 640 */
}

.gb-list {
  max-height: 40em; /* 640 */
  overflow: auto;
  border: 1px solid var(--color-line);
  overscroll-behavior: contain;
}

.gb-list__count {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 1em 1.3333em; /* 12 16 @12 */
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-line);
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}

.gb-list__empty {
  padding: 1em;
  font-size: 0.875em;
  font-weight: 500;
}

.gb-loc {
  display: flex;
  flex-direction: column;
  gap: 0.375em; /* 6 */
  padding: 1em; /* 16 */
  border-bottom: 1px solid var(--color-line);
  transition: background-color 0.3s ease;
}

.gb-loc[hidden] {
  display: none;
}

.gb-loc[data-active] {
  background: var(--gb-hover-bg);
}

.gb-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 2.1818em; /* 24 @11 */
  padding: 0 0.9091em; /* 10 @11 */
  border: 1px solid var(--color-rule);
  font-size: 0.6875em; /* 11 */
  font-weight: 700;
  text-transform: uppercase;
}

.gb-loc__name {
  font-size: 1.5em; /* 24 */
  line-height: 1;
}

.gb-loc__addr {
  font-size: 0.875em; /* 14 */
  font-weight: 500;
}

.gb-loc__dist {
  color: var(--color-gold-muted);
}

.gb-loc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.3333em; /* 16 @12 */
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}

/* CTA box */
.gb-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25em; /* 20 */
  margin-top: 5em; /* 80 */
  padding: 1.75em; /* 28 */
  border: 1px solid var(--color-line);
}

.gb-cta__title {
  margin-bottom: 0.1667em; /* 6 @36 */
  font-size: 2.25em; /* 36 */
  line-height: 1;
}

.gb-cta__text {
  font-size: 0.9375em; /* 15 */
  font-weight: 500;
}

/* ------------------------- Retailer: benefits ------------------------- */

.gb-benefits {
  padding-top: 6.25em; /* 100 */
}

.gb-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5em; /* 8 */
}

.gb-benefit {
  padding-top: 0.875em; /* 14 */
  border-top: 1px solid var(--color-dark);
}

.gb-benefit__title {
  margin: 0.1875em 0 0.25em; /* 6 8 @32 */
  font-size: 2em; /* 32 */
  line-height: 1;
}

.gb-benefit__text {
  font-size: 0.9375em; /* 15 */
  line-height: 1.2667; /* 19 */
  font-weight: 500;
}

/* ------------------------- Contact ------------------------- */

.gb-head {
  padding-top: calc(var(--gb-header) + 5em); /* header + 80 */
  padding-bottom: 3.75em; /* 60 */
}

.gb-head__title {
  font-size: 5em; /* 80 */
  line-height: 0.875; /* 70 */
}

.gb-map.is--contact {
  min-height: 26.25em; /* 420 */
  margin: 0 var(--gb-gutter) 10em; /* 160 */
}

/* ------------------------- Tablet ------------------------- */

@media screen and (max-width: 991px) {
  :root {
    --gb-header: 3em;
  }

  .gb-hero {
    height: 25em;
  }

  .gb-locator__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .gb-list {
    max-height: 30em;
  }

  .gb-map {
    min-height: 25em;
  }

  .gb-map__pins {
    inset: 3em 4em;
  }

  .gb-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5em;
  }

  .gb-aside {
    position: static;
  }

  .gb-aside__img:not(.is--cover) {
    max-width: 27.5em;
  }
}

/* ------------------------- Mobile (402 design) ------------------------- */

@media screen and (max-width: 767px) {
  :root {
    --gb-header: 2.3125em; /* 37 */
    --gb-gutter: 0.5625em; /* 9 */
  }

  .gb-hero {
    height: 22.5em; /* 360 */
    padding-bottom: 1.5em;
  }

  .gb-hero__title {
    font-size: 2.75em; /* 44 */
    line-height: 0.9091; /* 40 */
  }

  .gb-hero__lead {
    margin-top: 0.75em;
  }

  /* Locator */
  .gb-locator {
    padding-top: 2em;
    padding-bottom: 6.25em; /* 100 */
  }

  .gb-search {
    flex-direction: column;
    align-items: stretch;
  }

  .gb-search__field {
    flex: none;
  }

  .gb-search__types .gb-tab {
    flex: 1 1 0;
    padding: 0 0.5em;
  }

  .btn-dark.gb-btn {
    width: 100%;
  }

  .gb-list {
    max-height: 32em;
  }

  .gb-map {
    min-height: 20em; /* 320 */
  }

  .gb-map__pins {
    inset: 2.5em 2.5em;
  }

  .gb-map__city {
    display: none;
  }

  .gb-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 3.75em;
    padding: 1.25em 1em;
  }

  .gb-cta__title {
    font-size: 2em;
  }

  .btn-dark.gb-btn.is--cta,
  .btn-dark.gb-btn.is--submit {
    align-self: stretch;
    min-width: 0;
  }

  /* Retailer */
  .gb-benefits {
    padding-top: 3.75em; /* 60 */
  }

  .gb-benefits__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2em;
  }

  .gb-benefit__title {
    font-size: 1.75em; /* 28 */
  }

  .gb-cols {
    gap: 2.25em; /* 36 */
  }

  .gb-cols.is--retailer {
    padding-top: 4.375em; /* 70 */
    padding-bottom: 6.25em;
  }

  .gb-cols.is--contact {
    padding-bottom: 3.75em;
  }

  .gb-two {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875em;
  }

  .gb-form__title,
  .gb-form__thanks {
    font-size: 2.25em; /* 36 */
  }

  .gb-aside {
    padding: 1em;
  }

  .gb-aside__img:not(.is--cover) {
    max-width: none;
  }

  /* Contact */
  .gb-head {
    padding-top: calc(var(--gb-header) + 3.75em); /* header + 60 */
    padding-bottom: 2.5em;
  }

  .gb-head__title {
    font-size: 2.75em;
    line-height: 0.9091;
  }

  .gb-map.is--contact {
    min-height: 20em;
    margin-bottom: 6.25em;
  }
}
