/* ==========================================================================
   SEARCH PAGE STYLES
   ========================================================================== */

/* ==========================================================================
   SEARCH HEADER
   ========================================================================== */

.arci-content {
height: auto;
margin: 20px auto;
/*padding: 20px 40px;*/
border: none;
background: #f5f5f5;
text-align: left;
word-break: break-all;
word-wrap: break-word;
}

.arci-content h1 {
font-size: 1.5rem;
margin-bottom: 10px;
}

.arci-content p {
font-size: 1rem;
margin: 10px auto;
}

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */

#search {
width: 100%;
margin: 20px auto;
text-align: center;
}

#search::before,
#search::after {
display: block;
visibility: hidden;
clear: both;
height: 0;
content: ".";
}

.search-form {
min-width: 1px;
min-height: 1px;
height: 40px;
width: 100%;
padding-top: 20px;
padding-bottom: 10px;
}

#search-from {
display: none;
}

#sform {
position: relative;
max-width: 300px;
margin: 0 auto;
}

#sbox {
height: 40px;
padding: 0 10px;
left: 0;
top: 0;
outline: 0;
background: #eee;
border: none;
width: 100%;
border-radius: 4px 0 0 4px;
}

#sbtn {
height: 40px;
width: 45px;
position: absolute;
left: calc(100% - 45px);
top: 0;
background: #d20243;
color: #fff;
border: none;
cursor: pointer;
border-radius: 0 4px 4px 0;
transition: background-color 0.3s ease;
}

#sbtn:hover {
background: #a00233;
}

#sbtn .fa-search {
font-size: 20px;
position: absolute;
top: 30%;
left: 30%;
}

#sbtn:before {
font-family: FontAwesome;
content: "\f002";
}

/* --- Search Form Alternative --- */
.search-form-a {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-top: 20px;
}

.search-input {
flex: 1 1 auto;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
outline: none;
min-width: 200px;
}

.search-button {
padding: 10px 20px;
border: none;
background-color: #0073aa;
color: white;
font-weight: bold;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s ease;
}

.search-button:hover {
background-color: #005f8d;
}

/* --- No Results --- */
.no-results {
text-align: center;
color: #666;
font-size: 16px;
margin-top: 20px;
padding: 40px 20px;
background: #f9f9f9;
border-radius: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN - SEARCH
   ========================================================================== */

/* --- Tablet (768px and below) --- */
@media (max-width: 768px) {
.search-form-a {
flex-wrap: wrap;
}

.search-input,
.search-button {
flex: 1 1 100%;
max-width: 100%;
}

.search-input {
margin-bottom: 10px;
}

#sform {
max-width: 100%;
width: calc(100% - 40px);
}
}

/* --- Mobile (479px and below) --- */
@media (max-width: 479px) {
.arci-content {
padding: 15px 20px;
}

.arci-content h1 {
font-size: 1.3rem;
}

#search {
margin: 15px auto;
}
}

/* ==========================================================================
   SEARCH RESULTS ENHANCEMENTS (V8)
   ========================================================================== */

.search-header-v8 {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #d8e1eb;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
    padding: 24px 28px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 16px;
    overflow: hidden;
}

.search-header-v8::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f2f6fa 46%, #edf3f8 100%);
    border-radius: inherit;
    pointer-events: none;
}

.search-header-v8--compact {
    gap: 14px;
    margin-top: 28px;
}

.search-header-title-banner,
.search-title-wrapper,
.search-form-inline {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

.search-title-wrapper {
    min-width: 0;
}

.search-header-card {
    border: 1px solid #d8e1eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
    padding: 16px 18px;
}

.search-header-card--summary {
    align-self: stretch;
}

.search-header-card--title {
    padding: 18px 20px;
}

.search-header-card--form {
    align-self: stretch;
    display: grid;
    align-content: start;
}

.search-header-title-banner h1,
.search-title-wrapper h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #0f172a;
}

.search-header-meta {
    display: grid;
    gap: 14px;
}

.search-header-title-row {
    display: grid;
    gap: 10px;
}

.search-header-title-stack {
    display: grid;
    gap: 0;
}

.search-header-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    width: fit-content;
    max-width: 100%;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef2f7 0%, #e7edf4 100%);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    justify-self: start;
}

.search-query-info {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-summary-chip--query {
    min-width: 0;
    max-width: 100%;
}

.search-summary-chip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7fa 0%, #fff1f5 100%);
    border: 1px solid #ffd6e3;
    color: #7a2842;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-summary-chip__label {
    min-width: 0;
    font-size: 0.85rem;
    color: #9a6478;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.search-summary-copy {
    margin: 0;
    color: #475569;
    line-height: 1.72;
}

.search-summary-chip .query-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.search-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(216, 225, 235, 0.9);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.search-header-toolbar {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.search-page-type-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.search-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: all 0.2s ease;
}

.search-filter-link:hover,
.search-filter-link:focus-visible {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(148, 163, 184, 0.4);
    color: #0073aa;
}

.search-filter-link.is-active {
    background: #fff;
    color: #0073aa;
    border-color: rgba(0, 115, 170, 0.22);
    box-shadow: 0 8px 18px rgba(0, 115, 170, 0.12);
}

.query-text {
    font-weight: 700;
    color: #d20243;
}

.search-count-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #eef2f7 0%, #e7edf4 100%);
    font-size: 0.9rem;
    color: #475569;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.search-form-inline {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.search-form-inline__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(216, 225, 235, 0.85);
}

.search-form-inline__title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form-inline__eyebrow {
    min-height: 34px;
    padding: 0 12px;
}

.search-form-inline .search-form-container {
    width: 100%;
    min-width: 0;
}

.search-form-inline .search-form-v8 {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.search-form-inline .search-input-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #d8e1eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.03);
}

.search-form-inline .search-field {
    width: 100%;
    min-width: 0;
    height: 44px;
    border: 1px solid #d8e1eb;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
}

.search-form-inline .search-submit {
    min-height: 44px;
    border-radius: 12px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.search-form-inline .v8-search-scope-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d8e1eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.search-form-inline .v8-search-scope-btn {
    border-radius: 999px;
}

.search-form-inline .v8-live-search-results--inline {
    width: 100%;
}

/* --- Search Results List --- */
#arte-t6-t {
    display: grid;
    grid-template-columns: repeat(var(--listing-card-columns-desktop, 1), minmax(0, 1fr));
    gap: var(--listing-card-gap-desktop, 20px);
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.postcard.ex {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex {
    content-visibility: visible;
    contain-intrinsic-size: none;
    border-radius: var(--listing-card-border-radius, 0px);
    color: #334155;
}

@supports selector(.postcard.ex:has(+ .widget-area-wrapper)) {
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ .widget-area-wrapper),
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ [data-cls-widget-area="content-rand"]),
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ .wp-ad-position-wrapper),
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ .wp-ad-position-fallback),
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:has(+ .wp-ad-position-container) {
        border-bottom-color: transparent;
    }
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex > a {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: var(--listing-card-border-radius, 0px);
    color: inherit;
}

#arte-t6-t[class*="listing-card-hover-"] .postcard.ex {
    transition: transform 0.2s ease;
}

#arte-t6-t[class*="listing-card-hover-"] .postcard.ex > a {
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#arte-t6-t[class*="listing-card-hover-"] .postcard.ex > a:hover {
    transform: none;
    box-shadow: none;
}

#arte-t6-t.listing-card-hover-shift .postcard.ex:hover {
    transform: translateX(5px);
}

#arte-t6-t.listing-card-hover-none .postcard.ex:hover {
    transform: none;
}

#arte-t6-t.listing-card-hover-border .postcard.ex:hover {
    transform: none;
}

#arte-t6-t.listing-card-hover-border .postcard.ex > a:hover {
    border-color: #64748b;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_description {
    margin-top: var(--listing-card-content-gap, 20px);
    margin-bottom: var(--listing-card-excerpt-bottom-spacing, 0);
    --listing-excerpt-pad-block: 12px;
    --listing-excerpt-pad-inline: 14px;
    --listing-excerpt-line-height: 1.72;
    --listing-excerpt-height-buffer: 0px;
    --listing-excerpt-content-height-desktop: 5.16em;
    --listing-excerpt-content-height-tablet: 5.16em;
    --listing-excerpt-content-height-mobile: 5.16em;
    padding: var(--listing-excerpt-pad-block) var(--listing-excerpt-pad-inline) 0 var(--listing-excerpt-pad-inline);
    border-bottom: var(--listing-excerpt-pad-block) solid transparent;
    border-radius: 14px;
    background: var(--listing-card-excerpt-bg-color, linear-gradient(180deg, #f3f5f7 0%, #eef2f5 100%));
    color: var(--listing-card-excerpt-color, #475569);
    text-align: left;
    line-height: var(--listing-excerpt-line-height);
    font-size: var(--listing-card-excerpt-font-size, 15px);
    display: -webkit-box;
    /*! autoprefixer: off */
    -webkit-box-orient: vertical;
    /* autoprefixer: on */
    line-clamp: var(--excerpt-lines-desktop, var(--search-results-excerpt-lines, 3));
    -webkit-line-clamp: var(--excerpt-lines-desktop, var(--search-results-excerpt-lines, 3));
    overflow: hidden;
    box-sizing: border-box;
    max-height: calc(
        (var(--excerpt-lines-desktop, var(--search-results-excerpt-lines, 3)) * var(--listing-excerpt-line-height))
        + (var(--listing-excerpt-pad-block) * 2)
        + var(--listing-excerpt-height-buffer)
    );
    max-height: calc(
        var(--listing-excerpt-content-height-desktop)
        + (var(--listing-excerpt-pad-block) * 2)
        + var(--listing-excerpt-height-buffer)
    );
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    white-space: normal;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    /* 確保在單欄佈局中摘要不會超出容器 */
    min-height: 0;
    flex-shrink: 0;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
    padding: var(--listing-card-meta-top-spacing, 20px) 0 0;
    color: #475569;
    text-align: left;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta:empty {
    display: none;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    min-height: 20px;
    overflow-wrap: anywhere;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    color: currentColor;
    opacity: 0.72;
    line-height: 1;
    user-select: none;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta.postcard_meta--align-right {
    justify-content: flex-end;
    text-align: right;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_content,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_title,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_title h3,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .widget-area-wrapper,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-position-fallback,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-single,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-content-wrapper,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-fixed-wrapper {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_title {
    margin-top: var(--listing-card-title-top-spacing, 0);
    margin-bottom: var(--listing-card-title-bottom-spacing, 0);
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_title h3 {
    display: var(--listing-card-title-display, block);
    -webkit-box-orient: vertical;
    overflow: var(--listing-card-title-overflow, visible);
    -webkit-line-clamp: var(--listing-card-title-line-clamp, unset);
    line-clamp: var(--listing-card-title-line-clamp, unset);
    color: var(--listing-card-title-color, #1f1d1d);
    font-size: var(--listing-card-title-font-size, 18px);
    line-height: var(--listing-card-title-line-height, 135%);
    margin: 0;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_content {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: var(--listing-card-content-justify, center);
    gap: 0;
    min-height: 0;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail {
    aspect-ratio: 16 / 9;
    min-height: var(--listing-card-thumbnail-min-height, clamp(156px, 18vw, 220px));
    overflow: hidden;
    background: #f3f4f6;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail picture,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail img,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail_placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail img {
    object-fit: var(--listing-card-thumbnail-object-fit, cover);
    object-position: center;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef2f6 0%, #e2e8f0 100%);
    color: #94a3b8;
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .widget-area-wrapper,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"] {
    min-height: var(--cls-archive-widget-min-height, 280px);
}

:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"]:empty,
:is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"].wp-ad-shell-wrapper-collapsed {
    display: none !important;
    min-height: 0 !important;
    contain-intrinsic-size: auto 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@supports selector([data-cls-widget-area="content-rand"]:has(> .wp-ad-position-fallback[data-ad-empty-shell="true"]:only-child)) {
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"]:has(> .wp-ad-position-fallback[data-ad-empty-shell="true"]:only-child),
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"]:has(> .wp-ad-position-container[data-ad-empty-shell="true"]:only-child) {
        display: none !important;
        min-height: 0 !important;
        contain-intrinsic-size: auto 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

.listing-context-card {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #dde5ed;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.listing-context-card__media {
    width: 100%;
}

.listing-context-card__media img,
.listing-context-card__media .avatar {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.listing-context-card__content {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.listing-context-card__eyebrow {
    width: fit-content;
    max-width: 100%;
}

.listing-context-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.listing-context-card__description {
    color: #475569;
    line-height: 1.78;
}

.listing-context-card__description > :first-child {
    margin-top: 0;
}

.listing-context-card__description > :last-child {
    margin-bottom: 0;
}

.listing-context-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.listing-context-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #d8e1eb;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-context-card__link:hover,
.listing-context-card__link:focus-visible {
    transform: translateY(-1px);
    border-color: #b7c7d7;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}

.listing-context-card__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: currentColor;
}

.listing-context-card__link-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
}

.listing-context-card__link-label {
    min-width: 0;
}

.travel-listing-return {
    margin-bottom: 14px;
}

.travel-listing-return__card {
    padding: 14px 18px;
}

.travel-listing-return__meta {
    margin-bottom: 8px;
}

.travel-listing-return__chip {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.travel-listing-return__links {
    gap: 8px;
}

.travel-listing-return__link {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 0.9rem;
    line-height: 1.35;
}

#article-author.listing-context-card {
    margin-top: 0;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
        "author-avatar author-text"
        "author-avatar author-social";
    align-items: start;
    gap: 0 18px;
    padding: 18px;
    border-radius: 18px;
}

#article-author.listing-context-card #author-avatar {
    grid-area: author-avatar;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
}

#article-author.listing-context-card #author-avatar img,
#article-author.listing-context-card #author-avatar .avatar {
    display: block;
    width: 104px;
    height: 104px;
    max-width: 104px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

#article-author.listing-context-card--avatar-square #author-avatar img,
#article-author.listing-context-card--avatar-square #author-avatar .avatar {
    border-radius: 0;
}

#article-author.listing-context-card .author-text {
    grid-area: author-text;
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    padding: 0;
    background: transparent;
    word-break: normal;
    overflow-wrap: anywhere;
}

#article-author.listing-context-card .author-name {
    margin: 0;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1.28;
    letter-spacing: 0;
    color: #111827;
}

#article-author.listing-context-card .author-description {
    margin: 0;
    color: #526071;
    line-height: 1.72;
}

#article-author.listing-context-card .author-description > :first-child {
    margin-top: 0;
}

#article-author.listing-context-card .author-description > :last-child {
    margin-bottom: 0;
}

#article-author.listing-context-card .author-social {
    grid-area: author-social;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 0 0;
    opacity: 1;
    text-align: left;
}

#article-author.listing-context-card .author-social a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d8e1eb;
    border-radius: 999px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
}

.v8-placeholder {
    font-size: 2rem;
    color: #ddd;
}

/* --- No Results & Recommendations --- */
.search-no-results {
    padding: 40px 0;
}

.no-results-message {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
}

.message-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.search-recommendations h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.search-recommendations h3:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d20243;
    border-radius: 2px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* --- Search Highlight --- */
.search-highlight,
mark.search-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 1px 3px;
    border-radius: 2px;
    font-style: normal;
}

.search-results-empty-note {
    font-size: 0.95rem;
    color: #777;
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-v8 {
    background: linear-gradient(180deg, #161c23 0%, #12171d 100%);
    border-color: #2e3944;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-v8::before {
    background: linear-gradient(180deg, #202833 0%, #1a2330 48%, #16202b 100%);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-title-banner h1,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-title-wrapper h1 {
    color: #eee;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-card {
    background: linear-gradient(180deg, #18202a 0%, #141b23 100%);
    border-color: #2e3944;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-eyebrow {
    background: #20262d;
    color: #d7dce2;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-query-info,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-page-type-label,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-results-empty-note {
    color: #aaa;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-summary-chip {
    background: #2b1820;
    border-color: #5a3040;
    color: #ffd6e3;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-summary-chip__label {
    color: #f0a8c0;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-count-badge {
    background: #20262d;
    border-color: #39424c;
    color: #d7dce2;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-bar,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-form-inline .search-input-wrapper,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-form-inline .v8-search-scope-switcher {
    background: linear-gradient(180deg, #18202a 0%, #141b23 100%);
    border-color: #2e3944;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-header-title-row,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-form-inline__header,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-bar {
    border-color: #2e3944;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .no-results-message {
    background: #1e1e1e;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-link {
    background: #1b2330;
    border-color: transparent;
    color: #d7d7d7;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-link:hover,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-link:focus-visible {
    border-color: rgba(120, 173, 214, 0.28);
    color: #9bd4ff;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-filter-link.is-active {
    background: #111827;
    border-color: rgba(120, 173, 214, 0.32);
    color: #9bd4ff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-form-inline .search-field {
    background: #0f141a;
    border-color: #2e3944;
    color: #e5edf5;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .search-highlight,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) mark.search-highlight {
    background: #4a3d00;
    color: #ffd;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark):is(.search, .page-template-page-all, .page-template-page-all-php, .category, .tag, .author, .archive, .tax-rtlist) #arte-t6-t .postcard_description {
    background: linear-gradient(180deg, #1d2630 0%, #17202a 100%);
    color: #d4deea;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark):is(.search, .page-template-page-all, .page-template-page-all-php, .category, .tag, .author, .archive, .tax-rtlist) #arte-t6-t .postcard_meta {
    color: #c7d2de;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card {
    background: linear-gradient(180deg, #18202a 0%, #141b23 100%);
    border-color: #2e3944;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__title {
    color: #eef4fb;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__description {
    color: #c7d2de;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__link {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}

:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__link:hover,
:is(body.dark-mode, body.fc-dark-mode, body.hd-dark-mode, body.theme-dark) .listing-context-card__link:focus-visible {
    border-color: #4b647c;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

/* Listing header tone variants. */
.search-header-v8.listing-header-tone-default {
    /* Marker class: keep the existing classic gray header without overrides. */
}

.search-header-v8.listing-header-tone-soft {
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    border-color: #c9dff4;
    box-shadow: 0 16px 34px rgba(59, 130, 246, 0.08);
}

.search-header-v8.listing-header-tone-soft::before {
    background: radial-gradient(circle at top left, rgba(125, 180, 232, 0.2), transparent 42%), linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
}

.search-header-v8.listing-header-tone-soft .search-header-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: #c9dff4;
}

.search-header-v8.listing-header-tone-soft .search-header-eyebrow,
.search-header-v8.listing-header-tone-soft .search-count-badge {
    background: #e4f0fb;
    border-color: #c9dff4;
    color: #24557a;
}

.search-header-v8.listing-header-tone-soft .search-summary-chip {
    background: #edf6ff;
    border-color: #b9d7f0;
    color: #1f5a85;
}

.search-header-v8.listing-header-tone-soft .search-summary-chip__label,
.search-header-v8.listing-header-tone-soft .query-text {
    color: #2f73a6;
}

.search-header-v8.listing-header-tone-brand {
    background: linear-gradient(135deg, #fff5f8 0%, #fff 42%, #f8fbff 100%);
    border-color: #ffd1df;
    box-shadow: 0 18px 36px rgba(210, 2, 67, 0.1);
}

.search-header-v8.listing-header-tone-brand::before {
    background: radial-gradient(circle at top right, rgba(210, 2, 67, 0.14), transparent 38%), linear-gradient(180deg, #fff9fb 0%, #fff2f6 100%);
}

.search-header-v8.listing-header-tone-brand .search-header-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ffd1df;
}

.search-header-v8.listing-header-tone-brand .search-header-eyebrow,
.search-header-v8.listing-header-tone-brand .search-count-badge {
    background: #fff0f5;
    border-color: #ffd1df;
    color: #a50235;
}

.search-header-v8.listing-header-tone-brand .search-summary-chip {
    background: #fff6f9;
    border-color: #ffc2d5;
    color: #8c173d;
}

.search-header-v8.listing-header-tone-brand .search-summary-chip__label,
.search-header-v8.listing-header-tone-brand .query-text {
    color: #d20243;
}

.search-header-v8.listing-header-tone-minimal {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.search-header-v8.listing-header-tone-minimal::before {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
}

.search-header-v8.listing-header-tone-minimal .search-header-card {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: none;
}

.search-header-v8.listing-header-tone-minimal .search-header-eyebrow,
.search-header-v8.listing-header-tone-minimal .search-count-badge,
.search-header-v8.listing-header-tone-minimal .search-summary-chip {
    background: #f8fafc;
    border-color: #e5e7eb;
    color: #334155;
    box-shadow: none;
}

.search-header-v8.listing-header-tone-minimal .search-summary-chip__label {
    color: #64748b;
}

.search-header-v8.listing-header-tone-contrast {
    background: linear-gradient(135deg, #111827 0%, #172033 100%);
    border-color: #334155;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

.search-header-v8.listing-header-tone-contrast::before {
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 42%), linear-gradient(180deg, #172033 0%, #0f172a 100%);
}

.search-header-v8.listing-header-tone-contrast .search-header-card {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.search-header-v8.listing-header-tone-contrast .search-header-title-banner h1,
.search-header-v8.listing-header-tone-contrast .search-title-wrapper h1 {
    color: #f8fafc;
}

.search-header-v8.listing-header-tone-contrast .search-summary-copy,
.search-header-v8.listing-header-tone-contrast .search-page-type-label {
    color: #cbd5e1;
}

.search-header-v8.listing-header-tone-contrast .search-header-eyebrow,
.search-header-v8.listing-header-tone-contrast .search-count-badge {
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

.search-header-v8.listing-header-tone-contrast .search-summary-chip {
    background: rgba(210, 2, 67, 0.18);
    border-color: rgba(255, 194, 213, 0.34);
    color: #ffd6e3;
}

.search-header-v8.listing-header-tone-contrast .search-summary-chip__label {
    color: #f0a8c0;
}

.search-header-v8.listing-header-tone-contrast .query-text {
    color: #fda4c2;
}

.search-header-v8.listing-header-tone-soft .listing-context-card__link,
.search-header-v8.listing-header-tone-brand .listing-context-card__link,
.search-header-v8.listing-header-tone-minimal .listing-context-card__link,
.search-header-v8.listing-header-tone-contrast .listing-context-card__link {
    background: rgba(255, 255, 255, 0.9);
    border-color: currentColor;
}

.search-header-v8.listing-header-tone-contrast .listing-context-card__link {
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
}

@media (min-width: 1181px) {
    .v8-hide-desktop {
        display: none !important;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-sd-column"] .postcard.ex > a {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-sd-column"] .postcard_thumbnail,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-sd-column"] .postcard_content {
        width: 100% !important;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .v8-hide-tablet {
        display: none !important;
    }

    #arte-t6-t {
        grid-template-columns: repeat(var(--listing-card-columns-tablet, 1), minmax(0, 1fr));
        gap: var(--listing-card-gap-tablet, 20px);
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-st-column"] .postcard.ex > a {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-st-column"] .postcard_thumbnail,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-st-column"] .postcard_content {
        width: 100% !important;
        max-width: 100%;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .v8-hide-mobile {
        display: none !important;
    }

    #arte-t6-t {
        grid-template-columns: repeat(var(--listing-card-columns-mobile, 1), minmax(0, 1fr));
        gap: var(--listing-card-gap-mobile, 20px);
    }

    .search-header-v8 {
        padding: 20px;
    }
    
    .search-form-inline {
        width: 100%;
        flex: none;
    }

    .search-filter-bar {
        align-items: flex-start;
    }

    .search-form-inline .search-input-wrapper {
        grid-template-columns: 1fr;
    }

    .search-form-inline .search-submit {
        width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex {
        width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-sm-column"] .postcard.ex > a {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-sm-column"] .postcard_thumbnail,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-sm-column"] .postcard_content {
        width: 100% !important;
        max-width: 100%;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t[class*="-sm-column"] .postcard_thumbnail {
        aspect-ratio: 16 / 9;
        min-height: var(--listing-card-thumbnail-min-height, 180px);
        max-height: none;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_content {
        display: flex;
        flex-direction: column !important;
        justify-content: var(--listing-card-content-justify, center);
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail picture,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_thumbnail img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: var(--listing-card-thumbnail-object-fit, cover);
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .widget-area-wrapper,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"],
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-single,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-fixed-wrapper,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .admobile {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .adsbygoogle {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .widget-area-wrapper,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t [data-cls-widget-area="content-rand"] {
        min-height: var(--cls-archive-widget-min-height-mobile, 260px);
        contain-intrinsic-size: auto var(--cls-archive-widget-min-height-mobile, 260px);
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .wp-ad-single iframe,
    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .adsbygoogle iframe {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        left: 0 !important;
    }

    .listing-context-card,
    #article-author.listing-context-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    #article-author.listing-context-card {
        grid-template-areas:
            "author-avatar"
            "author-text"
            "author-social";
        text-align: center;
    }

    #article-author.listing-context-card #author-avatar {
        justify-content: center;
    }

    #article-author.listing-context-card #author-avatar img,
    #article-author.listing-context-card #author-avatar .avatar {
        margin: 0 auto;
    }

    .listing-context-card__media img,
    .listing-context-card__media .avatar {
        max-width: 140px;
        margin: 0 auto;
    }

    .listing-context-card__links,
    #article-author.listing-context-card .author-social {
        justify-content: center;
    }

    .travel-listing-return__card {
        padding: 14px;
    }

    .travel-listing-return__links {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   LISTING RESPONSIVE REFINEMENTS
   ========================================================================== */

.search-header-v8,
.search-header-card,
.search-title-wrapper,
.search-header-title-banner,
.search-form-inline,
.listing-context-card,
.listing-context-card__content,
.listing-context-card__description,
.listing-context-card__links {
    min-width: 0;
}

.search-header-v8 {
    word-break: normal;
    overflow-wrap: anywhere;
}

.search-header-title-banner h1,
.search-title-wrapper h1,
.listing-context-card__title {
    overflow-wrap: anywhere;
}

.search-summary-copy,
.listing-context-card__description,
.rtlist-listing-subtitle {
    word-break: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
    .search-header-v8 {
        padding: 22px 24px;
        gap: 14px;
    }

    .search-header-card {
        padding: 16px 18px;
    }

    .search-form-inline__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-context-card {
        grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
        gap: 16px;
        padding: 18px;
    }

    .listing-context-card__media img,
    .listing-context-card__media .avatar {
        max-width: 150px;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_description {
        line-clamp: var(--excerpt-lines-tablet, 3);
        -webkit-line-clamp: var(--excerpt-lines-tablet, 3);
        max-height: calc(
            (var(--excerpt-lines-tablet, 3) * var(--listing-excerpt-line-height))
            + (var(--listing-excerpt-pad-block) * 2)
            + var(--listing-excerpt-height-buffer)
        );
        max-height: calc(
            var(--listing-excerpt-content-height-tablet)
            + (var(--listing-excerpt-pad-block) * 2)
            + var(--listing-excerpt-height-buffer)
        );
    }
}

body.author .search-header-card--summary.author-summary-meta-align-desktop-left .search-query-info {
    justify-content: flex-start;
}

body.author .search-header-card--summary.author-summary-meta-align-desktop-center .search-query-info {
    justify-content: center;
}

body.author .search-header-card--summary.author-summary-meta-align-desktop-right .search-query-info {
    justify-content: flex-end;
}

body.author .search-header-card--summary.author-summary-description-align-desktop-left .search-summary-copy {
    text-align: left;
}

body.author .search-header-card--summary.author-summary-description-align-desktop-center .search-summary-copy {
    text-align: center;
}

body.author .search-header-card--summary.author-summary-description-align-desktop-right .search-summary-copy {
    text-align: right;
}

@media (max-width: 1024px) {
    body.author .search-header-card--summary.author-summary-meta-align-tablet-left .search-query-info {
        justify-content: flex-start;
    }

    body.author .search-header-card--summary.author-summary-meta-align-tablet-center .search-query-info {
        justify-content: center;
    }

    body.author .search-header-card--summary.author-summary-meta-align-tablet-right .search-query-info {
        justify-content: flex-end;
    }

    body.author .search-header-card--summary.author-summary-description-align-tablet-left .search-summary-copy {
        text-align: left;
    }

    body.author .search-header-card--summary.author-summary-description-align-tablet-center .search-summary-copy {
        text-align: center;
    }

    body.author .search-header-card--summary.author-summary-description-align-tablet-right .search-summary-copy {
        text-align: right;
    }
}

@media (max-width: 768px) {
    .search-header-v8 {
        padding: 16px;
        margin-bottom: 22px;
        border-radius: 16px;
    }

    .search-header-card {
        padding: 14px 15px;
        border-radius: 14px;
    }

    .search-header-title-banner h1,
    .search-title-wrapper h1 {
        font-size: 1.45rem;
        line-height: 1.4;
    }

    .search-header-title-row,
    .search-header-meta {
        gap: 12px;
    }

    body.author .search-header-card--summary.author-summary-meta-align-mobile-left .search-query-info,
    body.author .search-header-card--summary.author-summary-mobile-meta-align-left .search-query-info {
        justify-content: flex-start;
    }

    body.author .search-header-card--summary.author-summary-meta-align-mobile-center .search-query-info,
    body.author .search-header-card--summary.author-summary-mobile-meta-align-center .search-query-info {
        justify-content: center;
    }

    body.author .search-header-card--summary.author-summary-meta-align-mobile-right .search-query-info,
    body.author .search-header-card--summary.author-summary-mobile-meta-align-right .search-query-info {
        justify-content: flex-end;
    }

    body.author .search-header-card--summary.author-summary-description-align-mobile-left .search-summary-copy,
    body.author .search-header-card--summary.author-summary-mobile-description-align-left .search-summary-copy {
        text-align: left;
    }

    body.author .search-header-card--summary.author-summary-description-align-mobile-center .search-summary-copy,
    body.author .search-header-card--summary.author-summary-mobile-description-align-center .search-summary-copy {
        text-align: center;
    }

    body.author .search-header-card--summary.author-summary-description-align-mobile-right .search-summary-copy,
    body.author .search-header-card--summary.author-summary-mobile-description-align-right .search-summary-copy {
        text-align: right;
    }

    .search-summary-chip,
    .search-count-badge {
        min-height: 36px;
        max-width: 100%;
        padding: 0 12px;
    }

    .search-summary-chip {
        white-space: normal;
    }

    .search-filter-bar {
        gap: 8px;
        padding: 12px;
        border-radius: 12px;
    }

    .search-filter-list {
        gap: 8px;
    }

    .search-filter-link {
        min-height: 34px;
        padding: 0 12px;
    }

    .search-form-inline .search-input-wrapper {
        gap: 8px;
        padding: 8px;
        border-radius: 14px;
    }

    .search-form-inline .search-field,
    .search-form-inline .search-submit {
        height: 42px;
        min-height: 42px;
        border-radius: 10px;
    }

    .search-form-inline .v8-search-scope-switcher {
        padding: 8px 10px;
        border-radius: 14px;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex {
        padding-bottom: 18px;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard.ex:hover {
        transform: none;
    }

    #arte-t6-t.listing-card-hover-shift .postcard.ex:hover {
        transform: none;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_title h3 {
        line-height: var(--listing-card-title-line-height, 145%);
        overflow-wrap: anywhere;
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_description {
        margin-top: var(--listing-card-content-gap, 20px);
        --listing-excerpt-pad-block: 10px;
        --listing-excerpt-pad-inline: 12px;
        --listing-excerpt-height-buffer: 0px;
        padding: var(--listing-excerpt-pad-block) var(--listing-excerpt-pad-inline) 0 var(--listing-excerpt-pad-inline);
        border-bottom: var(--listing-excerpt-pad-block) solid transparent;
        font-size: var(--listing-card-excerpt-font-size, 15px);
        line-clamp: var(--excerpt-lines-mobile, 3);
        -webkit-line-clamp: var(--excerpt-lines-mobile, 3);
        max-height: calc(
            (var(--excerpt-lines-mobile, 3) * var(--listing-excerpt-line-height))
            + (var(--listing-excerpt-pad-block) * 2)
            + var(--listing-excerpt-height-buffer)
        );
        max-height: calc(
            var(--listing-excerpt-content-height-mobile)
            + (var(--listing-excerpt-pad-block) * 2)
            + var(--listing-excerpt-height-buffer)
        );
    }

    :is(body.search, body.page-template-page-all, body.page-template-page-all-php, body.category, body.tag, body.author, body.archive, body.tax-rtlist) #arte-t6-t .postcard_meta {
        gap: 8px 12px;
        font-size: 0.92rem;
    }

    .listing-context-card,
    #article-author.listing-context-card {
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    #article-author.listing-context-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "author-avatar"
            "author-text"
            "author-social";
        text-align: center;
    }

    #article-author.listing-context-card #author-avatar {
        justify-content: center;
    }

    #article-author.listing-context-card #author-avatar img,
    #article-author.listing-context-card #author-avatar .avatar {
        width: 96px;
        height: 96px;
        max-width: 96px;
        margin: 0 auto;
    }

    .listing-context-card__content {
        gap: 8px;
    }

    .listing-context-card__links,
    #article-author.listing-context-card .author-social,
    .travel-listing-return__links,
    .rtlist-listing-return__links {
        gap: 8px;
    }

    #article-author.listing-context-card .author-social {
        justify-content: center;
        padding-top: 8px;
    }

    .travel-listing-return__link,
    .rtlist-listing-return__link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .search-header-v8 {
        padding: 14px;
    }

    .search-header-title-banner h1,
    .search-title-wrapper h1 {
        font-size: 1.3rem;
    }

    .search-header-eyebrow,
    .search-count-badge,
    .search-summary-chip {
        font-size: 0.82rem;
    }

    .listing-context-card__link {
        width: 100%;
        justify-content: center;
    }

    .listing-context-card__media img,
    .listing-context-card__media .avatar {
        max-width: 124px;
    }
}
