@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/**
 * Red Rock Directory — rrd-fixes.css
 * Supplemental fixes loaded AFTER rrd-main.css.
 * Do NOT edit rrd-main.css. Add all new overrides here.
 */

/* =============================================
   1. FOOTER — Full dark footer styling
   rrd-main.css only targeted #colophon generically;
   footer.php uses rrd-footer-* classes that were unstyled.
   ============================================= */

.rrd-site-footer {
  background: #1a1a1a !important;
  color: #ccc !important;
  font-size: 0.92rem;
}

.rrd-footer-main {
  padding: 60px 20px 40px;
}

.rrd-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .rrd-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .rrd-footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.rrd-footer-logo {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff !important;
  text-decoration: none !important;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.rrd-footer-tagline {
  color: #ffffff !important;
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-style: italic;
}

.rrd-footer-about {
  color: #aaa !important;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.rrd-footer-heading {
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.rrd-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rrd-footer-links li {
  margin-bottom: 10px !important;
}

.rrd-footer-links a {
  color: #aaa !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.rrd-footer-links a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

.rrd-footer-bottom {
  background: #111 !important;
  padding: 18px 20px;
  border-top: 1px solid #2a2a2a;
}

.rrd-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.rrd-footer-copyright {
  color: #777 !important;
  font-size: 0.85rem;
  margin: 0 !important;
}

.rrd-footer-legal {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  gap: 20px;
}

.rrd-footer-legal a {
  color: #777 !important;
  font-size: 0.82rem;
  text-decoration: none !important;
  transition: color 0.2s;
}

.rrd-footer-legal a:hover {
  color: #ffffff !important;
}

/* =============================================
   2. NAVIGATION — White text on dark red header
   Extra selectors for Astra mobile/desktop menus
   ============================================= */

/* Force header background white (matches logo) */
.site-header,
#masthead,
.ast-primary-header-bar,
.main-header-bar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e8e0d0 !important;
}

/* Desktop nav */
#masthead .ast-main-navigation .menu > .menu-item > a,
#masthead .main-header-bar .main-header-menu .menu-item > a,
.site-header .main-navigation ul li a,
.ast-desktop .main-header-bar-wrap .main-header-menu a,
.main-header-menu .menu-item > a,
.main-navigation .menu-item > a,
#masthead .main-header-menu a {
  color: #2c2c2c !important;
  font-weight: 500;
}

#masthead .ast-main-navigation .menu > .menu-item > a:hover,
.ast-desktop .main-header-bar-wrap .main-header-menu a:hover {
  color: #8B0000 !important;
}

/* Submenu dropdowns on white header */
.main-header-menu .sub-menu,
.main-navigation .sub-menu {
  background: #ffffff !important;
  border: 1px solid #e8e0d0 !important;
}

.main-header-menu .sub-menu .menu-item a,
.main-navigation .sub-menu .menu-item a {
  color: #2c2c2c !important;
}

.main-header-menu .sub-menu .menu-item a:hover {
  color: #8B0000 !important;
  background: rgba(139,0,0,0.04) !important;
}

/* Mobile hamburger toggle button — dark on white header */
.ast-mobile-menu-buttons .menu-toggle,
.ast-mobile-menu-buttons button,
.menu-toggle,
button.ast-mobile-menu-trigger-minimal,
.ast-button-wrap.ast-mobile-menu-buttons {
  color: #2c2c2c !important;
  background: transparent !important;
  border: 2px solid rgba(44,44,44,0.3) !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
}

.ast-mobile-menu-buttons .menu-toggle:hover,
button.ast-mobile-menu-trigger-minimal:hover {
  border-color: #8B0000 !important;
  color: #8B0000 !important;
}

/* Mobile popup/slide-in menu */
.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-popup-drawer {
  background: #1a1a1a !important;
}

.ast-mobile-popup-drawer .ast-primary-nav-responsive .menu-item a,
.ast-mobile-popup-drawer ul li a,
.ast-mobile-popup .ast-primary-nav-responsive ul li a {
  color: #ffffff !important;
}

.ast-mobile-popup-drawer .ast-primary-nav-responsive .menu-item a:hover {
  color: #ffffff !important;
}

/* Astra "flyout" & "slide" mobile menus */
.ast-slide-toggle .ast-primary-nav-responsive ul li a,
.ast-flyout-toggle .ast-primary-nav-responsive ul li a {
  color: #ffffff !important;
}

/* Mobile inline toggle — menu items below header */
@media (max-width: 921px) {
  .ast-prime-menu-disabled .ast-main-navigation,
  .ast-primary-nav-responsive {
    background: #8B0000 !important;
  }

  .ast-primary-nav-responsive .menu-item a {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  }

  .ast-primary-nav-responsive .menu-item a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.06) !important;
  }
}

/* =============================================
   3. TEXT CONTRAST FIXES
   ============================================= */

/* Ensure body text is always readable */
body,
.entry-content,
.ast-article-single p,
p {
  color: #2c2c2c;
}

/* Headings on white/stone backgrounds */
h1, h2, h3, h4, h5, h6 {
  color: #1a1a1a;
}

/* Section titles keep brand color */
.rrd-section-title h2,
.rrd-step h3,
.rrd-category-card h3 {
  color: #8B0000 !important;
}

/* Light background sections — dark text */
.rrd-section-alt p,
.rrd-section p {
  color: #555;
}

/* Widget titles in sidebar */
.widget-title {
  color: #1a1a1a !important;
}

/* Links in content area */
.entry-content a,
.ast-article-single a {
  color: #8B0000;
}

.entry-content a:hover {
  color: #8B0000;
}

/* =============================================
   4. HOMEPAGE BUTTONS — Ensure correct display
   The shortcodes use rrd-btn-primary / rrd-btn-outline.
   These reinforce rrd-main.css in case Astra overrides them.
   ============================================= */

a.rrd-btn-primary,
.rrd-btn-primary {
  display: inline-block !important;
  background: #8B0000 !important;
  color: #ffffff !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  border: 2px solid #8B0000 !important;
  transition: all 0.25s !important;
  cursor: pointer;
}

a.rrd-btn-primary:hover,
.rrd-btn-primary:hover {
  background: transparent !important;
  color: #8B0000 !important;
}

a.rrd-btn-outline,
.rrd-btn-outline {
  display: inline-block !important;
  background: transparent !important;
  color: #8B0000 !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  border: 2px solid #8B0000 !important;
  transition: all 0.25s !important;
  cursor: pointer;
}

a.rrd-btn-outline:hover,
.rrd-btn-outline:hover {
  background: #8B0000 !important;
  color: #ffffff !important;
}

/* View Profile button on pro cards */
a.rrd-btn-view,
.rrd-btn-view {
  background: #8B0000 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

a.rrd-btn-view:hover {
  background: #8B0000 !important;
  color: #ffffff !important;
}

/* Register Free button in nav (last menu item — only when NOT the logout item) */
.main-header-menu .menu-item:last-child:not(.rrd-nav-logout) > a,
.main-navigation .menu-item:last-child:not(.rrd-nav-logout) > a {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
  font-weight: 700 !important;
}

/* =============================================
   5. USERSWP REGISTRATION & LOGIN
   ============================================= */

/* Form wrapper */
.uwp-template-part,
.uwp-register-form-wrap,
.uwp-login-form-wrap {
  max-width: 520px !important;
  margin: 40px auto !important;
  padding: 40px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1) !important;
}

/* Form inputs */
.uwp-form input[type="text"],
.uwp-form input[type="email"],
.uwp-form input[type="password"],
.uwp-form textarea,
.uwp-form select,
.uwp-field input,
.uwp-field select,
.uwp-field textarea {
  border: 1px solid #e8e0d0 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  color: #2c2c2c !important;
  background: #fff !important;
  transition: border-color 0.2s !important;
}

.uwp-form input:focus,
.uwp-form textarea:focus,
.uwp-form select:focus,
.uwp-field input:focus {
  border-color: #8B0000 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(139,0,0,0.1) !important;
}

/* Form labels */
.uwp-form label,
.uwp-field label {
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin-bottom: 6px !important;
  display: block !important;
  font-size: 0.9rem !important;
}

/* Submit button */
.uwp-form .button,
.uwp-submit-button,
.uwp-form input[type="submit"],
.uwp-form button[type="submit"],
#uwp_register_submit,
#uwp_login_submit {
  background: #8B0000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 36px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: background 0.2s !important;
  margin-top: 8px !important;
}

.uwp-form .button:hover,
.uwp-submit-button:hover,
.uwp-form input[type="submit"]:hover {
  background: #8B0000 !important;
}

/* Login/register links below form */
.uwp-template-part a,
.uwp-login-form-wrap a,
.uwp-register-form-wrap a {
  color: #8B0000 !important;
}

.uwp-template-part a:hover {
  color: #8B0000 !important;
}

/* Error/success messages */
.uwp-errors,
.uwp-success {
  padding: 12px 16px !important;
  border-radius: 8px !important;
  margin-bottom: 16px !important;
  font-size: 0.9rem !important;
}

.uwp-errors {
  background: #fff0f0 !important;
  border-left: 4px solid #8B0000 !important;
  color: #8B0000 !important;
}

.uwp-success {
  background: #f0fff4 !important;
  border-left: 4px solid #2e7d32 !important;
  color: #1b5e20 !important;
}

/* =============================================
   6. GENERAL PAGE FIXES
   ============================================= */

/* Astra sometimes adds gray body background — keep our stone */
body,
.ast-page-builder-template body {
  background-color: #F5F0E8 !important;
}

/* Remove Astra breadcrumb on homepage */
.page-id-24 .ast-breadcrumbs-wrapper {
  display: none !important;
}

/* GeoDirectory archive page layout */
.page-id-9 .entry-title,
.page-id-25 .entry-title {
  display: none;
}

/* Astra content container full width on homepage — content only, not header/footer */
.page-id-24 .entry-content,
.page-id-24 #primary > .ast-container,
.page-id-24 .site-content .ast-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

/* Keep the header nav constrained to the same max-width as all other pages */
.page-id-24 #masthead .ast-container,
.page-id-24 .ast-primary-header-bar .ast-container,
.page-id-24 .site-primary-header-wrap.ast-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* =============================================
   7. FEATURED PROFESSIONALS GRID — 4 columns desktop
   ============================================= */

.rrd-professionals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .rrd-professionals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rrd-professionals-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   8. MOBILE RESPONSIVE IMPROVEMENTS
   ============================================= */

@media (max-width: 768px) {
  .rrd-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .rrd-footer-legal {
    justify-content: center;
  }

  .rrd-view-all a {
    display: block;
    margin: 8px auto !important;
    max-width: 280px;
  }

  .uwp-template-part,
  .uwp-register-form-wrap,
  .uwp-login-form-wrap {
    padding: 24px 16px !important;
    margin: 20px 16px !important;
  }
}

/* =============================================
   9. HIDE PERSONAL INFO & POST META on gd_place pages
   Prevents admin email / author data leaking in HTML
   ============================================= */

.single-gd_place .entry-meta,
.single-gd_place .posted-by,
.single-gd_place .post-author,
.single-gd_place .ast-post-meta,
.single-gd_place .entry-footer,
.single-gd_place .ast-author-meta,
.single-gd_place .ast-author-info,
.gd_place .entry-meta { display: none !important; }
/* #respond / .comments-area / .comment-respond are intentionally NOT hidden —
   GeoDirectory puts the review form inside them within the Reviews tab. */

/* Hide author name/email line on profile pages only — do NOT use global .ast-author-meta */
.single-gd_place .entry-meta { display: none !important; }
.single-gd_place .posted-by { display: none !important; }
.single-gd_place span.author { display: none !important; }

/* =============================================
   9b. GEODIRECTORY WRAPPER WIDTH FIX
   The narrow white box is a GeoDirectory inner wrapper, not #primary.
   Force all known GD single-page containers to full width.
   ============================================= */
.geodir-single-page,
.geodir-single-post,
.gd-single-post-container,
.geodir_post_meta,
.geodir-post-meta,
.gd_place.type-gd_place,
.geodir-post,
.gd-post-content,
.gd-post,
.geodir-post-content-wrap {
    max-width: 100% !important;
    width: 100% !important;
}

/* =============================================
   9c. HIDE ADMIN HINTS permanently for non-admins (CSS layer)
   PHP layer in functions.php shows it back only for admins.
   IMPORTANT: keep selectors narrow — avoid [class*="geodir"][class*="info"]
   which would hide legitimate content like category/taxonomy blocks.
   ============================================= */
.geodir-info-flash,
.gd-notification,
.geodir-notifications,
.geodir-admin-hints,
.gd-admin-info,
.gd-admin-hint,
[class*="geodir"][class*="hint"] {
    display: none !important;
}

/* =============================================
   10. GEODIRECTORY DETAIL PAGE — Category badge, avatar, profile UI
   ============================================= */

/* Category badge: dark red background, white text */
.geodir_post_taxomomies .geodir-category a,
.geodir_post_taxomomies .geodir-category {
    background: #8B0000 !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 4px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
}
.geodir_post_taxomomies .geodir-category a:hover {
    background: #8B0000 !important;
    color: #fff !important;
}

/* Initials avatar on detail page */
.rrd-initials-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; font-weight: 800;
    color: #fff;
    margin: 16px auto;
    letter-spacing: -1px;
}

/* Initials avatar on archive cards */
.rrd-initials-avatar-sm {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

/* Location badge — overridden by section 12 below */

/* Country tag badge */
.rrd-country-tag {
    display: inline-block;
    background: #f0e8d8;
    color: #5a3300;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

/* Claim profile box */
.rrd-claim-box {
    text-align: center;
    margin: 24px 0;
    padding: 20px;
    background: #fff8f8;
    border: 1px solid #f0d0d0;
    border-radius: 12px;
}
.rrd-claim-btn {
    display: inline-block;
    background: #8B0000;
    color: #fff !important;
    padding: 11px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: background 0.2s;
}
.rrd-claim-btn:hover { background: #8B0000 !important; color: #fff !important; }
.rrd-claim-text {
    font-size: 0.82rem;
    color: #888;
    margin: 10px 0 0;
}

/* =============================================
   11. PROFILE PAGE FULL-WIDTH LAYOUT FIX
   Root cause: body has ast-two-container which allocates sidebar space
   even when no sidebar exists, shrinking #primary to ~70%.
   Using body. prefix matches Astra dynamic CSS specificity.
   ============================================= */

/* Step 1: force every layout container full-width */
body.single-gd_place #page,
body.single-gd_place #content,
body.single-gd_place #primary,
body.single-gd_place .site-content,
body.single-gd_place .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Step 2: hide the sidebar column so it stops taking up space */
body.single-gd_place #secondary,
body.single-gd_place .widget-area,
body.single-gd_place .secondary {
    display: none !important;
}

/* Step 3: remove Astra article padding that double-indents content */
body.single-gd_place .ast-article-single {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

/* Step 4: fix ast-two-container flex/grid so #primary fills the row */
body.single-gd_place.ast-two-container .ast-container,
body.single-gd_place.ast-separate-container .ast-container {
    display: block !important;
}

/* =============================================
   11b. REGISTER FREE BUTTON — only allow inside nav menus, never floating
   Hides any Register Free button that appears outside the navigation context.
   ============================================= */
.single-gd_place .menu-item:last-child:not(.rrd-nav-logout) > a,
.single-gd_place .nav-register-btn {
    display: none !important;
}
/* Hide floating/fixed register buttons site-wide (not inside menus) */
.ast-header-break-point .menu-item:last-child > a:not(.ast-menu-toggle),
body:not(.single-gd_place) .nav-register-btn {
    /* allow in nav, block if injected elsewhere via widget/hook */
}

/* =============================================
   11c. PROFILE HEADER — center all header elements consistently
   ============================================= */
.single-gd_place .entry-title {
    text-align: center !important;
}
/* taxonomy + location badge on one centered line */
.single-gd_place .geodir_post_taxomomies {
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}
/* Ensure category badge always shows */
.single-gd_place .geodir_post_taxomomies .geodir-category,
.single-gd_place .geodir_post_taxomomies .geodir-category a {
    display: inline-block !important;
}
/* Avatar centered above the name */
.single-gd_place .rrd-initials-avatar {
    display: block !important;
    margin: 0 auto 12px auto !important;
}
/* Canvas avatar on profile page: same 75px circle */
.single-gd_place .rrd-canvas-avatar {
    display: block !important;
    margin: 0 auto 12px auto !important;
    border-radius: 50% !important;
    width: 75px !important;
    height: 75px !important;
}

/* =============================================
   11d. PREV/NEXT NAVIGATION — Red Rock colors
   ============================================= */
.single-gd_place .geodir-pos_navigation a,
.single-gd_place .geodir-pos_navigation .geodir-nav-prev,
.single-gd_place .geodir-pos_navigation .geodir-nav-next,
.single-gd_place .wp-block-geodirectory-geodir-widget-single-next-prev a {
    background: #8B0000 !important;
    color: #fff !important;
    border-color: #8B0000 !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}
.single-gd_place .geodir-pos_navigation a:hover,
.single-gd_place .wp-block-geodirectory-geodir-widget-single-next-prev a:hover {
    background: #8B0000 !important;
    color: #fff !important;
    border-color: #8B0000 !important;
}

/* =============================================
   12. LOCATION BADGE — inline with category badges, same line
   ============================================= */
.rrd-location-badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.82rem !important;
    color: #555 !important;
    background: #f0e8d8 !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* =============================================
   13. LISTING / ARCHIVE PAGE — Grid switcher, colors, cards
   Real DOM classes (verified from live page):
   - Row container: .geodir-category-list-view
   - Cards: .col.geodir-post.gd_place (also has ast-full-width which overrides Bootstrap cols)
   - Search btn: .geodir_submit_search.btn.btn-primary
   - Grid switcher: .geodir-loop-actions-container / .wp-block-geodirectory-geodir-widget-loop-actions
   ============================================= */

/* 13a. Hide grid/list view switcher entirely */
.geodir-loop-actions-container,
.geodir-loop-actions,
.gd-loop-actions,
.wp-block-geodirectory-geodir-widget-loop-actions {
    display: none !important;
}

/* 13b. Search submit button: dark red, not Bootstrap blue.
   Uses body prefix to beat Bootstrap's .btn-primary specificity */
body .geodir_submit_search,
body .geodir_submit_search.btn,
body button.geodir_submit_search,
body button[type="submit"].geodir_submit_search,
.geodir-search .geodir_submit_search {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: #fff !important;
}
body .geodir_submit_search:hover,
body button.geodir_submit_search:hover {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: #fff !important;
}

/* 13c. 4-column CSS grid — converts the Bootstrap flex row to a proper grid.
   CSS grid on the parent overrides all Bootstrap row-cols-* and ast-full-width
   on children without needing to fight each child's flex/width separately. */
.geodir-category-list-view {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    /* Reset Bootstrap row margins/padding that add gutters on top of gap */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}
@media (max-width: 1024px) {
    .geodir-category-list-view {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .geodir-category-list-view {
        grid-template-columns: 1fr !important;
    }
}

/* Reset Bootstrap col / ast-full-width on cards so grid controls sizing */
.geodir-category-list-view .col.geodir-post.gd_place {
    width: auto !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
}

/* 13d. Clean card style — compact, centered, Red Rock branded */
.geodir-post.gd_place .card {
    background: #fff !important;
    border: 1px solid #e8e0d0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    text-align: center !important;
    height: 100% !important;
}
.geodir-post.gd_place .card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(139,0,0,0.12) !important;
}
.geodir-post.gd_place .card-body {
    padding: 16px 12px !important;
}
.geodir-post.gd_place .card-img-top {
    background: transparent !important;
}

/* Avatar cut-off fix:
   GeoDirectory applies Bootstrap mt-n5 (margin-top:-20px) to the avatar img,
   pulling it upward into .card-img-top which has overflow:hidden — clipping it.
   Reset the negative margin so avatar stays within the card-body. */
.geodir-post.gd_place .col-4.tofront img,
.geodir-post.gd_place .col-4.tofront svg,
.geodir-post.gd_place .col-4.tofront .mt-n5 {
    margin-top: 8px !important;
}
/* Ensure card itself doesn't clip the avatar area */
.geodir-post.gd_place .card {
    overflow: visible !important;
}
/* Restore border-radius clipping on the inner card wrapper only */
.geodir-post.gd_place .card > .card-img-top,
.geodir-post.gd_place .card > .card-body,
.geodir-post.gd_place .card > .card-footer {
    overflow: hidden !important;
}

/* 13e-1. Avatar image — force 75px circle on all listing cards.
   GeoDirectory renders the avatar in .col-4.tofront > img (via get_avatar_url)
   and may also wrap it in .geodir-image-container.
   Both selectors are covered here. */
/* Avatar container — flex-centered, 75px circle above the card name */
.geodir-post.gd_place .col-4.tofront,
.geodir_post_type-gd_place .geodir-image-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 16px 0 8px !important;
}
.geodir_post_type-gd_place .geodir-image-container img,
.geodir-post.gd_place .col-4.tofront img {
    width: 75px !important;
    height: 75px !important;
    min-width: 75px !important;
    min-height: 75px !important;
    max-width: 75px !important;
    max-height: 75px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 13e. Card typography */
.geodir-entry-title a {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.geodir-entry-title a:hover {
    color: #8B0000 !important;
}
.geodir-output-location {
    color: #888 !important;
    font-size: 0.82rem !important;
}
.geodir_post_meta_icon {
    color: #8B0000 !important;
}

/* =============================================
   14. LISTING PAGE TITLE — hide static "All Professionals",
   replaced dynamically by rrd_country_dropdown_ui JS
   ============================================= */
.post-type-archive-gd_place h1.ast-archive-title,
.post-type-archive-gd_place h1.page-title,
.geodir-page .ast-archive-title {
    display: none !important;
}

/* =============================================
   15. REVIEW FORM — Red Rock brand styling
   ============================================= */

/* Reviews tab: clean spacing */
.single-gd_place #reviews .comments-area {
    padding: 0 !important;
}
.single-gd_place #reviews .commentlist-wrap {
    margin-bottom: 1.5rem;
}

/* Existing reviews */
.single-gd_place .geodir-comment-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
.single-gd_place .gd-comment-review-title {
    font-family: 'DM Serif Display', serif;
    color: #1a1a1a;
    font-size: 1.2rem;
}

/* Submit button: Red Rock dark red */
.single-gd_place #commentform #submit,
.single-gd_place .comment-form .btn-primary {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}
.single-gd_place #commentform #submit:hover,
.single-gd_place .comment-form .btn-primary:hover {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
}

/* Star rating: gold on hover/select */
.single-gd_place .gd-rating-input .gd-rating-foreground {
    color: #ffffff !important;
}

/* Form inputs */
.single-gd_place .comment-form .form-control:focus {
    border-color: #8B0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(139,0,0,0.15) !important;
}

/* =============================================
   16. EMPTY REVIEWS MESSAGE
   ============================================= */
.geodir-no-reviews-message {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1rem;
}
.geodir-no-reviews-message .no-review-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}
.geodir-no-reviews-message a {
    color: #8B0000 !important;
    font-weight: 600;
}

/* =============================================
   17. CREATE ACCOUNT / REGISTER BUTTON
   ============================================= */
.uwp-register-submit,
.uwp_form .uwp-submit-button,
button.uwp-submit,
.uwp_form input[type="submit"],
#uwp_register_form input[type="submit"] {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: #fff !important;
}
.uwp-register-submit:hover,
.uwp_form .uwp-submit-button:hover,
button.uwp-submit:hover,
.uwp_form input[type="submit"]:hover,
#uwp_register_form input[type="submit"]:hover {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
}

/* =============================================
   18. GLOBAL BLUE → DARK RED OVERRIDES
   ============================================= */

/* Bootstrap / GeoDirectory .btn-primary */
.btn-primary,
a.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
}

/* Bootstrap .btn-link blue text */
.btn-link {
    color: #8B0000 !important;
}
.btn-link:hover {
    color: #8B0000 !important;
}

/* General anchor blue fallback */
a:not([class]),
a.geodir-link {
    color: #8B0000;
}

/* GeoDirectory pagination active page */
.geodir-pagination .page-item.active .page-link,
.geodir-pagination .page-link:hover {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: #fff !important;
}
.geodir-pagination .page-link {
    color: #8B0000 !important;
}

/* GeoDirectory star rating / badge accents */
.geodir_post_meta .geodir-post-meta-icon,
.geodir-i-cat:before,
.geodir-i-address:before,
.gd-rating-stars .filled {
    color: #8B0000 !important;
}

/* GeoDirectory add listing / save buttons */
.geodir-btn,
.geodir-save-btn,
.geodir-add-listing-btn {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: #fff !important;
}

/* Bootstrap badges / labels */
.badge-primary,
.label-primary {
    background-color: #8B0000 !important;
}

/* Bootstrap progress bar */
.progress-bar {
    background-color: #8B0000 !important;
}

/* Bootstrap alerts / outlines */
.alert-primary {
    background-color: #fdf0f0 !important;
    border-color: #8B0000 !important;
    color: #8B0000 !important;
}
.btn-outline-primary {
    color: #8B0000 !important;
    border-color: #8B0000 !important;
}
.btn-outline-primary:hover {
    background-color: #8B0000 !important;
    color: #fff !important;
}

/* Focus ring */
*:focus {
    outline-color: #8B0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(139,0,0,0.25) !important;
}

/* =============================================
   19. CLAIM PROFILE FORM
   ============================================= */
.rrd-claim-form-wrap {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.rrd-claim-form-wrap h2 {
    color: #8B0000;
    margin-bottom: 8px;
}
.rrd-field {
    margin-bottom: 18px;
}
.rrd-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}
.rrd-field label span {
    color: #8B0000;
}
.rrd-field input[type="text"],
.rrd-field input[type="email"],
.rrd-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.rrd-field input:focus,
.rrd-field textarea:focus {
    border-color: #8B0000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139,0,0,0.15);
}
.rrd-claim-btn {
    background-color: #8B0000;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.rrd-claim-btn:hover {
    background-color: #8B0000;
}
.rrd-claim-success {
    background: #f0faf0;
    border: 1px solid #27ae60;
    border-radius: 6px;
    padding: 20px 24px;
    color: #1e7e34;
    max-width: 600px;
    margin: 30px auto;
}
.rrd-claim-error {
    color: #c0392b;
    background: #fdf0f0;
    border: 1px solid #c0392b;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

/* =============================================
   20. NAV LOGIN/LOGOUT STYLING
   ============================================= */

/* Logout pill — maximum specificity to beat all :last-child and width rules */
#masthead li.rrd-nav-logout a,
#masthead li.menu-item.rrd-nav-logout a,
.main-navigation ul li.rrd-nav-logout > a,
.rrd-nav-logout > a,
.rrd-logout-link > a {
    width: auto !important;
    display: inline-block !important;
    background: #8B0000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    min-width: unset !important;
    max-width: fit-content !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}
#masthead li.rrd-nav-logout a:hover,
.rrd-nav-logout > a:hover {
    opacity: 0.85 !important;
    color: #ffffff !important;
}
.rrd-nav-account > a {
    background: transparent !important;
    color: #2c2c2c !important;
    border-radius: 0 !important;
    padding: 6px 0 !important;
    font-weight: 400 !important;
    width: auto !important;
    display: inline-block !important;
}

/* User avatar in nav */
.rrd-nav-avatar {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
    border: 2px solid rgba(139,0,0,0.3);
    display: inline-block;
}

/* =============================================
   21. GEODIRECTORY ADD LISTING FORM — Label visibility
   label_type='top' renders labels above fields; ensure they
   are visually prominent and consistent with site style.
   ============================================= */
.geodir-form label,
.geodir-form .form-group > label,
.geodir-form .form-group .col-form-label {
    display: block !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
}
/* Ensure horizontal-layout label columns aren't squished to 0 */
.geodir-form .form-group.row label.col-sm-2 {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 160px !important;
}

/* =============================================
   22. PROFILE CLAIMING SYSTEM
   ============================================= */

/* Footer bar injected on single gd_place pages */
.rrd-claim-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}

/* Wrapper */
.rrd-claim-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Primary claim button */
.rrd-claim-btn-link {
    display: inline-block;
    background: #8B0000;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, opacity 0.2s;
    font-family: inherit;
}
.rrd-claim-btn-link:hover,
.rrd-claim-btn-link:focus {
    background: #8B0000;
    color: #fff;
    text-decoration: none;
}
.rrd-claim-btn-link:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Status badges */
.rrd-claim-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}
.rrd-claim-taken {
    background: #e0e0e0;
    color: #666;
    cursor: not-allowed;
}
.rrd-claim-managing {
    background: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    cursor: pointer;
}
.rrd-claim-managing:hover {
    background: #b8911f;
    color: #1a1a1a;
    text-decoration: none;
}
.rrd-claim-pending-email {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}
.rrd-claim-pending-admin {
    background: #cfe2ff;
    color: #084298;
    border: 1px solid #9ec5fe;
}

/* AJAX response messages */
.rrd-claim-msg {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
}
.rrd-claim-msg-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.rrd-claim-msg-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* In the footer bar, force light text for status badges */
.rrd-claim-footer-bar .rrd-claim-taken,
.rrd-claim-footer-bar .rrd-claim-pending-email,
.rrd-claim-footer-bar .rrd-claim-pending-admin {
    font-size: 0.9rem;
}

/* =============================================
   23. SOFT PINK BORDER OVERRIDES
   Replace remaining var(--color-primary) borders with #8B0000
   ============================================= */
.rrd-search-box input,
select.rrd-country-select,
select.rrd-category-select {
    border-color: #8B0000 !important;
}

/* Form focus rings — soft pink */
.rrd-field input:focus,
.rrd-field textarea:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #8B0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(255,158,153,0.25) !important;
    outline-color: #8B0000 !important;
}

/* Section title underline bars */
.title-bar,
.rrd-section-title .title-bar {
    background: #8B0000 !important;
}

/* Hero search box border */
.rrd-hero-search input,
.rrd-hero-search select {
    border-color: #8B0000 !important;
}

/* =============================================
   24. BLACK TEXT ON PINK (#8B0000) BUTTONS
   ============================================= */
[style*="background:#8B0000"],
[style*="background-color:#8B0000"],
.rrd-btn-primary,
.rrd-btn-view,
.rrd-search-btn,
button[style*="FF9E99"],
a[style*="FF9E99"],
.geodir_submit_search,
.uwp-submit-button,
.btn-primary,
a.btn-primary,
button.btn-primary,
.rrd-claim-btn,
.rrd-claim-btn-link,
.geodir-btn,
.geodir-save-btn,
.uwp-register-submit,
.badge-primary {
    color: #1a1a1a !important;
}

/* Force black text on all pink elements */
[class*="rrd-btn"], .rrd-btn-primary, .rrd-btn-view,
.geodir_submit_search, button.search-btn,
.rrd-step-number { color: #1a1a1a !important; }

/* =============================================
   25. WHITE TEXT ON DARK RED BACKGROUNDS
   ============================================= */

/* White text on all dark red backgrounds */
.rrd-step-number,
.rrd-step-number *,
[style*="background:#8B0000"] *,
[style*="background-color:#8B0000"] *,
.rrd-hero *,
.rrd-hero h1,
.rrd-hero p,
.rrd-pro-card .card-header,
.rrd-pro-card .card-header *,
.featured-badge {
    color: #ffffff !important;
}

/* Logout button - white text on dark red */
#masthead li.menu-item:last-child > a,
.main-navigation ul > li:last-child > a {
    color: #ffffff !important;
    background: #8B0000 !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    width: auto !important;
    display: inline-block !important;
    min-width: unset !important;
}

/* =============================================
   26. POPPINS FONT + HERO SEARCH BAR FIX
   ============================================= */

/* Apply Poppins to entire site */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea {
    font-family: 'Poppins', sans-serif !important;
}

/* Fix search bar text alignment and styling */
.rrd-search-box input[type="text"],
.rrd-hero input[type="text"],
.rrd-search-box input {
    text-align: left !important;
    vertical-align: middle !important;
    line-height: normal !important;
    padding: 16px 24px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    align-items: center !important;
}

.rrd-search-box form {
    display: flex !important;
    align-items: center !important;
}

/* =============================================
   27. FEATURED BADGE + LOGOUT BUTTON FIXES
   ============================================= */

/* Featured badge - gold background, white text */
.featured-badge,
.rrd-pro-card .featured-badge {
    background: #c9a227 !important;
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
}

/* Logout button — maximum specificity fix */
html body #masthead .main-header-menu .menu-item:last-child > a,
html body .main-navigation .menu-item:last-child > a {
    background-color: #8B0000 !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    width: auto !important;
    min-width: unset !important;
    max-width: 120px !important;
    display: inline-block !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* =============================================
   28. HERO STATS — ICONS, ANIMATION, WHITE TEXT
   ============================================= */
.rrd-hero-stats {
    display: flex !important;
    gap: 40px !important;
    justify-content: center !important;
    margin-top: 40px !important;
    flex-wrap: wrap !important;
}
.rrd-hero-stats .stat {
    text-align: center !important;
    color: #ffffff !important;
    min-width: 90px;
}
.rrd-hero-stats .stat-icon {
    font-size: 2rem !important;
    display: block !important;
    margin-bottom: 6px !important;
    line-height: 1 !important;
}
.rrd-hero-stats .stat strong,
.rrd-hero-stats .stat .stat-number {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: inline !important;
    line-height: 1.1 !important;
}
.rrd-hero-stats .stat .stat-plus {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    vertical-align: super !important;
}
.rrd-hero-stats .stat-label {
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.85) !important;
    display: block !important;
    margin-top: 6px !important;
    letter-spacing: 0.03em !important;
}

/* =============================================
   29. LOGOUT BUTTON SPACING FIX
   ============================================= */
html body #masthead .main-header-menu .menu-item:last-child,
html body .main-navigation .menu-item:last-child {
    margin-left: 12px !important;
}

/* My Account item spacing */
html body #masthead .main-header-menu .menu-item:nth-last-child(2),
html body .main-navigation .menu-item:nth-last-child(2) {
    margin-right: 8px !important;
}

/* Nav menu gap */
.main-header-menu {
    gap: 8px !important;
}

/* =============================================
   30. LOGOUT BUTTON EDGE SPACING
   ============================================= */
html body #masthead .main-header-menu,
html body .main-navigation .main-header-menu {
    padding-right: 20px !important;
}

html body #masthead .main-header-menu .menu-item:last-child > a {
    margin-right: 10px !important;
}

/* =============================================
   31. HOMEPAGE COUNTRY MAP
   ============================================= */
.rrd-home-map {
    width: 100%;
    height: 450px;
    background: #F5F0E8;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 0;
}
.rrd-country-map-search {
    max-width: 360px;
    margin: 0 auto 20px;
}
.rrd-country-map-search select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #8B0000;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #2c2c2c;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B0000' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.rrd-country-map-search select:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139,0,0,0.15);
}
/* Leaflet tooltip style for homepage map */
.rrd-map-tooltip {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.rrd-map-tooltip::before { display: none; }

/* =============================================
   32. OVERRIDE ALL BLUE PLUGIN COLORS → #8B0000
   ============================================= */

/* Global link color — catch anything missed below */
a, a:hover { color: #8B0000 !important; }

/* UsersWP blue overrides */
.uwp-profile-header a,
.uwp-nav a,
.uwp-account-nav a,
.uwp-account-nav a:hover,
.uwp-profile-menu a,
.uwp-tab-active,
.uwp-nav-active,
#uwp_account_tabs a,
#uwp_account_tabs li.active a,
.uwp-form a { color: #8B0000 !important; }

/* GeoDirectory blue overrides */
.geodir-category-listing a,
.gd-place a,
.geodir_post_meta a,
.geodir-i { color: #8B0000 !important; }

/* General Bootstrap/plugin blue */
.text-primary,
.text-info,
.btn-link,
.nav-link:hover,
.page-link { color: #8B0000 !important; }

/* Bootstrap blue buttons */
.btn-primary {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: #ffffff !important;
}
.btn-info {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
    color: #ffffff !important;
}

/* UsersWP username / login */
.uwp-username,
.uwp-user-login { color: #8B0000 !important; }

/* GeoDirectory info/notification boxes */
.geodir-info-flash,
.gd-notification {
    border-color: #8B0000 !important;
    color: #333333 !important;
    background: #fff8f8 !important;
}

/* =============================================
   33. GEODIRECTORY TEAL/BLUE NOTIFICATION BOX FIX
   GeoDirectory uses .bsui wrapper with Bootstrap --info: #17a2b8
   ============================================= */

/* Override CSS variables inside .bsui */
.bsui,
.bsui * {
    --info:    #8B0000 !important;
    --primary: #8B0000 !important;
    --blue:    #8B0000 !important;
}

/* alert-info box */
.bsui .alert-info,
.alert-info,
div.alert.alert-info {
    background-color: #fff8f5 !important;
    border-color:     #8B0000 !important;
    color:            #555555 !important;
}
.bsui .alert-info *,
.alert-info *,
div.alert.alert-info * {
    color: #555555 !important;
}

/* Icons inside info alerts */
.bsui .alert-info .dashicons,
.bsui .alert-info i,
.alert-info .dashicons,
.alert-info i {
    color: #8B0000 !important;
}

/* GeoDirectory-specific info wrappers */
.geodir-info-flash,
.geodir-info-flash * {
    background-color: #fff8f5 !important;
    border-color:     #8B0000 !important;
    color:            #555555 !important;
}
.gd-notification,
.gd-notification * {
    background-color: #fff8f5 !important;
    border-color:     #8B0000 !important;
    color:            #555555 !important;
}

/* Attribute/class wildcard catch */
[class*="geodir"][class*="info"],
[class*="geodir"][class*="info"] * {
    color:            #555555 !important;
    border-color:     #e8e0d0 !important;
    background-color: #fff8f5 !important;
}

/* Bootstrap btn-info override inside .bsui */
.bsui .btn-info,
.btn-info {
    background-color: #8B0000 !important;
    border-color:     #8B0000 !important;
    color:            #ffffff !important;
}
.bsui .text-info,
.text-info {
    color: #8B0000 !important;
}

/* Fix Browse All Professionals button */
.rrd-view-all a,
.rrd-view-all .rrd-btn-primary,
a.rrd-btn-primary,
.rrd-btn-primary {
    color: #ffffff !important;
    background-color: #8B0000 !important;
}

/* Fix Register Free button text alignment */
.main-navigation .menu-item:last-child > a,
#masthead .menu-item:last-child > a {
    text-align: center !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Center Elementor divider lines */
.elementor-widget-divider .elementor-divider {
    display: flex !important;
    justify-content: center !important;
}
.elementor-widget-divider .elementor-divider-separator {
    margin: 0 auto !important;
}

/* Country dropdown — full width, no cutoff */
.rrd-country-map-search {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto 18px !important;
    display: block !important;
    box-sizing: border-box !important;
}
.rrd-country-map-search select {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 2px solid #8B0000 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    background: #fff !important;
    color: #2c1810 !important;
    box-sizing: border-box !important;
}

/* Fix country search bar cut off on right */
.rrd-map-search,
.rrd-country-search-wrap,
#homepage-country-search,
input[placeholder="Search a country"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
}

.rrd-map-search-wrap,
.rrd-countries-desktop > div:first-child {
    width: 100% !important;
    padding: 0 0 16px 0 !important;
    box-sizing: border-box !important;
}

/* Map container — full width, no side overflow clipping */
.rrd-countries-desktop {
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Map canvas — 600px tall, full width */
#rrd-home-map {
    height: 600px !important;
    width: 100% !important;
}

/* Search bar wrapper — full width, no cutoff */
.rrd-countries-desktop .rrd-country-map-search {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.rrd-countries-desktop .rrd-country-map-search select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Fix map overflowing container */
.rrd-countries-desktop {
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#rrd-home-map,
#homepage-map {
    height: 600px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.rrd-section {
    overflow: hidden !important;
}

/* Revert search bar to centered, smaller width */
input#homepage-country-search,
.rrd-map-search,
.rrd-countries-desktop .rrd-country-map-search {
    width: 50% !important;
    max-width: 400px !important;
    display: block !important;
    margin: 0 auto 16px auto !important;
    box-sizing: border-box !important;
}
.rrd-countries-desktop .rrd-country-map-search select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Fix country search input text cut off vertically */
input#homepage-country-search,
.rrd-map-search,
input[placeholder="Search a country..."],
.rrd-countries-desktop .rrd-country-map-search select {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 20px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Ensure country flag emojis are visible on mobile cards */
.rrd-countries-mobile .rrd-country-card .flag,
.rrd-countries-mobile .flag,
.rrd-country-card span.flag {
    display: block !important;
    font-size: 2.5rem !important;
    margin-bottom: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile: 2-column grid for country cards and category cards */
@media (max-width: 768px) {
    .rrd-countries-mobile .rrd-countries-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .rrd-countries-mobile .rrd-country-card {
        padding: 16px 8px !important;
        text-align: center !important;
        border-radius: 12px !important;
        border: 1px solid #e8e0d0 !important;
    }

    .rrd-categories-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .rrd-category-card {
        padding: 16px 8px !important;
        text-align: center !important;
    }
}

/* iPhone specific — covers all iPhone sizes */
@media only screen and (max-width: 430px) {
    .rrd-countries-mobile .rrd-countries-grid,
    .rrd-countries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }
}

@media only screen and (max-width: 926px) and (-webkit-min-device-pixel-ratio: 2) {
    .rrd-countries-mobile .rrd-countries-grid,
    .rrd-countries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }
    .rrd-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }
}
