/* Final Scaled Spacing for Panoramic 4000x680 Logo */
.navbar-brand img, 
.header-logo img,
a.logo img,
.logo img {
    height: 54px !important;        /* Lowered slightly more to create safe padding */
    width: 318px !important;        /* Proportionally scales width down to stay inside limits */
    max-width: 75vw !important;     /* Keeps it safe on mobile devices */
    object-fit: contain !important;  /* Keeps the text sharp and legible */
}

/* Restores a neat, compact professional header container height */
.navbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: 75px !important;
}

/* Keeps the navigation menu menu items perfectly aligned */
.navbar-nav {
    align-items: center !important;
}




/**
 * 1. Targeted Image Error Listener
 * Hooks only onto the specific columns and listing layouts of business structures.
 * EXEMPTION: Added :not() constraint to block it from reading your transparent white footer branding logo.
 */
.items img:not([src*="4gBaIxiuJDmp3j3"]),
.row-cols-1 img:not([src*="4gBaIxiuJDmp3j3"]),
.row-cols-md-2 img:not([src*="4gBaIxiuJDmp3j3"]),
.row-cols-xl-3 img:not([src*="4gBaIxiuJDmp3j3"]),
.row-cols-xxl-4 img:not([src*="4gBaIxiuJDmp3j3"]),
.swiper-slide img:not([src*="4gBaIxiuJDmp3j3"]),
.recent-reviews img:not([src*="4gBaIxiuJDmp3j3"]),
.review-box img:not([src*="4gBaIxiuJDmp3j3"]),
.business-page img:not([src*="4gBaIxiuJDmp3j3"]),
.single-listing img:not([src*="4gBaIxiuJDmp3j3"]),
.business-card img:not([src*="4gBaIxiuJDmp3j3"]) {
    position: relative !important;
    display: inline-block !important;
    background-color: #f1f2f4 !important; 
}

/**
 * 2. Absolute Asset Backup Layer
 * Fires a clean grey background mask instantly when an image path fails,
 * while safely ignoring your website footer payment block.
 */
.items img:not([src*="4gBaIxiuJDmp3j3"])::before,
.row-cols-1 img:not([src*="4gBaIxiuJDmp3j3"])::before,
.row-cols-md-2 img:not([src*="4gBaIxiuJDmp3j3"])::before,
.row-cols-xl-3 img:not([src*="4gBaIxiuJDmp3j3"])::before,
.row-cols-xxl-4 img:not([src*="4gBaIxiuJDmp3j3"])::before,
.swiper-slide img:not([src*="4gBaIxiuJDmp3j3"])::before,
.recent-reviews img:not([src*="4gBaIxiuJDmp3j3"])::before,
.review-box img:not([src*="4gBaIxiuJDmp3j3"])::before,
.business-page img:not([src*="4gBaIxiuJDmp3j3"])::before,
.single-listing img:not([src*="4gBaIxiuJDmp3j3"])::before,
.business-card img:not([src*="4gBaIxiuJDmp3j3"])::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #f1f2f4 !important;
    z-index: 2 !important;
}

/**
 * 3. Native Icon Mask Rule
 * Layers perfectly over the native browser broken file icon inside your directory cards.
 */
.items img:not([src*="4gBaIxiuJDmp3j3"])::after,
.row-cols-1 img:not([src*="4gBaIxiuJDmp3j3"])::after,
.row-cols-md-2 img:not([src*="4gBaIxiuJDmp3j3"])::after,
.row-cols-xl-3 img:not([src*="4gBaIxiuJDmp3j3"])::after,
.row-cols-xxl-4 img:not([src*="4gBaIxiuJDmp3j3"])::after,
.swiper-slide img:not([src*="4gBaIxiuJDmp3j3"])::after,
.recent-reviews img:not([src*="4gBaIxiuJDmp3j3"])::after,
.review-box img:not([src*="4gBaIxiuJDmp3j3"])::after,
.business-page img:not([src*="4gBaIxiuJDmp3j3"])::after,
.single-listing img:not([src*="4gBaIxiuJDmp3j3"])::after,
.business-card img:not([src*="4gBaIxiuJDmp3j3"])::after {
    content: " " !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #f1f2f4 !important;
    z-index: 3 !important;
}

/**
 * 4. Absolute Footer Exemption Override
 * Forcefully strips any trailing layout styles off your footer logo wrapper elements.
 */
.footer-payments img,
img[src*="4gBaIxiuJDmp3j3"] {
    background-color: transparent !important;
    background-image: none !important;
}
.footer-payments img::before,
.footer-payments img::after {
    display: none !important;
    content: none !important;
}












/* =========================================================
   BLOG HEADER BANNER EXCLUSION
   Keep the header background image fully visible
   ========================================================= */

header.header .header-image,
header.header-sm .header-image,
header.header-bg .header-image {
    background-color: transparent !important;
    background-image: url("https://www.bournemouth.info/themes/basic/images/pages/aoscnzSdPvDXX4u_1790389098.jpg") !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

/* Make sure nothing is layered over the banner */
header.header .header-image::before,
header.header .header-image::after,
header.header-sm .header-image::before,
header.header-sm .header-image::after,
header.header-bg .header-image::before,
header.header-bg .header-image::after {
    content: none !important;
    display: none !important;
}