/* ==========================================================
   Các trang con: Về chúng tôi, Shop, PPF, Đại lý, Dự án, Tin tức, Liên hệ
   ========================================================== */

/* ---------- Dùng chung ---------- */
.button.is-round { border-radius: 22px; padding: 5px 25px; }
.button.is-underline { background: transparent; color: var(--primary); border: 0; position: relative; }
.button.is-underline::before { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: currentColor; opacity: .3; transition: all .3s; }
.button.is-underline:hover { box-shadow: 0 1px 3px -2px rgb(0 0 0 / .12), 0 1px 2px rgb(0 0 0 / .24); color: var(--primary); }
.button.is-underline:hover::before { left: 0; right: 0; opacity: 1; }
.lead { font-size: 1.3em; }
.narrow { max-width: 810px; margin: 0 auto; }
.wide-row { max-width: 1400px !important; }
.section-heading { text-align: center; color: var(--primary); font-size: 2.4em; margin-bottom: 1em; }

.page-hero { display: flex; align-items: center; min-height: 600px; padding: 30px 0; overflow: hidden; }
.page-hero .container { width: 100%; }
.page-hero .section-bg img { will-change: transform; }
.hero-inner { max-width: 810px; margin: 0 auto; }
.hero-inner > * { animation: heroUp .9s both; }
.hero-inner > :nth-child(2) { animation-delay: .15s; }
.hero-inner > :nth-child(3) { animation-delay: .3s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (max-width: 549px) { .page-hero { min-height: 500px; } }

/* Ảnh tỉ lệ cố định, phóng nhẹ khi rê chuột */
.ratio-banner, .image-zoom { position: relative; overflow: hidden; }
.ratio-banner { padding-top: 300px; }
@media (min-width: 850px) { .ratio-banner { padding-top: 70%; } }
.ratio-banner img, .image-zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.image-zoom { padding-top: 56.25%; }
.has-hover:hover .ratio-banner img, .ratio-banner:hover img, .has-hover:hover .image-zoom img { transform: scale(1.1); }

/* Hiệu ứng bounceInUp khi cuộn tới */
.animate-up { opacity: 0; transform: translateY(60px); transition: opacity .6s, transform .9s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.animate-up.in-view { opacity: 1; transform: none; }
.col:nth-child(3n+2) > .animate-up { transition-delay: .1s; }
.col:nth-child(3n+3) > .animate-up { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .animate-up { opacity: 1; transform: none; } }

/* Phân trang (Flatsome nav-pagination) */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 30px; }
.pagination:empty { display: none; }
.pagination button {
  min-width: 2.25em; height: 2.25em; padding: 0 .4em; border-radius: 99px; border: 2px solid #999; background: transparent;
  color: #777; font-weight: 700; font-size: 1em; line-height: 1; transition: all .3s;
}
.pagination button:hover, .pagination button.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination button.current { cursor: default; }

/* ============================ VỀ CHÚNG TÔI ============================ */
.about-hero .section-bg-overlay { background: rgba(0,0,0,.5); }
@media (max-width: 849px) { .about-hero .section-bg-overlay { background: rgba(0,0,0,.25); } }
.hero-title { font-family: "NaceraBoldItalic", "Roboto Condensed", sans-serif; font-size: 4.4em; line-height: 1.05; margin-bottom: .3em; color: #fff; }
@media (max-width: 849px) { .hero-title { font-size: 2.8em; } }
@media (max-width: 549px) { .hero-title { font-size: 2.1em; } }
.about-intro { padding: 110px 0 80px; }
.about-h2 { font-size: 2.4em; color: #555; }
.about-vision { padding: 0 0 100px; }
.vision-text { font-size: 1.2rem; }
.vision-text h3 { font-size: 2em; color: #555; }
@media (min-width: 850px) {
  .vision-text { padding: 0 50px; }
}
@media (max-width: 849px) { .order-2-medium { order: 2; } }
.about-series { padding: 30px 0; background: #fff; }
.about-series .icon-box h4, .about-series .icon-box p { color: #fff; }
.about-series .icon-box p { font-size: 1rem; }
.about-series .row-divided > .col + .col { border-color: rgba(255,255,255,.2); }
.about-features { padding: 180px 0 30px; }
@media (min-width: 850px) { .about-features { padding-bottom: 100px; } }
.feature-box .box-text { padding: 1.5em 0 0; font-size: 1.1rem; }
.feature-box h3 { font-size: 1.8em; color: #555; margin-bottom: .6em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; margin-top: 1em; }
.stat h3 { font-size: 2.6em; color: var(--primary); margin: 0; }
.stat p { color: var(--primary); margin-bottom: 1.2em; }
.support-cta { display: flex; align-items: center; min-height: 400px; padding: 60px 0; overflow: hidden; }
.support-cta .container { width: 100%; }
.support-cta .section-bg-overlay { background: rgba(0,0,0,.233); }
.support-title { font-size: 2.2em; color: #fff; }
@media (max-width: 549px) { .support-cta { min-height: 300px; } }

/* ============================ SHOP ============================ */
.featured-title { position: relative; background: var(--primary); text-shadow: 1px 1px 1px rgba(0,0,0,.2); }
.page-title-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-height: 60px; padding-top: 20px; padding-bottom: 20px; }
.breadcrumbs { text-transform: uppercase; font-size: 1.15em; font-weight: 700; letter-spacing: 0; color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.7); font-weight: 400; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .divider { opacity: .35; margin: 0 .3em; font-weight: 300; }
.breadcrumbs .current-crumb { color: #fff; }
.filter-button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; text-transform: uppercase; padding: 4px 0; margin-top: 4px; font-size: .9em; }
.filter-icon { width: 14px; height: 10px; border-top: 2px solid; border-bottom: 2px solid; position: relative; }
.filter-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid; }
.orderby {
  height: 2.4em; min-width: 240px; padding: 0 2em 0 .8em; border-radius: 99px; border: 0; font: inherit; font-size: .9em;
  background: rgba(255,255,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right .8em center;
  color: #fff; appearance: none; cursor: pointer;
}
.orderby option { color: #333; }
@media (max-width: 849px) { .page-title-inner { flex-direction: column; text-align: center; } .title-left { display: flex; flex-direction: column; align-items: center; } }

.shop-main { padding: 30px 0 30px; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 19.6px; }
@media (max-width: 549px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0 12px; } }
.product-col { padding-bottom: 20px; }
.product-col[hidden] { display: none; }
.product-small .box-image { position: relative; overflow: hidden; background: #f7f7f7; }
.product-small .box-image > a { display: block; position: relative; }
.product-small .box-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.product-small .back-image { position: absolute; inset: 0; opacity: 0 !important; transition: opacity .5s; }
.product-small:hover .back-image { opacity: 1 !important; }
.quick-view {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 0; border: 0;
  background: hsl(0 0% 100% / .9); color: #333; font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  transform: translateY(100%); transition: transform .3s, background .3s;
}
.product-small:hover .quick-view { transform: none; }
.quick-view:hover { background: var(--primary); color: #fff; }
@media (hover: none), (max-width: 549px) { .quick-view { display: none; } }
.box-text-products { padding: .7em 0 1.4em; text-align: center; }
.product-cat { font-size: .75em; text-transform: uppercase; opacity: .7; margin: 0 0 .1em; letter-spacing: .02em; }
.product-title { margin: 0 0 .4em; font-size: .95em; line-height: 1.3; }
.product-title a { color: #334862; }
.product-title a:hover { color: #000; }
.price { color: #111; font-weight: 700; font-size: .95em; }
.price .amount { white-space: nowrap; }
.no-products { text-align: center; padding: 40px 0; }

/* Sidebar lọc */
.shop-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; z-index: 1043; background: #fff;
  padding: 30px 20px; transform: translateX(-100%); transition: transform .3s var(--ease); overflow-y: auto; box-shadow: 2px 0 15px rgba(0,0,0,.2);
}
.shop-filter-open .shop-sidebar { transform: none; }
.shop-filter-open .shop-overlay { opacity: .6; visibility: visible; }
.shop-filter-open { overflow: hidden; }
.sidebar-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 30px; color: #999; line-height: 1; }
.widget-title { font-weight: 700; text-transform: uppercase; font-size: 1em; letter-spacing: .05em; color: #555; }
.product-categories li { border-top: 1px solid #ececec; }
.product-categories li:first-child { border-top: 0; }
.product-categories a { display: block; padding: 8px 0; color: #666; font-size: .95em; }
.product-categories a:hover, .product-categories a.active { color: var(--primary); font-weight: 700; }

/* Hộp thoại xem nhanh */
.quick-view-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; }
.quick-view-modal.open { visibility: visible; }
.qv-backdrop { position: absolute; inset: 0; background: #0b0b0b; opacity: 0; transition: opacity .3s; }
.quick-view-modal.open .qv-backdrop { opacity: .8; }
.qv-box {
  position: relative; display: flex; width: 100%; max-width: 900px; max-height: 90vh; overflow: auto; background: #fff;
  box-shadow: 0 30px 40px rgb(0 0 0 / .3); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s;
}
.quick-view-modal.open .qv-box { opacity: 1; transform: none; }
.qv-close { position: absolute; top: 5px; right: 10px; z-index: 2; background: none; border: 0; font-size: 34px; color: #999; line-height: 1; }
.qv-close:hover { color: #111; }
.qv-image { flex: 0 0 50%; background: #f7f7f7; }
.qv-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.qv-info { flex: 1; padding: 30px; }
.qv-title { font-size: 1.6em; color: #555; margin-bottom: .2em; }
.qv-price { font-size: 1.3em; margin-bottom: .8em; }
.qv-desc { font-size: .95em; white-space: pre-line; }
.qv-variation label { display: block; font-weight: 700; font-size: .9em; margin-bottom: .4em; color: #222; }
.qv-variation select { width: 100%; height: 2.5em; border: 1px solid #ddd; border-radius: 5px; padding: 0 .75em; font: inherit; box-shadow: inset 0 1px 2px rgba(0,0,0,.1); }
.qv-var-price { margin: .6em 0 1.2em; font-weight: 700; color: var(--primary); font-size: 1.2em; min-height: 1.4em; }
.qv-variation[hidden] { display: none; }
@media (max-width: 649px) { .qv-box { flex-direction: column; } .qv-image { flex-basis: auto; } .qv-info { padding: 20px; } }

/* ============================ PPF ============================ */
.ppf-hero .section-bg-overlay { background: rgba(0,0,0,.15); }
.ppf-title { font-size: 3.4em; color: #fff; text-shadow: 1px 1px 10px rgba(0,0,0,.3); }
.ppf-sub { font-size: 1.35rem; }
@media (max-width: 549px) { .ppf-title { font-size: 2.3em; } }
.scroll-for-more {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5;
  background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; animation: bounceArrow 2s infinite; opacity: .9;
}
@keyframes bounceArrow { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -14px); } 60% { transform: translate(-50%, -7px); } }
.ppf-benefits { background: rgb(250,250,250); }
.ppf-benefits .section-heading { font-size: 2.5em; }
@media (max-width: 549px) { .ppf-benefits .section-heading { font-size: 1.7em; } }
.benefit-card { padding: 40px; background: #fff; border-radius: 20px; text-align: center; height: 100%; transition: box-shadow .3s, transform .3s; }
.benefit-card:hover { box-shadow: 0 3px 6px -4px rgb(0 0 0 / .16), 0 3px 6px rgb(0 0 0 / .23); }
.benefit-icon { width: 48px; height: 48px; margin: 0 auto 1em; color: var(--primary); }
.benefit-icon svg { width: 100%; height: 100%; fill: currentColor; }
.benefit-icon img { width: 100%; height: 100%; object-fit: contain; }
.benefit-card h3 { font-size: 1.25em; color: #555; }
.benefit-card p { font-size: .9em; margin: 0; }
.ppf-pricing { padding: 30px 0; }
.ppf-legend h4 { font-size: 1.4rem; padding-top: 18px; }
.ppf-legend p { font-size: 1.4rem; }
.ppf-line { margin: 0 15px; padding: 20px 0 1px; border-bottom: 1px solid #e4e4e4; text-align: center; font-size: 1.4rem; }
.ppf-card .price-head { border-bottom-color: rgb(227,227,227); }
.ppf-card .price-head h6 { font-size: 1.4rem; }
.ppf-card .price-foot { padding-top: 25px; }
.show-for-medium-only { display: none; }
@media (max-width: 849px) { .show-for-medium-only { display: inline; font-size: .8em; font-weight: 400; } }
.ppf-specs { padding: 30px 0; }
.specs-title { font-size: 2.1em; color: var(--primary); margin-bottom: 1.2em; }
.spec-list { margin: 0; text-align: left; }
.spec-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 2px solid rgb(0 0 0 / .1); transition: background .3s; }
.spec-list > div:hover { background: rgb(132 78 159 / .05); }
.spec-list dt, .spec-list dd { margin: 0; font-family: "Roboto Condensed", sans-serif; font-weight: 700; color: #555; font-size: 1.05em; }
.spec-list dd { text-align: right; white-space: nowrap; color: var(--primary); }
.ppf-commit { padding: 80px 0; }
.ppf-commit .section-bg-overlay { background: rgba(0,0,0,.267); }
.commit-inner { font-size: 1.2rem; max-width: 900px; margin: 0 auto; }
.commit-inner h1 { font-size: 2.2em; }
@media (max-width: 549px) { .ppf-commit { padding: 100px 0; } .commit-inner h1 { font-size: 1.6em; } }
.ppf-question { padding: 80px 0; }
.question-box { background: #273647; border-radius: 20px; padding: 40px; margin-top: 40px; font-size: 1.35rem; }
.question-box h3 { font-size: 1.6em; }
.question-box .button { padding: 10px 30px; margin: 0; }

/* ============================ ĐẠI LÝ (kiểu Google Maps) ============================ */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gmap {
  --gm-blue: #1a73e8; --gm-text: #202124; --gm-sub: #70757a; --gm-line: #e8eaed;
  --gm-shadow: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
  position: relative; height: calc(100vh - 113px); min-height: 560px; overflow: hidden; background: #e5e3df;
  font-family: Roboto, Arial, sans-serif; color: var(--gm-text);
}
.gm-canvas { position: absolute; inset: 0; z-index: 1; }
.gm-canvas .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75); }
.gm-map-error { padding: 20px; }
.gmap svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }

/* Panel trái */
.gm-panel {
  position: absolute; z-index: 5; top: 0; left: 0; bottom: 0; width: 408px;
  display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.2);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.panel-collapsed .gm-panel { transform: translateX(-100%); }
.gm-sheet-handle { display: none; }

.gm-search {
  position: relative; display: flex; align-items: center; margin: 12px 16px 0; height: 48px; border-radius: 24px;
  background: #fff; box-shadow: var(--gm-shadow); padding: 0 6px 0 16px; transition: box-shadow .2s;
}
.gm-search:focus-within { box-shadow: 0 2px 4px rgba(60,64,67,.3), 0 4px 12px 4px rgba(60,64,67,.15); }
.gm-search-ico { color: var(--gm-sub); margin-right: 10px; }
.gm-search input { flex: 1; border: 0; outline: 0; font: 400 15px/1 Roboto, Arial, sans-serif; color: var(--gm-text); background: transparent; min-width: 0; height: 100%; }
.gm-search input::-webkit-search-cancel-button { display: none; }
.gm-clear { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--gm-sub); display: flex; align-items: center; justify-content: center; }
.gm-clear:hover { background: #f1f3f4; }
.gm-clear[hidden] { display: none; }

.gm-chips { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--gm-line); flex-shrink: 0; }
.gm-chips::-webkit-scrollbar { display: none; }
.gm-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; flex-shrink: 0;
  border: 1px solid #dadce0; border-radius: 16px; background: #fff; color: #3c4043; font: 500 13px/1 Roboto, Arial, sans-serif;
  cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap;
}
.gm-chip svg { width: 18px; height: 18px; }
.gm-chip:hover { background: #f1f3f4; }
.gm-chip.is-on { background: #e8f0fe; border-color: #e8f0fe; color: #1967d2; }
.gm-select { padding: 0 4px 0 12px; position: relative; }
.gm-select select { border: 0; background: transparent; font: inherit; color: inherit; height: 30px; padding-right: 4px; cursor: pointer; outline: 0; max-width: 150px; }
.gm-select:has(select:disabled) { opacity: .5; cursor: default; }

.gm-view { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.gm-view[hidden] { display: none; }
.gm-list-head { padding: 14px 24px 6px; font-size: 13px; color: var(--gm-sub); }
.gm-list-head:empty { display: none; }
.gm-item { display: flex; gap: 12px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--gm-line); cursor: pointer; outline: 0; position: relative; transition: background .15s; }
.gm-item:hover, .gm-item:focus-visible { background: #f8f9fa; }
.gm-item.is-active { background: #e8f0fe; }
.gm-item.is-active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gm-blue); }
.gm-item-main { flex: 1; min-width: 0; }
.gm-item-name { font: 500 16px/1.35 "Google Sans", Roboto, Arial, sans-serif; color: var(--gm-text); margin-bottom: 2px; }
.gm-item-meta, .gm-item-addr, .gm-item-phone { font-size: 14px; line-height: 20px; color: var(--gm-sub); }
.gm-item-phone { color: #188038; }
.gm-item-dir { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; flex-shrink: 0; color: var(--gm-blue); font-size: 12px; font-weight: 500; align-self: center; text-decoration: none; }
.gm-item-dir svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #fff; border: 1px solid #dadce0; transition: background .15s; }
.gm-item-dir:hover { color: var(--gm-blue); }
.gm-item-dir:hover svg { background: #e8f0fe; }
.gm-empty { padding: 32px 24px; text-align: center; color: var(--gm-sub); font-size: 14px; }
.gm-empty strong { display: block; color: var(--gm-text); font-size: 16px; margin-bottom: 6px; }

/* Thẻ chi tiết */
.gm-panel.is-detail .gm-search, .gm-panel.is-detail .gm-chips { display: none; }
.gm-hero {
  position: relative; height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, #4a1a63 0%, #844e9f 55%, #a8509f 100%); overflow: hidden;
}
.gm-hero::after { content: ""; position: absolute; inset: 0; background: url(../images/Nacera-Car-14-1400x554.webp) center/cover; opacity: .18; mix-blend-mode: screen; }
.gm-hero-logo { width: 190px; position: relative; z-index: 1; }
.gm-hero-tag { position: relative; z-index: 1; color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; padding: 3px 10px; }
.gm-back {
  position: absolute; top: 12px; left: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; color: var(--gm-text); box-shadow: var(--gm-shadow); display: flex; align-items: center; justify-content: center;
}
.gm-back:hover { background: #f1f3f4; }
.gm-detail-body { padding: 18px 0 24px; }
.gm-name { font: 400 22px/28px "Google Sans", Roboto, Arial, sans-serif; color: var(--gm-text); margin: 0 24px 4px; }
.gm-type { margin: 0 24px 16px; font-size: 14px; color: var(--gm-sub); }
.gm-actions { display: flex; justify-content: space-around; padding: 4px 12px 16px; border-bottom: 1px solid var(--gm-line); }
.gm-action { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; border: 0; background: none; padding: 0; color: var(--gm-blue); font: 500 12px/1.2 Roboto, Arial, sans-serif; cursor: pointer; text-decoration: none; text-align: center; }
.gm-action-ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #dadce0; display: flex; align-items: center; justify-content: center; background: #fff; transition: background .15s; }
.gm-action-ico svg { width: 20px; height: 20px; }
.gm-action:hover { color: var(--gm-blue); }
.gm-action:hover .gm-action-ico { background: #e8f0fe; }
.gm-action.is-primary .gm-action-ico { background: var(--gm-blue); border-color: var(--gm-blue); color: #fff; }
.gm-action.is-primary:hover .gm-action-ico { background: #1765cc; }
.gm-info { list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--gm-line); }
.gm-info li { display: flex; align-items: center; gap: 22px; padding: 10px 16px 10px 24px; font-size: 14px; line-height: 20px; color: var(--gm-text); }
.gm-info li:hover { background: #f8f9fa; }
.gm-info li > svg { color: var(--gm-blue); width: 22px; height: 22px; }
.gm-info .gm-info-text { flex: 1; }
.gm-info a { color: var(--gm-blue); }
.gm-copy { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--gm-sub); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.gm-copy svg { width: 18px; height: 18px; }
.gm-info li:hover .gm-copy, .gm-copy:focus { opacity: 1; }
.gm-copy:hover { background: #e8eaed; }
@media (hover: none) { .gm-copy { opacity: 1; } }
.gm-open-big { display: block; margin: 20px 24px 0; padding: 10px; text-align: center; border: 1px solid #dadce0; border-radius: 20px; color: var(--gm-blue); font-weight: 500; font-size: 14px; }
.gm-open-big:hover { background: #f8f9fa; color: var(--gm-blue); }

/* Nút thu gọn panel */
.gm-collapse {
  position: absolute; z-index: 6; top: 50%; left: 408px; transform: translateY(-50%); width: 23px; height: 48px; padding: 0;
  border: 0; border-left: 1px solid #dadce0; border-radius: 0 8px 8px 0; background: #fff; color: var(--gm-sub); box-shadow: 0 1px 4px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center; transition: left .3s cubic-bezier(.4,0,.2,1);
}
.gm-collapse svg { width: 20px; height: 20px; transition: transform .3s; }
.panel-collapsed .gm-collapse { left: 0; }
.panel-collapsed .gm-collapse svg { transform: rotate(180deg); }

/* Điều khiển bản đồ */
.gm-controls { position: absolute; z-index: 4; right: 12px; bottom: 140px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gm-ctrl { width: 40px; height: 40px; border: 0; background: #fff; color: #666; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.gm-ctrl:hover { color: #333; background: #f8f9fa; }
.gm-ctrl svg { width: 22px; height: 22px; }
.gm-locate { border-radius: 8px; box-shadow: var(--gm-shadow); }
.gm-zoom { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: var(--gm-shadow); }
.gm-zoom .gm-ctrl + .gm-ctrl { border-top: 1px solid #e6e6e6; }
.gm-layer {
  position: absolute; z-index: 4; left: 432px; bottom: 28px; width: 76px; height: 76px; padding: 0; border: 2px solid #fff; border-radius: 10px;
  overflow: hidden; box-shadow: var(--gm-shadow); cursor: pointer; background: #444; transition: left .3s cubic-bezier(.4,0,.2,1), transform .15s;
}
.gm-layer:hover { transform: scale(1.04); }
.gm-layer-thumb { position: absolute; inset: 0; background: url("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/10/481/815") center/cover; }
.gm-layer.is-sat .gm-layer-thumb { background-image: url("https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/10/481/815"); }
.gm-layer-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 0 4px; font-size: 12px; font-weight: 500; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.gm-layer.is-sat .gm-layer-label { color: #fff; }
.panel-collapsed .gm-layer { left: 24px; }

/* Ghim, cụm ghim, vị trí của tôi */
.gm-pin { transition: filter .15s; }
.gm-pin svg { display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); transition: transform .15s; transform-origin: 50% 100%; }
.gm-pin.is-hover svg, .gm-pin:hover svg { transform: scale(1.2); }
.gm-pin.is-active svg { animation: pinDrop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes pinDrop { from { transform: translateY(-14px) scale(.8); } to { transform: none; } }
.gm-cluster {
  width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #EA4335; color: #fff; font: 700 13px/1 Roboto, Arial, sans-serif;
  box-shadow: 0 0 0 5px rgba(234,67,53,.3), 0 2px 6px rgba(0,0,0,.3); transition: transform .15s;
}
.gm-cluster:hover { transform: scale(1.1); }
.gm-me { width: 22px; height: 22px; border-radius: 50%; background: #4285f4; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(66,133,244,.5), 0 1px 4px rgba(0,0,0,.4); animation: mePulse 2s infinite; }
@keyframes mePulse { 0% { box-shadow: 0 0 0 0 rgba(66,133,244,.5), 0 1px 4px rgba(0,0,0,.4); } 70% { box-shadow: 0 0 0 16px rgba(66,133,244,0), 0 1px 4px rgba(0,0,0,.4); } 100% { box-shadow: 0 0 0 0 rgba(66,133,244,0), 0 1px 4px rgba(0,0,0,.4); } }
.leaflet-tooltip.gm-tip { border: 0; border-radius: 6px; box-shadow: var(--gm-shadow); font: 500 13px Roboto, Arial, sans-serif; padding: 6px 10px; color: #202124; }

/* Thông báo nhỏ */
.gm-toast {
  position: absolute; z-index: 20; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: 90%;
  background: #323232; color: #fff; font-size: 14px; padding: 12px 20px; border-radius: 4px; box-shadow: 0 3px 5px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.gm-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Ẩn nút Zalo nổi đè lên điều khiển bản đồ khi ở trang này trên desktop */
.page-dealer .floating-zalo-btn { bottom: 24px; }
.page-dealer .back-to-top { display: none; }

/* ---------- Mobile: bottom sheet ---------- */
@media (max-width: 849px) {
  .gmap { height: calc(100vh - 70px); height: calc(100dvh - 70px); min-height: 480px; }
  .gm-collapse { display: none; }
  .gm-panel {
    top: auto; right: 0; width: auto; border-radius: 16px 16px 0 0; box-shadow: 0 -2px 12px rgba(0,0,0,.2);
    height: 88%; transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .gm-panel[data-sheet="peek"] { transform: translateY(calc(100% - 132px)); }
  .gm-panel[data-sheet="half"] { transform: translateY(45%); }
  .gm-panel[data-sheet="full"] { transform: none; }
  .gm-sheet-handle { display: flex; justify-content: center; align-items: center; width: 100%; height: 22px; border: 0; background: none; padding: 0; flex-shrink: 0; cursor: grab; }
  .gm-sheet-handle span { width: 36px; height: 4px; border-radius: 2px; background: #dadce0; }
  .gm-search { margin-top: 2px; }
  .gm-panel.is-detail .gm-hero { height: 150px; }
  .gm-controls { bottom: auto; top: 12px; }
  .gm-layer { left: auto; right: 10px; top: 156px; bottom: auto; width: 44px; height: 44px; border-radius: 8px; }
  .gm-layer-label { display: none; }
  .gm-layer-label { font-size: 10px; padding-top: 10px; }
  .gm-toast { bottom: auto; top: 16px; }
  .page-dealer .floating-zalo-btn { display: none; }
}

/* ============================ TIN TỨC / DỰ ÁN ============================ */
.blog-archive { padding-top: 30px; padding-bottom: 20px; }
.archive-col { max-width: calc(1080px * 10 / 12); margin: 0 auto; }
.post-list .post-item { padding-bottom: 30px; }
.post-list .post-item[hidden] { display: none; }
.archive-post .box-image { width: 40%; min-height: 0; padding-top: 22.4%; }
.archive-post .box-text { padding: 1.4em 1.6em; justify-content: center; }
.archive-post .post-title { font-size: 1.25em; }
.archive-post .excerpt { margin-bottom: 0; }
.archive-post.no-image .box-text { padding: 1.4em 2em; }
.post-meta { font-size: .8em; opacity: .8; margin-top: .3em; }
@media (max-width: 549px) {
  .archive-post { flex-direction: column; }
  .archive-post .box-image { width: 100%; padding-top: 56%; }
}

/* ============================ LIÊN HỆ ============================ */
.contact-hero { padding: 100px 0 160px; background: rgb(237,236,232); }
.contact-intro { max-width: 630px; margin: 0 auto; }
.contact-intro h2 { font-size: 3.2em; color: #555; }
@media (max-width: 549px) { .contact-intro h2 { font-size: 2.2em; } }
.offices-wrap { position: relative; margin-top: -150px; max-width: 1020px; }
.office-box { background: #fff; padding: 0 0 20px; transition: box-shadow .3s; }
.office-box:hover { box-shadow: 0 10px 20px rgb(0 0 0 / .1); }
.office-image { padding-top: 70%; }
.office-box .box-text { padding: 20px 10px 0; }
.office-box h3 { font-size: 1.25rem; line-height: 1; color: #555; }
.office-box p { margin-bottom: 20px; }
.contact-direct { border: 1px solid rgb(235,235,235); padding: 30px 0; margin: 0 0 30px; background: #fff; }
.contact-direct .col { padding: 30px 30px 0; }
.contact-direct h3 { font-size: 1.6em; color: #555; }
.contact-direct p { font-size: 1.2rem; }
.vn-map { width: 86%; }
.social-circles { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.social-circles a {
  width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: .95em; transition: box-shadow .3s, transform .3s;
}
.social-circles a:hover { color: #fff; box-shadow: inset 0 0 0 100px rgba(0,0,0,.2); transform: translateY(-2px); }
.contact-map { line-height: 0; }
.contact-map iframe { display: block; }
@media (max-width: 549px) { .contact-direct .col { padding: 10px; } }
