.btn {
  font-size: var(--text-sm);
  height: auto;
  width: auto;
  padding: 0.75rem;
  transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}
.btn.pri-btn {
  color: var(--primary-foreground);
  background-color: var(--primary);
  transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn.pri-btn:hover {
  background-color: var(--primary-hover);
  transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn.pri-btn.disabled {
  background: #848484;
  cursor: not-allowed;
}
.btn.btn-bordered {
  color: var(--primary);
  border: 1px solid var(--primary);
  background-color: rgba(0, 0, 0, 0);
}
/* hover fills like .pri-btn's hover, so the text turns white
   (--foreground was ink on the dark fill in light) */
.btn.btn-bordered:hover {
  color: var(--primary-foreground);
  background-color: var(--primary-hover);
}

/* Ghost: a quiet second action (e.g. Close beside a call link). Text
   colour and no visible box until hovered; boxed buttons are kept for
   booking actions. The transparent border keeps it the height of a
   bordered button.
   <button class="btn btn-ghost" type="button">Close</button> */
.btn.btn-ghost {
  color: var(--foreground);
  border: 1px solid transparent;
  background-color: transparent;
  padding-inline: 1.5rem;
  cursor: pointer;
}

.btn.btn-ghost:hover {
  color: var(--foreground);
  background-color: var(--background-accent);
}

/* A Lucide icon before or after the label:
   <a class="btn pri-btn"><i data-lucide="plus" aria-hidden="true"></i>Follow</a> */
.btn:has(> .lucide, > i[data-lucide]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  > .lucide {
    flex: none;
    width: 1.25em;
    height: 1.25em;
  }
}

.btn.btn-transparent {
  background-color: transparent;
}

.btn.btn-transparent:hover {
  background-color: var(--primary-hover);
  color: white;
}

.see-all-container .btn {
  margin: 0 auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.main-btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  font-size: var(--text-sm);
  text-transform: uppercase;
  font-weight: 600;
  transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  color: var(--foreground);
}
.btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  gap: 0.5rem;
  position: relative;
  font-size: 14px;
  text-transform: uppercase;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  letter-spacing: 1px;
  padding: 0.75rem 0;
  color: var(--primary);
}
.btn-text::after {
  content: url('../images/arrow-right-circled-black_5eba850e.svg');
  display: block;
  top: 1px;
  position: relative;
  height: 1.5rem;
  width: 1.5rem;
  object-fit: cover;
}
.btn-text:hover {
  color: var(--primary-hover);
}

/* .btn-text--icon: a Lucide icon before the label in place of the circled
   arrow after it (e.g. a phone link).
   <a class="btn-text btn-text--icon" href="tel:…"><i data-lucide="phone" aria-hidden="true"></i>Call …</a> */
.btn-text.btn-text--icon {
  gap: 0.625rem;

  &::after {
    content: none;
  }

  > .lucide {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 1.6;
  }
}
.btn-large {
  text-align: center;
  width: auto;
  margin: 2rem 1.5rem 0;
  font-size: 1.25rem;
}

.card-actions-new {
  display: flex;
}

.card-actions-new > * {
  flex: 1;
  border: 2px solid var(--primary);
}

.card-actions-new > *:hover {
  border-color: var(--primary-hover);
}

.btn-text:has([data-lucide='arrow-right']) {
  position: relative;
  max-width: max-content;
  gap: 1rem;
  font-size: var(--text-lg);
  transition: 350ms var(--ease);
  transition-property: padding, gap, color;
  svg {
    height: 1.25rem;
    width: 1.25rem;
    transition: 350ms var(--ease);
  }
  &:before {
    content: '';
    transition: 350ms var(--ease);
    transition-property: width, border-radius, height, background-color;
    border: 1.5px solid var(--primary);
    height: 2rem;
    width: 2rem;
    border-radius: 5rem;
    position: absolute;
    right: -0.35rem;
    top: 50%;
    transform: translate(0, -50%);
    z-index: -1;
  }
  &:after {
    display: none;
  }
}

.btn-text:has([data-lucide='arrow-right']):hover {
  padding-inline: 1.5rem 0.75rem;
  gap: 0.5rem;
  color: white;
  &:before {
    width: 100%;
    height: 2.5rem;
    border-radius: 5rem;
    background-color: var(--primary);
  }
}
