/* ===========================================================================
   Region archive: calls to action
   ===========================================================================

   The filled gold `.btn`s on this template - the hero's "Contact Us" (`.lph-actions`) and
   each product row's "Inquire" (`.lep-actions`) - take the look of the Editorial location
   template's primaries: the bright prismatic gradient showing as a 2px ring round a dark
   fill, filling with gold on hover.

   This is the "Primary calls to action" block of css/location-editorial.css on the
   `amenities-bar` branch (2026-11-11), with the body class swapped for `.tax-region` and
   the selector list cut to the two groups this page prints. The secondaries beside them
   take that branch's other half, below: a text link with a chevron instead of a second
   button.

   The parts are the ones style.css gives an outline button: padding moved from the link to
   the span, `:before` as the fill inset by a transparent border, and the faint
   `--gradient-light` wash on `span:before`. The `:after` hover fill is the stock one and is
   left alone.

   @see inc/region-page.php  enqueues this file on region pages only
   --------------------------------------------------------------------------- */

.tax-region :is(.lph-actions, .lep-actions) .btn:not(.outline):not(.dropdown-toggle) {
    padding: 0 !important;
    background: var(--btn-gradient-prismatic);
}

/* `background-color` would not do here: the stock `:before` paints `--btn-gradient-primary`
   as a background image, which has to go for the fill to show. The clip is restated after
   the shorthand, which resets it. */
.tax-region :is(.lph-actions, .lep-actions) .btn:not(.outline):not(.dropdown-toggle):before {
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 4px;
    background: var(--color-bg-primary);
    background-clip: padding-box;
    transition: opacity 0.4s ease-in-out;
}

.tax-region :is(.lph-actions, .lep-actions) .btn:not(.outline):not(.dropdown-toggle):hover:before {
    opacity: 0;
}

.tax-region :is(.lph-actions, .lep-actions) .btn:not(.outline):not(.dropdown-toggle) span {
    width: 100%;
    padding: 11px 24px;
    z-index: 1;
}

.tax-region :is(.lph-actions, .lep-actions) .btn:not(.outline):not(.dropdown-toggle) span:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid transparent;
    background: var(--gradient-light);
    background-clip: padding-box;
    z-index: -1;
}

/* ---------------------------------------------------------------------------------------
   Secondary calls to action: a text link with a chevron, not a second button.

   The `.btn.outline` beside each primary above - "View Locations" in the hero and on each
   product row - drops its ring and fill and reads "View Locations >". One ringed button per
   group, with the alternative as a link beside it, so the two no longer compete.

   From the same block of css/location-editorial.css on the `amenities-bar` branch as the
   ring above. "See all locations" under the map is not in either group and keeps its
   outline button.

   The link keeps the button's box - the same height and the span's vertical padding - so
   its label sits on the primary's baseline in a row and takes the same tap target; only
   the side padding comes in, since there is no edge left for it to clear.
   --------------------------------------------------------------------------------------- */
.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle),
.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle):hover {
    background: none !important;
    /* style.css:7496 draws a 1px inset ring on hover, with !important. */
    box-shadow: none !important;
}

/* The fill, the hover fill and the wash over the fill: all three are the button. */
.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle):before,
.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle):after,
.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle) span:before {
    display: none;
}

.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle) span {
    padding: 11px 8px;
    transition: color 0.3s ease;
}

.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle):hover span,
.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle):focus-visible span {
    color: var(--color-text-accent);
}

/* The chevron is `.with-arrow`'s (style.css:19667), a size up to sit with button type. */
.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle) span:after {
    content: "";
    display: inline-block;
    position: relative;
    top: -1px;
    width: 5px;
    height: 10px;
    margin-left: 6px;
    vertical-align: middle;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='8' viewBox='0 0 4 8' fill='none'%3E%3Cpath d='M0.114302 0.738142C-0.0381012 0.569275 -0.0381012 0.295543 0.114302 0.126633C0.26671 -0.0421896 0.513754 -0.0422335 0.66615 0.126633L3.88579 3.69423C4.02863 3.85255 4.03745 4.10297 3.91245 4.27279L3.88579 4.30574L0.66615 7.87334C0.513747 8.04222 0.26671 8.04222 0.114303 7.87334C-0.0381009 7.70446 -0.0381009 7.43073 0.114303 7.26185L3.05802 4.00001L0.114302 0.738142Z' fill='%23D2AF6B'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.3s ease;
}

.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle):hover span:after {
    transform: translateX(3px);
}

/* Underlined on hover, as `.with-arrow` links are (style.css:19663). On the span, not the
   link: the chevron is an inline-block on `span:after`, which a text decoration does not
   run under, so the line stops with the label. */
.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle):hover span,
.tax-region :is(.lph-actions, .lep-actions) .btn.outline:not(.dropdown-toggle):focus-visible span {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
