/**
 * Quick Menu Styles v2.0 - FORCE OVERRIDE
 * Based on Figma Design - 세인트존스 홈페이지
 */

/* DISABLE ALL OLD QUICK MENUS */
.quick-booking,
.quick-booking .quick-menu-desktop,
.quick-booking .quick-menu-mobile,
.quick-menu,
.quick-menu-header,
.quick-menu-items,
.quick-item,
.quick-scroll-top {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* COMPLETE RESET AND OVERRIDE - Figma Exact Design */
.figma-quick-menu {
    position: fixed !important;
    top: 50% !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 80px !important;
    height: 520px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: auto !important;
    max-height: none !important;
    z-index: 9999 !important;
    /* Figma exact blur and transparency */
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    border-radius: 40px !important;
    padding: 4px 4px 0px 4px !important;
    margin: 0 !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Quick Menu Header */
.figma-quick-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 8px 14px 8px;
    margin-bottom: 0;
    border: none !important;
    outline: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    position: relative;
    width: 38px;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

.figma-quick-title {
    font-family: 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0;
}

.figma-quick-title span {
    display: block;
}

/* Quick Menu Items */
.figma-quick-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: space-evenly;
    width: 100%;
    align-items: center;
}

.figma-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    outline: none !important;
    border-radius: 58px;
    text-decoration: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    overflow: visible;
    padding: 8px;
    box-sizing: border-box;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.figma-quick-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
}

.figma-quick-item:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.figma-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    flex-shrink: 0;
}

.figma-quick-icon svg {
    width: 17px;
    height: 17px;
    color: #ffffff;
    stroke: #ffffff;
    stroke-width: 1.2;
    transition: opacity 0.3s ease;
    fill: none;
}

.figma-quick-icon img {
    width: 19px;
    height: 19px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.figma-quick-item:hover .figma-quick-icon svg,
.figma-quick-item:hover .figma-quick-icon img {
    opacity: 0.8;
}

/* 첫 번째 아이콘(공지사항)을 제외하고 나머지 아이콘들만 1px 키우기 */
.figma-quick-item:not(:first-child) .figma-quick-icon svg {
    width: 18px;
    height: 18px;
}

.figma-quick-item:not(:first-child) .figma-quick-icon img {
    width: 20px;
    height: 20px;
}

/* 5번째 아이콘(객실안내) 크기 2px 더 키우기 */
.figma-quick-item:nth-child(5) .figma-quick-icon svg {
    width: 20px;
    height: 20px;
}

.figma-quick-item:nth-child(5) .figma-quick-icon img {
    width: 22px;
    height: 22px;
}

/* 2번째 아이콘(공지사항) 크기 1px 줄이기 */
.figma-quick-item:nth-child(2) .figma-quick-icon svg {
    width: 17px;
    height: 17px;
}

.figma-quick-item:nth-child(2) .figma-quick-icon img {
    width: 19px;
    height: 19px;
}

.figma-quick-text {
    font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    letter-spacing: 0;
    margin: 0;
}

.figma-quick-item:hover .figma-quick-text {
    opacity: 1;
}

/* Scroll to Top Button */
.figma-quick-scroll-top {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: center;
    margin: 0;
    padding: 0 0 4px 0;
    width: 72px;
    height: auto;
    flex-shrink: 0;
}

.scroll-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
    border: 1px solid rgba(200, 200, 200, 0.7) !important;
    outline: none !important;
    border-radius: 36px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 4px 0px rgba(255, 255, 255, 0.1) !important;
    position: relative;
    cursor: pointer;
}

.scroll-to-top:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(200, 200, 200, 0.9) !important;
    transform: none;
    box-shadow: 0px 0px 8px 0px rgba(255, 255, 255, 0.2) !important;
}

.scroll-to-top:focus {
    border: 1px solid rgba(200, 200, 200, 0.9) !important;
    outline: none !important;
    box-shadow: none !important;
}

.scroll-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-icon svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    stroke: #ffffff;
    stroke-width: 2;
    transition: opacity 0.3s ease, transform 0.15s ease-out;
    fill: none;
}

.scroll-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.15s ease-out;
}

.scroll-to-top:hover .scroll-icon svg {
    opacity: 1;
}

.scroll-to-top:active .scroll-icon svg,
.scroll-to-top:active .scroll-icon img {
    transform: translateY(-6px);
    transition: transform 0.15s ease-out;
}

/* 모바일에서는 완전히 숨김 */
@media (max-width: 768px) {
    .figma-quick-menu {
        display: none !important;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.figma-quick-menu {
    animation: fadeIn 0.5s ease-out;
}

/* 작은 화면에서도 숨김 */

/* Print styles */
@media print {
    .figma-quick-menu {
        display: none;
    }
}