/* ============================================================
   Golf Course Tabs — golf-tabs.css
   Đặt tại: wp-content/themes/flatsome-child/golf-tabs.css
   ============================================================ */

/* ── Box-sizing reset ── */
.gt-wrap *,
.gt-wrap *::before,
.gt-wrap *::after {
    box-sizing: border-box;
}

/* ── Root wrapper ── */
.gt-wrap {
    font-family: inherit;
    color: #1a1a1a;
    width: 100%;
}

/* ============================================================
   TAB NAVIGATION
   ============================================================ */
.gtp-nav {
    display: flex;
	justify-content: space-between;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #dde3e0;
    margin-top: 30px;
    gap: 0;
    cursor: grab;
    /* Đảm bảo container không block scroll */
    min-width: 0;
    width: 100%;
}

.gtp-nav::-webkit-scrollbar {
    display: none;
}

.gtp-nav:active {
    cursor: grabbing;
}

.gtp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #737373;
    letter-spacing: 0.02em;
    line-height: 1.3;
    transition: color 0.22s ease, border-color 0.22s ease;
    position: relative;
    text-align: left;
    text-transform: unset;
    margin-right: 0px;
    flex-shrink: 0;
	width: 20%;
}

.gtp-btn:hover {
    color: #00793A;
}

.gtp-btn.active {
    color: #00793A;
    border-bottom-color: #00793A;
}

.gt-tab-subtab {
	font-weight: 400
}
.gtp-btn.active .gt-tab-subtab, .gtp-btn:hover .gt-tab-subtab {
	color: #171717
}

/* SVG icon: ẩn khi không active */
.gtp-btn .gt-tab-svg {
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.22s ease;
}

.gtp-btn.active .gt-tab-svg {
    opacity: 1;
}

/* ============================================================
   TAB PANELS
   ============================================================ */
.gtp-panel {
    display: none;
}

.gtp-panel.active {
    display: block;
}



/* ============================================================
   LAYOUT 2 CỘT
   ============================================================ */
.gtp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    min-height: 0;
    height: auto;
}
.gtp-layout:before {
    content: "";
    position: absolute;
    right: -10%;
    width: 80%;
    height: 100%;
    background: url(/wp-content/uploads/2026/06/Mask-group-1.png);
    background-size: contain;
}

@media (max-width: 767px) {
    .gtp-layout {
		position: relative;
        grid-template-columns: 1fr;
        gap: 32px;
		height: auto
    }
}

/* ============================================================
   TEXT PANEL (trái)
   ============================================================ */
.gtp-text {
    padding: 4px 0;
	max-width: 531px;
}
@media (max-width: 767px) {
	.gtp-text {
		max-width: 100%;
	}
}

.gt-title {
    font-size: clamp(20px, 2.8vw, 44px);
    font-weight: 700;
    color: #171717;
}

.gt-subtitle {
    font-size: 15px;
    color: #000;
    margin: 0 0 26px;
    line-height: 1.5;
}

/* ── Info list ── */
.gt-info-list {
	column-count: 2;
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}
.san-tab-panel .gt-info-list {
	column-count: 3;
}

.gt-info-item {
    display: flex;
	flex-direction: column;
    align-items: baseline;
    padding: 11px 0;
	margin: 0 !important;
    font-size: 14px;
    line-height: 1.4;
}

.gt-info-name {
    color: #000;
    flex: 0 0 auto;
    min-width: 150px;
}

.gt-info-value {
    color: #000;
    font-weight: 600;
}

/* ── Buttons ── */
.gt-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.gt-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px;
	padding-left: 18px;
    background: #fff;
    color: #171717;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-radius: 40px;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
	margin-bottom: 0;
	text-transform: math-auto;
}

.gt-btn:hover {
    background: #00793A;
    color: #fff;
}

.gt-btn svg {
    flex-shrink: 0;
    border-radius: 100px;
    background: #F9A341;
    display: flex;
    width: 42px;
    height: 42px;
    padding: 10px;
    justify-content: center;
    align-items: center;
}

/* ============================================================
   IMAGE PANEL (phải)
   ============================================================ */
.gtp-img {
    position: relative;
    border-radius: 4px;
}

.gtp-img > img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* ============================================================
   MAP + PINS
   ============================================================ */
.gt-map-wrap {
    position: relative;
	margin-left: -15px;
    margin-right: 20px;
}

.gt-map-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.gt-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #00793A;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 700;
    box-shadow: 0 0 0 6px rgba(0, 121, 58, 0.20);
    animation: gt-ring-pulse 2s ease-in-out infinite;
    z-index: 2;
    padding: 0;
    line-height: 1;
    letter-spacing: -0.02em;
	margin: 0
}

.gt-pin:hover,
.gt-pin.active {
    background: #005a2b;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4);
}

.gt-pin span {
    pointer-events: none;
}

/* ============================================================
   HOLE SECTION: nav dọc + detail
   ============================================================ */
/* Ẩn bản đồ chính khi đang xem hole detail */
.gt-court-main.gt-hidden {
    display: none;
}

.gt-hole-section {
    display: none;
    flex-direction: row;
    gap: 0;
    padding-top: 0;
    min-height: 300px;
}

.gt-hole-section.open {
    display: flex;
}

/* ── Dãy nút dọc bên trái ── */
.gt-hole-nav {
    display: flex;
    flex-direction: column;
	align-items: center;
    flex-shrink: 0;
    width: 54px;
    padding: 20px 0;
    gap: 20px;
}
.gt-hole-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 60px;
    gap: 20px;
    z-index: 12;
}

@keyframes gt-ring-pulse {
    0%   { box-shadow: 0 0 0 6px #E3E0D2; }
    50%  { box-shadow: 0 0 0 10px rgba(227, 224, 210, 0.3); }
    100% { box-shadow: 0 0 0 6px #E3E0D2; }
}
 
@keyframes gt-ring-pulse-hover {
    0%   { box-shadow: 0 0 0 6px rgba(0, 121, 58, 0.20); }
    50%  { box-shadow: 0 0 0 11px rgba(0, 121, 58, 0.08); }
    100% { box-shadow: 0 0 0 6px rgba(0, 121, 58, 0.20); }
}
 
@keyframes gt-ring-pulse-active {
    0%   { box-shadow: 0 0 0 6px rgba(0, 121, 58, 0.20); }
    50%  { box-shadow: 0 0 0 11px rgba(0, 121, 58, 0.08); }
    100% { box-shadow: 0 0 0 6px rgba(0, 121, 58, 0.20); }
}

.gt-hole-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
	margin-right: 0;
	margin-bottom: 0;
    background: #969383;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 0 6px #E3E0D2;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
    animation: gt-ring-pulse 2.4s ease-in-out infinite;
    position: relative;
    z-index: 1;
	pointer-events: all;
}
 
.gt-hole-nav-btn:hover {
    background: #00793A;
    transform: scale(1.08);
	box-shadow: 0 0 0 6px rgba(0, 121, 58, 0.20);
	animation: gt-ring-pulse-hover 2s ease-in-out infinite;
}
 
.gt-hole-nav-btn.active {
    background: #00793A;
    box-shadow: 0 0 0 6px rgba(0, 121, 58, 0.20);
    animation: gt-ring-pulse-active 2s ease-in-out infinite;
    z-index: 2;
}
 
/* Nút X quay về bản đồ */
.gt-hole-nav-close {
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    background: #00793A;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 40;
    color: #fff;
    text-align: center;
    margin: 0;
    transition: color 0.18s, background 0.18s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
	box-shadow: 0 0 0 6px rgba(0, 121, 58, 0.0);
	z-index: 1;
	pointer-events: all;
}
 
.gt-hole-nav-close:hover {
    transform: scale(1.08);
}


/* ── Vùng nội dung detail bên phải ── */
.gt-hole-detail-wrap {
    flex: 1;
    min-width: 0;
    padding: 28px 36px 28px 0;
}

.gt-hole-detail {
    
}

@media (max-width: 767px) {
    .gt-hole-section {
        flex-direction: column;
    }

    .gt-hole-nav {
		position: relative;
        flex-direction: row;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e8e4;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 4px 8px;
        gap: 4px;
    }

	.gt-hole-nav-list {
		flex-direction: row;
		width: 100%;
		flex-wrap: wrap;
	}

    .gt-hole-nav::-webkit-scrollbar { display: none; }

    .gt-hole-nav-close {
        width: auto;
        padding: 8px 12px;
        border-top: none;
        border-left: 1px solid #e0e8e4;
        border-right: 3px solid transparent;
        border-bottom: 3px solid transparent;
        margin-top: 0;
        margin-left: auto;
        flex-shrink: 0;
        font-size: 15px;
    }

    .gt-hole-nav-btn {
        flex-shrink: 0;
        width: auto;
        padding: 8px 12px;
        border-right: none;
        border-bottom: 3px solid transparent;
        border-radius: 3px 3px 0 0;
        margin-right: 0;
        margin-bottom: -1px;
        white-space: nowrap;
    }

    .gt-hole-nav-btn.active {
        border-right-color: transparent;
        border-bottom-color: #00793A;
    }

    .gt-hole-detail-wrap {
        padding: 24px 0 0 0;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .gtp-nav {
        gap: 0;
        overflow-x: auto;
        flex-wrap: wrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
		border: 0
    }
    .gtp-nav::-webkit-scrollbar { display: none; }

    .gtp-btn {
        font-size: 13px;
        padding: 0 16px 0 5px;
        white-space: nowrap;
		width:50%;
    }
	.gtp-nav .gtp-btn:first-child {
		width: 100%;
	}

    .gtp-btn .gt-tab-svg {
        width: 20px
    }
	.gtp-btn.active {
		font-size: 16px;
	}

    .gt-info-name {
        min-width: 120px;
    }

    .gt-pin {
        width: 30px;
        height: 30px;
        font-size: 9px;
    }
}

/* ============================================================
   FANCYBOX OVERRIDES
   ============================================================ */

/* Nút video dùng thẻ <a> nhưng giữ style như button */
a.gt-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px;
	padding-left: 18px;
    background: #fff;
    color: #171717;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-radius: 40px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
	text-transform: math-auto;
}

a.gt-btn:hover {
    background: #00793A;
    color: #fff;
}

/* Ẩn các thẻ <a> gallery ẩn nhưng vẫn có trong DOM cho Fancybox */
.gt-fancybox-item {
    display: none !important;
}

/* Fancybox toolbar màu xanh golf */
.fancybox__toolbar {
    --fancybox-accent-color: #00793A;
}

/* ============================================================
   MASTER PIC — dùng cấu trúc HTML gốc tansonnhatgolf.vn
   ============================================================ */
#master {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    display: block;
    line-height: 0;
}

#master > img#golf-map {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    position: relative;
    z-index: 1;
    transition: opacity 0.25s ease;
}

/* Block area overlay */
#master .block-area {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 2 !important;
    display: block;
    pointer-events: all;
}

/* Info block */
#master .info-block {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 3 !important;
}

/* Area name labels */
#master .area-name {
    position: absolute !important;
    background-color: #006f37;
    border-radius: 10px;
    box-shadow: 3px 3px 0 rgba(0,0,0,.2);
    pointer-events: all;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 4;
    opacity: 1 !important;
    transform: scale(1);
    cursor: pointer;
}

#master .area-name a {
    display: block;
    text-decoration: none;
    padding: 0;
    cursor: pointer;
}

#master .area-name h3 {
    padding: 7px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #fff !important;
    text-align: center !important;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0 !important;
}

#master .area-name h3 strong {
    font-weight: 900 !important;
}

#master .area-name .num { display: none !important; }

#master .area-name span.shape {
    display: block;
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #006f37;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: none !important;
}

#master .area-name.area-02 span.shape {
    left: auto; right: 14px; transform: none;
}

#master .area-name.area-03 span.shape {
    bottom: auto; top: -10px;
    left: 50%; transform: translateX(-50%) rotate(180deg);
}

/* Vị trí % */
#master .area-01 { top: 0%;  left: 45%; }
#master .area-02 { top: 52%; left: 17%; }
#master .area-03 { top: 84%; left: 49%; }
#master .area-04 { top: 45%; left: 75%; }

@media (max-width: 767px) {
    #master .area-name h3 { font-size: 10px !important; padding: 5px 10px !important; }
}

/* ── SVG overlay bắt click trên master map ── */
#master {
    position: relative;
    display: block;
    line-height: 0;
}

#master > img#golf-map {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    transition: opacity 0.25s ease;
}

.gt-master-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* trên ảnh và map */
    cursor: pointer;
}

.gt-zone {
    fill: transparent;
    cursor: pointer;
}

/* fill cần có giá trị (dù trong suốt) để pointer-events hoạt động */
.gt-zone:hover {
    fill: rgba(255, 255, 255, 0.01);
}

/* ============================================================
   TABLET (768px – 1024px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {

    /* ── Tab navigation ── */
    .gtp-nav {
        margin-top: 20px;
    }
    .gtp-btn {
        font-size: 15px;
        margin-right: 16px;
    }
    .gtp-btn .gt-tab-svg {
        width: 26px;
    }

    /* ── Layout 2 cột: thu hẹp khoảng cách ── */
    .gtp-layout {
        gap: 22px;
		    grid-template-columns: 1fr;
    }
    /* Giảm mask trang trí để không tràn ── */
    .gtp-layout:before {
        right: -6%;
        width: 60%;
        opacity: 0.6;
    }

    /* ── Text panel ── */
    .gtp-text {
        max-width: 100%;
    }
    .gt-title {
        font-size: clamp(20px, 3.4vw, 32px);
    }
    .gt-subtitle {
        margin-bottom: 20px;
    }

    /* ── Info list: bớt cột cho dễ đọc ── */
    .gt-info-list {
        column-count: 2;
        margin-bottom: 24px;
    }
    .san-tab-panel .gt-info-list {
        column-count: 2;       /* giảm từ 3 → 2 */
    }
    .gt-info-name {
        min-width: 130px;
    }

    /* ── Buttons ── */
    .gt-btn,
    a.gt-btn {
        font-size: 15px;
        padding-left: 16px;
    }
    .gt-btn svg {
        width: 38px;
        height: 38px;
        padding: 9px;
    }

    /* ── Map pins ── */
    .gt-pin {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    /* ── Hole section: giữ layout ngang, thu gọn nav dọc ── */
    .gt-hole-section {
        min-height: 260px;
    }
    .gt-hole-nav,
    .gt-hole-nav-list {
        width: 50px;
		        justify-content: center;
    }
    .gt-hole-detail-wrap {
        padding: 24px 20px 24px 0;
    }

    /* ── Master map: thu nhỏ label khu vực ── */
    #master .area-name h3 {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}

/* ── Nút quay lại tổng thể sân golf ── */
.gt-back-overview {
	position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px;
    padding: 7px 14px 7px 10px;
    background: rgba(0, 121, 58, 0.08);
    border: 1px solid rgba(0, 121, 58, 0.25);
    border-radius: 100px;
    color: #00793A;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}
 
.gt-back-overview:hover {
    background: rgba(0, 121, 58, 0.15);
    border-color: #00793A;
}
 
.gt-back-overview svg {
    flex-shrink: 0;
}

@media(max-width: 767px){
	#gt-main-a .gt-back-overview {
		top: -25px
	}
	#gt-main-b .gt-back-overview {
		top: -40px
	}
}