/* =========================================================
   mobile.css (CLEAN + FINAL)
   Put this file AFTER bdo.css
   Targets: ALL mobiles (<= 900px)
   NOTE: City overlay styles are scoped to: body.cg-page
   ========================================================= */

/* ---------------------------------
   Z-INDEX LAYERS (safe + consistent)
   --------------------------------- */
:root {
  --bdo-z-nav: 100010;
  --bdo-z-search: 100030;
  --bdo-z-city: 100031;
  /* only used on body.cg-page */
  --bdo-z-fab: 100040;
  --bdo-z-header: 100060;
}

/* =========================================================
   MOBILE GLOBAL OVERRIDES (<= 900px)
   ========================================================= */
@media (max-width: 900px) {

  /* Kill any body overlays from other bundles */
  body.mobile-nav-open::before,
  body.mobile-nav-open::after {
    content: none !important;
    display: none !important;
  }

  body.mobile-nav-open,
  body.search-open {
    overflow: hidden;
  }

  /* City overlay only exists on City Guides page */
  body.cg-page.city-open {
    overflow: hidden;
  }

  /* ---------------------------------
     HERO / HOME MOBILE TWEAKS
     --------------------------------- */
  .hero-layout-v2 .hero-main-col {
    text-align: left;
    align-items: center;
  }

  /* Hide Home hero search block (MOBILE ONLY) */
  .bdo-home-hero-section-search {
    display: none !important;
  }

  /* Keep hero container rule */
  .bdo-home-hero-section>.bdo-max {
    max-width: 1240px;
  }

  /* bdo-max container on mobile */
  .bdo-max {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Feature cards grid (2 columns on mobile) */
  .hero-feature-grid.hero-feature-grid--cards {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) !important;
    gap: 14px;
  }

  /* Mobile-only padding helper */
  .cw-mobile-px {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* City badge position on mobile */
  .hero-badge--city {
    left: 8px;
    bottom: -53px;
  }

  /* Hide desktop menu toggle on mobile */
  .menu-toggle {
    display: none !important;
  }

  /* =========================================================
     MOBILE TOP HEADER – IMPROVE LOOK (logo + actions)
     ========================================================= */
  .bdo-header {
    position: sticky;
    top: 0;
    z-index: var(--bdo-z-header);

    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, .22);
  }

  .bdo-header .pattern-dots,
  .bdo-header .orb {
    opacity: .25;
  }

  /* Hide desktop nav row on mobile */
  #primaryNav {
    display: none !important;
  }

  .bdo-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .bdo-left {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  .bdo-logo-img {
    height: auto !important;
    width: 100% !important;
    max-width: 190px !important;
    object-fit: contain;
  }

  .bdo-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* Hide socials on mobile */
  .bdo-actions .icon-rail,
  .bdo-actions .rail-sep {
    display: none !important;
  }

  /* Action buttons */
  .bdo-actions .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;

    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 10px 24px rgba(2, 6, 23, .10);
  }

  .bdo-dd[data-dd="user"] .bdo-dd-panel {
    left: auto !important;
    right: 0 !important;
  }

  /* =========================================================
     MOBILE FLOATING ICONS (FAB)
     ========================================================= */
  .bdo-fab-rail {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: var(--bdo-z-fab);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease;
  }

  /* Hide FABs when overlays are open */
  body.mobile-nav-open .bdo-fab-rail,
  body.search-open .bdo-fab-rail {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  /* City overlay case (only on cg-page) */
  body.cg-page.city-open .bdo-fab-rail {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  .bdo-fab {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease, box-shadow .18s ease;

    background: #fff;
    border: 1px solid rgba(148, 163, 184, .35);
    box-shadow: 0 18px 42px rgba(2, 6, 23, .18);
  }

  .bdo-fab i {
    font-size: 22px;
    line-height: 1;
  }

  .bdo-fab:active {
    transform: translateY(1px) scale(.99);
  }

  .bdo-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 55px rgba(2, 6, 23, .22);
  }

  .bdo-fab--menu {
    background: linear-gradient(135deg, var(--primary, #7c3aed), #22d3ee);
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
  }

  .bdo-fab--search {
    background: #fff;
    color: var(--text, #0f172a);
  }

  /* City FAB (only if it exists on cg-page) */
  body.cg-page .bdo-fab--city {
    background: linear-gradient(135deg, #10b981, #22d3ee);
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
  }

  /* =========================================================
     MOBILE MENU PANEL (SCRIM NEVER OVER MENU)
     ========================================================= */
  #mobileNavPanel.mobile-nav-panel {
    position: fixed !important;
    inset: 0 !important;
    z-index: var(--bdo-z-nav) !important;
    display: none;
    isolation: isolate;
    background: transparent !important;
    opacity: 1 !important;
  }

  #mobileNavPanel.mobile-nav-panel.open {
    display: block;
  }

  #mobileNavPanel .mobile-nav-scrim {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0px !important;
    /* JS can set left = menu width */
    z-index: 1 !important;

    background: rgba(2, 6, 23, .58) !important;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);

    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  #mobileNavPanel.open .mobile-nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  #mobileNavPanel .mobile-nav-inner {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 86vw !important;
    max-width: 360px !important;
    z-index: 2 !important;

    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;

    border-top-right-radius: 22px;
    border-bottom-right-radius: 22px;

    background: #fff !important;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #ffffff 100%) !important;

    border-right: 1px solid rgba(148, 163, 184, .35);
    box-shadow: 0 30px 90px rgba(2, 6, 23, .35);

    transform: translateX(-110%);
    transition: transform .24s ease;
  }

  #mobileNavPanel.open .mobile-nav-inner {
    transform: translateX(0);
  }

  /* =========================================================
     MOBILE MENU HEADER – PREMIUM LOOK
     Works for .mobile-nav-head OR .mobile-nav-hero
     ========================================================= */
  #mobileNavPanel .mobile-nav-head,
  #mobileNavPanel .mobile-nav-hero {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 10 !important;

    padding: calc(14px + env(safe-area-inset-top)) 14px 16px !important;

    background: linear-gradient(135deg, #f59e0b, #22d3ee) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .18) !important;
    box-shadow: 0 18px 45px rgba(2, 6, 23, .22) !important;
    overflow: hidden !important;
  }

  #mobileNavPanel .mobile-nav-head::after,
  #mobileNavPanel .mobile-nav-hero::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
      radial-gradient(circle at 12% 35%, rgba(255, 255, 255, .18) 0 2px, transparent 3px),
      radial-gradient(circle at 28% 60%, rgba(255, 255, 255, .14) 0 2px, transparent 3px),
      radial-gradient(circle at 72% 40%, rgba(255, 255, 255, .12) 0 2px, transparent 3px),
      linear-gradient(to bottom, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0));
    opacity: .55 !important;
    pointer-events: none !important;
  }

  #mobileNavPanel .mobile-hero-row {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  #mobileNavPanel .mobile-hero-logo img {
    height: 30px !important;
    width: auto !important;
    filter: drop-shadow(0 10px 18px rgba(2, 6, 23, .22)) !important;
  }

  #mobileNavPanel .mobile-hero-close {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, .26) !important;
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 10px 24px rgba(2, 6, 23, .18) !important;
    transition: transform .15s ease, background .15s ease !important;
    position: relative !important;
    z-index: 2 !important;
  }

  #mobileNavPanel .mobile-hero-close:active {
    transform: translateY(1px) scale(.99) !important;
    background: rgba(255, 255, 255, .18) !important;
  }

  /* Body is the scroll container */
  #mobileNavPanel .mobile-nav-body {
    flex: 1 1 auto !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom)) !important;

    background: linear-gradient(to bottom, rgba(255, 255, 255, .20), rgba(255, 255, 255, 1) 22px) !important;
  }

  /* =========================================================
     USER CARD
     ========================================================= */
  #mobileNavPanel .mobile-user-card {
    margin: 12px 0 12px !important;
    padding: 12px;
    border-radius: 18px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative !important;
    z-index: 2 !important;
    transform: none !important;
  }

  #mobileNavPanel .mobile-user-top {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  #mobileNavPanel .mobile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    box-shadow: 0 14px 28px rgba(2, 6, 23, .18);
    flex: 0 0 44px;
  }

  #mobileNavPanel .mobile-user-name {
    font-weight: 500;
    color: #0f172a;
    line-height: 1.15;
  }

  #mobileNavPanel .mobile-user-sub {
    font-size: 12px;
    color: rgba(15, 23, 42, .65);
    margin-top: 2px;
  }

  #mobileNavPanel .mobile-user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, .22);
    margin-top: 10px;
  }

  #mobileNavPanel .mobile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 500;
    color: #0f172a;
    background: rgba(241, 245, 249, .75);
    border: 1px solid rgba(148, 163, 184, .20);
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, background .15s ease;
  }

  #mobileNavPanel .mobile-chip:active {
    transform: translateY(1px);
  }

  #mobileNavPanel .mobile-chip.is-active {
    background: rgba(124, 58, 237, .12);
    border-color: rgba(124, 58, 237, .28);
  }

  #mobileNavPanel .mobile-chip.danger {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .22);
    color: #991b1b;
  }

  /* =========================================================
     LINKS + ACTIVE STATE
     ========================================================= */
  .mobile-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 12px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text, #0f172a);
    font-weight: 500;
    letter-spacing: .1px;

    background: #fff;
    border: 1px solid rgba(148, 163, 184, .26);
    box-shadow: 0 12px 28px rgba(2, 6, 23, .06);

    transition: background .15s ease, transform .15s ease, border-color .15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-link:active {
    transform: scale(.99);
  }

  .mobile-link i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(241, 245, 249, .85);
    border: 1px solid rgba(148, 163, 184, .18);
    font-size: 16px;
    opacity: 1;
  }

  .mobile-link.is-active {
    background: rgba(124, 58, 237, .10);
    border-color: rgba(124, 58, 237, .22);
  }

  .mobile-link.is-active::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary, #7c3aed), #3b82f6);
  }

  /* =========================================================
     ACCORDION (DETAILS)
     ========================================================= */
  details.mobile-dd {
    border-radius: 18px;
    padding: 6px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 10px 24px rgba(2, 6, 23, .06);
    margin-bottom: 10px;
  }

  details.mobile-dd summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 12px;
    font-weight: 500;
    color: var(--text, #0f172a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 14px;
  }

  details.mobile-dd summary::-webkit-details-marker {
    display: none;
  }

  details.mobile-dd summary::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: 16px;
    opacity: .75;
    transition: transform .18s ease;
  }

  details.mobile-dd[open] summary::after {
    transform: rotate(180deg);
  }

  details.mobile-dd.is-active summary {
    background: rgba(124, 58, 237, .10);
  }

  .mobile-dd-list {
    padding: 8px 10px 10px;
    display: grid;
    gap: 8px;
  }

  .mobile-dd-list .mobile-link {
    padding: 10px 10px;
    border-radius: 14px;
    font-weight: 500;
  }

  .mobile-auth {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(148, 163, 184, .35);
  }
}

/* =========================================================
   STATS OVERLAP (small mobiles)
   ========================================================= */
@media (max-width: 768px) {
  .stats-overlap {
    padding: 53px 1rem;
  }

  .bdo-home-hero-section {
    padding-top: 55px;
    padding-bottom: 0px;
  }
  .bdo-sec-trending-neo .hero-swiper .swiper-pagination {
        bottom: -3px;
        left: 113px;
    }
}

/* Keep this (outside MQ) */
.bdo-home-hero-section-kicker {
  align-items: center;
}

/* =========================================================
   SEARCH OVERLAY (works desktop + mobile)
   ========================================================= */
.bdo-search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--bdo-z-search);
  display: none;
}

.bdo-search-overlay.open {
  display: block;
}

.bdo-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.bdo-search-card {
  position: relative;
  width: min(92vw, 640px);
  margin: 12vh auto 0;
  border-radius: 18px;
  padding: 14px;

  background: #fff;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(148, 163, 184, .30);
  box-shadow: 0 35px 90px rgba(2, 6, 23, .32);
  box-sizing: border-box;
}

.bdo-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 10px;
}

.bdo-search-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text, #0f172a);
}

.bdo-search-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 6px;
  box-sizing: border-box;
}

.bdo-search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 52px;
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: #fff;
  color: var(--text, #0f172a);
  outline: none;
  box-sizing: border-box;
  font-size: 16px;
}

.bdo-search-form input[type="search"]:focus {
  box-shadow: 0 0 0 6px rgba(124, 58, 237, .14);
  border-color: rgba(124, 58, 237, .45);
}

.bdo-search-go {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(135deg, var(--primary, #7c3aed), #3b82f6);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bdo-search-hint {
  padding: 4px 10px 10px;
  color: rgba(15, 23, 42, .65);
  font-size: 13px;
}

/* Mobile: bottom-sheet search card */
@media (max-width: 900px) {
  .bdo-search-card {
    width: 100%;
    margin: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px 18px 0 0;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   CITY OVERLAY (City Guides ONLY)
   Scope: body.cg-page (so it won't affect other pages)
   ========================================================= */
body.cg-page .bdo-city-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--bdo-z-city);
  display: none;
}

body.cg-page .bdo-city-overlay.open {
  display: block;
}

body.cg-page .bdo-city-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

body.cg-page .bdo-city-card {
  position: relative;
  width: min(92vw, 560px);
  margin: 10vh auto 0;
  border-radius: 18px;
  padding: 14px;

  background: #fff;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(148, 163, 184, .30);
  box-shadow: 0 35px 90px rgba(2, 6, 23, .32);
  box-sizing: border-box;
}

body.cg-page .bdo-city-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 10px;
}

body.cg-page .bdo-city-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text, #0f172a);
}

body.cg-page .bdo-city-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
}

body.cg-page .bdo-city-search i {
  opacity: .75;
}

body.cg-page .bdo-city-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 48px;
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: #fff;
  color: var(--text, #0f172a);
  outline: none;
  font-size: 16px;
}

body.cg-page .bdo-city-search input:focus {
  box-shadow: 0 0 0 6px rgba(124, 58, 237, .14);
  border-color: rgba(124, 58, 237, .45);
}

body.cg-page .bdo-city-list {
  margin-top: 6px;
  max-height: min(56vh, 420px);
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 6px;
}

body.cg-page .bdo-city-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 10px 24px rgba(2, 6, 23, .06);
  color: var(--text, #0f172a);
  font-weight: 500;
}

body.cg-page .bdo-city-item.is-active {
  background: rgba(124, 58, 237, .10);
  border-color: rgba(124, 58, 237, .25);
}

body.cg-page .bdo-city-item .l {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.cg-page .bdo-city-item .av {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 500;
  background: rgba(241, 245, 249, .90);
  border: 1px solid rgba(148, 163, 184, .18);
}

body.cg-page .bdo-city-item .av.is-all {
  background: rgba(124, 58, 237, .10);
  border-color: rgba(124, 58, 237, .18);
}

body.cg-page .bdo-city-hint {
  padding: 6px 10px 2px;
  font-size: 13px;
  color: rgba(15, 23, 42, .65);
}

/* Mobile: bottom-sheet city card */
@media (max-width: 900px) {
  body.cg-page .bdo-city-card {
    width: 100%;
    margin: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px 18px 0 0;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  }
}

/* =======================================================
   CITY GUIDES — MOBILE POSTS LIST (FOR ALL <= 900px)
   Scope: body.cg-page
   ======================================================= */
@media (max-width: 900px) {

  body.cg-page .cg-posts {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    grid-template-columns: none !important;
    justify-content: initial !important;
  }

  body.cg-page .cg-post-card {
    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: hidden;
  }

  body.cg-page .cg-post-link {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding: 12px !important;
    align-items: stretch !important;
    height: auto !important;
  }

  body.cg-page .cg-post-media {
    flex: 0 0 112px !important;
    width: 112px !important;
    height: 92px !important;
    aspect-ratio: auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #eee !important;
  }

  body.cg-page .cg-post-media::after {
    content: none !important;
  }

  body.cg-page .cg-post-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
    display: block;
  }

  body.cg-page .cg-post-body {
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    padding-right: 110px !important;
    display: block !important;
  }

  body.cg-page .cg-post-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 0 0 6px 0 !important;
    font-weight: 500 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.cg-page .cg-post-desc {
    margin: 0 0 8px 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: rgba(0, 0, 0, .68) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.cg-page .cg-post-meta {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    font-size: 12px !important;
    color: rgba(0, 0, 0, .55) !important;
  }

  body.cg-page .cg-post-meta>span {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }

  body.cg-page .cg-post-foot {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.cg-page .cg-post-read {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(234, 120, 158, .55) !important;
    background: #fff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #e85b8f !important;
    white-space: nowrap !important;
  }
}

/* =========================================================
   DESKTOP KILL SWITCH (FAB / Mobile floating icons)
   ========================================================= */
@media (min-width: 901px) {
  .bdo-fab-rail {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }

  .bdo-fab,
  .bdo-fab--menu,
  .bdo-fab--search,
  .bdo-fab--city {
    display: none !important;
  }
}

/* =======================================================
   CITY GUIDES: "Read Now" button goes to BOTTOM (mobile)
   Scope: body.cg-page only
   ======================================================= */
@media (max-width: 900px) {

  /* Remove reserved space that was for right-side button */
  body.cg-page .cg-post-body {
    padding-right: 0 !important;
  }

  /* Make meta + button stack neatly */
  body.cg-page .cg-post-meta {
    margin-top: 6px !important;
  }

  /* Stop absolute right-center placement */
  body.cg-page .cg-post-foot {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;

    margin-top: 10px !important;
    /* space above button */
    display: flex !important;
    justify-content: flex-start !important;
    /* left aligned */
  }

  /* Button style stays same, just flows below */
  body.cg-page .cg-post-read {
    display: inline-flex !important;
  }
}

.bdo-search-overlay.open,
.bdo-city-overlay.open {
  display: block;
}

body.search-open,
body.city-open,
body.cat-open {
  overflow: hidden;
}

/* =========================================================
   REGISTER / AUTH — FULL-WIDTH MOBILE FIX
   Put at the END of mobile.css
   ========================================================= */
@media (max-width: 900px) {

  /* Make the main container truly full width on phones */
  main.bdo-max {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Reduce the outer "aurora card" spacing so it doesn't waste width */
  .aurora {
    max-width: 100% !important;
    width: 100% !important;
    margin: 12px auto 18px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  /* Ensure the shell never creates horizontal overflow */
  .shell {
    width: 100% !important;
    max-width: 100% !important;
  }
  .shell > * {
    min-width: 0 !important; /* important for grid children overflow */
  }

  /* Tighten form padding on mobile */
  .form-pane {
    padding: 20px 14px !important;
  }

  /* OPTIONAL: If you DON'T want the right pane on mobile, hide it */
  /* (uncomment if needed)
  .side-pane {
    display: none !important;
  }
  */

  /* Stepper fits better on small screens */
  .stepper {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .step {
    padding: 10px 12px !important;
  }

  /* Safety: if any old mobile css added a right gutter, kill it */
  body {
    padding-right: 0 !important;
  }
}
