/* "Trending destinations" mosaic (Location::frontend.blocks.list-locations.bento) */
.bmd-wrap { max-width: none; margin: 22px 0 0; padding: 0 14px; }
.bmd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-auto-rows: 210px;
    grid-template-areas:
        "ad1 fr fr tk tk ch"
        "us  fr fr uk uk ad2"
        "us  it th de de ad2";
    gap: 14px;
}
.bmd-ad1 { grid-area: ad1; } .bmd-ad2 { grid-area: ad2; }
.bmd-us { grid-area: us; } .bmd-fr { grid-area: fr; } .bmd-tk { grid-area: tk; } .bmd-uk { grid-area: uk; }
.bmd-it { grid-area: it; } .bmd-th { grid-area: th; } .bmd-de { grid-area: de; } .bmd-ch { grid-area: ch; }

/* ad spaces fill their cell; the striped "Advertisements" preview shows while no ad is set */
.bmd-ad { min-width: 0; display: flex; }
.bmd-ad .bm-ad { flex: 1; display: flex; flex-direction: column; margin: 0 !important; width: 100%; max-width: none !important; }
.bmd-ad .bm-ad .ad-box { flex: 1; width: 100% !important; height: auto !important; min-height: 0 !important; max-width: none !important; border-radius: 0 !important; overflow: hidden; }

.bmd-card { position: relative; min-width: 0; overflow: hidden; border-radius: 14px; background: #e4e9ef; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); isolation: isolate; }
.bmd-link { position: absolute; inset: 0; display: block; }
.bmd-link img, .bmd-link .bm-img-ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bmd-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(180deg, rgba(8, 18, 32, 0) 45%, rgba(8, 18, 32, .35) 70%, rgba(8, 18, 32, .82) 100%);
}
.bmd-card:hover .bmd-link img { transform: scale(1.06); }
.bmd-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 18px 14px; color: #fff; pointer-events: none; }
.bmd-name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.bmd-name a { color: #fff !important; text-decoration: none !important; pointer-events: auto; }
.bmd-fr .bmd-name { font-size: 20px; }
.bmd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s, opacity .25s, margin .3s; }
.bmd-card:hover .bmd-chips, .bmd-card:focus-within .bmd-chips { max-height: 80px; opacity: 1; }
.bmd-chips a, .bmd-chips span {
    pointer-events: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4;
    color: #fff !important; text-decoration: none !important; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .15s;
}
.bmd-chips a:hover { background: rgba(255, 255, 255, .3); }
.bmd-link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* tablet: four columns, ads on their own row under the places */
@media (max-width: 1100px) {
    .bmd-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 190px;
        grid-template-areas:
            "fr  fr  tk  tk"
            "fr  fr  uk  uk"
            "us  it  th  ch"
            "us  de  de  ad1"
            "ad2 ad2 ad2 ad2";
    }
    .bmd-ad2 .bm-ad .ad-box { max-height: 250px; }
}
/* phones: two columns, touch shows the links all the time */
@media (max-width: 640px) {
    .bmd-wrap { padding: 0 14px; }
    .bmd-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 170px;
        gap: 10px;
        grid-template-areas:
            "fr  fr"
            "fr  fr"
            "tk  uk"
            "ad1 ad1"
            "us  it"
            "us  th"
            "de  de"
            "ch  ch"
            "ad2 ad2";
    }
    .bmd-name, .bmd-fr .bmd-name { font-size: 17px; }
    .bmd-body { padding: 12px 12px 10px; }
    .bmd-chips { max-height: none; opacity: 1; gap: 4px; }
    .bmd-chips a, .bmd-chips span { font-size: 11px; padding: 3px 8px; }
}
@media (hover: none) { .bmd-chips { max-height: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bmd-link img, .bmd-chips { transition: none; } }
/* ads are square like real Google ads; the "Advertisements" label sits inside the cell so the ad lines up with the cards */
.bmd-ad .bm-ad .ad-box, .bmd-ad .bm-ad .ad-box * { border-radius: 0 !important; }
.bmd-ad .bm-ad .ad-lbl { margin: 0 0 4px; line-height: 14px; }
/* square corners and no shadow: a plain photo mosaic */
.bmd-card { border-radius: 0 !important; box-shadow: none !important; }

/* ---- exact ad sizes (11 Oct 2026): the ad cells are 300 px wide and the rows are sized so the boxes are exactly
   300×250 and 300×600 under their 18 px "Advertisements" label; the place photos fill the rest ---- */
.bmd-grid {
    grid-template-columns: 300px repeat(4, minmax(0, 1fr)) 300px;
    grid-template-rows: 276px 306px 306px; /* 26 px label + 250, and 26 + 600 over two rows and a 14 px gap */
    grid-auto-rows: auto;
}
.bmd-ad { display: block; }
.bmd-ad .bm-ad { display: block !important; width: 300px !important; margin: 0 auto !important; }
.bmd-ad .bm-ad .ad-lbl { display: block; height: 14px; margin: 0 0 4px !important; line-height: 14px; }
.bmd-ad .bm-ad .ad-box { flex: none !important; width: 300px !important; max-width: 300px !important; }
.bmd-ad1 .bm-ad .ad-box { height: 250px !important; min-height: 250px !important; max-height: 250px !important; }
.bmd-ad2 .bm-ad .ad-box { height: 600px !important; min-height: 600px !important; max-height: 600px !important; }
@media (max-width: 1100px) {
    .bmd-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: 190px 190px 190px 190px auto;
        grid-template-areas:
            "fr  fr  tk  tk"
            "fr  fr  uk  uk"
            "us  it  th  ch"
            "us  de  de  de"
            "ad1 ad1 ad2 ad2";
    }
    .bmd-ad { display: flex; justify-content: center; align-items: flex-start; }
}
@media (max-width: 640px) {
    .bmd-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 170px 170px 170px auto 170px 170px 170px 170px auto;
        grid-template-areas:
            "fr  fr"
            "fr  fr"
            "tk  uk"
            "ad1 ad1"
            "us  it"
            "us  th"
            "de  de"
            "ch  ch"
            "ad2 ad2";
    }
}
/* phones: the 300×600 slot shows its mobile size, 300×250, like every half-page slot on the site */
@media (max-width: 640px) {
    .bmd-ad2 .bm-ad .ad-box { height: 250px !important; min-height: 250px !important; max-height: 250px !important; }
}

/* ---- editorial card text (11 Oct 2026): name, what the place has, and "Explore" on hover ---- */
.bmd-card::after { background: linear-gradient(180deg, rgba(6, 14, 26, 0) 50%, rgba(6, 14, 26, .55) 78%, rgba(6, 14, 26, .85) 100%); }
.bmd-body { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.bmd-name { font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.015em; text-shadow: none; }
.bmd-fr .bmd-name { font-size: 20px; }
.bmd-meta { margin: 0; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .86); letter-spacing: .01em; }
.bmd-go {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; width: max-content;
    font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
    border-bottom: 1.5px solid rgba(255, 255, 255, .7); padding-bottom: 2px;
    opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.bmd-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bmd-card:hover .bmd-go, .bmd-card:focus-within .bmd-go { opacity: 1; transform: none; }
.bmd-card:hover .bmd-link img { transform: scale(1.04); }
@media (hover: none) { .bmd-go { display: none; } }
@media (max-width: 640px) {
    .bmd-body { padding: 0 12px 12px; }
    .bmd-name, .bmd-fr .bmd-name { font-size: 16px; }
    .bmd-meta { font-size: 11.5px; }
}

/* ---- ads switched off for the whole site (dashboard, Advertising): no ad cells, the eight places fill the mosaic.
   !important and the long selector: the site's custom CSS sizes this grid with "body ... .bmd-wrap .bmd-grid" ---- */
body .bmd-wrap .bmd-grid.bmd-noads {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: 230px 230px 260px !important;
    grid-template-areas:
        "us fr fr tk"
        "us fr fr uk"
        "it th de ch" !important;
}
@media (max-width: 1100px) {
    body .bmd-wrap .bmd-grid.bmd-noads {
        grid-template-rows: 190px 190px 190px 190px !important;
        grid-template-areas:
            "fr fr tk tk"
            "fr fr uk uk"
            "us it th ch"
            "us de de de" !important;
    }
}
@media (max-width: 640px) {
    body .bmd-wrap .bmd-grid.bmd-noads {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: repeat(7, 170px) !important;
        grid-template-areas:
            "fr fr"
            "fr fr"
            "tk uk"
            "us it"
            "us th"
            "de de"
            "ch ch" !important;
    }
}
/* ---- one of the two spaces has nothing (dashboard "When a slot is empty": Collapse, or no Umrah packages): it is
   left out and the places close its room (14 Oct 2026). bmd-no1: no small cell; bmd-no2: no tall cell ---- */
body .bmd-wrap .bmd-grid.bmd-no1 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) 300px !important;
    grid-template-rows: 276px 306px 306px !important;
    grid-template-areas:
        "us fr fr tk ch ch"
        "us fr fr uk uk ad2"
        "it th de de de ad2" !important;
}
body .bmd-wrap .bmd-grid.bmd-no2 {
    grid-template-columns: 300px repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: 276px 306px 306px !important;
    grid-template-areas:
        "ad1 fr fr tk tk ch"
        "us  fr fr uk uk ch"
        "us  it th de de de" !important;
}
@media (max-width: 1100px) {
    body .bmd-wrap .bmd-grid.bmd-no1, body .bmd-wrap .bmd-grid.bmd-no2 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-template-rows: 190px 190px 190px 190px auto !important;
    }
    body .bmd-wrap .bmd-grid.bmd-no1 { grid-template-areas: "fr fr tk tk" "fr fr uk uk" "us it th ch" "us de de de" "ad2 ad2 ad2 ad2" !important; }
    body .bmd-wrap .bmd-grid.bmd-no2 { grid-template-areas: "fr fr tk tk" "fr fr uk uk" "us it th ch" "us de de de" "ad1 ad1 ad1 ad1" !important; }
}
@media (max-width: 640px) {
    body .bmd-wrap .bmd-grid.bmd-no1, body .bmd-wrap .bmd-grid.bmd-no2 {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 170px 170px 170px 170px 170px 170px 170px auto !important;
    }
    body .bmd-wrap .bmd-grid.bmd-no1 { grid-template-areas: "fr fr" "fr fr" "tk uk" "us it" "us th" "de de" "ch ch" "ad2 ad2" !important; }
    body .bmd-wrap .bmd-grid.bmd-no2 { grid-template-areas: "fr fr" "fr fr" "tk uk" "us it" "us th" "de de" "ch ch" "ad1 ad1" !important; }
}
/* the site's own photo tiles in the spaces fill their cell like the places (no "Advertisements" label) */
.bmd-ad:has(> .bm-fill-slot) { display: block !important; }
/* ---- no "Advertisements" label any more (14 Oct 2026): the ad cells are exactly the ad's size, so the
   300x250 / 300x600 boxes line up with the photo cards (no leftover label height, no padding) ---- */
.bmd-ad .bm-ad { padding: 0 !important; }
@media (min-width: 1101px) {
    .bmd-grid { grid-template-rows: 250px 293px 293px; } /* 250, and 600 over two rows and a 14 px gap */
}

/* Popular Destination: a place without a photo (e.g. a cruise port) keeps the photo card's 4:5 size on a dark panel */
.popular-destination .bm-pd-noimg{display:block;width:100%;aspect-ratio:4/5;background:linear-gradient(160deg,#1f4e79,#0e2a47)}
