.ad-section-block p,
.listing-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Unified action buttons on ad pages */
.ad-action-btn {
    --ad-action-color: #1f242d;
    --ad-action-border: #dfe3e8;
    --ad-action-bg-top: #ffffff;
    --ad-action-bg-bottom: #f7f8fa;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid var(--ad-action-border);
    background: linear-gradient(180deg, var(--ad-action-bg-top) 0%, var(--ad-action-bg-bottom) 100%);
    color: var(--ad-action-color);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    min-width: 150px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.ad-action-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 18px;
}

.ad-action-btn .spinner-border {
    width: 1rem;
    height: 1rem;
}

.ad-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.ad-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
}

.ad-action-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.ad-action-btn--favorite {
    --ad-action-color: #d12a52;
    --ad-action-border: rgba(209, 42, 82, 0.45);
    --ad-action-bg-top: #fff5f7;
    --ad-action-bg-bottom: #ffe7ed;
}

.ad-action-btn--primary {
    --ad-action-color: #0d6efd;
    --ad-action-border: rgba(13, 110, 253, 0.45);
}

.ad-action-btn--secondary {
    --ad-action-color: #495057;
    --ad-action-border: rgba(73, 80, 87, 0.3);
}

.ad-action-btn--danger {
    --ad-action-color: #dc3545;
    --ad-action-border: rgba(220, 53, 69, 0.45);
    --ad-action-bg-top: #fff5f5;
    --ad-action-bg-bottom: #ffe4e6;
}

.ad-action-btn--danger:hover {
    border-color: rgba(220, 53, 69, 0.6);
}

/* Sticky footer layout */
html,
body {
    min-height: 100%;
}
.site-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-shell > .site-main {
    flex: 1 0 auto;
}

.site-shell > .site-footer {
    margin-top: auto;
}

.search-toolbar-shell {
    background-color: #fff;
}

@media (max-width: 576px) {
    .ad-action-btn {
        min-width: 0;
        width: 100%;
    }
    .actions-above-photos .ad-action-btn {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}
.ad-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.18);
}
