/* Desktop: hide bar */
@media (min-width: 769px) {
  .mobile-cta-bar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* iOS Safari: overflow-x on html/body breaks position:fixed — move clip to main */
  html,
  body {
    overflow-x: visible !important;
    overflow-y: auto;
    height: auto !important;
    min-height: 100%;
    transform: none !important;
    filter: none !important;
    contain: none !important;
  }

  main {
    overflow-x: hidden;
    max-width: 100%;
  }

  .mobile-cta-bar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 999999;
    height: 68px;
    padding-bottom: 0;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    -webkit-transform: translateY(0);
    transition: transform 0.3s ease;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .mobile-cta-bar.is-hidden {
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
  }

  .mobile-cta-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    padding: 0 0.5rem;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-cta-bar .cta-phone {
    background: #ffffff;
    color: #1e3a5f;
    border-right: 1px solid #eee;
  }

  .mobile-cta-bar .cta-kakao {
    background: #fee500;
    color: #000000;
  }

  .mobile-cta-bar .cta-reserve {
    background: #1e3a5f;
    color: #ffffff;
  }
}
