/* Otis — tỷ lệ & bố cục theo hệ wiwi.vn, GIỮ NGUYÊN màu của Otis.
 * Nạp sau mọi CSS gốc (Elementor/theme). Chỉ đổi kích thước, khoảng cách, bo góc, bóng, font — không đổi màu.
 * Thang: container 1200px + lề 28px · section 96px · H1 54 / H2 42 / H3 20 · body 16/1.6 · card r24 · input r12 · nút pill. */

:root {
  --otis-font: "Be Vietnam Pro", "Be Vietnam Pro Fallback", Arial, sans-serif;
  --otis-container: 1200px;
  --otis-gutter: 28px;
  --otis-section-y: clamp(56px, 6.7vw, 96px);
  --otis-head-mb: clamp(28px, 3.4vw, 48px);
  --otis-fs-h1: clamp(34px, 4.4vw, 54px);
  --otis-fs-h2: clamp(26px, 3.4vw, 42px);
  --otis-fs-h3: 20px;
  --otis-fs-lead: 18px;
  --otis-fs-body: 16px;
  --otis-fs-sm: 14.5px;
  --otis-r-card: 24px;
  --otis-r-lg: 18px;
  --otis-r-input: 12px;
  --otis-r-pill: 999px;
  --otis-shadow-card: 0 1px 2px #0a1f470d, 0 12px 32px -12px #0a1f471a;
  --otis-shadow-hover: 0 2px 4px #0a1f4710, 0 20px 40px -16px #0a1f4733;
  --otis-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Font: Be Vietnam Pro (đủ dấu tiếng Việt) — icon font giữ nguyên ---------- */
body { font-family: var(--otis-font); font-size: var(--otis-fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body :is(input, select, textarea, button) { font-family: var(--otis-font); }

/* ---------- Container & nhịp section ---------- */
body .e-con.e-parent { --content-width: min(100%, var(--otis-container)) !important; }
body .e-con-boxed.e-parent { --padding-left: var(--otis-gutter) !important; --padding-right: var(--otis-gutter) !important; }
body .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--otis-container) !important; }
body .elementor-section.elementor-section-boxed { padding-left: var(--otis-gutter); padding-right: var(--otis-gutter); }
body .container { max-width: calc(var(--otis-container) + 2 * var(--otis-gutter)); padding-left: var(--otis-gutter); padding-right: var(--otis-gutter); }

/* section nội dung (không phải header/footer/hero full-width) có nhịp dọc đều nhau */
body :is([data-elementor-type="wp-page"], [data-elementor-type="wp-post"]):not(.thim-ekit__header *, .thim-ekit__footer *)
  > .e-con-boxed.e-parent:not(:first-child):has(.elementor-widget) {
  --padding-top: calc(var(--otis-section-y) / 2) !important;
  --padding-bottom: calc(var(--otis-section-y) / 2) !important;
}

/* ---------- Thang chữ ---------- */
body :is(h1, h2, h3, h4, h5, h6),
body .elementor-heading-title { font-family: var(--otis-font) !important; text-wrap: balance; }

body h1, body h1.elementor-heading-title, body .product_title {
  font-size: var(--otis-fs-h1) !important; line-height: 1.12 !important; letter-spacing: -0.025em !important; font-weight: 700 !important;
}
body h2, body h2.elementor-heading-title {
  font-size: var(--otis-fs-h2) !important; line-height: 1.2 !important; letter-spacing: -0.02em !important; font-weight: 700 !important;
}
body h3, body h3.elementor-heading-title {
  font-size: var(--otis-fs-h3) !important; line-height: 1.3 !important; letter-spacing: -0.01em !important; font-weight: 650 !important;
}
body h4, body h4.elementor-heading-title { font-size: 18px !important; line-height: 1.35 !important; font-weight: 600 !important; }
body .elementor-widget-text-editor, body .entry-content, body .woocommerce-Tabs-panel { font-size: var(--otis-fs-body); line-height: 1.6; }
body .elementor-widget-text-editor p, body .entry-content p { margin-bottom: 1em; }
body .entry-content :is(h2, h3) { margin: 1.6em 0 .6em; }
body .entry-content h2 { font-size: clamp(22px, 2.4vw, 30px) !important; }

/* tiêu đề nhỏ trong card / thẻ căn hộ không bị kéo to theo h2/h3 toàn cục */
body .apt-card h3.apt-title { font-size: 18px !important; line-height: 1.35 !important; }
body #apt-results h2.apt-heading { font-size: clamp(22px, 2.4vw, 28px) !important; margin-bottom: 20px; }
body .apt-sidebar h3 { font-size: 18px !important; }

/* ---------- Header 72px, menu dạng pill ---------- */
body .thim-ekit__header .e-con.e-parent:has(.thim-ekits-menu) { --min-height: 72px !important; }
/* logo: giữ đúng kích thước/tỷ lệ gốc (Elementor đặt chiều rộng; chiều cao phải tự theo) */
body .thim-ekit__header img { height: auto !important; max-height: none !important; object-fit: contain; }
/* logo footer: khung gốc 50% × 100px làm logo bị kéo giãn — giữ tỷ lệ trong khung */
body .thim-ekit-site-logo img { object-fit: contain; object-position: left center; }
body .thim-ekits-menu__nav > li > .thim-ekits-menu__nav-link {
  font-family: var(--otis-font); font-size: var(--otis-fs-sm) !important; font-weight: 600 !important;
  padding: 8px 14px !important; margin: 0 2px; border-radius: var(--otis-r-pill); line-height: 1.6;
  transition: background-color .15s var(--otis-ease);
}
body .thim-ekits-menu__nav > li > .thim-ekits-menu__nav-link:hover,
body .thim-ekits-menu__nav > li.current-menu-item > .thim-ekits-menu__nav-link {
  background-color: color-mix(in srgb, currentColor 8%, transparent);
}
/* menu thả xuống nhiều cấp (Căn hộ › Quận › Toà nhà › Loại phòng): không cắt (overflow) để cấp con bật ra bên phải */
body .thim-ekits-menu__nav .sub-menu {
  border-radius: var(--otis-r-lg); padding: 8px; overflow: visible; min-width: 240px;
  box-shadow: 0 1px 2px #0a1f4714, 0 18px 40px -14px #0a1f4740; border: 1px solid #0a1f470f;
}
body .thim-ekits-menu__nav .sub-menu li { position: relative; }
@media (min-width: 1025px) {
  body .thim-ekits-menu__nav .sub-menu .sub-menu { top: -9px !important; left: calc(100% + 8px) !important; }
  body .thim-ekits-menu__nav .sub-menu .sub-menu .sub-menu { min-width: 180px !important; width: max-content !important; }
  /* mũi tên gốc của plugin nằm ngoài link (lặp với mũi tên trong link) */
  body .thim-ekits-menu__nav .sub-menu li > .thim-ekits-menu__icon { display: none !important; }
/* cầu nối vô hình để rê chuột sang cấp con không bị đóng menu */
  body .thim-ekits-menu__nav .sub-menu .sub-menu::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
}
body .thim-ekits-menu__nav .sub-menu a { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 1025px) { body .thim-ekits-menu__nav .sub-menu li.menu-item-has-children > a::after {
  content: ""; flex: none; width: 6px; height: 6px; margin-right: 2px;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55;
} }
body .thim-ekits-menu__nav .sub-menu li:hover > a { background: #0a1f470a; }
@media (min-width: 1025px) {
  /* menu chạm mép phải màn hình thì bật sang trái */
  body .thim-ekits-menu__nav .sub-menu .sub-menu.otis-flip { left: auto !important; right: calc(100% + 8px) !important; }
  body .thim-ekits-menu__nav .sub-menu .sub-menu.otis-flip::before { left: auto; right: -10px; }
}
body .thim-ekits-menu__nav .sub-menu a { font-size: var(--otis-fs-sm) !important; border-radius: 10px; padding: 8px 12px !important; }

/* ---------- Nút: pill ---------- */
body :is(.elementor-button, .apt-btn, .aptwoo-btn, .wpcf7-submit, .button, button.single_add_to_cart_button, .wp-element-button) {
  border-radius: var(--otis-r-pill) !important; font-weight: 600; letter-spacing: 0;
  transition: transform .15s var(--otis-ease), box-shadow .15s var(--otis-ease), filter .15s var(--otis-ease);
}
body :is(.elementor-button, .apt-btn, .aptwoo-btn, .wpcf7-submit):hover { transform: translateY(-1px); filter: brightness(1.04); }
body .aptwoo-btn { padding: 14px 40px !important; }
body .apt-btn { padding: 9px 18px !important; font-size: 14px !important; }

/* ---------- Ô nhập: r12 ---------- */
body :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], select, textarea, .select2-selection, .apt-input) {
  border-radius: var(--otis-r-input) !important;
}

/* ---------- Card: r24 + bóng nhẹ ---------- */
body .apt-card {
  border-radius: var(--otis-r-card) !important; box-shadow: var(--otis-shadow-card); padding: 20px !important; gap: 24px;
  transition: box-shadow .2s var(--otis-ease), transform .2s var(--otis-ease);
}
body .apt-card:hover { box-shadow: var(--otis-shadow-hover); transform: translateY(-2px); }
body .apt-card .apt-cover { border-radius: var(--otis-r-lg); }
body .apt-card .apt-thumbs img { border-radius: 10px; }
body .apt-box { border-radius: var(--otis-r-card) !important; box-shadow: var(--otis-shadow-card); padding: 24px !important; }
body .apt-main { gap: 24px; }

body :is(.thim-ekits-post__article, .thim-ekits-product__item, .elementor-post, .thim-ekits-image-box, .elementor-widget-icon-box > .elementor-widget-container) {
  border-radius: var(--otis-r-card); overflow: hidden;
}
body :is(.thim-ekits-post__article, .thim-ekits-product__item, .elementor-post) { box-shadow: var(--otis-shadow-card); }

/* khung tìm kiếm hero trang chủ */
body .aptwoo-wrap, body .aptwoo-box, body .aptwoo-search { border-radius: var(--otis-r-card) !important; }

/* ---------- Trang căn hộ (WooCommerce) ---------- */
body .woocommerce-product-gallery, body .woocommerce-product-gallery img, body .flex-viewport { border-radius: var(--otis-r-card); }
body .flex-control-thumbs img { border-radius: 12px; }
body .woocommerce-tabs .tabs li a { font-size: var(--otis-fs-sm); font-weight: 600; }
body .related.products > h2 { font-size: var(--otis-fs-h2) !important; margin-bottom: var(--otis-head-mb); }

/* ---------- Ảnh nội dung ---------- */
body .elementor-widget-image img, body .entry-content img, body .wp-post-image { border-radius: var(--otis-r-lg); }
body .thim-ekit__header img, body .thim-ekit__footer img { border-radius: 0; }

/* ---------- Footer ---------- */
body .thim-ekit__footer .footer-columns { --padding-top: 64px !important; --padding-bottom: 32px !important; }
body .thim-ekit__footer :is(h2, h3, h4, .elementor-heading-title) { font-size: 16px !important; line-height: 1.4 !important; letter-spacing: 0 !important; }
body .thim-ekit__footer { font-size: var(--otis-fs-sm); }

/* ---------- Trang chủ: căn hộ (trái) + bản đồ chọn tòa nhà (phải) ---------- */
body .otis-home-split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 32px; align-items: start; width: 100%; }
body .otis-home-split__list { min-width: 0; }
body .otis-home-split__list ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; }
body .otis-home-split__map { position: sticky; top: 96px; margin-top: 56px; }
body .otis-home-split__map .elementor-widget { width: 100% !important; max-width: 100% !important; }
body .otis-home-split__map .otis-branch-map { height: 620px !important; border-radius: var(--otis-r-card) !important; box-shadow: var(--otis-shadow-card) !important; }
body .otis-home-split__map .branch-select-box { left: 16px; right: 16px !important; top: 16px !important; min-width: 0 !important; border-radius: var(--otis-r-lg) !important; padding: 14px 16px !important; }
body .otis-home-split__map .otis-branch-select { height: 44px !important; border-radius: var(--otis-r-input) !important; }
body ul.products li.product .item_border { border-radius: var(--otis-r-card); overflow: hidden; box-shadow: var(--otis-shadow-card); }
@media (max-width: 1024px) {
  body .otis-home-split { grid-template-columns: 1fr; }
  body .otis-home-split__map { position: static; margin-top: 0; }
  body .otis-home-split__map .otis-branch-map { height: 420px !important; }
  body .otis-home-split__list ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- Khung tìm kiếm hero: chỉ tỷ lệ/khoảng cách, giữ màu gốc ---------- */
body .aptwoo-safe { max-width: 1080px; margin: 0 auto; padding: 28px !important; border-radius: var(--otis-r-card) !important; box-shadow: 0 24px 60px -20px #0a1f4740 !important; }
body .aptwoo-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
body .aptwoo-tab { height: 46px; padding: 0 22px !important; border-radius: var(--otis-r-pill) !important; font-size: 15px !important; font-weight: 600 !important; display: inline-flex; align-items: center; }
body .aptwoo-box { padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
body .aptwoo-row.gap { margin-top: 18px; row-gap: 16px; }
body .aptwoo-label { font-size: 13.5px !important; font-weight: 600 !important; margin-bottom: 8px !important; }
body .aptwoo-field { min-height: 50px; border-radius: var(--otis-r-input) !important; }
body .aptwoo-field-lg { min-height: 56px; }
body .aptwoo-field .select2-selection, body .aptwoo-field input { min-height: 48px; }
body .aptwoo-group { border-radius: var(--otis-r-lg) !important; padding: 16px 18px !important; height: 100%; }
body .aptwoo-group-title { font-size: 14px !important; font-weight: 600 !important; margin-bottom: 12px !important; }
body .aptwoo-group { display: flex; flex-wrap: wrap; gap: 10px 8px; align-content: flex-start; height: auto !important; max-height: none !important; overflow: visible !important; }
body .elementor-element-43c663e3 { min-height: 0 !important; --min-height: 0 !important; padding: 48px 0 56px !important; }
/* hiệu ứng xuất hiện gốc 2s làm trang trắng lúc mở — rút còn 0.6s */
body .animated-slow { animation-duration: .6s !important; }
/* hero hiện ngay (phần đầu trang, ảnh hưởng LCP) */
body .elementor-element-43c663e3, body .elementor-element-43c663e3 .elementor-invisible, body .elementor-element-43c663e3 .animated { animation: none !important; opacity: 1 !important; visibility: visible !important; }
body .aptwoo-group .aptwoo-group-title { flex-basis: 100%; }
body .aptwoo-rent { display: flex; flex-wrap: wrap; gap: 10px 8px; }
body .aptwoo-check { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 8px 14px; border: 1px solid #e3e7ec; border-radius: var(--otis-r-pill); font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
body .aptwoo-check:hover { border-color: currentColor; }
body .aptwoo-check:has(input:checked) { border-color: #cbb08a; background: color-mix(in srgb, #cbb08a 14%, transparent); }
body .aptwoo-check input { margin: 0 !important; accent-color: #cbb08a; }
body .aptwoo-actions { margin-top: 22px !important; }
body .aptwoo-btn { height: 52px; min-width: 240px; font-size: 15px !important; letter-spacing: .04em !important; }
@media (max-width: 767px) {
  body .aptwoo-safe { padding: 18px !important; }
  body .aptwoo-tab { height: 42px; padding: 0 16px !important; font-size: 14px !important; }
  body .aptwoo-btn { width: 100%; }
}

/* ---------- Sidebar lọc: ngày + nhóm tiện ích ---------- */
body .apt-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body .apt-dates input { height: 42px; border: 1px solid #e3e7ec !important; border-radius: var(--otis-r-input) !important; padding: 0 10px !important; font: 500 13.5px var(--otis-font); min-width: 0; }

/* chữ ẩn cho trình đọc màn hình không được đẩy trang tràn ngang */
body .read_more { position: relative; }
body .screen-reader-text:not(:focus) { top: 0 !important; left: 0 !important; right: auto !important; }
html, body { overflow-x: clip; }

/* tab quận ở trang chủ: cuộn ngang trên màn hẹp thay vì tràn */
@media (max-width: 767px) {
  body .e-n-tabs-heading { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; justify-content: flex-start !important; }
  body .e-n-tabs-heading::-webkit-scrollbar { display: none; }
  body .e-n-tab-title { flex: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --otis-gutter: 16px; }
  body .apt-card { padding: 14px !important; }
  body .thim-ekits-menu__nav > li > .thim-ekits-menu__nav-link { padding: 10px 14px !important; }
}

/* ---------- Khối "Dịch vụ tại Otis" / "Tin tức" (thim list-blog): tiêu đề – mô tả – lưới thẻ ---------- */
body .elementor-widget-thim-ekits-heading + .elementor-widget-text-editor { margin-top: 12px !important; padding-bottom: 0 !important; }
body .elementor-widget-thim-ekits-heading + .elementor-widget-text-editor p {
  margin: 0 0 28px; max-width: 720px; font-size: var(--otis-fs-body); line-height: 1.6; opacity: .82;
}
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__inner { column-gap: 24px !important; row-gap: 24px !important; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article {
  display: flex; flex-direction: column; background: #fff; height: 100%;
  transition: box-shadow .2s var(--otis-ease), transform .2s var(--otis-ease);
}
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:hover { box-shadow: var(--otis-shadow-hover); transform: translateY(-2px); }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__thumbnail { display: block; margin: 0 !important; aspect-ratio: 3 / 2; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__thumbnail .post-thumbnail { display: block; height: 100%; border-radius: 0 !important; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__thumbnail img {
  width: 100%; height: 100% !important; object-fit: cover; transition: transform .4s var(--otis-ease);
}
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:hover .thim-ekits-post__thumbnail img { transform: scale(1.04); }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__content { padding: 16px 20px 20px !important; flex: 1; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__title { margin: 0 !important; font-size: inherit; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__title a {
  font-size: 17px !important; font-weight: 600; line-height: 1.45 !important; min-height: calc(2 * 1.45em);
  text-align: left; white-space: normal;
}
/* dịch vụ: ảnh rộng hơn, tiêu đề đậm hơn */
body .elementor-element-82bbffe .thim-ekits-post__thumbnail { aspect-ratio: 16 / 9; }
body .elementor-element-82bbffe .thim-ekits-post__title a { font-size: 19px !important; min-height: 0; -webkit-line-clamp: 1 !important; }
@media (max-width: 767px) {
  body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__inner { column-gap: 16px !important; row-gap: 16px !important; }
  body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__content { padding: 12px 14px 16px !important; }
  body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__title a { font-size: 15.5px !important; }
}

/* ô chọn (select2) trong khung tìm kiếm hero: chữ + mũi tên căn giữa theo chiều dọc, cùng cỡ chữ với ô ngày */
body .aptwoo-field .select2-container .select2-selection--single { height: 48px; display: flex; align-items: center; border: 0; background: transparent; }
body .aptwoo-field .select2-container .select2-selection__rendered {
  flex: 1; min-width: 0; padding: 0 8px 0 0 !important; line-height: 48px !important; height: 48px; font-size: 15px;
}
body .aptwoo-field .select2-container .select2-selection__arrow { top: 50% !important; transform: translateY(-50%); height: 20px !important; right: 2px; }
body .aptwoo-field .aptwoo-ico { top: 50% !important; transform: translateY(-50%); }

/* ---------- Thẻ căn hộ: nhãn thuộc tính → icon (chữ vẫn có cho trình đọc màn hình + tooltip) ---------- */
body .wrapper_content .description ul.loop-attrs {
  list-style: none !important; padding: 0 !important; margin: 10px 0 0 !important; columns: auto !important;
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; line-height: 1.4;
}
body .wrapper_content .description ul.loop-attrs li.la {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; padding: 0 !important; white-space: nowrap; break-inside: avoid;
}
body ul.loop-attrs li.la::marker { content: ""; }
body ul.loop-attrs li.la .attr-label {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body ul.loop-attrs li.la::before {
  content: ""; flex: none; width: 17px; height: 17px; background: currentColor; opacity: .75;
  -webkit-mask: var(--la-ico) center / contain no-repeat; mask: var(--la-ico) center / contain no-repeat;
}
/* số khách: hai người */
body ul.loop-attrs li.la-guests { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
/* kiểu phòng: giường */
body ul.loop-attrs li.la-room { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4v16M2 8h18a2 2 0 0 1 2 2v10M2 17h20M6 8v9'/%3E%3C/svg%3E"); }
/* ban công: lan can + cửa */
body ul.loop-attrs li.la-balcony { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 13V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v8'/%3E%3Cpath d='M3 13h18M4 21h16M6 13v8M10 13v8M14 13v8M18 13v8'/%3E%3C/svg%3E"); }

/* ---------- Liên hệ: thẻ thông tin (trái) + ảnh (phải) cao bằng nhau, bo góc ---------- */
body .elementor-element-8a2b3cb > .e-con-inner { gap: 24px !important; align-items: stretch !important; }
body .elementor-element-42ca9ff, body .elementor-element-d850441 { flex: 1 1 0 !important; min-width: 0; }
body .otis-contact-card {
  height: 100%; border-radius: var(--otis-r-card) !important; padding: 32px 28px !important; overflow: hidden;
  box-shadow: 0 1px 2px #0a1f4714, 0 24px 48px -24px #0a1f4740 !important;
}
body .otis-contact-card .oc-title { letter-spacing: .04em; margin-bottom: 18px; }
body .otis-contact-card .oc-ico { border-radius: 12px !important; }
body .elementor-element-d850441 > .elementor-widget-image-carousel,
body .elementor-element-d850441 .elementor-widget-container,
body .elementor-element-d850441 .elementor-image-carousel-wrapper,
body .elementor-element-d850441 .swiper,
body .elementor-element-d850441 .swiper-wrapper,
body .elementor-element-d850441 .swiper-slide,
body .elementor-element-d850441 .swiper-slide-inner,
body .elementor-element-d850441 .swiper-slide figure { height: 100% !important; }
body .elementor-element-d850441 > .elementor-widget-image-carousel { width: 100%; }
body .elementor-element-d850441 .swiper { border-radius: var(--otis-r-card); overflow: hidden; box-shadow: 0 1px 2px #0a1f4714, 0 24px 48px -24px #0a1f4740; }
body .elementor-element-d850441 .swiper-slide-image { width: 100%; height: 100% !important; object-fit: cover; }
body .elementor-element-d850441 :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) {
  width: 44px; height: 44px; border-radius: 999px; background: #ffffffd9; color: #243670; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -6px #0a1f4766;
}
body .elementor-element-d850441 :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) svg { fill: #243670; width: 18px; height: 18px; }
@media (max-width: 767px) {
  body .elementor-element-8a2b3cb > .e-con-inner { flex-direction: column; }
  body .elementor-element-d850441 { min-height: 300px; }
  body .otis-contact-card { padding: 24px 18px !important; }
}

/* ---------- Form bình luận (bài viết, trang) ---------- */
body .comment-respond {
  max-width: 760px; margin-top: 8px; padding: clamp(22px, 3vw, 36px); border-radius: var(--otis-r-card);
  background: #fff; box-shadow: 0 1px 2px #0a1f470d, 0 18px 40px -20px #0a1f4733; border: 1px solid #0a1f470d;
}
body .comment-respond .comment-reply-title { margin: 0 0 6px !important; color: #243670 !important; font-size: 22px !important; font-weight: 700; }
body .comment-respond .comment-notes { margin: 0 0 22px; color: #6b7280; font-size: 14px; line-height: 1.5; }
body .comment-respond .required { color: #c0392b; }
body .comment-respond form.comment-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 16px; }
body .comment-respond form.comment-form > p { margin: 0 !important; }
body .comment-respond :is(.comment-notes, .comment-form-comment, .comment-form-cookies-consent, .form-submit, .ocm-notice) { grid-column: 1 / -1; }
body .comment-respond .comment-form-comment { order: -1; }
body .comment-respond .comment-notes { order: -2; }
body .comment-respond label { display: block; margin-bottom: 6px; color: #1f2937; font-size: 14px; font-weight: 600; }
body .comment-respond :is(input[type=text], input[type=email], input[type=url], textarea) {
  width: 100% !important; max-width: none !important; box-sizing: border-box; padding: 12px 14px !important; border-radius: var(--otis-r-input) !important;
  border: 1px solid #dfe3ea !important; background: #f8fafc !important; font-size: 15px; color: #111827; transition: border-color .15s, box-shadow .15s, background .15s;
}
body .comment-respond :is(input[type=text], input[type=email], input[type=url]) { height: 48px; }
body .comment-respond textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
body .comment-respond :is(input, textarea):focus { outline: none; border-color: #243670 !important; background: #fff !important; box-shadow: 0 0 0 4px #2436701a; }
body .comment-respond .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
body .comment-respond .comment-form-cookies-consent input[type=checkbox] {
  flex: none; width: 18px !important; height: 18px !important; margin: 2px 0 0 !important; accent-color: #243670; appearance: auto !important; -webkit-appearance: checkbox !important;
  padding: 0 !important; border-radius: 4px !important; background: none !important;
}
body .comment-respond .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: #4b5563; line-height: 1.5; }
body .comment-respond .form-submit input[type=submit] {
  height: 48px; padding: 0 28px !important; border: 0; border-radius: var(--otis-r-pill) !important; cursor: pointer;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; transition: filter .15s, transform .15s;
}
body .comment-respond .form-submit input[type=submit]:hover { filter: brightness(1.05); transform: translateY(-1px); }
@media (max-width: 767px) {
  body .comment-respond form.comment-form { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Danh sách tin tức (/tin-tuc/, /category/…): ảnh phủ kín thẻ, nhịp đều ---------- */
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__thumbnail img { width: 100% !important; max-width: none !important; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0 !important; color: #6b7280; font-size: 13.5px; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__meta > span { border: 0 !important; padding: 0 !important; margin: 0 !important; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__meta > span + span::before { content: "·"; margin-right: 10px; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__excerpt { margin: 8px 0 0 !important; color: #4b5563; font-size: 14.5px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__read-more { display: inline-flex; margin-top: 12px !important; color: #243670; font-weight: 600; font-size: 14px; }
body .op-page-head { margin: 4px 0 28px; }
body .op-page-head h1 { margin: 0; color: #243670; font-size: var(--otis-fs-h2); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
body .op-page-head p { margin: 8px 0 0; color: #6b7280; }


/* ---------- Hero tìm kiếm: tiện ích / thời gian thuê = chip icon + chữ, chọn thì viền navy ---------- */
body .aptwoo-group { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
body .aptwoo-group .aptwoo-group-title { flex: 0 0 100%; margin-bottom: 4px; }
body .aptwoo-check {
  position: relative; display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important;
  height: 38px; padding: 0 14px 0 12px !important; border-radius: 999px !important; cursor: pointer; user-select: none;
  border: 1px solid #e3e6ee !important; background: #fff !important; box-shadow: none !important;
  font-size: 14px; font-weight: 500; color: #374151; transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
body .aptwoo-check input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
body .aptwoo-check::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor; opacity: .7;
  -webkit-mask: var(--chip-ico) center / contain no-repeat; mask: var(--chip-ico) center / contain no-repeat;
}
body .aptwoo-check span { line-height: 1; white-space: nowrap; }
body .aptwoo-check:hover { border-color: #b9c1d6 !important; }
body .aptwoo-check:has(input:checked) {
  border-color: #243670 !important; color: #243670; background: #2436700a !important; box-shadow: 0 0 0 1px #243670 inset !important;
}
body .aptwoo-check:has(input:checked)::before { opacity: 1; }
body .aptwoo-check:has(input:focus-visible) { box-shadow: 0 0 0 3px #24367033 !important; }
body .aptwoo-check:has(input[value="cua-so"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M12 3v18M4 12h16'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="ban-cong"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 13V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v8'/%3E%3Cpath d='M3 13h18M4 21h16M6 13v8M10 13v8M14 13v8M18 13v8'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="xa-phong-tam"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='10' width='18' height='10' rx='5'/%3E%3Ccircle cx='9' cy='5' r='2'/%3E%3Ccircle cx='15.5' cy='4' r='1.5'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="may-giat"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='2' width='18' height='20' rx='2'/%3E%3Ccircle cx='12' cy='13' r='5'/%3E%3Cpath d='M7 6h.01M11 6h2'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="wifi"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.55a11 11 0 0 1 14 0M1.42 9a16 16 0 0 1 21.16 0M8.53 16.11a6 6 0 0 1 6.95 0M12 20h.01'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="tivi"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="may-lanh"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M4.93 4.93l14.14 14.14M2 12h20M4.93 19.07 19.07 4.93'/%3E%3Cpath d='m9 4 3 3 3-3M9 20l3-3 3 3M4 9l3 3-3 3M20 9l-3 3 3 3'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="tu-lanh"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M5 10h14M9 5v2M9 13v3'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="dung-cu-bep"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2M7 2v20M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3zm0 0v7'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="bep-dien-tu"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Ccircle cx='8' cy='11' r='3'/%3E%3Ccircle cx='16.5' cy='11' r='2.5'/%3E%3Cpath d='M7 17h2M15 17h3'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="ngay"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E"); }
body .aptwoo-check:has(input[value="qua-dem"]) { --chip-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z'/%3E%3C/svg%3E"); }

/* ---------- Bình luận đã duyệt (CMS) ---------- */
body .ocm-title { margin: 0 0 18px !important; color: #243670; font-size: 22px !important; font-weight: 700; }
body .ocm-list { list-style: none; margin: 0 0 32px; padding: 0; max-width: 760px; display: grid; gap: 14px; }
body .ocm-item { margin: 0; }
body .ocm-body { padding: 18px 20px; border-radius: 18px; background: #f7f8fb; border: 1px solid #0a1f470d; }
body .ocm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
body .ocm-author { font-weight: 700; color: #1f2937; }
body .ocm-author a { color: #243670; text-decoration: none; }
body .ocm-date { color: #6b7280; font-size: 13.5px; }
body .ocm-content p { margin: 0; color: #374151; line-height: 1.65; }
body .ocm-notice { grid-column: 1 / -1; margin: 0 0 18px !important; padding: 12px 16px; border-radius: 12px; background: #ecfdf3; color: #146c43; font-size: 14.5px; border: 1px solid #b7ebcd; }
body .ocm-notice--error { background: #fef2f2; color: #b42318; border-color: #fecaca; }
body .ocm-hp { position: absolute !important; left: -9999px !important; }

/* ---------- Trang chủ "Căn hộ gợi ý" (học bố cục "Điểm đến lý tưởng"): danh sách cuộn bên trái + bản đồ dính bên phải ---------- */
@media (min-width: 1025px) {
  body .otis-home-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important; gap: 28px !important; align-items: start; }
  body .otis-home-split__list .e-n-tabs-content > [role="tabpanel"],
  body .otis-home-split__list .e-n-tabs-content > .e-con {
    max-height: 640px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 8px 4px !important;
    scrollbar-width: thin; scrollbar-color: #c9cfdc transparent;
  }
  body .otis-home-split__list ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px !important; }
  body .otis-home-split__map { margin-top: 64px !important; top: 100px; }
  body .otis-home-split__map .otis-branch-map { height: 640px !important; }
}
body .otis-home-split__list li.product { margin: 0 !important; width: auto !important; float: none !important; padding: 0 !important; }
body .otis-home-split__list li.product .item_border {
  height: 100%; display: flex; flex-direction: column; border-radius: 20px !important; overflow: hidden; background: #fff;
  border: 1px solid #0a1f4712; box-shadow: 0 1px 2px #0a1f470a, 0 10px 24px -16px #0a1f4733 !important; transition: box-shadow .2s, transform .2s, border-color .2s;
}
body .otis-home-split__list li.product:hover .item_border { box-shadow: 0 2px 4px #0a1f4710, 0 18px 36px -18px #0a1f4747 !important; transform: translateY(-2px); }
body .otis-home-split__list li.product.is-on-map .item_border { border-color: #c9a27e; box-shadow: 0 0 0 2px #c9a27e66, 0 18px 36px -18px #0a1f4747 !important; }
body .otis-home-split__list li.product .post_images { margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; }
body .otis-home-split__list li.product .post_images img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; transition: transform .4s; }
body .otis-home-split__list li.product:hover .post_images img { transform: scale(1.04); }
body .otis-home-split__list li.product .wrapper_content { flex: 1; padding: 14px 16px 0 !important; text-align: left !important; }
body .otis-home-split__list li.product .post_title h4 { margin: 0 !important; font-size: 16px !important; line-height: 1.35 !important; font-weight: 600; }
body .otis-home-split__list li.product .post_title h4 a { color: #243670; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
body .otis-home-split__list li.product .wrapper_content .description ul.loop-attrs { margin-top: 10px !important; color: #4b5563; font-size: 13.5px; gap: 6px 12px; }
/* "Liên hệ" thành nút cát ở chân thẻ (như "Đặt ngay"); bỏ dòng đánh giá 0 sao trống */
body .otis-home-split__list li.product .item_rating { display: none !important; }
body .otis-home-split__list li.product .description:not(.wc-loop-excerpt) ul { list-style: none; margin: 14px 0 16px !important; padding: 0 !important; }
body .otis-home-split__list li.product .description:not(.wc-loop-excerpt) li { margin: 0 !important; text-align: left !important; }
body .otis-home-split__list li.product .description:not(.wc-loop-excerpt) a {
  display: inline-flex !important; align-items: center; justify-content: center; height: 38px; padding: 0 20px !important; border-radius: 999px !important;
  background: #c9a27e !important; color: #fff !important; font-size: 14px !important; font-weight: 600; text-decoration: none; box-shadow: none !important;
  background-image: none !important;
}
body .otis-home-split__list li.product .description:not(.wc-loop-excerpt) a:hover { background: #b88f69 !important; }
body .otis-home-split__list li.product .read_more { display: none !important; }
body .otis-home-split__list .onsale, body .otis-home-split__list .product-label, body .otis-home-split__list [class*="new"] > span { border-radius: 999px; }
body .otis-home-split__list li.product .wrapper_content { display: flex; flex-direction: column; }
body .otis-home-split__list li.product .description:not(.wc-loop-excerpt) { margin-top: auto; }
/* nút × xoá lựa chọn: nằm bên phải, cạnh mũi tên — không dính vào icon */
body .aptwoo-field .select2-container .select2-selection--single .select2-selection__clear {
  order: 2; float: none !important; margin: 0 6px 0 auto !important; padding: 0 4px; height: auto; line-height: 1;
  font-size: 18px; color: #9ca3af; position: static !important;
}
body .aptwoo-field .select2-container .select2-selection--single .select2-selection__clear:hover { color: #243670; }
body .aptwoo-field .select2-container .select2-selection__rendered { display: flex !important; align-items: center; }

/* ---------- Trang danh sách bài viết (/tin-tuc/, chuyên mục): bài đầu nổi bật nằm ngang + lưới 3 cột ---------- */
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__inner {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 28px 24px !important;
}
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__thumbnail { width: 100% !important; }
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__content { display: flex; flex-direction: column; padding: 18px 20px 22px !important; }
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__title a { font-size: 18px !important; -webkit-line-clamp: 2; }
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__read-more { margin-top: auto !important; padding-top: 12px; }
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:first-child {
  grid-column: 1 / -1; display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:first-child .thim-ekits-post__thumbnail { aspect-ratio: auto; min-height: 340px; height: 100%; }
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:first-child .thim-ekits-post__content { justify-content: center; padding: 36px 40px !important; }
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:first-child .thim-ekits-post__title a { font-size: clamp(22px, 2.2vw, 28px) !important; line-height: 1.3 !important; -webkit-line-clamp: 3; }
body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:first-child .thim-ekits-post__excerpt { font-size: 16px; -webkit-line-clamp: 4; }
@media (max-width: 1024px) {
  body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__inner { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__inner { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
  body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:first-child { grid-template-columns: minmax(0, 1fr); }
  body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:first-child .thim-ekits-post__thumbnail { min-height: 0; aspect-ratio: 3 / 2; }
  body:has(.op-page-head) .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article:first-child .thim-ekits-post__content { padding: 18px 20px 22px !important; }
}
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__thumbnail > a.post-thumbnail { display: block !important; width: 100% !important; height: 100%; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__thumbnail img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__thumbnail { max-width: none !important; }
body .elementor-widget-thim-ekits-list-blog .thim-ekits-post__article { border: 1px solid #0a1f470f !important; }

/* ---------- Trang căn hộ (học nuapartment.vn/vi/apartments, giữ màu Otis): thanh lọc ngang + nhóm theo toà nhà ---------- */
body .apt-layout-top, body .apt-layout-top > .e-con-inner { flex-direction: column !important; flex-wrap: nowrap !important; gap: 28px !important; }
body .apt-layout-top :is(.e-con, .elementor-widget):has(:is(.apt-sidebar, #apt-results)) {
  --width: 100% !important; width: 100% !important; max-width: 100% !important; flex: 0 0 auto !important; --container-widget-width: 100% !important;
}
body .apt-topbar { position: relative !important; top: auto !important; z-index: 20; width: 100% !important; max-width: none !important; margin: 0 !important; }
body .apt-topbar .apt-box {
  display: flex !important; flex-wrap: wrap; align-items: stretch; gap: 10px; padding: 14px !important;
  background: #fff; border: 1px solid #0a1f4712; box-shadow: 0 1px 2px #0a1f470d, 0 18px 40px -22px #0a1f4740 !important;
}
body .apt-topbar .apt-box > h3 { display: none; }
body .apt-topbar :is(.apt-field, .apt-group) {
  position: relative; margin: 0 !important; padding: 8px 14px !important; min-height: 60px; flex: 1 1 118px; min-width: 0;
  border: 1px solid #e3e7ec; border-radius: var(--otis-r-input); background: #fff; transition: border-color .15s var(--otis-ease), box-shadow .15s var(--otis-ease);
  display: flex; flex-direction: column; justify-content: center;
}
body .apt-topbar .apt-field:first-of-type { flex: 1.5 1 170px; }
body .apt-topbar .apt-field:has(.apt-dates) { flex: 1.6 1 240px; }
body .apt-topbar :is(.apt-field, .apt-group):focus-within, body .apt-topbar .apt-group.is-open { border-color: #243670; box-shadow: 0 0 0 3px #2436701a; }
body .apt-topbar .apt-label { display: block; margin: 0 0 2px !important; font: 600 12px/1.3 var(--otis-font) !important; color: #6b7280 !important; letter-spacing: .02em; }
body .apt-topbar .apt-input { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; min-height: 0; display: flex; align-items: center; gap: 6px; }
body .apt-topbar .apt-input .apt-ic { display: none; }
body .apt-topbar .apt-input input, body .apt-topbar .apt-dates input {
  border: 0 !important; padding: 0 !important; height: 24px !important; background: none !important; box-shadow: none !important;
  font: 600 14.5px var(--otis-font) !important; color: #0a1f47; width: 100%; min-width: 0; outline: none;
}
body .apt-topbar .apt-dates { gap: 0; }
body .apt-topbar .apt-dates input + input { border-left: 1px solid #e3e7ec !important; padding-left: 10px !important; }
body .apt-topbar .apt-group-title { display: none; }
body .apt-topbar .apt-drop {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; padding-right: 20px; position: relative;
}
body .apt-topbar .apt-drop::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border: solid #6b7280; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); transition: transform .2s var(--otis-ease);
}
body .apt-topbar .apt-group.is-open .apt-drop::after { transform: rotate(-135deg); margin-top: -2px; }
body .apt-topbar .apt-drop-k { font: 600 12px/1.3 var(--otis-font); color: #6b7280; letter-spacing: .02em; }
body .apt-topbar .apt-drop-v { font: 600 14.5px/1.6 var(--otis-font); color: #0a1f47; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .apt-topbar .apt-group.has-value { border-color: #24367066; background: #f6f8fc; }
body .apt-topbar .apt-pop {
  display: none; position: absolute; top: calc(100% + 8px); left: -1px; z-index: 30; min-width: max(100%, 260px); max-height: 340px; overflow: auto;
  padding: 8px; background: #fff; border: 1px solid #0a1f4714; border-radius: 16px; box-shadow: 0 24px 48px -16px #0a1f4740;
}
body .apt-topbar .apt-group.is-open .apt-pop { display: block; }
body .apt-topbar .apt-pop .apt-check {
  display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 9px 10px !important; border-radius: 10px;
  font: 500 14px/1.4 var(--otis-font) !important; color: #1f2937; cursor: pointer;
}
body .apt-topbar .apt-pop .apt-check:hover { background: #f3f5f9; }
body .apt-topbar .apt-pop .apt-check input { accent-color: #243670; width: 16px; height: 16px; margin: 0; transform: none; flex: none; }
body .apt-topbar .apt-go {
  flex: 0 0 auto; min-height: 60px; padding: 0 28px; border: 0; border-radius: var(--otis-r-input); cursor: pointer;
  background: #243670; color: #fff; font: 700 15px var(--otis-font); display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s var(--otis-ease), transform .15s var(--otis-ease);
}
body .apt-topbar .apt-go::before {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
body .apt-topbar .apt-go:hover { background: #0a1f47; transform: translateY(-1px); }

/* kết quả */
body #apt-results.apt-grouped { display: block !important; width: 100%; }
body #apt-results.apt-grouped > .apt-heading { display: block; margin: 0 0 6px !important; font: 700 clamp(24px, 2.6vw, 32px)/1.25 var(--otis-font) !important; color: #0a1f47; }
body #apt-results .apt-count { margin: 0 0 18px !important; font: 600 15px var(--otis-font); color: #4b5563; }
body #apt-results .apt-empty { padding: 40px; text-align: center; color: #6b7280; border: 1px dashed #d6dbe3; border-radius: var(--otis-r-card); }
body .apt-bgroup { margin: 0 0 40px; }
body .apt-bhead {
  display: flex; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; margin-bottom: 18px;
  background: #fff; border: 1px solid #0a1f4712; border-radius: var(--otis-r-lg); box-shadow: var(--otis-shadow-card);
}
body .apt-bthumb { flex: none; width: 96px; height: 72px; border-radius: 12px; overflow: hidden; background: #eef1f6; }
body .apt-bthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body .apt-binfo { flex: 1; min-width: 0; }
body .apt-beyebrow { display: block; font: 600 11.5px/1.4 var(--otis-font); letter-spacing: .08em; text-transform: uppercase; color: #A17E50; }
body .apt-bname { margin: 2px 0 0 !important; font: 700 19px/1.3 var(--otis-font) !important; }
body .apt-bname a { color: #0a1f47 !important; text-decoration: none; }
body .apt-bname a:hover { color: #243670 !important; }
body .apt-baddr { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0 !important; font-size: 13.5px; line-height: 1.45; color: #6b7280; }
body .apt-baddr::before, body .apt-blink::after { content: ""; flex: none; background: currentColor; }
body .apt-baddr::before {
  width: 14px; height: 14px; margin-top: 2px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
body .apt-bmeta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
body .apt-bcount { font-size: 13.5px; color: #6b7280; }
body .apt-bcount b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #243670; color: #fff; font-size: 13px; }
body .apt-blink { display: inline-flex; align-items: center; gap: 4px; font: 600 14px var(--otis-font); color: #243670 !important; text-decoration: none; }
body .apt-blink::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.8px 1.8px 0 0; background: none; transform: rotate(45deg); transition: transform .15s var(--otis-ease); }
body .apt-blink:hover::after { transform: translateX(3px) rotate(45deg); }

/* hàng thẻ cuộn ngang */
body .apt-brow { position: relative; }
body .apt-btrack {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 4px 4px 14px; margin: -4px -4px 0;
}
body .apt-btrack::-webkit-scrollbar { display: none; }
body .apt-bnav {
  position: absolute; top: 34%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #0a1f4714; cursor: pointer;
  background: #fff; color: #0a1f47; box-shadow: 0 8px 20px -8px #0a1f4766; display: grid; place-items: center; padding: 0;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--otis-ease), background .15s var(--otis-ease);
}
body .apt-bnav::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; }
body .apt-bnav.prev { left: -20px; } body .apt-bnav.prev::before { transform: translateX(2px) rotate(-135deg); }
body .apt-bnav.next { right: -20px; } body .apt-bnav.next::before { transform: translateX(-2px) rotate(45deg); }
body .apt-brow.can-prev .apt-bnav.prev, body .apt-brow.can-next .apt-bnav.next { opacity: 1; pointer-events: auto; }
body .apt-bnav:hover { background: #243670; color: #fff; }

/* thẻ căn hộ dạng lưới */
body .apt-card.apt-card--grid {
  flex: 0 0 calc((100% - 60px) / 4); min-width: 0; display: flex !important; flex-direction: column; gap: 0 !important; padding: 0 !important;
  scroll-snap-align: start; overflow: hidden; background: #fff; border: 1px solid #0a1f470f;
}
body .apt-card--grid .apt-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f6; width: auto !important; }
body .apt-card--grid .apt-cover { width: 100% !important; height: 100% !important; object-fit: cover; display: block; border-radius: 0 !important; transition: transform .5s var(--otis-ease); }
body .apt-card--grid:hover .apt-cover { transform: scale(1.04); }
body .apt-card--grid .apt-flags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
body .apt-card--grid .apt-flag { padding: 4px 10px; border-radius: 999px; font: 700 11.5px/1.4 var(--otis-font); letter-spacing: .02em; }
body .apt-card--grid .apt-flag.is-avail { order: 2; margin-left: auto; background: #ffffffeb; color: #1f7a4d; box-shadow: 0 2px 8px #0a1f4726; }
body .apt-card--grid .apt-flag.is-avail::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: #22a06b; }
body .apt-card--grid .apt-flag.is-new { order: 1; background: #d6b447; color: #fff; }
body .apt-card--grid .apt-body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; min-width: 0; }
body .apt-card--grid h3.apt-title { margin: 0 !important; font: 700 15.5px/1.4 var(--otis-font) !important; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .apt-card--grid h3.apt-title a { color: #0a1f47 !important; text-decoration: none; }
body .apt-card--grid h3.apt-title a:hover { color: #243670 !important; }
body .apt-card--grid ul.apt-attrs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0 !important; padding: 0 !important; font-size: 13.5px; color: #4b5563; }
body .apt-card--grid ul.apt-attrs li.la { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; white-space: nowrap; }
body .apt-card--grid .apt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid #eef1f6; margin-top: 14px; }
body .apt-card--grid .apt-price { font-size: 13.5px; color: #A17E50; font-weight: 600; line-height: 1.3; }
body .apt-card--grid .apt-price b { font-size: 16px; color: #A17E50; }
body .apt-card--grid .apt-price small { margin-left: 3px; color: #6b7280; font-weight: 500; }
body .apt-card--grid .apt-btn { flex: none; margin: 0 !important; padding: 8px 16px !important; font-size: 13.5px !important; background: #d6b447; color: #fff !important; }

@media (max-width: 1024px) {
  body .apt-card.apt-card--grid { flex-basis: calc((100% - 40px) / 3); }
  body .apt-topbar .apt-go { flex: 1 1 100%; min-height: 50px; justify-content: center; }
}
@media (max-width: 767px) {
  body .apt-layout-top, body .apt-layout-top .e-con:has(:is(.apt-sidebar, #apt-results)) { --padding-left: 0px !important; --padding-right: 0px !important; padding-left: 0 !important; padding-right: 0 !important; }
  body .apt-bcount, body .apt-blink { white-space: nowrap; }
  body .apt-topbar .apt-box { padding: 10px !important; gap: 8px; }
  body .apt-topbar :is(.apt-field, .apt-group) { flex: 1 1 100% !important; min-height: 54px; }
  body .apt-topbar .apt-group { flex: 1 1 calc(50% - 4px) !important; }
  body .apt-topbar .apt-group .apt-pop { min-width: min(300px, calc(100vw - 40px)); }
  body .apt-topbar .apt-group:nth-of-type(even) .apt-pop { left: auto; right: -1px; }
  body .apt-bhead { flex-wrap: wrap; gap: 12px; padding: 12px; }
  body .apt-bthumb { width: 64px; height: 64px; }
  body .apt-binfo { flex: 1 1 calc(100% - 80px); }
  body .apt-bname { font-size: 17px !important; }
  body .apt-bmeta { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #eef1f6; }
  body .apt-card.apt-card--grid { flex-basis: 78%; }
  body .apt-bnav { display: none; }
  body .apt-btrack { scroll-padding-left: 4px; }
}

/* ---------- Nút gọi nổi (trái dưới): tròn cân, vòng sóng đúng tâm icon (trước đây lệch thành viên thuốc đỏ có đuôi) ---------- */
body .float-call .call-btn { padding: 6px !important; gap: 0 !important; border-radius: 999px; }
body .float-call .call-ring { top: 50% !important; bottom: auto !important; left: 6px !important; width: 40px !important; height: 40px !important; transform: translateY(-50%) !important; }
@media (max-width: 768px) {
  body .float-call .call-ring { width: 46px !important; height: 46px !important; }
  body .float-call .call-label { display: none !important; }
}
@media (hover: hover) and (pointer: fine) {
  body .float-call .call-btn:hover, body .float-call .call-btn:focus-visible { gap: 10px !important; padding-right: 16px !important; }
}
body .otis-credit { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body .otis-credit:hover { color: #243670; }
body .otis-lang-item > a { font-weight: 700 !important; letter-spacing: 0.04em; }
