.page-id-7018 #supersearchoverlay { display: none !important; }

/* Search results page */
#date_select { width: 100%; font-size: 16px; padding: 7px 5px 6px; border: 1px solid #ccc; margin-bottom: 5px; border-radius: 6px; height: 38px; color: #333; outline: none; border: none; }
#response-container .response { transition: opacity 0.15s ease; }
#response-container .response {
    display: block;
    float: none;
    clear: both;
}
.sr-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px;
}
.sr-section {
    margin-bottom: 30px;
}
.sr-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #295584;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.sr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* WP page result card */
.sr-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow .15s;
}
.sr-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.sr-card .entry-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 56px;
    overflow: hidden;
    border-radius: 4px;
}
.sr-card .entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sr-card .sr-card-body {
    flex: 1;
    min-width: 0;
}
.sr-card .sr-card-body h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}
.sr-card .sr-card-body h2 a {
    color: #295584;
    text-decoration: none;
}
.sr-card .sr-card-body h2 a:hover {
    text-decoration: underline;
}
.sr-card .sr-card-meta {
    font-size: 12px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Match card */
a.sr-match-card,
.sr-match-card {
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow .15s;
    text-decoration: none;
    color: inherit;
}
a.sr-match-card:hover,
.sr-match-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
a.sr-match-card:hover .sr-match-title {
    color: #295584;
}
.sr-match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 8px 10px;
    background: #f5f8fb;
    color: #295584;
    text-transform: uppercase;
    line-height: 1.1;
}
.sr-match-day {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}
.sr-match-daynum {
    font-size: 22px;
    font-weight: 700;
}
.sr-match-month {
    font-size: 11px;
    font-weight: 600;
}
.sr-match-year {
    font-size: 11px;
    font-weight: 600;
}
.sr-match-info {
    flex: 1;
    padding: 10px 14px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.sr-match-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
}
.sr-match-comp {
    font-size: 12px;
    color: #666;
}
.sr-match-venue {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-match-clasico {
    font-size: 12px;
    font-weight: 600;
    color: #ff5300;
}
.sr-match-price {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    flex-shrink: 0;
}
.sr-price-badge {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.sr-price-badge.available {
}
.sr-price-badge.unavailable {
    color: #888;
    font-weight: 400;
    font-style: italic;
    font-size: 12px;
}
.sr-price-badge.past {
    color: #aaa;
    font-weight: 400;
    font-style: italic;
    font-size: 12px;
}

/* Team/comp link card (in grid) */
a.sr-link-card,
.sr-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow .15s;
    text-decoration: none;
    color: inherit;
}
a.sr-link-card:hover,
.sr-link-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.sr-link-card .sr-link-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.sr-link-card .sr-link-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sr-link-card .sr-link-thumb img.img_svg_icon {
    width: 50%;
    height: 50%;
    object-fit: contain;
}
.sr-link-card .sr-link-thumb.sr-placeholder-team img.img_svg_icon {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.sr-link-card .sr-link-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
}
.sr-link-card .sr-link-body h3 {
    color: #295584;
}
a.sr-link-card:hover .sr-link-body h3 {
    text-decoration: underline;
}
.sr-link-card .sr-link-url {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-link-card .sr-link-meta {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Placeholder thumbnails */
.sr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 6px;
}

/* Ticket type pills */
.sr-match-types {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 3px;
}
.sr-type-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.4;
}
.sr-type-ticket { background: #fff; color: #295584; border: 1px solid; }
.sr-type-ticket_hotel { background: #295584; color: #fff; }
.sr-type-ticket_hospitality { background: #d9a301; color: #fff; }
.sr-type-ticket_hotel_hospitality { background: #d9a301; color: #fff; }
.sr-type-official { color: #099f7d; }

/* Pagination */
.sr-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    padding: 10px 0;
}
.sr-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s;
    cursor: pointer;
}
.sr-page-link:hover {
    background: #f0f4ff;
    border-color: #295584;
    color: #295584;
}
.sr-page-active {
    background: #295584;
    border-color: #295584;
    color: #fff;
    pointer-events: none;
}
.sr-page-disabled {
    color: #ccc;
    border-color: #eee;
    background: #fafafa;
    pointer-events: none;
    cursor: default;
}
.sr-page-ellipsis {
    border: none;
    background: none;
    pointer-events: none;
    cursor: default;
    padding: 0 4px;
    color: #999;
}

/* Matches toolbar: filter chips + sort */
.sr-matches-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.sr-filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.sr-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    line-height: 1.3;
}
button.sr-filter-chip:hover {
    border-color: #295584;
    background-color: #e5e7eb;
}
.sr-filter-chip.active:hover {
    background-color: #295584;
    border-color: #295584;
    color: #fff;
}
.sr-filter-chip-official.active:hover {
    background: #099f7d;
    border-color: #099f7d;
    color: #fff;
}
.sr-filter-chip.active {
    background-color: #295584;
    border-color: #295584;
    color: #fff;
}
.sr-filter-chip[data-filter="vip"].active,
.sr-filter-chip[data-tt="ticket_hospitality"].active,
.sr-filter-chip[data-tt="ticket_hotel_hospitality"].active {
    background: #d9a300;
    border-color: #b88600;
    color: #fff;
}
#sr-official-chip {
    margin-bottom: 15px;
}
.sr-filter-chip-official {
    margin-right: 5px;
}
.sr-filter-chip-official.active {
    background: #099f7d;
    border-color: #099f7d;
    color: #fff;
}
/* Kill browser focus/active outline + WP button:active inflate */
button.sr-filter-chip:focus,
button.sr-filter-chip:active {
    outline: none;
}
button.sr-filter-chip:active {
    background-color: #fff;
    border: 1px solid #d1d5db;
    padding: 5px 12px;
}
button.sr-filter-chip.sr-chip-clasico:active {
    background-color: #fff;
    border: 1px solid #d1d5db;
    padding: 5px 12px 5px 24px;
}
button.sr-filter-chip.active:active {
    background-color: #295584;
    border: 1px solid #295584;
    padding: 5px 12px;
}
.sr-filter-chip.disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}
.sr-chip-clasico {
    padding-left: 24px;
    background-image: url("images/flame.svg");
    background-position: 8px center;
    background-size: 12px 12px;
    background-repeat: no-repeat;
}
.sr-filter-count {
    font-size: 11px;
    font-weight: 600;
    background: rgba(0,0,0,.08);
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 14px;
    text-align: center;
}
.sr-filter-chip.active .sr-filter-count {
    background: rgba(255,255,255,.25);
}
.sr-comp-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 4px;
}
.sr-results-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.sr-results-bar .search_title {
    flex: 1;
    min-width: 0;
    font-size: 19px;
    font-weight: bold;
    line-height: 40px;
}
.sr-view-toggles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}
.sr-view-toggle {
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.9em;
}
.sr-view-toggle:hover {
    background: #e5e7eb;
}
.sr-sort-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.sr-chips-toggle {
    display: inline-block;
    font-size: 12px;
    color: #295584;
    cursor: pointer;
    padding: 2px 0;
    margin-top: 4px;
}
.sr-chips-toggle:hover {
    text-decoration: underline;
}
#filterBy {
    width: auto;
}
#sr-country-filter {
    margin-top: 15px;
}
#sr-comp-filter {
    margin-top: 15px;
}
#sr-clasico-filter {
    margin-top: 15px;
}
.sr-icon-fire {
    display: inline-block;
    vertical-align: middle;
}
.sr-past-clasicos {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.sr-past-clasicos-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}
.sr-match-card.sr-match-past {
    opacity: 0.65;
}
.sub_label {
    font-size: 1em;
    line-height: 1.6;
    color: #777;
    display: block;
    font-weight: 700;
}
.sr-sort-select {
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* Autocomplete dropdown */
.sr-ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    max-height: 360px;
    overflow-y: auto;
}
.sr-ac-header {
    font-size: 11px;
    font-weight: 700;
    color: #295584;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 8px 12px 4px;
    border-top: 1px solid #f0f0f0;
}
.sr-ac-header:first-child {
    border-top: none;
}
.sr-ac-item {
    padding: 7px 12px 7px 34px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background .1s;
    position: relative;
}
.sr-ac-item:before {
    content: " ";
    position: absolute;
    left: 10px;
    top: 50%;
    margin-top: -9px;
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
    background-repeat: no-repeat;
}
.sr-ac-item.tid:before  { background-image: url("images/team.svg"); opacity: 1; }
.sr-ac-item.cid:before  { background-image: url("images/trophy.svg"); opacity: 1; }
.sr-ac-item.ciid:before { background-image: url("images/city.svg"); opacity: 1; }
.sr-ac-item.coid:before { background-image: url("images/country.svg"); opacity: 1; }
.sr-ac-item.vid:before  { background-image: url("images/venue.svg"); opacity: 1; }
#log div.all:before  { background-image: url("images/football.svg"); }
#log div.clid:before { background-image: url("images/flame.svg"); }
.sr-ac-item:hover,
.sr-ac-item.active {
    background: #f0f4ff;
}
.sr-ac-label b {
    font-weight: 700;
    color: #295584;
}
/* Team type tag (W = women's) */
.tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
    vertical-align: middle;
}
.tag-w {
    background: rgba(139, 108, 196, 0.18);
    color: #8b6cc4;
}

.sr-chip-x {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    margin-left: 2px;
    opacity: .7;
}
.sr-chip-x:hover {
    opacity: 1;
}

/* French datepicker */
.sr-dp-input {
    cursor: pointer;
    background: #fff;
}
.sr-dp {
    position: absolute;
    z-index: 100;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    padding: 10px;
    width: 260px;
    font-size: 13px;
    user-select: none;
}
.sr-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.sr-dp-header span {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}
.sr-dp-nav {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 8px;
    font-size: 14px;
    color: #295584;
    line-height: 1;
}
.sr-dp-nav:hover {
    background: #f0f4ff;
}
.sr-dp-nav:focus,
.sr-dp-nav:active {
    outline: none;
    background: #f0f4ff;
    border: 1px solid #d1d5db;
    padding: 2px 8px;
    font-size: 14px;
}
.sr-dp-nav.disabled,
.sr-dp-nav.disabled:hover,
.sr-dp-nav.disabled:focus,
.sr-dp-nav.disabled:active {
    color: #ddd;
    border-color: #eee;
    cursor: default;
    background: none;
    padding: 2px 8px;
    font-size: 14px;
}
.sr-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.sr-dp-dow {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    padding: 4px 0;
    text-transform: capitalize;
}
.sr-dp-day {
    padding: 6px 0;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
}
.sr-dp-day:hover {
    background: #e8eef6;
}
.sr-dp-day.today {
    font-weight: 700;
    color: #295584;
}
.sr-dp-day.selected {
    background: #295584;
    color: #fff;
}
.sr-dp-day.other-month {
    color: #ccc;
}
.sr-dp-day.other-month:hover {
    background: #f5f5f5;
}
.sr-dp-day.disabled {
    color: #ddd;
    cursor: default;
    pointer-events: none;
}

/* Invite message (before first search) */
.sr-invite {
    width: 100%;
    text-align: center;
    padding: 50px 20px 0;
    color: #777;
    font-size: 1em;
    line-height: 1.6;
}
.sr-invite i {
    display: block;
    font-size: 28px;
    color: #295584;
    margin-bottom: 12px;
}
.sr-search-summary {
    width: 100%;
    max-width: 1080px;
    margin: 5px auto;
    padding: 12px 15px;
    font-size: 1.1em;
    color: #555;
    background: #f8f9fa;
    border-left: 3px solid #295584;
    border-radius: 3px;
}
.sr-sum-item {
    padding-left: 20px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: left center;
}
.sr-sum-item { margin-left: 2px; }
.sr-sum-item.tid  { background-image: url("images/team.svg"); }
.sr-sum-item.cid  { background-image: url("images/trophy.svg"); }
.sr-sum-item.ciid { background-image: url("images/city.svg"); }
.sr-sum-item.coid { background-image: url("images/country.svg"); }
.sr-sum-item.vid  { background-image: url("images/venue.svg"); }
.sr-sum-item.clid { background-image: url("images/flame.svg"); }
.sr-sum-item.all  { background-image: url("images/football.svg"); }
.sr-sum-date      { background-image: url("images/calendar.svg"); }
.sr-search-summary .sr-edit-link {
    margin-left: 10px;
    color: #295584;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9em;
    white-space: nowrap;
}
.sr-search-summary .sr-edit-link:hover {
    color: #1a3a5c;
}
/* Header collapse/expand animation */
.page-id-7018 .entry-header {
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease, padding 0.5s ease;
    max-height: 600px;
    opacity: 1;
}
.page-id-7018 .entry-header.sr-header-collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.page-id-7018 .entry-header.sr-header-hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Results area layout */
.page-id-7018.sidebar .entry-content-results {
    max-width: 1100px;
    display: none;
    grid-template-columns: 25% 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 1%;
    align-items: start;
}
#additional_filters {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-top: 0;
}
.sr-results-bar {
    grid-column: 2;
    grid-row: 1;
}
#response_part {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    margin-top: 0;
}
#response_part.sr-map-view {
    grid-row: 2;
}

/* Loading overlay (scoped to results area) */
#response_part {
    position: relative;
}
#response_part .listing-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 200px;
    z-index: 10;
    background: rgba(255,255,255,.9);
    border-radius: 8px;
}
#response_part .listing-loading .listing-loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    font-weight: bold;
}
#response_part .listing-loading .listing-loading-image {
    width: 84px;
    font-size: 48px;
    color: #295584;
    text-align: center;
}
#loader {
    font-size: 1em;
    width: 1em;
}
.listing-loading-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    white-space: nowrap;
}

/* How-to / instructions block */
.sr-howto {
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 24px 20px;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.sr-howto-title {
    font-size: 17px;
    font-weight: 700;
    color: #295584;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #295584;
}
.sr-howto-title i {
    margin-right: 6px;
}
.sr-howto-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.sr-howto-row:last-child {
    margin-bottom: 20px;
}
.sr-howto-row .sr-howto-item {
    flex: 1;
}
.sr-howto-row-single .sr-howto-item {
    flex: none;
    width: 100%;
}
.sr-howto-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
}
.sr-howto-item h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    margin: 15px 0 5px;
}
.sr-howto-item h3 i {
    color: #295584;
    margin-right: 4px;
}
.sr-howto-item h3 .sr-howto-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}
.sr-howto-item h3 .sr-howto-flag-icon {
    width: 16px;
    height: 12px;
    vertical-align: middle;
    margin-right: 2px;
    margin-top: -3px;
}
.sr-howto-item p {
    font-size: 1em;
    color: #555;
    line-height: 1.55;
    margin: 15px 0;
    max-width: 100%;
    text-align: left;
}
.sr-howto-item ul li {
    font-size: 13px;
}
.sr-howto-item h3.sr-howto-official {
    color: #099f7d;
}
b.sr-howto-official {
    color: #099f7d;
}
.sr-howto-dummy-everything {
    display: inline-block;
    background: #0075ff;
    color: #fff;
    padding: 3px 10px 8px;
    text-align: center;
    border: 2px solid #fff;
    margin-top: 8px;
    pointer-events: none;
}
.sr-howto-dummy-everything span {
    font-size: 0.8em;
    line-height: 1;
    display: block;
}
.sr-howto-dummy-chip,
.sr-howto-dummy-chips {
    margin-top: 0px;
    margin-bottom: 25px;
    pointer-events: none;
}
.sr-howto-dummy-chips .sr-filter-chip {
    margin-bottom: 4px;
}
.sr-howto-sep {
    font-size: 12px;
    color: #888;
    margin: 0 2px;
}
.sr-howto-pill {
    display: inline-block;
    padding: 0 10px 0 22px;
    background-position-x: 5px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background-color: #fff;
    color: #374151;
    font-size: 12px;
    margin-right: 4px;
    margin-bottom: 4px;
}
.sr-howto-legal {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
}
.sr-howto-legal p {
    font-size: 1em;
    color: #888;
    line-height: 1.55;
    margin: 0;
    max-width: 100%;
}
.sr-howto-legal b {
    color: #666;
}

/* Price histogram */
.sr-histo {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 80px;
    margin-top: 8px;
    border-bottom: 1px solid #ddd;
}
.sr-histo-bar {
    flex: 1;
    min-width: 0;
    background: #ddd;
    border-radius: 2px 2px 0 0;
    transition: background .15s;
    position: relative;
    cursor: default;
}
.sr-histo-bar.sr-histo-active {
    background: #4198d8;
}
.sr-histo-bar:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}
.sr-histo-bar:nth-child(-n+5):hover::after {
    left: 0;
    transform: none;
}
.sr-histo-bar:nth-last-child(-n+5):hover::after {
    left: auto;
    right: 0;
    transform: none;
}

/* Price range slider (dual handle) */
.sr-range-wrap {
    position: relative;
    height: 28px;
    margin: 8px 0 4px;
}
.sr-range-track-bg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    margin-top: -2px;
    background: #ddd;
    border-radius: 2px;
    pointer-events: none;
}
.sr-range-track-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    background: #4198d8;
    border-radius: 2px;
    pointer-events: none;
    left: 0;
    width: 100%;
}
.sr-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    outline: none;
    position: absolute;
    top: 50%;
    margin-top: -9px;
    left: 0;
    pointer-events: none;
    height: 4px;
    border: none;
}
input.sr-range-input:focus { border: none; }
.sr-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #295584;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}
.sr-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #295584;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    pointer-events: auto;
}
.sr-range-labels {
    display: flex;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #295584;
    margin-top: 2px;
    margin-bottom: 15px;
}

/* Map expanded view */
.page-id-7018.sidebar .entry-content-results.sr-map-expanded {
    max-width: 1800px;
}
.sr-search-summary.sr-map-expanded {
    max-width: 1780px;
}
.sr-map-expanded #mapcontainer {
    height: calc(90vh - 137px);
    min-height: 500px;
}

/* Map fullscreen */
.sr-fullscreen-on {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #fff;
    overflow-y: auto;
    padding: 0 15px;
    box-sizing: border-box;
    align-content: flex-start;
}
.page-id-7018.sidebar .entry-content-results.sr-fullscreen-on {
    max-width: none;
}
.sr-fullscreen-on #mapcontainer {
    height: calc(90vh - 137px);
    min-height: 300px;
}
.sr-fullscreen-summary {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    z-index: 10000;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    border-left: none;
    margin-top: 0;
    padding: 15px 15px;
    box-sizing: border-box;
    text-align: right;
    font-size: 1.2em;
}
.sr-fs-logo {
    float: left;
    margin-right: 12px;
}
.sr-fs-logo img {
    display: block;
}

/* Page 7018 spacing overrides */
.page-id-7018 footer.entry-meta { margin-top: 0; }
.page-id-7018 .hentry { padding-bottom: 0; }
.page-id-7018 h2 { text-align: center; }

/* Mobile filters toggle arrow (hidden on desktop) */
.sr-filters-arrow {
    display: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .page-id-7018.sidebar .entry-content-results {
        grid-template-columns: 1fr;
    }
    #additional_filters {
        grid-column: 1;
        grid-row: auto;
        order: -1;
    }
    .sr-results-bar {
        grid-column: 1;
        grid-row: 2;
        margin-top: 10px;
    }
    #response_part {
        grid-column: 1;
        margin-top: 10px;
        grid-row: 2;
    }
    #response_part.sr-map-view {
        grid-row: 3;
        margin-top: 0;
    }
    .sr-results-bar .search_title {
        font-size: 1em;
    }
    #sr-filters-toggle {
        cursor: pointer;
        display: flex;
        align-items: center;
    }
    .sr-filters-arrow {
        display: inline-block;
        margin-left: auto;
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    #sr-filters-toggle.open .sr-filters-arrow {
        transform: rotate(180deg);
    }
    .sr-filters-content {
        display: none;
    }
    .sr-filters-content.sr-filters-open {
        display: block;
    }
    .sr-results-bar {
        flex-wrap: wrap;
        gap: 6px;
    }
    .sr-fullscreen-summary {
        font-size: 1em;
        text-align: left;
    }
    .sr-fs-logo {
        float: none;
        display: block;
        margin-bottom: 6px;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 15px;
    }
    .sr-fs-logo img {
        margin: 0 auto;
    }
    .sr-howto-row {
        flex-direction: column;
    }
    .sr-howto {
        padding: 16px 14px;
    }
}
@media screen and (max-width: 640px) {
    .sr-grid {
        grid-template-columns: 1fr;
    }
    .sr-match-date {
        min-width: 50px;
        padding: 6px 8px;
    }
    .sr-match-daynum {
        font-size: 18px;
    }
    .sr-match-info {
        padding: 8px 10px;
    }
    .sr-match-title {
        font-size: 14px;
    }
    .sr-match-price {
        padding: 6px 10px;
    }
}
@media screen and (max-width: 568px) {
    .sr-fs-logo img {
        max-width: 250px;
    }
}
