/* 2026-05-16-v3 상단 메뉴 통일 보정 */

/* PC 상단 메뉴 8개가 줄바꿈 없이 자연스럽게 들어가도록 보정 */
.header-nav.anyncar-unified-header-nav,
.header-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(18px, 2.2vw, 34px) !important;
  white-space: nowrap !important;
}

.header-nav.anyncar-unified-header-nav a,
.header-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* 상단 견적 버튼 */
.header-cta,
.nav-cta,
.cta-header {
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* 모바일 하단 메뉴 기본 숨김 */
.anyncar-mobile-bottom-menu {
  display: none;
}

@media (max-width: 1180px) {
  .header-nav.anyncar-unified-header-nav,
  .header-nav {
    gap: 18px !important;
  }

  .header-nav.anyncar-unified-header-nav a,
  .header-nav a {
    font-size: 14px !important;
  }
}

@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    padding-bottom: 86px !important;
  }

  /* 모바일 우측 플로팅 및 즐겨찾기 제거 */
  .floating-buttons,
  .floating-kakao,
  .floating-btn,
  .quick-floating,
  .right-floating,
  .channel-floating,
  .kakao-floating,
  .side-floating,
  .bookmark-btn,
  .favorite-btn,
  .favorite-floating,
  .float-favorite,
  .btn-favorite,
  .floating-star,
  [class*="floating"],
  [class*="bookmark"],
  [class*="favorite"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .anyncar-mobile-bottom-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    height: 74px;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    background: rgba(255,255,255,.98);
    border-top: 1px solid rgba(15,23,42,.12);
    box-shadow: 0 -12px 34px rgba(0,0,0,.18);
  }

  .anyncar-mobile-bottom-menu a {
    min-width: 0;
    height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #6B7280;
    font-weight: 900;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    border-right: 1px solid rgba(15,23,42,.06);
  }

  .anyncar-mobile-bottom-menu a:last-child {
    border-right: 0;
  }

  .anyncar-mobile-bottom-menu a span {
    display: block;
    font-size: 21px;
    line-height: 1;
  }

  .anyncar-mobile-bottom-menu a em {
    display: block;
    font-style: normal;
    white-space: nowrap;
  }

  .anyncar-mobile-bottom-menu .mb-estimate {
    background: #E63946;
    color: #fff;
  }

  .anyncar-mobile-bottom-menu .mb-chat {
    background: #FEE500;
    color: #3C1E1E;
  }

  .anyncar-mobile-bottom-menu .mb-channel {
    background: #111827;
    color: #fff;
  }

  section, main, footer, img, iframe {
    max-width: 100% !important;
  }
}
