/*
 * Blueground Site-Wide Theme Overrides
 * Applies modern, Blueground-inspired styling across all pages
 */

/* ===========================
   GLOBAL TYPOGRAPHY
   =========================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--bg-gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brk-h1,
.brk-h2,
.brk-h3,
.brk-h4,
.brk-h5,
.brk-h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600;
    color: var(--bg-gray-900);
}

/* ===========================
   PRIMARY COLOR OVERRIDES
   =========================== */
/* Replace theme pink/red with Blueground blue */
/* Override Routiz plugin CSS variables */
:root {
    /* Routiz main color variables */
    --main: #1B4C82 !important;
    --main-shade: #143a64 !important;

    /* Additional theme variables */
    --rz-main-color: #1B4C82 !important;
    --rz-main-color-shade: #143a64 !important;
    --theme-color: #1B4C82 !important;
    --theme-color-dark: #143a64 !important;
}

/* Ensure overrides work on all HTML elements */
html,
body {
    --main: #1B4C82 !important;
    --main-shade: #143a64 !important;
}

/* ===========================
   GLOBAL POLISH & SMOOTH ANIMATIONS
   =========================== */
/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Base smooth transitions for all interactive elements */
*,
*::before,
*::after {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optimize animation performance */
.bg-home img,
.rz-listing-card img,
.bg-feature-card,
.bg-lifestyle-card,
.bg-city-card,
.bg-testimonial-card {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Smooth focus states for accessibility */
:focus-visible {
    outline: 2px solid #1B4C82;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove focus outline on click, keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Polished button states everywhere */
button,
.rz-button,
.brk-button,
input[type="submit"],
a.button {
    cursor: pointer;
    transform: translateZ(0);
}

button:hover,
.rz-button:hover,
.brk-button:hover,
input[type="submit"]:hover,
a.button:hover {
    transform: translateY(-1px) translateZ(0);
}

button:active,
.rz-button:active,
.brk-button:active,
input[type="submit"]:active,
a.button:active {
    transform: translateY(0) translateZ(0);
}

/* Polished link underlines */
a:not(.rz-button):not(.brk-button):not(.bg-lifestyle-link) {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Refined image loading states */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-lazy] {
    opacity: 0;
}

img[data-lazy].loaded {
    opacity: 1;
}

/* Smooth scroll reveal animations */
.bg-animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bg-animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.bg-animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.bg-animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.bg-animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.bg-animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.bg-animate-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}

/* ===========================
   DESKTOP HEADER POLISH
   =========================== */
/* Polished header styles for Routiz/Brikk theme */
.rz-header,
.brk-header,
.site-header,
header.header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Header background on scroll */
.rz-header.scrolled,
.brk-header.scrolled,
header.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Header navigation links styling */
.rz-header-nav a,
.brk-header-nav a,
.rz-nav a,
.brk-nav a,
header nav a {
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #374151 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.rz-header-nav a:hover,
.brk-header-nav a:hover,
.rz-nav a:hover,
.brk-nav a:hover,
header nav a:hover {
    background-color: rgba(27, 76, 130, 0.08) !important;
    color: #1B4C82 !important;
}

/* Header action buttons polish */
.rz-header-actions,
.brk-header-actions {
    gap: 12px !important;
}

/* Login/account button styling */
.rz-login,
.brk-login,
.rz-header-actions .rz-login-button,
.brk-header-actions .brk-login-button {
    background: transparent !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 50px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
}

.rz-login:hover,
.brk-login:hover,
.rz-header-actions .rz-login-button:hover,
.brk-header-actions .brk-login-button:hover {
    border-color: #1B4C82 !important;
    color: #1B4C82 !important;
    background-color: rgba(27, 76, 130, 0.04) !important;
}

/* Mobile menu toggle polish */
.rz-mobile-menu-toggle,
.brk-mobile-menu-toggle,
.menu-toggle,
.hamburger-menu {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.rz-mobile-menu-toggle:hover,
.brk-mobile-menu-toggle:hover,
.menu-toggle:hover,
.hamburger-menu:hover {
    border-color: #1B4C82 !important;
    background-color: rgba(27, 76, 130, 0.04) !important;
}

.rz-mobile-menu-toggle svg,
.brk-mobile-menu-toggle svg,
.menu-toggle svg,
.hamburger-menu svg,
.rz-mobile-menu-toggle i,
.brk-mobile-menu-toggle i {
    width: 20px !important;
    height: 20px !important;
    color: #374151 !important;
    stroke: #374151 !important;
}

/* ===========================
   TABLET BREAKPOINT (1024px)
   =========================== */
@media (max-width: 1024px) and (min-width: 769px) {

    /* Tablet header adjustments */
    .rz-header-nav a,
    .brk-header-nav a,
    header nav a {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }

    /* Reduce nav gap on tablets */
    .rz-header-nav,
    .brk-header-nav,
    header nav {
        gap: 4px !important;
    }

    /* Scale down header actions */
    .rz-header-actions,
    .brk-header-actions {
        gap: 8px !important;
    }
}

/* ===========================
   EXPLORE PAGE - BADGES (PROMOTED/FEATURED)
   =========================== */
/* Target all badge classes from Routiz theme */
.rz-listing-priority .rz--tag,
.rz-listing-badges li *,
.rz-listing-priority span,
.rz--listing-promoted,
.brk--badge,
.rz-post-status span,
.rz-post-status a,
.rz-plans .rz-plan .brk--badge,
.routiz .rz-listing-priority .rz--tag {
    background: #1B4C82 !important;
    background-color: #1B4C82 !important;
    color: #ffffff !important;
}

/* Active/featured states */
.rz-post-status.rz-status-publish span,
.rz-post-status.rz-status-publish a,
.rz-post-status.rz-status-approved span,
.rz-post-status.rz-status-approved a {
    background-color: #d7fbe3 !important;
    color: #209048 !important;
}

/* Reviews star color */
.rz-listing-review,
.rz-reviews-stat-num,
.rz-reviews-stat-num i,
.rz-listing-review i,
.rz-comment-rating,
.rz-comment-rating i,
.rz-single-heading-rating .rz--rating,
.rz-single-heading-rating .rz--rating .rz-reviews-stat-num {
    color: #1B4C82 !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
}

.rz-reviews-progress .rz-progress .rz-progress-bar {
    background-color: #1B4C82 !important;
}

/* ===========================
   EXPLORE PAGE - CARD PRICES
   =========================== */
/* Target all price classes */
.rz-listing-bottom,
.rz-listing .rz-listing-bottom,
.routiz .rz-listing-bottom,
.rz-action-price .rz--price,
.rz-price,
.rz--price,
.rz-plans .rz-plan .rz-heading .rz-price del .amount,
.rz-plans .rz-available {
    color: #1B4C82 !important;
}

/* ===========================
   BUTTONS - SITE-WIDE
   =========================== */
/* Override Routiz button gradient with Blueground blue */
.rz-button,
.rz-button.rz-bg,
.brk-button,
button.rz-btn,
.rz-btn,
input[type="submit"],
.woocommerce-button,
.woocommerce .button,
.brk-btn,
.routiz .rz-button,
.rz-outer .rz-button,
.rz-action-footer .rz-button,
.rz-listing-action .rz-button,
.rz-mod-action .rz-button,
.rz-signin-social a,
.rz-plans .rz-plan .rz-action .rz-button {
    background: linear-gradient(135deg, #1B4C82 0%, #143a64 100%) !important;
    background-color: #1B4C82 !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(27, 76, 130, 0.3) !important;
}

/* Button hover states */
.rz-button:hover,
.rz-button.rz-bg:hover,
.brk-button:hover,
button.rz-btn:hover,
.rz-btn:hover,
input[type="submit"]:hover,
.woocommerce-button:hover,
.woocommerce .button:hover,
.brk-btn:hover,
.routiz .rz-button:hover,
.rz-outer .rz-button:hover,
.rz-action-footer .rz-button:hover,
.rz-listing-action .rz-button:hover {
    background: linear-gradient(135deg, #143a64 0%, #0d2d4d 100%) !important;
    background-color: #143a64 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(27, 76, 130, 0.4) !important;
    color: #ffffff !important;
}

/* Override button::before and ::after pseudo-elements that may contain pink */
.rz-button::before,
.rz-button::after,
.rz-button.rz-bg::before,
.rz-button.rz-bg::after {
    background: transparent !important;
    content: none !important;
}

/* Secondary/outline buttons */
.rz-button--outline,
.brk-button--outline,
.rz-btn--outline {
    background: transparent !important;
    border: 2px solid #1B4C82 !important;
    color: #1B4C82 !important;
    box-shadow: none !important;
}

.rz-button--outline:hover,
.brk-button--outline:hover,
.rz-btn--outline:hover {
    background: #1B4C82 !important;
    color: white !important;
}

/* ===========================
   EXPLORE PAGE STYLING
   =========================== */
/* Listing cards */
.rz-listing-card,
.brk-listing-card,
.rz-card {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: all var(--transition-base) !important;
    border: 1px solid var(--bg-gray-200) !important;
    background: white !important;
}

.rz-listing-card:hover,
.brk-listing-card:hover,
.rz-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent !important;
}

/* Card image styling */
.rz-listing-card .rz--media,
.rz-listing-card .rz--thumbnail,
.brk-listing-card .brk--media {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    overflow: hidden;
}

.rz-listing-card img,
.brk-listing-card img {
    transition: transform var(--transition-slow) !important;
}

.rz-listing-card:hover img,
.brk-listing-card:hover img {
    transform: scale(1.05);
}

/* Card badges/labels - convert pink to blue */
.rz-listing-card .rz--badges span,
.rz-listing-card .rz--label,
.rz--badge,
.rz-badge,
.brk-badge {
    background: var(--bg-primary) !important;
    color: white !important;
    border-radius: var(--radius-sm) !important;
    font-size: var(--font-size-xs) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px !important;
}

/* Featured badge - lighter blue */
.rz-listing-card .rz--badges .rz-badge--featured,
.rz-badge--featured {
    background: var(--bg-accent) !important;
}

/* Price styling - remove red, use dark text or blue */
.rz-listing-card .rz--price,
.rz--price,
.brk--price,
.rz-price {
    color: var(--bg-primary) !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
}

.rz-listing-card .rz--price .rz--amount,
.rz--price .rz--amount {
    color: var(--bg-primary) !important;
}

/* Card content area */
.rz-listing-card .rz--content,
.brk-listing-card .brk--content {
    padding: 16px !important;
}

/* Card title */
.rz-listing-card .rz--title,
.rz-listing-card h3,
.brk-listing-card .brk--title {
    color: var(--bg-gray-900) !important;
    font-weight: 600 !important;
    font-size: var(--font-size-base) !important;
    margin-bottom: 8px !important;
}

/* Card metadata (location, ratings) */
.rz-listing-card .rz--meta,
.rz-listing-card .rz--location,
.brk-listing-card .brk--meta {
    color: var(--bg-gray-500) !important;
    font-size: var(--font-size-sm) !important;
}

/* Ratings/stars */
.rz-listing-card .rz--rating,
.rz--rating,
.rz-rating {
    color: var(--bg-accent) !important;
}

/* ===========================
   MAP MARKERS
   =========================== */
.rz-marker,
.rz-map-marker {
    background: var(--bg-primary) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}

.rz-marker.rz--active,
.rz-map-marker.active {
    background: var(--bg-accent) !important;
}

/* ===========================
   SEARCH/FILTER STYLING
   =========================== */
.rz-search,
.rz-filters,
.brk-search,
.brk-filters {
    background: white !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.rz-search input,
.rz-filters input,
.brk-search input,
.rz-input,
.brk-input {
    border: 1px solid var(--bg-gray-200) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all var(--transition-fast) !important;
}

.rz-search input:focus,
.rz-filters input:focus,
.brk-search input:focus,
.rz-input:focus,
.brk-input:focus {
    border-color: var(--bg-primary) !important;
    box-shadow: 0 0 0 3px rgba(27, 76, 130, 0.15) !important;
    outline: none !important;
}

/* Select dropdowns */
.rz-select,
.brk-select,
select {
    border: 1px solid var(--bg-gray-200) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    font-family: 'Inter', sans-serif !important;
    background-color: white !important;
}

/* ===========================
   LISTING PAGE STYLING
   =========================== */
/* Gallery */
.rz-listing-gallery,
.rz-gallery,
.brk-gallery {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

/* Listing title */
.rz-listing-single .rz--title,
.rz-listing-single h1,
.brk-listing-single .brk--title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--bg-gray-900) !important;
}

/* Listing details/attributes */
.rz-listing-single .rz--attributes,
.rz-listing-single .rz--details,
.brk-listing-single .brk--attributes {
    background: var(--bg-gray-50) !important;
    border-radius: var(--radius-lg) !important;
    padding: 24px !important;
}

/* Amenities/features icons - Remove blue backgrounds */
/* Target the specific icon wrappers that have blue backgrounds */
.rz-tax-list li .rz--icon,
.rz-tax-list li .rz--icon i,
.rz-mod-listing .rz-tax-list .rz--icon,
.rz-mod-listing .rz-tax-list .rz--icon i,
.rz-mod-listing-meta .rz--meta li i,
.rz-listing-single .rz--amenities i,
.rz-amenity i,
.brk-amenity i,
.rz-mod-listing[data-type="amenities"] i,
.rz-mod-listing[data-type="amenities"] .rz--icon,
.rz-mod-listing[data-type="amenities"] .rz--icon i,
.rz-mod-listing .rz--meta li i,
.rz-mod-listing .rz--meta li .rz--icon,
.rz-mod-listing .rz--meta li .rz--icon i,
.rz-listing-amenities i,
.rz-listing-amenities .rz--icon,
.rz-listing-amenities .rz--icon i,
[class*="amenities"] i,
[class*="amenities"] .rz--icon,
[class*="amenities"] .rz--icon i,
/* Target any icon in listing single page */
.rz-single .rz-mod-listing i,
.rz-single .rz-mod-listing .rz--icon,
.rz-single .rz-mod-listing .rz--icon i,
.rz-single .rz-tax-list i,
.rz-single .rz-tax-list .rz--icon,
/* Override gradient backgrounds specifically */
.routiz .rz-tax-list li .rz--icon,
.routiz .rz-tax-list li .rz--icon i {
    color: var(--bg-primary) !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    /* Override any inline styles or gradient */
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--bg-primary) !important;
}

/* ===========================
   LISTING TITLE TRUNCATION (43 chars)
   =========================== */
/* Listing card titles - truncate to single line with ellipsis */
.rz-listing-card .rz--title,
.rz-listing-card .rz--title a,
.rz-listing-card h3,
.rz-listing-card h3 a,
.brk-listing-card .brk--title,
.brk-listing-card .brk--title a,
.rz-listing .rz--heading .rz--title,
.rz-listing .rz--heading .rz--title a,
.rz-listing-item .rz--title,
.rz-listing-item .rz--title a {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Approximate 43 characters - works with typical font sizes */
}

/* Booking widget/sidebar */
.rz-booking-widget,
.rz-sidebar-booking,
.brk-booking-widget {
    background: white !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--bg-gray-100) !important;
    padding: 24px !important;
}

.rz-booking-widget .rz--price,
.rz-sidebar-booking .rz--price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--bg-primary) !important;
}

/* Host info */
.rz-host-info,
.rz-listing-single .rz--host,
.brk-host-info {
    background: var(--bg-gray-50) !important;
    border-radius: var(--radius-lg) !important;
    padding: 20px !important;
}

/* ===========================
   NAVIGATION & TABS
   =========================== */
.rz-tabs,
.brk-tabs {
    border-bottom: 2px solid var(--bg-gray-200) !important;
}

.rz-tabs .rz--tab,
.brk-tabs .brk--tab {
    color: var(--bg-gray-500) !important;
    font-weight: 500 !important;
    transition: all var(--transition-fast) !important;
}

.rz-tabs .rz--tab.rz--active,
.brk-tabs .brk--tab.brk--active,
.rz-tabs .rz--tab:hover {
    color: var(--bg-primary) !important;
    border-bottom: 2px solid var(--bg-primary) !important;
}

/* ===========================
   ACCOUNT/DASHBOARD
   =========================== */
.rz-account,
.brk-account,
.woocommerce-MyAccount-navigation {
    background: white !important;
}

.rz-account-nav a,
.brk-account-nav a,
.woocommerce-MyAccount-navigation-link a {
    color: var(--bg-gray-600) !important;
    font-weight: 500 !important;
    transition: all var(--transition-fast) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
}

.rz-account-nav a:hover,
.rz-account-nav a.active,
.brk-account-nav a:hover,
.brk-account-nav a.active,
.woocommerce-MyAccount-navigation-link.is-active a {
    background: var(--bg-primary) !important;
    color: white !important;
}

/* Dashboard cards */
.rz-dashboard-card,
.brk-dashboard-card {
    background: white !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid var(--bg-gray-100) !important;
    transition: all var(--transition-fast) !important;
}

.rz-dashboard-card:hover,
.brk-dashboard-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

/* ===========================
   LINKS & INTERACTIVE ELEMENTS
   =========================== */
a {
    color: var(--bg-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--bg-primary-dark);
}

/* Heart/favorite buttons */
.rz-favorite,
.brk-favorite,
.rz--favorite {
    color: var(--bg-gray-400) !important;
    transition: all var(--transition-fast) !important;
}

.rz-favorite:hover,
.brk-favorite:hover,
.rz--favorite:hover,
.rz-favorite.rz--active,
.rz--favorite.rz--active {
    color: #ef4444 !important;
}

/* ===========================
   MODAL STYLING
   =========================== */
.rz-modal,
.brk-modal {
    border-radius: var(--radius-lg) !important;
}

.rz-modal-header,
.brk-modal-header {
    border-bottom: 1px solid var(--bg-gray-200) !important;
}

/* ===========================
   PAGINATION
   =========================== */
.rz-pagination,
.brk-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.rz-pagination a,
.brk-pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md) !important;
    background: var(--bg-gray-100) !important;
    color: var(--bg-gray-600) !important;
    font-weight: 500 !important;
    transition: all var(--transition-fast) !important;
}

.rz-pagination a:hover,
.brk-pagination a:hover {
    background: var(--bg-primary) !important;
    color: white !important;
}

.rz-pagination .current,
.brk-pagination .current {
    background: var(--bg-primary) !important;
    color: white !important;
}

/* ===========================
   FORMS - GENERAL
   =========================== */
.rz-form-group label,
.brk-form-group label,
label {
    font-weight: 500 !important;
    color: var(--bg-gray-700) !important;
    margin-bottom: 8px !important;
    font-size: var(--font-size-sm) !important;
}

textarea {
    border: 1px solid var(--bg-gray-200) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    font-family: 'Inter', sans-serif !important;
}

textarea:focus {
    border-color: var(--bg-primary) !important;
    box-shadow: 0 0 0 3px rgba(27, 76, 130, 0.15) !important;
    outline: none !important;
}

/* ===========================
   CALENDAR/DATE PICKER
   =========================== */
.rz-calendar,
.brk-calendar,
.flatpickr-calendar {
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--bg-gray-200) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--bg-primary) !important;
    border-color: var(--bg-primary) !important;
}

.flatpickr-day:hover {
    background: var(--bg-gray-100) !important;
}

/* ===========================
   NOTIFICATIONS & ALERTS
   =========================== */
.rz-notice,
.brk-notice,
.woocommerce-message,
.woocommerce-info {
    border-radius: var(--radius-md) !important;
    border-left: 4px solid var(--bg-primary) !important;
    background: rgba(27, 76, 130, 0.08) !important;
}

.rz-notice--success,
.brk-notice--success,
.woocommerce-message {
    border-left-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.08) !important;
}

.rz-notice--error,
.brk-notice--error,
.woocommerce-error {
    border-left-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

/* ===========================
   LOADING STATES
   =========================== */
.rz-loading,
.brk-loading {
    color: var(--bg-primary) !important;
}

@media (max-width: 768px) {

    .rz-listing-card,
    .brk-listing-card {
        border-radius: var(--radius-md) !important;
    }

    .rz-booking-widget,
    .brk-booking-widget {
        border-radius: var(--radius-md) !important;
        padding: 16px !important;
    }

    /* ===========================
       MOBILE HEADER FIXES
       =========================== */
    /* Hide desktop navigation on mobile - comprehensive selectors */
    .brk-header-nav,
    .brk-header-menu,
    .brk-header .brk-nav,
    .rz-header-nav,
    .rz-header-menu,
    .rz-header .rz-nav,
    .site-header .main-navigation,
    .site-header .primary-menu,
    .header-navigation,
    .header-menu,
    .nav-menu,
    .menu-primary-container,
    header .menu-item:not(.mobile-menu-item),
    .brk-header-inner>nav,
    .brk-header-inner .nav-links,
    .site-branding+nav,
    .header-right .menu,
    .rz-header-actions>.rz-nav,
    .rz-identity+nav,
    /* Target "Your Experience", "For Landlords" type links */
    .brk-menu,
    .brk-header-links,
    .header-links,
    /* Additional Routiz-specific selectors */
    #rz-header nav,
    #rz-header .rz-header-nav,
    .rz-header-inner nav,
    .rz-header-inner>nav,
    .rz-header-inner ul:not(.rz-header-actions),
    .rz-header-inner>ul,
    header nav ul,
    header .rz-nav-list,
    header .nav-list,
    .rz-main-nav,
    .primary-navigation,
    nav.main-nav,
    nav.primary-nav,
    /* Target anchor links directly in header that aren't in actions */
    .rz-header-inner>a:not(.rz-logo):not(.rz-identity):not(.custom-logo-link),
    .brk-header-inner>a:not(.brk-logo):not(.custom-logo-link),
    /* Hide any ul elements in header inner except actions */
    .rz-header-inner>ul.rz-nav,
    .rz-header-inner ul.menu,
    .brk-header-inner>ul,
    header .rz-menu,
    header ul.menu,
    /* Target specific nav wrappers */
    .nav-wrapper,
    .navigation-wrapper,
    .menu-wrapper {
        display: none !important;
        visibility: hidden !important;
    }

    /* Hide legacy header remnants (HRBO text on black) */
    .brk-mobile-header,
    .brk--site-name,
    .brk-site-title,
    .brk--header .brk-site-logo,
    /* Also hide text in new header if requested, but primarily targeting the old black header */
    .bg-logo-text {
        display: none !important;
    }

    /* Simplify header layout on mobile */
    .brk-header,
    .rz-header,
    .site-header,
    header.header {
        padding: 12px 0 !important;
    }

    .brk-header-inner,
    .rz-header-inner,
    .site-header-inner,
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 16px !important;
    }

    /* Ensure logo is visible */
    .brk-logo,
    .rz-logo,
    .site-logo,
    .custom-logo-link,
    .site-branding,
    .rz-identity {
        flex-shrink: 0 !important;
    }

    /* Show mobile menu toggle button */
    .brk-mobile-menu-toggle,
    .rz-mobile-menu-toggle,
    .mobile-menu-toggle,
    .menu-toggle,
    .hamburger-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Ensure header actions don't overflow */
    .brk-header-actions,
    .rz-header-actions,
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Hide secondary header items on mobile */
    .brk-header-actions>*:not(.brk-mobile-menu-toggle):not(.rz-mobile-menu-toggle):not(.rz-login):not(.brk-login),
    .rz-header-actions>*:not(.brk-mobile-menu-toggle):not(.rz-mobile-menu-toggle):not(.rz-login):not(.brk-login) {
        display: none !important;
    }

    /* Keep login button visible but compact */
    .rz-login,
    .brk-login {
        display: flex !important;
    }

    /* Scale down header action buttons */
    .rz-header-actions .rz-button,
    .brk-header-actions .brk-button {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

/* ===========================
   SCROLLBAR STYLING
   =========================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-gray-400);
}

/* ===========================
   ADDITIONAL GRADIENT OVERRIDES
   =========================== */
/* Override any pink/gradient backgrounds in icons */
.rz-modal .rz--icon i,
.rz--icon i {
    background: linear-gradient(90deg, #1B4C82, #143a64) !important;
}

/* Message bubbles */
.rz-messages .rz-message.rz-message-me .rz--text {
    background: linear-gradient(90deg, #1B4C82, #143a64) !important;
}

/* More filters count badge */
.rz-more-filters .rz--active {
    background: linear-gradient(90deg, #1B4C82, #143a64) !important;
}

/* Plans checkmark list items */
.rz-plans .rz-plan .rz-content ul li:before {
    color: #1B4C82 !important;
}

/* Link and anchor color overrides */
.rz-link:hover,
.rz-favorites-list ul li .rz--content .rz--title a:hover,
.rz-widget-listings .rz--content .rz--name:hover {
    color: #1B4C82 !important;
}

/* User avatar active indicator */
.rz-flag-active,
.rz-listed li.rz-active i:after {
    background-color: #1B4C82 !important;
}

/* Notification icon badge */
.rz-notifications .rz-notification-icon span {
    background-color: #1B4C82 !important;
}

/* Geo widget colors */
.rz--social ul li.rz--facebook a {
    background-color: #3b5998 !important;
}

.rz--social ul li.rz--twitter a {
    background-color: #00c3f3 !important;
}

/* Favorite active states */
.rz-listing-favorite.rz-active,
.rz-listing-favorite.rz-active i:after,
.rz-listing-favorite.rz-ajaxing {
    color: #ef4444 !important;
    /* Keep heart red, that's expected */
}

/* Calendar selected dates */
.rz-calendar .rz-calendar-month .rz-days li.rz--from-day span,
.rz-calendar .rz-calendar-month .rz-days li.rz--to-day span {
    background-color: #1B4C82 !important;
}

/* Ensure text inside blue elements is white */
.rz-listing-priority .rz--tag,
.rz-listing-badges li span,
.rz-more-filters .rz--active,
.rz-modal .rz--icon i,
.rz-messages .rz-message.rz-message-me .rz--text {
    color: #ffffff !important;
}

/* Fix review icon color to not have background */
.rz-listing-review i,
.rz-reviews-stat-num i,
.rz-comment-rating i {
    background: transparent !important;
    background-color: transparent !important;
}

/* ===========================
   FAVORITE BUTTON FIX
   =========================== */
/* Remove blue shading from favorite/heart icon and its inner elements */
.rz-listing-favorite,
.rz-listing-badges .rz-listing-favorite,
.rz-listing-cover .rz-listing-favorite,
.rz--favorite,
.rz-listing-badges li {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Critical: Remove background from the inner icon element */
.rz-listing-favorite i,
.rz-listing-badges .rz-listing-favorite i,
.rz--favorite i,
.rz-listing-cover .rz-listing-favorite i {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Keep heart red when active/hovered */
.rz-listing-favorite:hover i,
.rz-listing-favorite.rz-active i,
.rz--favorite:hover i,
.rz--favorite.rz-active i {
    color: #ef4444 !important;
    background: none !important;
    background-color: transparent !important;
}

/* ===========================
   HIDE PAGE TITLES
   =========================== */
/* Hide explore page and archive page titles */
.rz-explore-title,
.rz-page-title,
.rz-archive-title,
.routiz .rz-page-title,
.page-title,
.entry-title.page-title,
.brk-page-title,
body.post-type-archive .page-header,
body.post-type-archive .page-title,
body.archive .page-header,
body.archive .page-title,
body.tax-listing_category .page-title,
.rz-explore .rz-explore-heading,
.rz-explore-heading h1,
.rz-explore h1.rz-heading,
/* Target the dynamic filter title container */
.rz-dynamic.rz-dynamic-filter h1,
.rz-dynamic-filter h1,
.rz-dynamic-filter .rz-explore-title,
/* Target the search bar that shows "Explore" on mobile */
.rz-search-bar,
.rz-dynamic-filter .rz-search-bar,
.rz-search-filter .rz-search-bar,
.rz-search-bar .rz--title,
.rz-search-bar .rz--name,
/* Also target general h1 headings on the explore page */
h1.rz-title,
.routiz h1.rz-title,
.rz-explore-content h1,
.rz-explore-sidebar h1,
.rz-dynamic h1:first-child,
/* Target h1 within the explore page structure */
.rz-explore h1,
.rz-explore-sidebar h1,
.rz-dynamic-filter h1,
/* Target the taxonomy heading containing "Explore" */
.rz-taxonomy-heading,
.rz-taxonomy-heading .rz--title,
.rz-taxonomy-heading .rz--name,
.rz-taxonomy-heading h4,
.rz--title .rz--name,
h4.rz--name {
    display: none !important;
}

/* Also hide the results count row if present */
.rz-explore-results-info {
    margin-top: 0 !important;
}

/* ===========================
   HOST BUTTON
   =========================== */
.bg-btn-host {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid var(--bg-gray-200);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg-gray-700);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 8px;
    /* Spacing from login button */
}

/* Adjust for transparent header */
.bg-header.transparent .bg-btn-host {
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-btn-host:hover {
    border-color: var(--bg-primary);
    color: var(--bg-primary);
    background-color: white;
}

.bg-header.transparent .bg-btn-host:hover {
    background-color: white;
    color: var(--bg-primary);
    border-color: white;
}