@charset "utf-8";
/* =========================================================================
 * offices.css — OFFICES 지사 상세 (탭 · 지도/정보 · 그날의 공간 스와이프)
 * 시안: 5399:354 (대구 본사 외 5개 지사 공통)
 * ========================================================================= */

/* ===== 지사 안내 섹션 ===== */
.off { padding: 120px 0 0; }

/* 지사 탭 */
.off_tabs {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 30px; width: fit-content; max-width: 100%; margin: 0 auto;
    padding: 12px 50px; border-radius: 50px; background: rgba(193, 204, 210, .1);
}
.off_tab {
    display: inline-flex; align-items: center; gap: 10px; height: 36px;
    font-size: 22px; font-weight: 600; letter-spacing: -0.44px; line-height: 1.5;
    color: rgba(47, 58, 66, .5); white-space: nowrap;
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font-family: inherit;   /* <button> 리셋 */
}
/* 지사 패널(탭 전환) */
.off_panels { position: relative; }
.off_panel { display: block;  border:0px}
.off_panel[hidden] { display: none; }
.off_tab_dot { width: 7px; height: 7px; background: rgba(47, 58, 66, .5); flex: 0 0 auto; }
.off_tab.is-on { color: #2f3a42; }
.off_tab.is-on .off_tab_dot { background: #2f3a42; }
.off_tab:hover { color: #2f3a42; text-decoration: none; }
.off_tab:hover .off_tab_dot { background: #2f3a42; }

/* 지도 + 정보 */
.off_row { display: flex; align-items: flex-start; gap: 80px; margin-top: 60px; }

/* 지도 */
.off_map {
    position: relative; flex: 0 0 760px; width: 760px; height: 550px;
    border-radius: 15px; overflow: hidden;
}
.off_map_img { width: 100%; height: 100%; object-fit: cover; display: block; }
.off_map_ph { display: block; width: 100%; height: 100%; background: #e6eaed; }
.off_map_kakao { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.off_mapbar {
    position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 3;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 0 30px 0 36px;
    background: linear-gradient(90deg, #20262b 0%, #4c5d6a 50%, #7894a8 100%);
}
.off_mapbar_l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.off_tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.8px; white-space: nowrap; }
.off_tel:hover { text-decoration: none; }
.off_tel_ic { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.off_callbtn {
    display: inline-flex; align-items: center; justify-content: center; height: 30px;
    padding: 0 18px; border-radius: 50px; background: rgba(193, 204, 210, .18);
    color: #fff; font-size: 16px; font-weight: 500; letter-spacing: -0.16px; white-space: nowrap;
}
.off_callbtn:hover { background: rgba(255, 255, 255, .25); text-decoration: none; }
.off_mapbar_r { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.off_maplink { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; }
.off_maplink img { width: auto; height: 22px; object-fit: contain; }
/* 네이버 N 아이콘은 viewBox 여백이 커서 더 크게(시안 크기) */
.off_maplink--naver img { height: 33px; }
.off_maplink_div { width: 1px; height: 19px; background: rgba(255, 255, 255, .5); }

/* 정보 */
.off_detail { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.off_ttl { font-size: 35px; font-weight: 600; letter-spacing: -0.7px; line-height: 1.4; color: #111; }
.off_ttl_brand { color: #78838a; }

.off_meta { display: flex; flex-direction: column; gap: 16px; }
.off_line { display: flex; align-items: flex-start; gap: 26px; }
/* 주소·요일 아이콘: 흰색 SVG를 마스크로 재색(어두운 정보 배경에서도 보이도록) */
.off_ic { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 5px; background-color: #2f3a42;
    -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.off_ic--loc { -webkit-mask-image: url("../img/common/ico/location.svg"); mask-image: url("../img/common/ico/location.svg"); }
.off_ic--date { width: 18px; height: 18px; -webkit-mask-image: url("../img/common/ico/date.svg"); mask-image: url("../img/common/ico/date.svg"); }
.off_addr p { font-size: 20px; line-height: 1.5; letter-spacing: -0.8px; color: #222; }
.off_addr_new { font-weight: 500; }
.off_addr_old { font-size: 18px; font-weight: 300; }
.off_hours_bd { display: flex; flex-direction: column; }
.off_hours_time { display: flex; flex-wrap: wrap; gap: 28px; font-size: 20px; line-height: 1.5; letter-spacing: -0.8px; color: #222; }
.off_hours_time span { font-weight: 600; }
.off_hours_note { font-size: 18px; font-weight: 300; line-height: 1.5; letter-spacing: -0.72px; color: #222; }

.off_transit { display: flex; flex-direction: column; gap: 16px; padding-top: 30px; border-top: 1px solid #c0ccd2; }
.off_trans_hd { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.36px; color: #111; }
.off_trans_hd img { width: 24px; height: 24px; object-fit: contain; }
.off_trans_list { padding-left: 27px; }
.off_trans_list li { position: relative; font-size: 18px; font-weight: 300; line-height: 1.5; letter-spacing: -0.36px; color: #111; }
.off_trans_list li::before { content: ''; position: absolute; left: -16px; top: 0.72em; width: 3px; height: 3px; border-radius: 50%; background: #111; }

/* ===== 그날의 공간 (스와이프) ===== */
/* 배경색은 지사별 인라인 스타일(space_bg) — 대구=밝은색, 그 외=브라운(#73634e) */
.off_space { position: relative; overflow: hidden; margin-top: 175px; padding: 127px 0 200px; }   /* 시안 섹션 952 (하단 워터마크 영역 포함) */
.off_space_head { position: relative; z-index: 2; }
.off_space .sec_label { color: #2f3a42; }
.off_space .sec_label .dot { background: #78838a; border-radius: 0; }
.off_space_tit { margin-top: 8px; font-size: 35px; font-weight: 600; letter-spacing: -0.7px; line-height: 1.4; color: #111; }

/* 어두운 배경(브라운) 지사: 흰색 텍스트 테마 */
.off_space--dark .sec_label { color: #fff; }
.off_space--dark .sec_label .dot { background: #fff; }
.off_space--dark .off_space_tit { color: #fff; }
.off_space--dark .off_space_wm { color: rgba(255, 255, 255, .1); }
.off_space--dark .space_card::after { display: none; }

/* 스와이프: 좌측은 inner 위치에서 잘리고(왼쪽 여백엔 안 보임) 우측은 화면 끝까지 풀블리드.
   margin-left(= inner 시작)는 offices.js에서 설정, overflow:hidden 으로 좌측 클립 */
.space_swiper { position: relative; z-index: 2; margin-top: 40px; overflow: hidden; }
.space_swiper .swiper-wrapper { align-items: stretch; }
/* 카드 높이만 고정, 폭은 사진 원본 비율대로(가변) — 세로 사진(로고)이 크롭되지 않도록 */
.space_swiper .swiper-slide.space_card { width: auto; height: 505px; flex-shrink: 0; }
.space_card { position: relative; overflow: hidden; border-radius: 0; }
.space_card img { width: auto; height: 100%; display: block; border-radius: 0; }
.space_card::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .1); pointer-events: none; }

/* 드래그 안내 — 커스텀 커서처럼 마우스를 따라다님(뷰포트 기준 fixed) · 오버 시 표시 · 드래그 중 숨김 */
.space_drag {
    position: fixed; left: -300px; top: -300px; z-index: 50;
    display: flex; align-items: center; justify-content: center; gap: 20px;
    width: 126px; height: 126px; border-radius: 50%; background: rgba(0, 0, 0, .2); color: #fff;
    font-size: 17px; font-weight: 700; pointer-events: none;
    opacity: 0; transform: translate(-50%, -50%); transition: opacity .2s;
}
.space_drag_ar { font-size: 13px; opacity: .9; }
.space_swiper.is-hover .space_drag { opacity: 1; }
.space_swiper.is-grabbing .space_drag { opacity: 0; }

/* 배경 워터마크 (SIMPLE CANDY) */
.off_space_wm {
    position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 0;
    margin: 0; font-family: 'SIMPLECANDY', 'Times New Roman', serif; font-weight: 400;
    font-size: clamp(48px, 9.4vw, 180px); line-height: 1.3; letter-spacing: .02em;
    color: rgba(70, 70, 70, .1); white-space: nowrap; filter: blur(5px);
    pointer-events: none; overflow: hidden; text-overflow: clip; max-width: 100%;
}

/* ========================= 반응형 ========================= */
@media (max-width: 1450px) {
    .off_map { flex-basis: 620px; width: 620px; height: 480px; }
}
@media (max-width: 1200px) {
    .off_row { gap: 50px; }
    .off_map { flex-basis: 520px; width: 520px; height: 440px; }
    .off_ttl, .off_space_tit { font-size: 30px; }
    .space_swiper .swiper-slide.space_card { width: auto; height: 420px; }
}
@media (max-width: 1024px) {
    .off { padding-top: 90px; }
    .off_row { flex-direction: column; align-items: stretch; gap: 40px; }
    .off_map { flex-basis: auto; width: 100%; height: 420px; }
    .off_tabs { gap: 18px; padding: 10px 24px; }
    .off_tab { font-size: 18px; height: 32px; }
    .off_ttl, .off_space_tit { font-size: 26px; }
    .off_addr p, .off_hours_time { font-size: 18px; }
    .off_addr_old, .off_hours_note { font-size: 16px; }
    .off_space { margin-top: 110px; padding: 90px 0 140px; }
    .space_swiper .swiper-slide.space_card { width: auto; height: 380px; }
}
@media (max-width: 768px) {
    .off { padding-top: 70px; }
    .off_tabs { gap: 12px 16px; padding: 10px 18px; }
    .off_tab { font-size: 16px; gap: 8px; height: 28px; }
    .off_tab_dot { width: 6px; height: 6px; }
    .off_map { height: 340px; }
    .off_mapbar { height: 52px; padding: 0 16px 0 20px; }
    .off_tel { font-size: 17px; }
    .off_callbtn { font-size: 14px; height: 28px; padding: 0 14px; }
    .off_detail { gap: 24px; }
    .off_ttl, .off_space_tit { font-size: 22px; }
    .off_addr p, .off_hours_time { font-size: 17px; }
    .off_addr_old, .off_hours_note { font-size: 15px; }
    .off_trans_hd { font-size: 16px; }
    .off_trans_list li { font-size: 16px; }
    .off_line { gap: 16px; }
    .off_transit { padding-top: 24px; }
    .off_space { margin-top: 80px; padding: 64px 0 100px; }
    .space_swiper .swiper-slide.space_card { width: auto; height: 300px; }
    .space_drag { width: 100px; height: 100px; font-size: 15px; gap: 14px; }
}
@media (max-width: 486px) {
    .off_tab { font-size: 14px; }
    .off_tel { font-size: 15px; }
    .off_callbtn { font-size: 13px; }
    .off_ttl, .off_space_tit { font-size: 20px; }
    .off_addr p, .off_hours_time { font-size: 15px; }
    .off_addr_old, .off_hours_note { font-size: 13px; }
    .off_trans_hd { font-size: 15px; }
    .off_trans_list li { font-size: 14px; }
    .off_hours_time { gap: 14px; }
    .off_map { height: 280px; }
    .space_drag { font-size: 14px; }
    .space_swiper .swiper-slide.space_card { width: auto; height: 260px; }
}
@media (max-width: 768px) {
    /* 대구: 원본 종횡비를 유지하면서 첫 카드 + 다음 카드 약 80% 노출 */
    .off_space--daegu .space_swiper .swiper-slide.space_card { height: calc((100vw - 50px) / 2.03); }
}
