/* ===== location 페이지 전용 ===== */

/* Address Card */
.loc-address-card { padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 60px; }
.loc-address-card .loc-address-text { font-size: 2.8rem; font-weight: 800; color: #111; margin: 10px 0 8px; word-break: keep-all; }
.loc-address-card .loc-address-note { font-size: 1.5rem; color: #666; line-height: 1.6; }
.loc-address-note strong { color: var(--theme); font-weight: 700; }

/* Map */
.loc-campus-layout .loc-map-wrap { flex: 0 0 55%; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.loc-campus-layout .loc-map-wrap.loc-map-full { flex: none; width: 100%; }
.loc-campus-layout .loc-map-wrap.map-area { height: 380px; position: relative; }
.loc-map-wrap img.map-img { width: 100%; display: block; }

.map-area { height: 380px; position: relative; }
.marker { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 15px; align-items: center; }
.marker .detail { position: relative; display: flex; gap: 10px; align-items: center; background: #fff; padding: 10px; border-radius: 5px; box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.15); min-width: 290px; }
.marker .detail:after { content: ''; position: absolute; top: calc(100% - 1px); left: 50%; transform: translateX(-50%); border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid #fff; }
.marker .detail .img-area { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; }
.marker .detail .img-area > img { width: 100%; height: 100%; object-fit: cover; }
.marker .detail .txt-area { width: calc(100% - 62px); }
.marker .detail .txt-area .tit { font-size: 1.6rem; padding-bottom: 7px; font-weight: 800; }
.marker .detail .txt-area .navigate-group { display: flex; align-items: center; gap: 15px; }
.marker .detail .txt-area .navigate-group .navigate-link { display: inline-flex; align-items: center; gap: 5px; }
.marker .detail .txt-area .navigate-group .navigate-link:hover { text-decoration: underline; }
.marker .detail .txt-area .navigate-group .navigate-link .arrow { width: 10px; height: auto; }
.marker .detail .txt-area .navigate-group .navigate-link p { font-size: 1.3rem; font-weight: 800; color: #8A8A8A; }


/* Campus layout */
.loc-campus-layout { display: flex; gap: 40px; align-items: flex-start; }
.loc-campus-layout .loc-building-list { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.loc-building-list .loc-building-highlight { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid #e53935; border-radius: 12px; background: #fff8f8; }
.loc-building-highlight .loc-building-info { display: flex; flex-direction: column; gap: 3px; }
.loc-building-info .loc-building-name { font-size: 1.7rem; font-weight: 700; color: #111; }
.loc-building-info .loc-building-sub { font-size: 1.3rem; color: #e53935; }

/* Building number badge */
.loc-num { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 50%; background: #e8edf5; color: #555; font-size: 1.3rem; font-weight: 700; flex-shrink: 0; }
.loc-building-highlight .loc-num-hl { min-width: 32px; height: 32px; background: #e53935; color: #fff; font-size: 1.5rem; }

/* Building cols */
.loc-building-list .loc-building-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.loc-building-col .loc-col-title { font-size: 1.3rem; font-weight: 700; color: #999; letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.loc-building-col ul { display: flex; flex-direction: column; gap: 9px; }
.loc-building-col ul li { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; color: #444; }
.loc-building-col ul li.highlight { font-weight: 700; color: var(--theme); }
.loc-building-col ul li.highlight .loc-num { background: var(--theme); color: #fff; }

/* Gate list */
.loc-building-list .loc-gate-list { display: flex; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.loc-gate-list .loc-gate { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; color: #444; }
.loc-gate .loc-gate-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 1.2rem; font-weight: 700; color: #fff; }
.loc-gate .loc-gate-badge-orange { background: #f5a623; }

/* Subway dots */
.loc-tcard-group .loc-subway-row { display: flex; align-items: flex-start; gap: 8px; }
.loc-subway-row .loc-subway-dots { display: flex; gap: 3px; flex-shrink: 0; margin-top: 7px; }
.loc-subway-dots .loc-subway-dot { width: 13px; height: 13px; border-radius: 50%; }
.loc-subway-dots .loc-subway-dot-orange { background: #f5a623; }
.loc-subway-dots .loc-subway-dot-blue { background: #1a60fc; }

/* Transport cards */
.loc-tcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.loc-tcard-grid .loc-tcard { background: #f8f9fb; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; }
.loc-tcard .loc-tcard-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.loc-tcard .loc-tcard-icon-1 { color: #f5a623; }
.loc-tcard .loc-tcard-icon-2 { color: #33b539; }
.loc-tcard .loc-tcard-icon-3 { color: #29a6cd; }
.loc-tcard .loc-tcard-icon-4 { color: #0087ff; }
.loc-tcard .loc-tcard-title { font-size: 2rem; font-weight: 700; color: #111; margin-bottom: 20px; }
.loc-tcard .loc-tcard-body { display: flex; flex-direction: column; gap: 16px; }
.loc-tcard-body .loc-tcard-group { display: flex; flex-direction: column; gap: 6px; }
.loc-tcard-group .loc-tcard-label { font-size: 1.6rem; font-weight: 700; color: #111; display: flex; align-items: center; gap: 6px; }
.loc-tcard-group .loc-tcard-label::before { content: '■'; font-size: 1rem; color: #f5a623; flex-shrink: 0; }
.loc-tcard-group .loc-tcard-desc { font-size: 1.6rem; color: #444; line-height: 1.7; word-break: keep-all; }
.loc-tcard-desc strong { font-weight: 700; color: #111; }
.loc-tcard-group .loc-tcard-note { font-size: 1.3rem; color: #999; line-height: 1.6; }

.loc-tcard-group .loc-tcard-link { color: var(--theme); font-weight: 600; }
.loc-tcard-group .loc-tcard-link:hover { text-decoration: underline; }
.loc-tcard-grid .loc-tcard:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.loc-tcard-grid .loc-tcard:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.loc-tcard-grid .loc-tcard:nth-child(3) { grid-column: 3; grid-row: 1; }
.loc-tcard-grid .loc-tcard-col3 { grid-column: 3; grid-row: 2; }

/* ===== responsive ===== */
@media (max-width: 1280px) {
	.loc-address-card .loc-address-text { font-size: 2.4rem; }
	.loc-tcard-grid .loc-tcard { padding: 28px 24px; }
}

@media (max-width: 1024px) {
	.loc-campus-layout { flex-direction: column; }
	.loc-campus-layout .loc-map-wrap { flex: none; width: 100%; }
	.loc-campus-layout .loc-map-wrap.map-area { height: 250px;}
	.loc-campus-layout .loc-building-list { width: 100%; }
}

@media (max-width: 900px) {
	.loc-building-col ul { gap: 5px;}
	.loc-gate-list .loc-gate,
	.loc-building-col ul li { font-size: 1.4rem; }
	.loc-gate .loc-gate-badge,
	.loc-num { min-width: 20px; height: 20px; font-size: 1rem; }
	
	.loc-tcard-grid { gap: 15px; }
	.loc-tcard-grid .loc-tcard { padding: 20px; }
	.loc-tcard .loc-tcard-title { display: inline-block; margin-bottom: 0; position: relative; top: -10px; }
	.loc-tcard .loc-tcard-icon { display: inline-block; margin-bottom: 0; }
	.loc-tcard .loc-tcard-body { margin-top: 10px; }
	.loc-tcard-body .loc-tcard-group { gap: 4px;}
	.loc-tcard-group .loc-tcard-label { font-size: 1.4rem; }
	.loc-tcard-group .loc-tcard-desc { font-size: 1.4rem; }
	.loc-subway-dots .loc-subway-dot { width: 9px; height: 9px; }
}

@media (max-width: 768px) {
	.loc-address-card { padding-bottom: 24px; margin-bottom: 40px; }
	.loc-address-card .loc-address-text { font-size: 2rem; margin-top: 0; }
	.loc-tcard-grid { grid-template-columns: 1fr; }
	.loc-tcard-grid .loc-tcard:nth-child(1),
	.loc-tcard-grid .loc-tcard:nth-child(2),
	.loc-tcard-grid .loc-tcard:nth-child(3),
	.loc-tcard-grid .loc-tcard-col3 { grid-column: auto; grid-row: auto; }
	.loc-tcard .loc-tcard-title { font-size: 1.8rem; }
	.loc-tcard-group .loc-tcard-link { display: inline-block; text-align: center; padding: 6px 15px; background: #fff; color: #333; border: 1px solid #b9b9b9; border-radius: 4px; font-size: 1.4rem; font-weight: 600; margin-top: 5px; }
	.loc-tcard-group .loc-tcard-link:hover { text-decoration: none; border-color: #888; }
	.loc-campus-layout .loc-map-wrap { border-radius: 7px; }
	.loc-building-list .loc-building-cols { gap: 16px; }
}

@media (max-width: 480px) {
	.loc-address-card { padding-bottom: 20px; }
	.loc-address-card .loc-address-text { font-size: 1.8rem; }
	.loc-building-list .loc-gate-list { flex-wrap: wrap; gap: 12px; }
	.loc-campus-layout .loc-map-wrap.map-area { height: 180px;}
	.marker .detail .txt-area .tit { font-size: 1.4rem;}
	
	.marker .detail { min-width: 270px;}
	.marker .detail .img-area { width: 45px; height: 45px; }
	.marker .detail .txt-area .navigate-group .navigate-link p { font-size: 1.2rem;}
	
	.loc-tcard-grid { gap: 0; }
	.loc-tcard-grid .loc-tcard { padding: 0; border: 0; background: none; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed var(--line); border-radius: 0; }
	.loc-tcard-grid .loc-tcard:last-child { border-bottom: 0; }
	.loc-tcard .loc-tcard-title { font-size: 1.7rem; }
	.loc-tcard .loc-tcard-body { gap: 10px; }
}
