/** * 
    Visitor Guide frontend styles.
    * Brand accent uses --primary-color from style.css (#EB0303). 
*/

.vg-page { padding: 40px 0px; background: #fff; border-top: 2px solid #696969; min-height: calc(100dvh - 770px); }
.vg-page-title { font-size: 26px; font-weight: 600; color: #000; margin: 0 0 10px; line-height: 1.2; }
.vg-page-subtitle { font-size: 16px; color: #121213; margin: 0; }
.vg-landing-header, .vg-main-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.vg-breadcrumbs { color: #6b6b6b; margin-bottom: 30px; font-family: Roboto; font-weight: 700; font-size: 14px; line-height: 130%; letter-spacing: 0%; }
.vg-breadcrumbs a { color: #000; text-decoration: none; font-weight: 400; font-size: 14px; line-height: 130%; letter-spacing: 0%; }
.vg-breadcrumbs a:hover { color: var(--primary-color); }
.vg-bc-sep { margin: 0 6px; color: #999; }
.vg-bc-current { color: var(--primary-color); font-weight: 600; }

/* Search */
.vg-search { display: flex; align-items: center; overflow: hidden; background: #fff; min-width: 245px; max-width: 245px; flex: 1; border: 0; outline: none; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; font-size: 15px; color: #000; line-height: normal; position: relative; border: 1px solid rgba(0, 0, 0, .5); border-radius: 5px; }
.vg-search input[type="search"] { flex: 1; border: 0; outline: 0; padding: 10px 15px; font-size: 15px; background: transparent; min-width: 0; }
.vg-search-btn { border: 0; background: transparent; color: var(--primary-color); padding: 10px 15px 10px 0px; cursor: pointer; font-size: 16px; }
.vg-search-btn .fa-search { font-weight: 300; }

/* Landing category grid */
.vg-category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.vg-category-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; background: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease; border-radius: 10px; border: 1px solid #B8B8B8; }
.vg-category-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
.vg-category-image { aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.vg-category-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vg-category-label { background: var(--primary-color); color: #fff; text-align: center; padding: 15px 8px; font-weight: 500; font-size: 14px; line-height: 130%; letter-spacing: 0%; }

/* Layout with sidebar */
.vg-layout { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: start; }
.vg-sidebar { border: 1px solid #B8B8B8; border-radius: 6px; overflow: hidden; position: sticky; top: 85px; }
.vg-sidebar-title { text-transform: uppercase; color: #000000; font-weight: 400; font-size: 14px; line-height: 130%; letter-spacing: 0%; padding: 5px; text-align: center; background: #F9F9F9; }
.vg-sidebar-title span { color: var(--primary-color); padding-left: 5px; margin-left: 5px; position: relative; display: none; }
.vg-sidebar-title span:before { content: ''; position: absolute; top: 50%; left: -3px; transform: translateY(-50%); border-radius: 50%; width: 3px; aspect-ratio: 1; background: #000; }
.vg-sidebar-btn { font-size: 16px; font-weight: 600; color: #959595; line-height: 130%; display: none; }
.vg-sidebar-btn:hover { color: #959595; }

.vg-sidebar-list a { display: block; padding: 5px 10px; color: #000000; text-decoration: none; background: #fff; font-weight: 400; font-size: 14px; line-height: 130%; letter-spacing: 0%; border-top: 1px solid #B8B8B8; }
.vg-sidebar-list li.active a, .vg-sidebar-list a:hover { background: var(--primary-color); color: #fff; }

/* Subcategory sections */
.vg-subcategory { margin-bottom: 30px; }
.vg-subcategory-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; }
.vg-subcategory-title { color: #000000; font-weight: 600; font-size: 18px; line-height: 130%; letter-spacing: 0%; }
.vg-subcategory-meta { color: #000000; font-weight: 400; font-size: 13px; line-height: 130%; letter-spacing: 0%; }
.vg-tag-filters { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.vg-tag-pill { background: #fff; color: #444544; border-radius: 999px; padding: 5px 15px; cursor: pointer; border: 1px solid #B8B8B8; font-weight: 400; font-size: 16px; line-height: 130%; letter-spacing: 0%; }
.vg-tag-pill.active, .vg-tag-pill:hover { background: #000; border-color: #000; color: #fff; }
.vg-items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.vg-items-grid.is-loading { opacity: 0.55; pointer-events: none; }
.vg-tag-pill:disabled { opacity: 0.7; cursor: wait; }
.vg-card { display: flex; gap: 15px; align-items: stretch; border: 1px solid #B8B8B8; border-radius: 6px; text-decoration: none; background: #fff; min-height: 100px; transition: border-color 0.15s ease; }
.vg-card:hover { border-color: var(--primary-color); }
.vg-card.is-hidden { display: none; }
.vg-card-thumb { width: 100%; max-width: 100px; aspect-ratio: 1; border-radius: 4px 0px 0px 4px; overflow: hidden; background: #f0f0f0; }
.vg-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vg-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 5px 5px 5px 0px; }
.vg-card-body i { font-weight: 300; }
.vg-card-title { font-size: 14px; font-weight: 600; color: #000000; line-height: 130%; }
.vg-card-address, .vg-card-phone { font-size: 12px; font-weight: 400; display: flex; align-items: flex-start; gap: 6px; line-height: 130%; }
.vg-card-address { color: #000; }
.vg-detail-meta i { font-weight: 400; }
.vg-detail-inner { display: flex; align-items: stretch; gap: 20px; justify-content: space-between; width: 100%; }
.vg-card-phone, .vg-card-phone a, .vg-detail-row.vg-card-phone p { color: var(--primary-color); text-decoration: none; }
.vg-see-all { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 15px; padding: 15px 20px; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 130%; letter-spacing: 0%; }
.vg-see-all:hover { background: var(--primary-color); color: #fff; }
.vg-empty { color: #777; padding: 24px 0; }

/* Detail */
.visitor-detail-wrapper .vg-layout { display: block; margin: 0 auto; max-width: 920px; }
.visitor-detail-wrapper .vg-main-header { margin-bottom: 15px; }
.visitor-detail-wrapper .vg-bc-current { font-weight: 700; font-size: 14px; line-height: 130%; letter-spacing: 0%; color: var(--primary-color); display: flex; gap: 10px; align-items: center; }
.vg-detail { display: flex; align-items: stretch; gap: 15px; }
.vg-detail-topgrid, .vg-detail-map { flex: 1; }
.vg-detail-map-header .vg-subcategory-title { font-weight: 400; font-size: 12px; margin-bottom: 10px; }
.vg-map-frame { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.vg-map-frame iframe { border: 1px solid #B8B8B8; border-radius: 6px; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.vg-detail-hero { margin-bottom: 20px; border-radius: 8px; overflow: hidden; background: #eee; }
.vg-detail-hero img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.vg-detail-meta { display: flex; flex-direction: column; border: 1px solid #B8B8B8; border-radius: 6px; padding: 24px; }
.vg-detail-row:not(:last-child) { padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #B8B8B8; }
.vg-detail-meta .vg-card-address, .vg-detail-meta .vg-card-phone { flex-direction: column; }
.vg-detail-label { font-weight: 400; font-size: 12px; line-height: 130%; letter-spacing: 0%; color: #000; }
.vg-detail-row p { font-weight: 700; font-size: 18px; line-height: 130%; letter-spacing: 0%; color: #000; display: flex; align-items: center; gap: 10px; }
.vg-directions-link { position: relative; padding: 12px 15px; border-radius: 6px; background: #464444; color: #fff; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 12px; line-height: 130%; letter-spacing: 0%; border: 1px solid #464444; min-width: 120px; vertical-align: middle; }
.vg-directions-link:hover { background: #fff; color: #000; }
.vg-directions-link.call-link { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.vg-directions-link i { font-size: 20px; }
.vg-tag-wrapper { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.vg-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.vg-detail-tags li { display: flex; align-items: center; gap: 6px; }
.vg-detail-tags li::before { content: ''; display: block; width: 3px; aspect-ratio: 1; border-radius: 50%; background: #000; }
.vg-tag-wrapper p, .vg-detail-tags li { color: #000; font-weight: 400; font-size: 16px; line-height: 130%; letter-spacing: 0%; position: relative; }
.vg-search-results { margin-bottom: 16px; }

@media (max-width: 1199px) {
    .vg-category-grid { grid-template-columns: repeat(3, 1fr); }
    .vg-items-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .vg-page { min-height: initial; }
    .vg-breadcrumbs { margin-bottom: 10px; }
    .vg-sidebar-title span, .vg-sidebar-btn { display: inline-block; }
    .vg-sidebar-title { font-weight: 600; padding: initial; background: initial; }
    .vg-sidebar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #F9F9F9; border-radius: 6px; }
    .vg-layout { grid-template-columns: 1fr; gap: 20px; }
    .vg-sidebar { order: -1; position: relative; top: initial; overflow: initial; }
    .vg-landing-header, .vg-main-header { margin-bottom: 10px; }
    .vg-sidebar-list { position: absolute; top: 100%; right: 0px; width: 200px; z-index: 9; border: 1px solid #B8B8B8; border-radius: 6px; overflow: hidden; margin-top: 10px; display: none; }
    .vg-sidebar-list li:first-child a { border-top: initial; }
    .vg-category-grid { grid-template-columns: repeat(2, 1fr); }
    .vg-items-grid { grid-template-columns: repeat(2, 1fr); }
    .vg-detail-meta { padding: 16px; }
    .vg-detail { flex-direction: column; }
}

@media (max-width: 575px) {
    .vg-page { padding: 40px 0px 0px; }
    .vg-page-title { font-size: 24px; }
    .vg-category-grid { gap: 16px; }
    .vg-items-grid { grid-template-columns: 1fr; }
    .vg-landing-header, .vg-main-header { flex-direction: column; }
    .vg-search { max-width: none; width: 100%; }
    .vg-detail-row p { gap: 6px; }
    .vg-detail-meta { padding: 0; }
    .vg-detail-row:not(:last-child), .vg-detail-row { padding: 10px; }
    .vg-detail-row:not(:last-child), .vg-detail-row { margin-bottom: 10px; }
    .vg-directions-link i { font-size: 14px; }
    .vg-directions-link { min-width: 110px; }
    .vg-detail-row:not(:last-child), .vg-detail-row { margin-bottom: 10px; gap: inherit; }
    .vg-card { min-height: 70px; padding: 10px; }
    .vg-card-thumb { max-width: 60px; border-radius: 4px; }
    .vg-card-body { gap: 3px; padding: initial; }
}

/* ---------- Public transportation ---------- */
.vg-transport-wrapper { max-width: 1170px; margin: 0 auto; }
.vg-transport-page .vg-transport-header { margin-bottom: 18px; }
.vg-route-cards { display: flex; gap: 12px; overflow-x: auto; margin-bottom: 50px; scrollbar-width: thin; }
.vg-route-card { flex: 0 0 auto; min-width: 180px; display: flex; align-items: center; gap: 15px; padding: 15px 24px; border: 2px solid #d0d0d0; border-radius: 6px; background: #f3f3f3; color: #555; cursor: pointer; text-align: left; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.vg-route-card .vg-route-box { display: flex; align-items: flex-start; gap: 6px; flex-direction: column; }
.vg-route-card.is-active { border-color: var(--primary-color, #EB0303); background: #FFF5F5; color: #111; box-shadow: 0 2px 8px rgba(235, 3, 3, 0.12); }
.vg-route-card:hover { border-color: var(--primary-color, #EB0303); }
.vg-route-card-icon { color: #000; font-size: 46px; }
.vg-route-card-label { font-size: 16px; line-height: 1.3; font-weight: 600; }
.vg-route-badge { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; line-height: 1; flex-shrink: 0; }
.vg-route-badge--bus { background: #EB0303; color: #fff; border-radius: 6px; min-width: 42px; padding: 8px 10px; }
.vg-route-badge--train { background: #ff6a00; color: #fff; border-radius: 50%; width: 36px; height: 36px; }
.vg-transport-detail-head .vg-route-badge--bus { padding: 8px 15px; font-size: 22px; font-weight: 700; }
.vg-route-badge--active.vg-route-badge--train { border-radius: 50%; width: 40px; height: 40px; min-width: 40px; padding: 0; }
.vg-route-card:not(.is-active) .vg-route-badge--bus, .vg-route-card:not(.is-active) .vg-route-badge--train { background: #B8B8B8; }
.vg-route-card:not(.is-active) .vg-route-card-icon { color: #B8B8B8; }
.vg-transport-detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.vg-active-endpoints { font-size: 18px; font-weight: 600; color: #111; }
.vg-direction-toggles { display: flex; margin-bottom: 20px; }
.vg-direction-btn { border: 1px solid #B8B8B8; background: #fff; color: #000; border-radius: 6px; padding: 8px 10px; font-weight: 400; font-size: 12px; cursor: pointer; width: 100%; }
.vg-direction-btn:first-child { border-radius: 6px 0px 0px 6px; border-right: initial; }
.vg-direction-btn:last-child { border-radius: 0px 6px 6px 0px; border-left: initial; }
.vg-direction-btn.is-active { background: #EB0303; color: #fff; border-color: #EB0303; }
.vg-transport-body { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 20px; align-items: stretch; }
.vg-stops-list { list-style: none; margin: 0; padding: 0; max-height: 685px; overflow: auto; }
.vg-stop-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 0px; cursor: pointer; }
.vg-stop-item:before { content: ''; position: absolute; right: 0; bottom: 0; width: calc(100% - 35px); height: 1px; background: #D9D9D9; }
.vg-stop-item:last-child { border-bottom: 0; }
.vg-stop-item:hover { background: #fafafa; }
.vg-stop-item.is-active .vg-stop-num { background: #EB0303; color: #fff; border-color: #EB0303; }
.vg-stop-item.is-active .vg-stop-name { font-weight: 700; }
.vg-stop-num { display: inline-flex; align-items: center; justify-content: center; width: 25px; min-width: 25px; height: 25px; border-radius: 50%; background: #e8e8e8; color: #000; font-weight: 400; font-size: 12px; flex-shrink: 0; border: 1px solid #000; }
.vg-stop-name { font-size: 12px; color: #000; line-height: 1.3; }
.vg-transport-map-wrap { min-height: 360px; border: 1px solid #c5d4f0; border-radius: 8px; overflow: hidden; }
.vg-transport-map { width: 100%; height: 100%; min-height: 360px; background: #eef2f8; }
.vg-map-fallback { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 360px; padding: 20px; color: #666; text-align: center; }
.vg-page button:focus { outline: initial; }

@media (max-width: 1280px) { 
    .vg-route-card { gap: 10px; padding: 10px; }
    .vg-route-card-icon { font-size: 31px; }
    .vg-route-card-label { font-size: 14px; }
}
@media (max-width: 991px) { 
    .vg-transport-body { grid-template-columns: 1fr; }
    .vg-route-card { min-width: initial; }
    .vg-route-card-label { display: none; }
    .vg-route-badge--bus { padding: 8px; font-size: 16px; }
    .vg-route-cards { margin-bottom: 24px; gap: 8px; }
    .vg-route-card-icon { font-size: 25px; }
    .vg-transport-page .vg-transport-header { margin-top: 30px; }
    .vg-transport-detail-head .vg-route-badge--bus { font-size: 20px; }
}