/* Home page (default.aspx): item search + auction cards.
   Shared by every site - css/custom.css is per site and loads after this, so selectors here are scoped to .home-* */

/* ---- Search ---- */
.home-search { margin: 0 0 20px; }
.home-search .form-control { height: 44px; font-size: 16px; border-radius: 22px 0 0 22px; box-shadow: none; }
.home-search .input-group-addon { border-radius: 0 22px 22px 0; background: #fff; }

.home-search-results {
    display: none;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.home-search-results.open { display: block; }
.home-search-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    font-weight: bold;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
}
.home-search-clear, .home-search-clear:visited { font-size: 24px; line-height: 1; color: #666; text-decoration: none; }
.home-search-clear:hover { color: #000; text-decoration: none; }
/* two lots per row (one on phones), 128px photos */
.home-search-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 10px;
    max-height: 620px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.home-search-list li { border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.home-search-list a { display: flex; align-items: center; height: 100%; padding: 10px; color: inherit; text-decoration: none; }
.home-search-list a:hover, .home-search-list a:focus { background: #f5f8fb; text-decoration: none; }
.home-search-list img {
    flex: 0 0 128px;
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 14px;
    background: #eee;
}
.home-search-text { min-width: 0; }
.home-search-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    cursor: help;
}
.home-search-bid { display: block; margin-top: 6px; font-weight: bold; font-size: 14px; }
.home-search-meta { display: block; font-size: 12px; color: #777; margin-top: 6px; line-height: 1.4; }
.home-search-countdown { font-weight: bold; color: #555; white-space: nowrap; }

/* description popup when hovering a lot title (positioned by the search script) */
.home-search-tip {
    display: none;
    position: fixed;
    z-index: 1060;
    max-width: 360px;
    padding: 10px 12px;
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}
.home-search-tip.open { display: block; }
.home-search-empty, .home-search-more { padding: 10px 14px; color: #666; }
.home-search-more { border-top: 1px solid #eee; font-size: 12px; }

/* ---- Page colours ----
   --home-page-bg : jkcompany_Online_Pages.opPageColour (default neutral grey)
   --home-accent  : opAccentColour, else picked in default.aspx from the house's btn-primary / btn-warning, else charcoal */
:root { --home-page-bg: #f5f5f5; --home-accent: #2f2f2f; }
.home-main { background: var(--home-page-bg); }

/* "Current auctions" heading: accent underline */
.home-main .listing-header h3 {
    display: block;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--home-accent);
    font-size: 24px;
    font-weight: 700;
}

/* ---- Auction cards (option B: one per row, photos left) ---- */
.home-auction {
    display: flex;
    flex-wrap: wrap;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

/* photos: lead lot photo with up to 3 smaller ones under it */
.home-auction-media {
    flex: 1 1 340px;
    max-width: 100%;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f7f7;
}
.home-photo-lead img,
.home-photo-small img { display: block; width: 100%; object-fit: cover; border-radius: 12px; background: #e3e3e3; }
.home-photo-lead img { height: 230px; }
.home-photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-photo-small img { height: 84px; }

.home-auction-info {
    flex: 999 1 420px;
    min-width: 0;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* badges */
.home-auction-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eeeeee;
    color: #3a3a3a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.home-pill-running { background: #e8f5ec; color: #166534; }
.home-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #15803d; }
.home-pill-finished { background: #e5e5e5; color: #3a3a3a; }
.home-pill-cancelled { background: #fbeaea; color: #9b1c1c; }

.home-auction-title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; text-transform: none; word-wrap: break-word; }
.home-auction-title a, .home-auction-title a:hover { color: #222222; text-decoration: none; }
.home-auction-title a:hover { text-decoration: underline; }
.home-auction-desc { color: #4b4b4b; line-height: 1.55; }

/* stats: countdown | catalogue | key date */
.home-auction-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}
.home-stat-label { font-size: 12px; color: #5b5b5b; text-transform: uppercase; letter-spacing: 0.04em; }
.home-stat-value { font-size: 22px; font-weight: 800; color: #222222; line-height: 1.3; }
.home-countdown .home-stat-value { color: var(--home-accent); }
.home-countdown-small .home-stat-value { font-size: 15px; padding-top: 4px; }
.home-stat-date { font-size: 14px; font-weight: 600; color: #222222; margin-top: 4px; line-height: 1.4; }

/* lot counts: 120 lots / 35 no reserve / 18 on the market */
.home-auction-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.home-count { padding: 5px 12px; border-radius: 999px; background: #f2f2f2; color: #3a3a3a; font-size: 13px; }
.home-count b { color: #222222; }
.home-count-market { background: #e8f5ec; color: #166534; }
.home-count-market b { color: #166534; }

.home-auction-location { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #3a3a3a; }
.home-auction-location svg { flex: none; margin-top: 2px; color: #6b6b6b; }

/* buttons: house btn-primary colours, with a faint border so a white house button still shows */
.home-auction-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.home-auction-actions .btn { padding: 11px 24px; font-weight: 700; white-space: normal; }
.home-auction-cta { border: 1px solid rgba(0, 0, 0, 0.18) !important; }
.home-auction-link { font-weight: 600; }

/* Phones and small tablets: card stacks, photos first */
@media (max-width: 767px) {
    .home-auction-info { padding: 16px; }
    .home-auction-title { font-size: 18px; }
    .home-photo-lead img { height: 200px; }
    .home-photo-small img { height: 70px; }
    .home-stat-value { font-size: 18px; }
    .home-auction-actions .btn { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 399px) {
    .home-auction-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-auction-stats .home-stat:last-child { grid-column: span 2; }
}

@media (max-width: 599px) {
    .home-search-list { grid-template-columns: minmax(0, 1fr); }
    .home-search-list img { flex-basis: 96px; width: 96px; height: 96px; }
}

/* ---- Hero slides ----
   The slider takes the shape of slide1.jpg (--hero-ratio, set by default.aspx.vb) so nothing is cropped at any width.
   Each slide: the whole picture (contain) over a blurred copy of itself, which fills any spare space when a slide is a
   different shape or the slider reaches its maximum height on very wide screens. !important beats the fixed heights
   in older style.css / per-site custom.css. */
.home-hero .hero-slider,
.home-hero .hero-slider.flexslider ul.slides li {
    width: 100%;
    height: auto !important;
    aspect-ratio: var(--hero-ratio, 3 / 1) !important;
    max-height: 640px;
}
.home-hero.hero-area { height: auto !important; min-height: 0 !important; background: transparent; }   /* theme gives .hero-area a fixed/min height on phones */
.home-hero .hero-slider { overflow: hidden; background: #1f1f1f; }
.home-hero .hero-slider .flex-viewport, .home-hero .hero-slider.flexslider > ul.slides { height: 100%; }
.home-hero-slide { position: relative; overflow: hidden; }
.home-hero-fill, .home-hero-image { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-repeat: no-repeat; background-position: center; }
.home-hero-fill { background-size: cover; filter: blur(24px) brightness(0.8); transform: scale(1.15); }
.home-hero-image { background-size: contain; }

/* slide dots: always visible, small and neutral */
.home-hero .hero-slider.flexslider .flex-control-nav,
.home-hero .hero-slider.flexslider:hover .flex-control-nav { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; z-index: 5; }
.home-hero .flex-control-paging li { margin: 0 4px; }
.home-hero .flex-control-paging li a {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.home-hero .flex-control-paging li a.flex-active { background: #ffffff; }
@media (max-width: 767px) {
    .home-hero .hero-slider.flexslider .flex-control-nav { bottom: 6px; }
    .home-hero .flex-control-paging li a { width: 8px; height: 8px; }
}
