/* Tripidays — search results / blog archive redesign */
.tsr-page {
    --tsr-blue: var(--main-color, #006deb);
    --tsr-navy: var(--tripi-dark-blue2, #001F5E);
    --tsr-orange: var(--tipi-orange-color, #ffb100);
    --tsr-ink: #1A2B48;
    --tsr-muted: #5e6d77;
    font-family: 'Inter', sans-serif;
    background: #f5f8fd;
    color: var(--tsr-ink);
}

/* ---------- Hero ---------- */
.tsr-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 110px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--tsr-navy) 0%, #00389a 55%, var(--tsr-blue) 100%);
}
.tsr-hero__glow {
    position: absolute;
    inset: auto -10% -60% auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 177, 0, .35), transparent 65%);
    pointer-events: none;
}
.tsr-hero .container { position: relative; z-index: 1; }
.tsr-hero__eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tsr-orange);
}
.tsr-hero__title {
    margin: 0 0 32px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}
.tsr-hero__count {
    margin: 22px 0 0;
    font-size: 15px;
    color: rgba(255, 255, 255, .8);
}

/* ---------- Search bar ---------- */
.tsr-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 18, 60, .35);
}
.tsr-search__icon { margin: 0 6px 0 18px; color: var(--tsr-muted); flex: none; }
.tsr-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    font: 400 16px 'Inter', sans-serif;
    color: var(--tsr-ink);
}
.tsr-search button {
    flex: none;
    height: 52px;
    padding: 0 32px;
    border: 0;
    border-radius: 999px;
    background: var(--tsr-orange);
    color: var(--tsr-navy);
    font: 700 15px 'Inter', sans-serif;
    cursor: pointer;
    transition: transform .25s var(--tripi-ease, ease), background .25s;
}
.tsr-search button:hover { background: #ffc233; transform: translateY(-1px); }
.tsr-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 177, 0, .45), 0 20px 50px rgba(0, 18, 60, .35); }

/* ---------- Results grid ---------- */
.tsr-results { position: relative; z-index: 2; margin-top: -55px; padding: 0 0 90px; }
.tsr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Sections (Tours / Activities / Blog) */
.tsr-section { margin-bottom: 60px; scroll-margin-top: 90px; margin-top:90px; }
.tsr-section .tsr-pagination { margin-top: 36px; }
.tsr-section:first-child .tsr-section__head { color: #fff; border-color: rgba(255, 255, 255, .35); }
.tsr-section:first-child .tsr-section__head h2 { color: #fff; }
.tsr-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #dbe5f3;
}
.tsr-section__head h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--tsr-navy);
}
.tsr-section__head h2 small {
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--tsr-orange);
    color: var(--tsr-navy);
    font: 700 13px 'Inter', sans-serif;
}
.tsr-section__all { flex: none; font-weight: 700; font-size: 14px; color: var(--tsr-blue); text-decoration: none; }
.tsr-section:first-child .tsr-section__all { color: #fff; }
.tsr-section__all:hover { color: var(--tsr-orange); }
.tsr-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 31, 94, .08);
    transition: transform .4s var(--tripi-ease, ease), box-shadow .4s var(--tripi-ease, ease);
}
.tsr-card:hover { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(0, 31, 94, .18); }
.tsr-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #dfe8f5;
}
.tsr-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--tripi-ease, ease);
}
.tsr-card:hover .tsr-card__media img { transform: scale(1.07); }
.tsr-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--tsr-orange);
    color: var(--tsr-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tsr-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.tsr-card__date { margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--tsr-muted); }
.tsr-card__title {
    margin: 0 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: 20px !important; /* !important: theme h2 rules otherwise win */
    font-weight: 600;
    line-height: 1.3;
}
.tsr-card__title a { font-size: inherit !important; line-height: inherit; color: var(--tsr-navy); text-decoration: none; transition: color .2s; }
.tsr-card__title a:hover { color: var(--tsr-blue); }
.tsr-card__excerpt { flex: 1; margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--tsr-muted); }
.tsr-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 14px;
    font-weight: 700;
    color: var(--tsr-blue);
    text-decoration: none;
}
.tsr-card__more svg { transition: transform .3s var(--tripi-ease, ease); }
.tsr-card:hover .tsr-card__more svg { transform: translateX(5px); }

/* ---------- Pagination ---------- */
.tsr-pagination { margin-top: 56px; }
.tsr-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tsr-pagination li > .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 46px;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe5f3;
    font-weight: 600;
    color: var(--tsr-navy);
    text-decoration: none;
    transition: all .25s;
}
.tsr-pagination li > a.page-numbers:hover { background: var(--tsr-blue); border-color: var(--tsr-blue); color: #fff; }
.tsr-pagination li > .page-numbers.current { background: var(--tsr-navy); border-color: var(--tsr-navy); color: #fff; }
.tsr-pagination li > .page-numbers.dots { border: 0; background: transparent; }
/* the <ul> also carries .page-numbers: keep it a plain, unstyled container */
.tsr-pagination ul.page-numbers { background: none; border: 0; box-shadow: none; padding: 0; height: auto; min-width: 0; border-radius: 0; }

/* ---------- Empty state ---------- */
.tsr-empty {
    max-width: 560px;
    margin: -55px auto 0;
    padding: 56px 40px;
    position: relative;
    z-index: 2;
    text-align: center;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(0, 31, 94, .1);
}
.tsr-empty__icon { font-size: 56px; line-height: 1; margin-bottom: 14px; }
.tsr-empty h2 { margin: 0 0 12px; font-family: 'Playfair Display', serif; font-size: 28px; color: var(--tsr-navy); }
.tsr-empty p { margin: 0 0 26px; color: var(--tsr-muted); line-height: 1.65; }
.tsr-empty__links a {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 999px;
    background: var(--tsr-blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s;
}
.tsr-empty__links a:hover { background: var(--tsr-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .tsr-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
    .tsr-hero { padding: 60px 0 90px; }
    .tsr-grid { grid-template-columns: 1fr; }
    .tsr-search { padding: 5px; }
    .tsr-search__icon { display: none; }
    .tsr-search input[type="search"] { padding: 0 14px; }
    .tsr-search button { padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .tsr-card, .tsr-card__media img, .tsr-card__more svg { transition: none; }
}

/* ================= Header search (topbar-items/search.php) ================= */
.tsr-hs-item { display: flex; align-items: center; }
.tsr-hs {
    --hs-blue: var(--main-color, #006deb);
    --hs-navy: var(--tripi-dark-blue2, #001F5E);
    --hs-orange: var(--tipi-orange-color, #ffb100);
    position: relative;
    display: flex;
    align-items: center;
    width: 230px;
    height: 44px;
    margin: 0;
    padding: 0 5px 0 14px;
    border: 1.5px solid #dbe5f3;
    border-radius: 999px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    transition: width .4s var(--tripi-ease, ease), border-color .25s, box-shadow .25s;
}
.tsr-hs:hover { border-color: #b9cdea; }
.tsr-hs:focus-within {
    width: 340px;
    border-color: var(--hs-blue);
    box-shadow: 0 0 0 4px rgba(0, 109, 235, .14), 0 12px 30px rgba(0, 31, 94, .14);
}
.tsr-hs__icon { flex: none; color: #5e6d77; transition: color .25s; }
.tsr-hs:focus-within .tsr-hs__icon { color: var(--hs-blue); }
/* !important: the parent theme paints its own magnifier as the input background and resizes the input on focus */
.tsr-hs input.tsr-hs__input,
.tsr-hs input.tsr-hs__input:focus {
    flex: 1;
    width: auto !important;
    min-width: 0;
    height: 100%;
    padding: 0 10px !important;
    border: 0 !important;
    outline: 0;
    background: transparent none !important;
    box-shadow: none !important;
    font: 500 14px 'Inter', sans-serif;
    color: var(--hs-navy);
}
.tsr-hs input.tsr-hs__input::placeholder { color: #8a98a6; font-weight: 400; }
.tsr-hs input.tsr-hs__input::-webkit-search-cancel-button { cursor: pointer; }
.tsr-hs button.tsr-hs__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hs-orange);
    color: var(--hs-navy);
    cursor: pointer;
    transition: transform .25s var(--tripi-ease, ease), background .25s;
}
.tsr-hs button.tsr-hs__btn:hover { background: #ffc233; transform: translateX(2px); }

/* popular searches panel */
.tsr-hs__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 18px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(0, 31, 94, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s, transform .25s var(--tripi-ease, ease), visibility .25s;
}
.tsr-hs:focus-within .tsr-hs__panel { opacity: 1; visibility: visible; transform: none; }
.tsr-hs__label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a98a6;
}
.tsr-hs__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tsr-hs__chips a {
    padding: 7px 14px;
    border-radius: 999px;
    background: #eef4fd;
    color: var(--hs-navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.tsr-hs__chips a:hover { background: var(--hs-blue); color: #fff; }

@media (max-width: 1199px) {
    .tsr-hs { width: 180px; }
    .tsr-hs:focus-within { width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
    .tsr-hs, .tsr-hs__panel, .tsr-hs button.tsr-hs__btn { transition: none; }
}
