/* =====================================================================
 * [guides] – slider "Hướng dẫn viên" (4 cột, chữ canh giữa). Thẻ dùng chung vehicles.css
 * ===================================================================== */
.gd-slider.ds-slider { --ds-cols: 4; --ds-gap: 16px; }
.gd-card { color: var(--hg-text) !important; text-decoration: none !important; }
.gd-slider .vh-media { aspect-ratio: 16 / 10; }
.gd-slider .vh-media .vh-img { object-position: center 25%; } /* giữ khuôn mặt khi ảnh bị cắt */
.gd-slider .vh-body { align-items: center; padding: 14px 14px 16px; text-align: center; }
.gd-slider .gd-name { display: block; margin: 0 0 2px; color: var(--hg-primary); font-size: 18px; font-weight: 700; line-height: 1.35; }
.gd-role { display: block; margin: 0 0 10px; color: var(--hg-text); font-size: 14px; line-height: 1.4; }
.gd-slider .gd-desc { margin: 0; -webkit-line-clamp: 3; }

@media (max-width: 1099px) { .gd-slider.ds-slider { --ds-cols: 3; } }
@media (max-width: 849px)  { .gd-slider.ds-slider { --ds-cols: 2.2; } }
@media (max-width: 549px)  { .gd-slider.ds-slider { --ds-cols: 1.2; --ds-gap: 12px; } .gd-slider .gd-name { font-size: 16px; } }

/* =====================================================================
 * Popup thông tin hướng dẫn viên (bấm thẻ)
 * ===================================================================== */
.gd-slider [data-gd-pop] { cursor: pointer; }
.gd-slider [data-gd-pop]:focus-visible { outline: 2px solid var(--hg-primary); outline-offset: 3px; }
html.gd-lock { overflow: hidden; }

.gd-modal { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .2s; }
.gd-modal[hidden] { display: none; }
.gd-modal.is-open { opacity: 1; }
.gd-modal-bg { position: absolute; inset: 0; background: color-mix(in srgb, var(--hg-text) 60%, transparent); }
.gd-modal-panel {
	position: relative;
	width: 100%;
	max-width: 920px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: auto;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	transform: translateY(16px) scale(.98);
	transition: transform .25s;
}
.gd-modal.is-open .gd-modal-panel { transform: none; }
.gd-modal .gd-modal-close {
	position: absolute; top: 12px; right: 12px; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; min-height: 0; margin: 0; padding: 0;
	border: 0 !important; border-radius: 50%;
	background: #fff !important; color: var(--hg-text) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15); cursor: pointer;
	transition: transform .2s, color .2s;
}
.gd-modal .gd-modal-close:hover { color: var(--hg-primary) !important; transform: rotate(90deg); }
.gd-modal .gd-modal-close:focus { outline: none; }
.gd-modal .gd-modal-close:focus-visible { outline: 2px solid var(--hg-primary); outline-offset: 2px; }
.gd-modal-close svg { width: 20px; height: 20px; }

.gd-modal-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; padding: 24px; }

/* Ảnh */
.gd-pop-media { display: flex; flex-direction: column; gap: 8px; }
.gd-modal .gd-pop-main,
.gd-modal .gd-pop-thumb {
	position: relative; display: block; width: 100%; min-height: 0; margin: 0; padding: 0;
	border: 0 !important; border-radius: 12px; background: color-mix(in srgb, var(--hg-text) 8%, #fff) !important;
	overflow: hidden; cursor: zoom-in;
}
.gd-modal .gd-pop-main { aspect-ratio: 4 / 5; }
.gd-modal .gd-pop-thumb { aspect-ratio: 1; border-radius: 8px; }
.gd-pop-main img, .gd-pop-thumb img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; margin: 0; object-fit: cover; object-position: center 25%; transition: transform .4s; }
.gd-pop-main:hover img, .gd-pop-thumb:hover img { transform: scale(1.04); }
.gd-pop-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--hg-primary); }
.gd-pop-zoom svg { width: 20px; height: 20px; }
.gd-pop-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gd-pop-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; font-weight: 600; }
.gd-pop-single { width: 100%; height: auto; border-radius: 12px; }

/* Thông tin */
.gd-pop-body { padding: 8px 8px 8px 0; color: var(--hg-text); }
.gd-modal .gd-pop-name { margin: 0 0 4px; padding-right: 40px; color: var(--hg-primary); font-size: 28px; font-weight: 700; line-height: 1.25; }
.gd-pop-role { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--hg-primary) 10%, #fff); color: var(--hg-primary); font-size: 14px; font-weight: 600; }
.gd-pop-meta { margin: 0 0 14px; padding: 0; list-style: none; }
.gd-pop-meta li { margin: 0 0 6px; font-size: 15px; }
.gd-pop-meta b { color: var(--hg-primary); font-weight: 600; }
.gd-pop-content { font-size: 15px; line-height: 1.7; }
.gd-pop-content > :last-child { margin-bottom: 0; }
.gd-pop-content p { margin: 0 0 10px; }
.gd-pop-content ul, .gd-pop-content ol { margin: 0 0 10px 1.2em; padding: 0; }

/* Lightbox ảnh lớn nằm trên popup */
.vl-lightbox { z-index: 100000; }

@media (max-width: 849px) {
	.gd-modal { padding: 12px; }
	.gd-modal-inner { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
	.gd-modal .gd-pop-main { aspect-ratio: 4 / 3; }
	.gd-pop-body { padding: 0; }
	.gd-modal .gd-pop-name { font-size: 24px; }
}
@media (max-width: 549px) {
	.gd-modal { align-items: flex-end; padding: 0; }
	.gd-modal-panel { max-height: 92vh; max-height: 92dvh; border-radius: 16px 16px 0 0; }
	.gd-modal .gd-pop-name { font-size: 22px; }
}
