/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    min-height: 560px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg--placeholder {
    background-color: #1a2a3a;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.65) 100%);
}

/* ── Listing cards ─────────────────────────────────────────────────────── */
.listing-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .listing-thumb {
    transform: scale(1.03);
}

.listing-thumb-placeholder {
    height: 220px;
    width: 100%;
}

.card-img-wrap {
    max-height: 220px;
}

/* Collection badge overlaid on card image */
.card-img-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
}

/* ── Navbar active state ───────────────────────────────────────────────── */
.navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* ── Listing card mini-carousel ────────────────────────────────────────── */

/* Small prev/next arrows — hidden until hover */
.listing-carousel-btn {
    width: 2rem;
    opacity: 0;
    transition: opacity .2s ease;
}
.card-img-wrap:hover .listing-carousel-btn {
    opacity: 0.85;
}
/* Always visible on touch devices */
@media (hover: none) {
    .listing-carousel-btn { opacity: 0.7; }
}
.listing-carousel .carousel-control-prev-icon,
.listing-carousel .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
}

/* ── Boat detail hero carousel ─────────────────────────────────────────── */
.detail-carousel-wrap {
    overflow: hidden;
    background: #111;
}

.detail-hero-slide {
    height: 500px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
    .detail-hero-slide { height: 260px; }
}

/* ── Detail thumbnail strip ─────────────────────────────────────────────── */
.detail-thumbstrip {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) transparent;
}
.detail-thumbstrip::-webkit-scrollbar { height: 4px; }
.detail-thumbstrip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 2px; }

.detail-thumb {
    flex-shrink: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity .2s, border-color .2s;
}
.detail-thumb img {
    display: block;
    object-fit: cover;
}
.detail-thumb:hover,
.detail-thumb.active-thumb {
    opacity: 1;
    border-color: #fff;
}

/* ── Equipment richtext lists ───────────────────────────────────────────── */
.equipment-list ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}
.equipment-list li {
    margin-bottom: 0.2rem;
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.card {
    transition: box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15) !important;
}
