/* ==========================================================================
   Lyfe Realty Listings — Frontend Styles
   ========================================================================== */

:root {
    --lyfe-primary: #2d7e3b;
    --lyfe-primary-hover: #246832;
    --lyfe-text: #2D3748;
    --lyfe-muted: #718096;
    --lyfe-light: #A0AEC0;
    --lyfe-card-bg: #FFFFFF;
    --lyfe-border: #E2E8F0;
    --lyfe-status-active: #38A169;
    --lyfe-status-pending: #D69E2E;
    --lyfe-status-closed: #4A5568;
    --lyfe-radius: 20px;
    --lyfe-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    --lyfe-shadow-hover: rgba(0, 0, 0, 0.08) 0px 12px 32px 0px, rgba(0, 0, 0, 0.12) 0px 0px 0px 1px;
}

/* Wrapper */
.lyfe-listings-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--lyfe-text);
    line-height: 1.5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    overflow: visible !important;
}

.lyfe-listings-wrap *,
.lyfe-listings-wrap *::before,
.lyfe-listings-wrap *::after {
    box-sizing: border-box;
}

/* Semantic HTML resets */
.lyfe-listings-wrap h3 {
    margin: 0;
}

.lyfe-listings-wrap address {
    font-style: normal;
}

.lyfe-listings-wrap .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.lyfe-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.lyfe-filter-btn {
    padding: 10px 28px;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    background: #fff;
    color: var(--lyfe-text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.lyfe-filter-btn:hover {
    border-color: #BDBDBD;
    background: #FAFAFA;
}

.lyfe-filter-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--lyfe-primary);
}

.lyfe-filter-btn.lyfe-filter-active {
    background: var(--lyfe-text);
    border-color: var(--lyfe-text);
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   Listing Grid
   ========================================================================== */

.lyfe-listings-grid {
    display: grid;
    gap: 28px;
}

.lyfe-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lyfe-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lyfe-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .lyfe-cols-3,
    .lyfe-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lyfe-cols-2,
    .lyfe-cols-3,
    .lyfe-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Listing Card
   ========================================================================== */

.lyfe-listing-card {
    background: var(--lyfe-card-bg);
    border-radius: var(--lyfe-radius);
    overflow: hidden;
    box-shadow: var(--lyfe-shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lyfe-listing-card:hover,
.lyfe-listing-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--lyfe-shadow-hover);
    outline: none;
}

/* Fade transition for filtering */
.lyfe-listing-card.lyfe-hidden {
    display: none;
}

/* Photo area */
.lyfe-card-photo {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    background: #F7FAFC;
    overflow: hidden;
}

.lyfe-card-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lyfe-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lyfe-light);
    background: #F7FAFC;
}

/* Status badge — fully rounded pill */
.lyfe-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.4;
}

.lyfe-card-photo .lyfe-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.lyfe-status-active       { background: var(--lyfe-status-active); }
.lyfe-status-pending      { background: var(--lyfe-status-pending); }
.lyfe-status-closed       { background: var(--lyfe-status-closed); }
.lyfe-status-coming-soon  { background: var(--lyfe-muted); }

/* Card body — left-aligned */
.lyfe-card-body {
    padding: 20px;
    text-align: left;
}

.lyfe-card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--lyfe-text);
    margin-bottom: 4px;
    text-align: left;
}

.lyfe-card-address {
    font-size: 14px;
    color: var(--lyfe-muted);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.lyfe-card-details {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    text-align: left;
}

.lyfe-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--lyfe-text);
}

.lyfe-detail-item svg {
    color: var(--lyfe-muted);
    flex-shrink: 0;
}

.lyfe-card-type {
    font-size: 12px;
    color: var(--lyfe-muted);
    margin-bottom: 4px;
    text-align: left;
}

.lyfe-card-mls {
    font-size: 11px;
    color: var(--lyfe-light);
    text-align: left;
}

/* No listings */
.lyfe-no-listings {
    text-align: center;
    padding: 60px 20px;
    color: var(--lyfe-muted);
    font-size: 16px;
}

/* ==========================================================================
   Carousel
   ========================================================================== */

.lyfe-carousel {
    position: relative;
    padding: 0 28px;
    overflow: visible !important;
}

.lyfe-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0;
}

.lyfe-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Carousel cards: force sizing to override theme */
.lyfe-carousel-track .lyfe-listing-card {
    scroll-snap-align: start;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    max-width: none !important;
    float: none !important;
}

.lyfe-carousel-track[data-columns="2"] .lyfe-listing-card {
    flex-basis: calc(50% - 12px) !important;
    width: calc(50% - 12px) !important;
    min-width: calc(50% - 12px) !important;
}
.lyfe-carousel-track[data-columns="3"] .lyfe-listing-card {
    flex-basis: calc(33.333% - 16px) !important;
    width: calc(33.333% - 16px) !important;
    min-width: calc(33.333% - 16px) !important;
}
.lyfe-carousel-track[data-columns="4"] .lyfe-listing-card {
    flex-basis: calc(25% - 18px) !important;
    width: calc(25% - 18px) !important;
    min-width: calc(25% - 18px) !important;
}

@media (max-width: 900px) {
    .lyfe-carousel-track[data-columns="3"] .lyfe-listing-card,
    .lyfe-carousel-track[data-columns="4"] .lyfe-listing-card {
        flex-basis: calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
        min-width: calc(50% - 12px) !important;
    }
}

@media (max-width: 600px) {
    .lyfe-carousel-track[data-columns="2"] .lyfe-listing-card,
    .lyfe-carousel-track[data-columns="3"] .lyfe-listing-card,
    .lyfe-carousel-track[data-columns="4"] .lyfe-listing-card {
        flex-basis: calc(85vw) !important;
        width: calc(85vw) !important;
        min-width: calc(85vw) !important;
    }
    .lyfe-carousel {
        padding: 0 20px;
    }
}

/* Carousel arrows */
.lyfe-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    background: #fff;
    color: var(--lyfe-text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.lyfe-carousel-arrow:hover {
    border-color: #BDBDBD;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lyfe-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
}

.lyfe-carousel-prev { left: -6px; }
.lyfe-carousel-next { right: -6px; }

@media (max-width: 600px) {
    .lyfe-carousel-prev { left: -4px; }
    .lyfe-carousel-next { right: -4px; }
    .lyfe-carousel-arrow {
        width: 36px;
        height: 36px;
    }
    .lyfe-carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.lyfe-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.lyfe-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 6px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    background: #fff;
    color: var(--lyfe-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lyfe-page-btn:hover {
    border-color: #BDBDBD;
    background: #FAFAFA;
    text-decoration: none;
    color: var(--lyfe-text);
}

.lyfe-page-current {
    background: var(--lyfe-text);
    border-color: var(--lyfe-text);
    color: #fff;
    font-weight: 600;
    cursor: default;
}

.lyfe-page-current:hover {
    background: var(--lyfe-text);
    border-color: var(--lyfe-text);
    color: #fff;
}

.lyfe-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    font-size: 14px;
    color: var(--lyfe-muted);
}

/* ==========================================================================
   Compliance
   ========================================================================== */

.lyfe-compliance {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--lyfe-border);
    font-size: 11px;
    color: var(--lyfe-light);
    line-height: 1.6;
}

.lyfe-compliance p {
    margin: 0 0 4px;
}

.lyfe-compliance-modal {
    margin-top: 24px;
    border-top-color: var(--lyfe-border);
}

/* ==========================================================================
   Modal — Shoelace <sl-dialog>
   ========================================================================== */

/* Hide custom elements before they upgrade to avoid FOUC. */
sl-dialog:not(:defined),
sl-carousel:not(:defined),
sl-carousel-item:not(:defined) {
    display: none;
}

/* Make the [hidden] attribute always win inside our dialog (themes that set
   `display: flex` etc. on classes can otherwise make hidden elements visible). */
.lyfe-dialog [hidden] {
    display: none !important;
}

/* Body scroll lock — handled by JS via inline `overflow: hidden !important`
   (inline styles always win over theme rules) plus this class as a CSS hook.
   We intentionally do NOT use `position: fixed` on the body anymore: it can
   interfere with wheel-event delivery to scrollable descendants in some
   themes (Salient's smooth-scroll plugins were eating the events). */
html.lyfe-modal-locked,
html.lyfe-modal-locked body {
    overscroll-behavior: contain;
}

.lyfe-dialog {
    --width: 720px;
    --header-spacing: 0;
    --body-spacing: 0;
    --footer-spacing: 0;
    /* Lift above any theme overlays (Salient, sticky headers, etc.). */
    --sl-z-index-dialog: 2147483647;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--lyfe-text);
}

.lyfe-dialog::part(overlay) {
    background-color: rgba(0, 0, 0, 0.6);
}

.lyfe-dialog::part(panel) {
    background-color: var(--lyfe-card-bg);
    border-radius: var(--lyfe-radius);
    width: 720px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

/* Strip Shoelace's body padding — our content handles its own padding. */
.lyfe-dialog::part(body) {
    padding: 0 !important;
}

/* Footer stays pinned at the bottom of the panel; doesn't scroll with body. */
.lyfe-dialog::part(footer) {
    padding: 14px 20px;
    border-top: 1px solid var(--lyfe-border);
    background: #fff;
}

/* THIS is the actual scroll container — not Shoelace's body slot.
   We use an explicit max-height in viewport units so scrolling is guaranteed
   to work regardless of how Shoelace's flex/slot layout computes things or
   whether the host theme injects rules that interfere with intrinsic sizing.
   The footer (~80px) is always visible because it lives in the dialog footer
   slot, which is OUTSIDE this scroll area. */
.lyfe-modal-content {
    position: relative;
    max-height: calc(100vh - 160px);
    /* Use dvh on browsers that support it for accurate mobile sizing. */
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@media (max-height: 600px) {
    .lyfe-modal-content {
        max-height: calc(100vh - 120px);
        max-height: calc(100dvh - 120px);
    }
}

/* Floating action bar (directions + share + close) over the gallery */
.lyfe-modal-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.lyfe-modal-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
    line-height: 1;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lyfe-modal-icon:hover,
.lyfe-modal-icon:focus-visible {
    background: rgba(0, 0, 0, 0.78);
    outline: none;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.lyfe-modal-icon svg {
    display: block;
}

/* Share button: swap icons when link is copied */
#lyfe-modal-share .lyfe-icon-check {
    display: none;
}

#lyfe-modal-share.lyfe-share-copied {
    background: var(--lyfe-primary);
}

#lyfe-modal-share.lyfe-share-copied .lyfe-icon-share {
    display: none;
}

#lyfe-modal-share.lyfe-share-copied .lyfe-icon-check {
    display: block;
}

/* ---- Carousel (gallery + thumbnails pattern) ----
   Mirrors https://shoelace.style/components/carousel#gallery-example
   - mouse-dragging only (no nav arrows, no pagination dots)
   - thumbnail strip below the main image syncs with the active slide */

.lyfe-modal-gallery {
    display: block;
    position: relative;
    background: #0f172a;
    --aspect-ratio: 4 / 3;
    --slide-aspect-ratio: 4 / 3;
    --slide-gap: 0px;
    --scroll-hint: 0px;
}

/* Make ::part(base) a positioning context for our overlay chrome
   (counter chip, action buttons, top vignette) and remove the implicit gap
   so the slide bleeds edge-to-edge. */
.lyfe-modal-gallery::part(base) {
    position: relative;
    gap: 0;
}

.lyfe-modal-gallery sl-carousel-item {
    background: #0f172a;
}

/* Force any image inside a slide to fill cleanly. The !important guards
   against theme rules like `img { width: 100% !important }` that would
   otherwise distort the layout. */
.lyfe-modal-gallery sl-carousel-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Subtle gradient under the action buttons so they stay legible on bright,
   white-walled photos. */
.lyfe-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 88px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 100%);
}

/* ---- Photo counter chip (top-left of carousel) ---- */

.lyfe-photo-counter {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
}

.lyfe-photo-counter[data-multi="true"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lyfe-photo-counter svg {
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 auto !important;
}

/* ---- Thumbnail strip ---- */

.lyfe-modal-thumbs {
    background: #fff;
    border-bottom: 1px solid var(--lyfe-border);
    padding: 12px 0;
}

/* Padding lives inside the scroller so items scroll cleanly past the edges
   without a hard clip; the gutter on each side stays consistent. */
.lyfe-modal-thumbs-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-padding: 0 16px;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
}

.lyfe-modal-thumbs-scroller::-webkit-scrollbar {
    display: none;
}

/* Rendered as <div role="button"> to escape Salient's `button { border-radius: 200px }` */
.lyfe-modal-thumb {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 84px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #F7FAFC;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.55;
    will-change: opacity;
    transition: opacity 200ms ease, border-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
    line-height: 0;
    user-select: none;
    -webkit-user-select: none;
}

.lyfe-modal-thumb:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.lyfe-modal-thumb:focus-visible {
    opacity: 1;
    outline: 2px solid var(--lyfe-primary);
    outline-offset: 2px;
}

.lyfe-modal-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    /* Match button radius cleanly (some themes also force img radius). */
    border-radius: 6px !important;
}

.lyfe-modal-thumb.lyfe-thumb-active {
    opacity: 1;
    border-color: var(--lyfe-primary);
    box-shadow: 0 0 0 1px var(--lyfe-primary);
}

/* ---- "No photos available" placeholder (shown when the listing has 0 photos) ---- */

.lyfe-modal-no-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 240px;
    background: #F7FAFC;
    color: var(--lyfe-light);
    font-size: 14px;
    font-weight: 500;
}

.lyfe-modal-no-photos svg {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    flex: 0 0 auto !important;
}

@media (max-width: 600px) {
    .lyfe-modal-gallery {
        --aspect-ratio: 4 / 3;
        --slide-aspect-ratio: 4 / 3;
    }

    .lyfe-modal-actions {
        top: 10px;
        right: 10px;
    }

    .lyfe-photo-counter {
        top: 10px;
        left: 10px;
    }

    .lyfe-modal-thumbs {
        padding: 10px 12px;
    }

    .lyfe-modal-thumb {
        width: 72px;
        height: 54px;
    }
}

/* Modal body */
.lyfe-modal-body {
    padding: 24px;
    text-align: left;
}

.lyfe-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.lyfe-modal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--lyfe-text);
    margin: 0;
}

.lyfe-modal-address {
    font-size: 15px;
    color: var(--lyfe-muted);
    margin: 0 0 16px;
}

.lyfe-modal-details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lyfe-modal-details .lyfe-detail-item {
    font-size: 15px;
}

.lyfe-modal-details .lyfe-detail-item svg {
    width: 18px;
    height: 18px;
}

/* Modal table */
.lyfe-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.lyfe-modal-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--lyfe-border);
    font-size: 14px;
    text-align: left;
}

.lyfe-modal-table td:first-child {
    color: var(--lyfe-muted);
    width: 140px;
}

/* CTA button — lives in the dialog footer slot, always visible at the bottom. */
.lyfe-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.lyfe-modal-footer-nav {
    display: flex;
    gap: 8px;
}

.lyfe-modal-footer-actions {
    display: flex;
    gap: 8px;
}

/* Prev/Next navigation buttons */
.lyfe-modal-nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    background: #fff;
    color: #2D3748;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.lyfe-modal-nav-btn:hover:not(:disabled) {
    border-color: #a0aec0;
    background: #f7fafc;
}

.lyfe-modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.lyfe-btn-contact {
    display: inline-block;
    padding: 14px 28px;
    background: #2d7e3b;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s ease;
    border: none;
    line-height: 1.4;
}

.lyfe-btn-contact:hover {
    background: #246832;
    text-decoration: none !important;
    color: #fff !important;
}

.lyfe-btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: #2d7e3b !important;
    border: 2px solid #2d7e3b;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}

.lyfe-btn-secondary:hover {
    background: #2d7e3b;
    color: #fff !important;
}

/* ==========================================================================
   Shortcode Builder Preview (admin)
   ========================================================================== */

.lyfe-builder-output {
    background: #F7FAFC;
    border: 1px solid var(--lyfe-border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    max-width: 700px;
}

.lyfe-builder-output code {
    flex: 1;
    font-size: 14px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #E0E0E0;
    word-break: break-all;
}

#lyfe-builder-preview {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 24px;
    margin-top: 12px;
    min-height: 200px;
    background: #FAFAFA;
    max-width: 900px;
    overflow: hidden;
}
