/* One selected, local scenic image; solid-colour boutiques never request it. */
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=thriller] {
    --hqm-genre-image: url('../images/boutique-backgrounds/thriller.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/thriller-mobile.webp');
    --hqm-genre-surface: #dce4e9;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=romantic] {
    --hqm-genre-image: url('../images/boutique-backgrounds/romantic.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/romantic-mobile.webp');
    --hqm-genre-surface: #efe8db;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=children] {
    --hqm-genre-image: url('../images/boutique-backgrounds/children.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/children-mobile.webp');
    --hqm-genre-surface: #e6ecd9;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=fantasy] {
    --hqm-genre-image: url('../images/boutique-backgrounds/fantasy.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/fantasy-mobile.webp');
    --hqm-genre-surface: #e2e8dc;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=historical] {
    --hqm-genre-image: url('../images/boutique-backgrounds/historical.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/historical-mobile.webp');
    --hqm-genre-surface: #e9e0d1;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=adventure] {
    --hqm-genre-image: url('../images/boutique-backgrounds/adventure.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/adventure-mobile.webp');
    --hqm-genre-surface: #dce8e2;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=dark-romance] {
    --hqm-genre-image: url('../images/boutique-backgrounds/dark-romance.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/dark-romance-mobile.webp');
    --hqm-genre-surface: #e6dde3;
}

:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=modern-library] {
    --hqm-genre-image: url('../images/boutique-backgrounds/modern-library.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/modern-library-mobile.webp');
    --hqm-genre-surface: #eae4d9;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=urban-loft] {
    --hqm-genre-image: url('../images/boutique-backgrounds/urban-loft.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/urban-loft-mobile.webp');
    --hqm-genre-surface: #e8e1da;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=light-minimal] {
    --hqm-genre-image: url('../images/boutique-backgrounds/light-minimal.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/light-minimal-mobile.webp');
    --hqm-genre-surface: #f1ede5;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=modern-architecture] {
    --hqm-genre-image: url('../images/boutique-backgrounds/modern-architecture.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/modern-architecture-mobile.webp');
    --hqm-genre-surface: #ebe3d9;
}

:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=science-fiction] {
    --hqm-genre-image: url('../images/boutique-backgrounds/science-fiction.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/science-fiction-mobile.webp');
    --hqm-genre-surface: #dfe6ed;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=sensual-romance] {
    --hqm-genre-image: url('../images/boutique-backgrounds/sensual-romance.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/sensual-romance-mobile.webp');
    --hqm-genre-surface: #eee0dc;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=storybook] {
    --hqm-genre-image: url('../images/boutique-backgrounds/storybook.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/storybook-mobile.webp');
    --hqm-genre-surface: #f8f5df;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=health-wellbeing] {
    --hqm-genre-image: url('../images/boutique-backgrounds/health-wellbeing.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/health-wellbeing-mobile.webp');
    --hqm-genre-surface: #e5eddf;
}
:is(.hqm-boutique-profile--genre, .hqm-boutique-preview[data-background-mode=genre])[data-genre=bloody-horror] {
    --hqm-genre-image: url('../images/boutique-backgrounds/bloody-horror.webp');
    --hqm-genre-mobile: url('../images/boutique-backgrounds/bloody-horror-mobile.webp');
    --hqm-genre-surface: #dedfe6;
}

/* Fixed scenic area avoids enlarging a photo to the height of a long catalogue. */
.hqm-boutique-profile.hqm-boutique-profile--genre,
.hqm-boutique-preview[data-background-mode=genre] {
    background-color: var(--hqm-genre-surface, #e8e9e2);
    background-image: var(--hqm-genre-image, none);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
}
.hqm-boutique-profile--genre .hqm-boutique-profile__header--fallback {
    aspect-ratio: 3 / 1;
    background: transparent;
    max-height: none;
    min-height: 0;
}
.hqm-boutique-profile--genre .hqm-boutique-hero__content,
.hqm-boutique-profile--genre .hqm-boutique-section {
    background: #fff;
    border: 1px solid #dfe4dc;
    border-radius: 12px;
    color: #182a25;
}
.hqm-boutique-profile--genre .hqm-boutique-hero__content { margin-top: 1rem; }
.hqm-boutique-profile--genre .hqm-boutique-section { padding: clamp(1rem, 2vw, 2rem); }
.hqm-boutique-preview[data-background-mode=genre]::before {
    aspect-ratio: 3 / 1;
    content: '';
    display: block;
    margin-bottom: 1rem;
}
.hqm-boutique-preview[data-background-mode=genre] .hqm-boutique-preview__content {
    background: #fff;
    border-radius: 12px;
    color: #182a25;
    padding: 1.25rem;
}
.hqm-boutique-preview[data-background-mode=genre] .hqm-boutique-preview__banner:not(:has(img)) { display: none; }
.hqm-choice-card--genre .hqm-genre-thumbnail {
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    display: block;
    height: auto;
    margin-bottom: .75rem;
    object-fit: cover;
    width: 100%;
}
@media (max-width: 760px) {
    .hqm-boutique-profile.hqm-boutique-profile--genre,
    .hqm-boutique-preview[data-background-mode=genre] {
        background-image: var(--hqm-genre-mobile, none);
        background-size: auto 32rem;
    }
    .hqm-boutique-profile--genre .hqm-boutique-profile__header--fallback,
    .hqm-boutique-preview[data-background-mode=genre]::before { aspect-ratio: 2 / 1; }
}
