/* ============================================
   또바기윤 지점 안내 – 프론트엔드 스타일
   모든 클래스에 tbo- 접두어 사용
   .tbo-wrap 로 스코핑하여 WP 테마와 충돌 방지
   ============================================ */

/* ===== Reset within scope ===== */
.tbo-wrap,
.tbo-wrap *,
.tbo-wrap *::before,
.tbo-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.tbo-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.tbo-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}

.tbo-wrap button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
}

.tbo-wrap h2,
.tbo-wrap h3 {
    font-weight: 500;
    margin: 0;
}

.tbo-wrap p {
    margin: 0;
}

/* ===== Layout ===== */
.tbo-container {
    max-width: 80rem;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.tbo-divider {
    border-top: 1px solid #d1d5db;
}

/* ===== Intro ===== */
.tbo-intro {
    background: #ffffff;
    padding: 5rem 1.25rem;
}

.tbo-intro-title {
    font-size: 1.875rem;
    color: #002D5D;
    text-align: center;
}

/* ===== Location Block ===== */
.tbo-location-block {
    background: #ffffff;
}

.tbo-location-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.tbo-location-image-box {
    position: relative;
    height: 400px;
    background: #f3f4f6;
    overflow: hidden;
}

.tbo-location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbo-coming-soon-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: #002D5D;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.tbo-location-text-wrap {
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

.tbo-location-text {
    width: 100%;
}

.tbo-location-name {
    font-size: 1.875rem;
    color: #002D5D;
    margin-bottom: 1.5rem;
}

.tbo-location-address-block {
    border-top: 1px solid #d1d5db;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.tbo-location-address-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.tbo-location-address {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 2rem;
}

.tbo-location-desc {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.625;
}

.tbo-location-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tbo-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tbo-feature-dot {
    width: 4px;
    height: 4px;
    background: #002D5D;
    margin-top: 0.625rem;
    flex-shrink: 0;
}

.tbo-feature-item p {
    color: #374151;
    font-size: 1rem;
}

/* ===== Detail Button ===== */
.tbo-detail-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: #002D5D;
    border: 2px solid #002D5D !important;
    font-size: 0.9375rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.tbo-detail-btn:hover {
    background: #002D5D;
    color: #ffffff;
}

/* ===== Map Section ===== */
.tbo-map-section {
    background: #f9fafb;
    padding: 5rem 1.25rem;
}

.tbo-map-title {
    font-size: 1.875rem;
    color: #002D5D;
    margin-bottom: 3rem;
    text-align: center;
}

.tbo-kakao-map-wrap {
    border: 1px solid #d1d5db;
    margin-bottom: 2rem;
    overflow: hidden;
    background: #f3f4f6;
}

.tbo-kakao-map {
    width: 100%;
    height: 400px;
}

.tbo-map-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tbo-map-btn {
    padding: 1rem 2rem;
    border: 2px solid #d1d5db !important;
    background: #ffffff;
    color: #002D5D;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.tbo-map-btn:hover {
    border-color: #002D5D !important;
}

.tbo-map-btn.tbo-active {
    background: #002D5D;
    color: #ffffff;
    border-color: #002D5D !important;
}

/* ===== Modal ===== */
.tbo-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s;
}

.tbo-modal-overlay.tbo-is-open {
    opacity: 1;
    visibility: visible;
}

.tbo-modal {
    background: #ffffff;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(40px) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tbo-modal-overlay.tbo-is-open .tbo-modal {
    transform: translateY(0) scale(1);
}

.tbo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #002D5D;
    transition: background 0.2s;
}

.tbo-modal-close:hover {
    background: #ffffff;
}

/* Gallery */
.tbo-gallery-main {
    position: relative;
    width: 100%;
    height: 300px;
    background: #f3f4f6;
    overflow: hidden;
}

.tbo-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.tbo-gallery-main-img.tbo-is-switching {
    opacity: 0;
}

.tbo-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    color: #002D5D;
    transition: background 0.2s;
}

.tbo-gallery-arrow:hover {
    background: #ffffff;
}

.tbo-gallery-prev { left: 0.75rem; }
.tbo-gallery-next { right: 0.75rem; }

.tbo-gallery-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 45, 93, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    letter-spacing: 0.05em;
}

.tbo-gallery-thumbs {
    display: flex;
    gap: 2px;
    background: #f3f4f6;
}

.tbo-gallery-thumb {
    flex: 1;
    height: 80px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.tbo-gallery-thumb.tbo-active { opacity: 1; }
.tbo-gallery-thumb:hover { opacity: 0.85; }

.tbo-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbo-gallery-thumb::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #002D5D;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tbo-gallery-thumb.tbo-active::after {
    transform: scaleX(1);
}

/* Modal Info */
.tbo-modal-info {
    padding: 2rem 2.5rem 2.5rem;
}

.tbo-modal-name {
    font-size: 1.5rem;
    color: #002D5D;
    margin-bottom: 1.25rem;
}

.tbo-modal-address-block {
    border-top: 1px solid #d1d5db;
    padding-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.tbo-modal-address-label {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.375rem;
}

.tbo-modal-address {
    font-size: 1rem;
    color: #1f2937;
}

.tbo-modal-desc {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.tbo-modal-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.tbo-modal-features .tbo-feature-item p {
    font-size: 0.9375rem;
}

/* ===== Scroll Animations ===== */
.tbo-wrap [data-tbo-anim] {
    opacity: 0;
    will-change: transform, opacity;
}

.tbo-wrap [data-tbo-anim="fade-up"] {
    transform: translateY(60px);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tbo-wrap [data-tbo-anim="fade-up"].tbo-visible {
    opacity: 1;
    transform: translateY(0);
}

.tbo-wrap [data-tbo-anim="slide-right"] {
    transform: translateX(-80px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tbo-wrap [data-tbo-anim="slide-right"].tbo-visible {
    opacity: 1;
    transform: translateX(0);
}

.tbo-wrap [data-tbo-anim="slide-left"] {
    transform: translateX(80px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tbo-wrap [data-tbo-anim="slide-left"].tbo-visible {
    opacity: 1;
    transform: translateX(0);
}

.tbo-wrap [data-tbo-anim="divider-expand"] {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tbo-wrap [data-tbo-anim="divider-expand"].tbo-visible {
    opacity: 1;
    transform: scaleX(1);
}

.tbo-wrap [data-tbo-anim="stagger"] {
    opacity: 1;
}

.tbo-wrap [data-tbo-anim="stagger"] > .tbo-feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.tbo-wrap [data-tbo-anim="stagger"].tbo-visible > .tbo-feature-item {
    opacity: 1;
    transform: translateY(0);
}

.tbo-wrap [data-tbo-anim].tbo-visible .tbo-location-image {
    animation: tbo-subtle-zoom 12s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tbo-subtle-zoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .tbo-wrap [data-tbo-anim] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .tbo-wrap [data-tbo-anim="stagger"] > .tbo-feature-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===== Responsive (768px+) ===== */
@media (min-width: 768px) {
    .tbo-container {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    .tbo-intro { padding: 8rem 5rem; }
    .tbo-intro-title { font-size: 3rem; }

    .tbo-location-grid { grid-template-columns: 1fr 1fr; }
    .tbo-location-image-box { height: 600px; }
    .tbo-location-text-wrap { padding: 5rem 4rem; }
    .tbo-location-name { font-size: 2.25rem; }
    .tbo-location-address { font-size: 1.125rem; }
    .tbo-location-desc { font-size: 1.125rem; }

    .tbo-order-1 { order: 1; }
    .tbo-order-2 { order: 2; }
    .tbo-order-1-md { order: 1; }
    .tbo-order-2-md { order: 2; }

    .tbo-map-section { padding: 8rem 5rem; }
    .tbo-map-title { font-size: 2.25rem; }
    .tbo-kakao-map { height: 600px; }

    .tbo-gallery-main { height: 480px; }
    .tbo-gallery-thumb { height: 100px; }
    .tbo-modal-info { padding: 2.5rem 3rem 3rem; }
    .tbo-modal-name { font-size: 1.75rem; }
}
