/*
Theme Name: Building Theme
Theme URI: https://example.com/
Author: Building Team
Description: Custom WordPress theme for a building/rental website.
Version: 1.0.0
Text Domain: building-theme
*/

/* === Real Estate Realtor-inspired Design === */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #fcb332;
  --secondary: #384260;
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #384260;
  --muted: #6c7293;
  --border: #e8eaf3;
  --shadow: 0 8px 30px rgba(56, 66, 96, 0.08);
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Layout === */

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* === Header === */

.site-header {
  background: var(--secondary, #384260);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-main {
  padding-top: 76px; /* offset for fixed header */
}

.site-header.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.site-header.scrolled .primary-nav a,
.site-header.scrolled .site-title a,
.site-header.scrolled .site-brand__name,
.site-header.scrolled .dark-mode-toggle {
  color: var(--secondary, #384260);
}

.site-header.scrolled .primary-nav .current-menu-item a,
.site-header.scrolled .primary-nav .current_page_item a {
  border-color: var(--secondary, #384260);
}

/* Logo visibility */
.site-header.scrolled .site-brand img {
  filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.site-brand .custom-logo-link img {
  height: 60px;
  width: auto;
}

/* Language flag switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
  line-height: 0;
}

.lang-btn img {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-btn__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.site-header.scrolled .lang-btn__code {
  color: var(--secondary, #384260);
  background: rgba(56, 66, 96, 0.08);
}

.lang-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.lang-btn.is-active {
  opacity: 1;
  border-color: var(--primary, #fcb332);
}

/* Hide Google Translate widget UI (driven by flags) */
.gtranslate-wrap {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Hide Google Translate top bar */
.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.site-title {
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-title a {
  color: #fff;
}

.site-title a:hover {
  color: var(--primary);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
  background: var(--primary);
  color: var(--secondary);
}

/* === Hero Section (Front Page) === */

.hero {
  padding: 60px 0 40px;
}

/* === Banner Slider (Swiper) === */

.banner-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: var(--secondary);
}

.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(56, 66, 96, 0.85) 0%, rgba(56, 66, 96, 0.3) 100%);
  display: flex;
  align-items: center;
}

.banner-slide__content {
  max-width: 550px;
}

.banner-slide__content .badge {
  margin-bottom: 16px;
}

.banner-slide__content h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.banner-slide__content p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.banner-slide__content .btn {
  box-shadow: 0 0 0 4px rgba(252, 179, 50, 0.4);
}

/* Swiper navigation arrows */
.banner-slider .swiper-button-prev,
.banner-slider .swiper-button-next {
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
}

.banner-slider .swiper-button-prev::after,
.banner-slider .swiper-button-next::after {
  font-size: 18px;
}

.banner-slider:hover .swiper-button-prev,
.banner-slider:hover .swiper-button-next {
  opacity: 1;
  visibility: visible;
}

.banner-slider .swiper-button-prev:hover,
.banner-slider .swiper-button-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}

/* Swiper pagination dots */
.banner-slider .swiper-pagination {
  bottom: 24px;
}

.banner-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  opacity: 1;
  transition: all 0.3s;
}

.banner-slider .swiper-pagination-bullet-active {
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 900px) {
  .banner-slider {
    height: 380px;
  }

  .banner-slide__content h1 {
    font-size: 1.6rem;
  }

  .banner-slider .swiper-button-prev,
  .banner-slider .swiper-button-next {
    width: 36px;
    height: 36px;
  }

  .banner-slider .swiper-button-prev::after,
  .banner-slider .swiper-button-next::after {
    font-size: 14px;
  }
}

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 6px;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(252, 179, 50, 0.3);
}

.btn:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(56, 66, 96, 0.3);
}

.btn.secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* === Badge === */

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* === Sections === */

.section {
  padding: 30px 0 10px;
}

.section-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.section-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.section-copy {
  color: var(--muted);
  line-height: 1.75;
}

/* === Grid === */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* === Cards === */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(56, 66, 96, 0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  color: var(--muted);
  font-size: 14px;
}

/* === Meta List (Building Details) === */

.meta-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 14px;
}

.meta-list strong {
  min-width: 100px;
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
}

/* === Page Header === */

.page-header {
  padding: 50px 0 20px;
}

.page-header h1 {
  border-left: 5px solid var(--primary);
  padding-left: 16px;
}

/* === Content Area === */

.content-area {
  padding: 10px 0 0;
}

.content-area p {
  color: var(--muted);
  margin-bottom: 16px;
}

/* === Form === */

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

input[type='text'],
input[type='url'],
input[type='email'],
input[type='tel'],
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input[type='submit'] {
  background: var(--primary);
  color: var(--secondary);
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(252, 179, 50, 0.3);
  transition: all 0.3s;
}

input[type='submit']:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(56, 66, 96, 0.3);
}

/* === Footer === */

.site-footer {
  background: var(--secondary);
  color: #fff;
  margin-top: 60px;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding: 0;
}

.footer-desc {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.8;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin: 0;
}

/* === Pagination === */

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.nav-links a {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(252, 179, 50, 0.3);
}

.nav-links .current {
  background: var(--secondary);
  color: #fff;
}

/* === Responsive === */

/* === Search Section === */

.search-section {
  position: relative;
  margin-top: -36px;
  z-index: 20;
  padding: 0 0 10px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: 50px;
  box-shadow: 0 8px 40px rgba(56, 66, 96, 0.12);
  padding: 8px 8px 8px 24px;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.search-bar__location {
  flex-shrink: 0;
  border-right: 1px solid var(--border, #e5e7eb);
  padding-right: 12px;
}

.search-bar__location select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px 0;
}

.search-bar__input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar__icon {
  color: var(--muted);
  flex-shrink: 0;
}

.search-bar__input input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  width: 100%;
  padding: 10px 0;
}

.search-bar__input input::placeholder {
  color: var(--muted);
}

.search-bar__btn {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.search-bar__btn:hover {
  background: #ea580c;
}

@media (max-width: 600px) {
  .search-bar {
    border-radius: 12px;
    padding: 8px 12px;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
  }

  .search-bar__location {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding-right: 0;
    padding-bottom: 8px;
  }

  .search-bar__location select {
    width: 100%;
    max-width: 100%;
    padding: 8px 0;
    box-sizing: border-box;
  }

  .search-bar__input {
    width: 100%;
  }

  .search-bar__btn {
    width: 100%;
    border-radius: 8px;
  }
}

/* === Section Header === */

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header .section-title {
  border-left: none;
  padding-left: 0;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.section-cta {
  text-align: center;
  margin-top: 36px;
}

/* === Building Grid (Card Layout) === */

.building-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.building-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.building-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(56, 66, 96, 0.14);
}

.building-card__image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.building-card__image a {
  display: block;
  height: 100%;
}

.building-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.building-card:hover .building-card__image img {
  transform: scale(1.08);
}

.building-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-size: 48px;
}

.building-card__location {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #f97316;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.building-card__body {
  padding: 20px;
}

.building-card__title {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.building-card__title a {
  color: var(--secondary);
}

.building-card__title a:hover {
  color: var(--primary);
}

.building-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.building-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.building-card__meta-item svg {
  color: var(--muted);
}

.building-card__price {
  font-size: 1.1rem;
  color: var(--secondary);
  white-space: nowrap;
}

.building-card__price strong {
  font-weight: 700;
}

@media (max-width: 900px) {
  .building-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .building-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .building-card__image {
    height: 180px;
  }
}

/* === Search Results Page === */

.search-page-header {
  background: var(--secondary);
  padding: 50px 0 60px;
  text-align: center;
}

.search-page-title {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.search-page-title span {
  color: var(--primary);
}

.search-page-header .search-bar {
  margin: 0 auto;
}

.search-result-count {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.search-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.search-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-no-results {
  text-align: center;
  padding: 60px 20px;
}

.search-no-results__icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.search-no-results h2 {
  margin-bottom: 12px;
}

.search-no-results p {
  color: var(--muted);
  margin-bottom: 8px;
}

.search-no-results .btn {
  margin-top: 20px;
}

/* === Legacy Building List (archive page) === */

.building-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.building-item {
  display: grid;
  grid-template-columns: 350px 1fr;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.building-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(56, 66, 96, 0.12);
}

.building-item__image {
  position: relative;
  overflow: hidden;
}

.building-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.building-item:hover .building-item__image img {
  transform: scale(1.05);
}

.building-item__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--secondary);
  color: #fff;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.building-item__content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.building-item__content h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.building-item__content h2 a {
  color: var(--secondary);
}

.building-item__content h2 a:hover {
  color: var(--primary);
}

.building-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.meta-tag {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  padding: 5px 10px;
  border-radius: 5px;
}

.meta-tag strong {
  color: var(--secondary);
}

.building-item__excerpt p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.building-item__btn .btn {
  font-size: 13px;
  padding: 10px 20px;
}

@media (max-width: 900px) {
  .building-item {
    grid-template-columns: 1fr;
  }

  .building-item__image img {
    height: 220px;
  }
}

/* === Responsive (general) === */

@media (max-width: 900px) {
  .hero-card,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-brand {
    margin-right: auto;
  }

  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
  }

  .primary-nav {
    display: none;
    order: 3;
    width: 100%;
    padding: 16px;
    margin-top: 12px;
    background: rgba(30, 35, 55, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
  }

  .primary-nav.open {
    display: block !important;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .primary-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
  }

  .primary-nav a:hover,
  .primary-nav .current-menu-item a {
    background: var(--primary);
    color: var(--secondary);
  }

  .header-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-card {
    padding: 30px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .page-header {
    padding: 30px 0 10px;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero-card {
    padding: 20px;
  }

  .section-card,
  .form-card {
    padding: 20px;
  }

  .primary-nav ul {
    gap: 4px;
  }

  .primary-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* === Breadcrumb === */

.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-top: 12px;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.breadcrumb__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__list li:not(:last-child)::after {
  content: '›';
  color: var(--muted);
}

.breadcrumb__list a {
  color: var(--muted);
}

.breadcrumb__list a:hover {
  color: var(--primary);
}

.breadcrumb__list li[aria-current="page"] {
  color: var(--secondary);
  font-weight: 600;
}

/* === Detail Page Layout === */

.detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.detail-location svg {
  color: #f97316;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-main {
  min-width: 0;
}

/* === Gallery === */

.gallery-section {
  margin-bottom: 24px;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
}

.gallery-lightbox-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-lightbox-btn:hover {
  background: var(--primary);
}

.gallery-lightbox-btn svg {
  color: var(--secondary);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s;
  padding: 0;
  background: none;
}

.gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-thumb:hover {
  border-color: var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Detail Content === */

.detail-content {
  margin-top: 0;
}

.detail-content__title {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-content__body {
  color: var(--text);
  line-height: 1.8;
}

.detail-content__body p {
  margin-bottom: 14px;
}

.detail-content__body img {
  border-radius: 8px;
  margin: 16px 0;
}

/* === Detail Sidebar === */

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.detail-info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-info-card__title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.detail-info-list li:last-child {
  border-bottom: none;
}

.detail-info-list__label {
  color: var(--muted);
  font-weight: 500;
}

.detail-info-list__value {
  color: var(--secondary);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.detail-info-list__value--price {
  color: #f97316;
  font-size: 1.1rem;
}

.detail-btn--map {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

/* === CTA Card === */

.detail-cta-card {
  background: linear-gradient(135deg, var(--secondary) 0%, #2a3350 100%);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.detail-cta-card__title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.detail-cta-card__desc {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.detail-btn--call {
  width: 100%;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
  margin-bottom: 10px;
}

.detail-btn--call:hover {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4);
  color: #fff;
}

.detail-btn--schedule {
  width: 100%;
  justify-content: center;
  border-color: rgba(255,255,255,0.4) !important;
  color: #fff !important;
}

.detail-btn--schedule:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* === Lightbox === */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 10001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}

.lightbox__counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}


/* === Filter Bar === */

.filter-bar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.filter-bar__filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-group select,
.filter-group input[type="number"],
.filter-group input[type="text"] {
  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.filter-group select:focus,
.filter-group input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-range input {
  flex: 1;
  min-width: 0;
}

.filter-range span {
  color: var(--muted);
  font-size: 12px;
}

.filter-bar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-btn--submit {
  padding: 10px 20px;
  font-size: 13px;
}

.filter-btn--reset {
  padding: 10px 16px;
  font-size: 13px;
}

.filter-result-count {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .filter-bar__filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .filter-bar__filters {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .filter-group select,
  .filter-group input[type="number"] {
    font-size: 14px;
    padding: 8px 10px;
  }

  .filter-group label {
    font-size: 11px;
  }

  .filter-bar {
    padding: 16px;
  }

  .filter-bar__actions {
    flex-direction: column;
  }

  .filter-bar__actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* === Stats Section === */

.stats-section {
  background: var(--secondary);
  padding: 50px 0;
  margin-top: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 4px;
}

.stat-item__number {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-item__suffix {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-item__label {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
  width: 100%;
  text-align: center;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-item__number {
    font-size: 2rem;
  }
}

/* === Testimonials === */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-card__stars {
  color: #f59e0b;
  font-size: 18px;
  margin-bottom: 14px;
}

.testimonial-card__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #f97316);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-card__author strong {
  display: block;
  font-size: 14px;
  color: var(--secondary);
}

.testimonial-card__author span {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* === Floating CTA Buttons === */

.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

.floating-btn--zalo {
  background: #0068ff;
  animation: zalo-bounce 2s ease-in-out infinite;
}

.floating-btn--zalo:hover {
  background: #0052cc;
  animation: none;
}

@keyframes zalo-bounce {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.1); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60%, 100% { transform: scale(1); }
}

.floating-btn--phone {
  background: #22c55e;
  animation: phone-ring 2s ease-in-out infinite;
}

.floating-btn--phone:hover {
  background: #16a34a;
  animation: none;
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-5deg); }
  20% { transform: rotate(5deg); }
  30% { transform: rotate(-5deg); }
  40% { transform: rotate(5deg); }
  50%, 100% { transform: rotate(0deg); }
}

.floating-btn__tooltip {
  position: absolute;
  right: 60px;
  background: var(--secondary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.floating-btn:hover .floating-btn__tooltip {
  opacity: 1;
}

/* === Compare Feature === */

.compare-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.compare-add-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.compare-add-btn:hover svg {
  stroke: var(--secondary);
}

.compare-add-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.compare-add-btn.active svg {
  stroke: var(--secondary);
}

.building-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

/* === Compare Drawer === */

.compare-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.compare-drawer[hidden] {
  display: none;
}

.compare-drawer__header {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
}

.compare-drawer__count {
  color: var(--muted);
  font-size: 13px;
}

.compare-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  margin-left: 8px;
  padding: 4px;
}

.compare-drawer__items {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.compare-drawer__item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.compare-drawer__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  padding: 0 2px;
}

.compare-drawer__remove:hover {
  color: #ef4444;
}

.compare-drawer__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.compare-drawer__btn {
  font-size: 13px;
  padding: 8px 16px;
}

.compare-drawer__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.compare-drawer__clear {
  font-size: 12px;
  padding: 8px 12px;
}

@media (max-width: 600px) {
  .compare-drawer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .compare-drawer__actions {
    justify-content: stretch;
  }

  .compare-drawer__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* === Compare Table === */

.compare-table-wrapper {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.compare-table thead th {
  background: var(--bg);
  vertical-align: top;
  padding: 20px;
}

.compare-table__head a {
  font-weight: 700;
  color: var(--secondary);
  font-size: 15px;
}

.compare-table__head a:hover {
  color: var(--primary);
}

.compare-table__img {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.compare-table__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-table__label {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  min-width: 120px;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}


/* === Map Embed === */

.detail-map-embed {
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.detail-map-embed iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 8px;
}


/* === Dark Mode === */

[data-theme="dark"] {
  --primary: #fcb332;
  --secondary: #e8eaf3;
  --bg: #1a1d2e;
  --surface: #242838;
  --text: #e8eaf3;
  --muted: #9ca3c0;
  --border: #353a50;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .site-header {
  background: transparent;
}

[data-theme="dark"] .site-header.scrolled {
  background: #141725;
}

[data-theme="dark"] .site-footer {
  background: #141725;
}

[data-theme="dark"] .banner-slide__overlay {
  background: linear-gradient(to right, rgba(20, 23, 37, 0.9) 0%, rgba(20, 23, 37, 0.4) 100%);
}

[data-theme="dark"] .search-bar {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .search-bar__input input {
  color: var(--text);
}

[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-group input[type="number"] {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .stats-section {
  background: #141725;
}

[data-theme="dark"] img {
  opacity: 0.9;
}

/* Dark Mode Toggle */

.dark-mode-toggle {
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.dark-mode-toggle:hover {
  border-color: var(--primary);
  background: rgba(252, 179, 50, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === Favorite Button === */

.fav-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.fav-btn:hover,
.fav-btn.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  transform: scale(1.1);
}

/* === Detail Actions (share + fav) === */

.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.share-buttons {
  display: flex;
  gap: 6px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--muted);
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(252, 179, 50, 0.08);
}

/* === Recently Viewed Card === */

.detail-recent-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.detail-recent-card[hidden] {
  display: none;
}

.detail-recent-card__title {
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s;
  text-decoration: none;
}

.recent-item:hover {
  background: var(--bg);
}

.recent-item__img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-item__title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Scroll Animation === */

.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid items */
.building-grid .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.building-grid .scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.testimonial-grid .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.testimonial-grid .scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .scroll-animate:nth-child(4) { transition-delay: 0.3s; }


/* === Card Actions (fav + compare) === */

.building-card__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.building-card__actions .fav-btn {
  width: 32px;
  height: 32px;
  font-size: 14px;
}


/* === Contact Page === */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface, #fff);
  color: var(--text);
  transition: border-color 0.2s;
  height: 46px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.contact-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary, #9a6b3f);
  outline: none;
}

.contact-form .required {
  color: #ef4444;
}

.contact-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-item__icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item strong {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-info-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.contact-info-item a {
  color: var(--secondary);
}

.contact-info-item a:hover {
  color: var(--primary);
}

.contact-hours-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.contact-hours-list li:last-child {
  border-bottom: none;
}

.contact-hours-list span {
  color: var(--muted);
}

/* === Profile / Company Page === */

.profile-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #2a3350 100%);
  padding: 60px 0;
  text-align: center;
}

.profile-hero__content .badge {
  margin-bottom: 16px;
}

.profile-hero__content h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.profile-hero__content p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.profile-card:hover {
  transform: translateY(-4px);
}

.profile-card__icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.profile-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.profile-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Services Grid */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s;
}

.service-item:hover {
  transform: translateY(-3px);
}

.service-item__number {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 10px;
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Timeline */

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item__year {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-item__content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.timeline-item__content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Profile CTA */

.profile-cta {
  background: linear-gradient(135deg, var(--secondary) 0%, #2a3350 100%);
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
}

.profile-cta h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.profile-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.profile-cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-cta__buttons .btn.secondary {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.profile-cta__buttons .btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}


/* === Widget Styles === */

.widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.widget-title {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.widget-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-contact-list li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.widget-contact-list li:last-child {
  border-bottom: none;
}

.widget-contact-list a {
  color: var(--secondary);
  font-weight: 500;
}

.widget-contact-list a:hover {
  color: var(--primary);
}

.widget-building-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-building-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.widget-building-item:last-child {
  border-bottom: none;
}

.widget-building-item__img {
  flex-shrink: 0;
}

.widget-building-item__img img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.widget-building-item__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.widget-building-item__info a {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-building-item__info a:hover {
  color: var(--primary);
}

.widget-building-item__price {
  font-size: 12px;
  color: #f97316;
  font-weight: 600;
  margin-top: 2px;
}


/* === Home with Sidebar Layout === */

.home-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

.home-with-sidebar__aside {
  position: sticky;
  top: 100px;
}

.building-grid--2col {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 900px) {
  .home-with-sidebar {
    grid-template-columns: 1fr;
  }

  .building-grid--2col {
    grid-template-columns: 1fr !important;
  }
}


/* === Mobile Menu Toggle (Hamburger) === */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.3s;
}

.mobile-menu-toggle:hover {
  border-color: var(--primary);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hamburger trên header scrolled (nền trắng) */
.site-header.scrolled .mobile-menu-toggle {
  border-color: var(--secondary, #384260);
}

.site-header.scrolled .mobile-menu-toggle span {
  background: var(--secondary, #384260);
}

/* Dark mode: header scrolled nền tối → hamburger trắng */
[data-theme="dark"] .site-header.scrolled .mobile-menu-toggle {
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .site-header.scrolled .mobile-menu-toggle span,
[data-theme="dark"] .site-header.scrolled .mobile-menu-toggle.active span {
  background: #fff !important;
}

[data-theme="dark"] .site-header.scrolled .mobile-menu-toggle.active {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Khi menu đang mở - hamburger tối trên nền trắng */
.site-header.scrolled .mobile-menu-toggle.active {
  border-color: var(--secondary, #384260) !important;
}

.site-header.scrolled .mobile-menu-toggle.active span {
  background: var(--secondary, #384260) !important;
}

/* Khi menu mở trên header chưa scroll (nền tối) - X trắng */
.site-header:not(.scrolled) .mobile-menu-toggle.active {
  border-color: rgba(255,255,255,0.5) !important;
}

.site-header:not(.scrolled) .mobile-menu-toggle.active span {
  background: #fff !important;
}

/* Mobile nav menu text color */
.primary-nav .menu-item a {
  color: #fff;
}

.primary-nav.open .menu-item a {
  color: #fff !important;
  opacity: 1;
}

.site-header.scrolled .primary-nav .menu-item a {
  color: var(--secondary, #384260);
}

.site-header.scrolled .primary-nav.open .menu-item a {
  color: #fff !important;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* === Header transparent on front page, solid on other pages === */

body:not(.home) .site-header {
  background: var(--secondary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Scrolled phải thắng rule trên — nền surface + hamburger tương phản */
body:not(.home) .site-header.scrolled {
  background: var(--surface);
}

[data-theme="dark"] body:not(.home) .site-header,
body:not(.home)[data-theme="dark"] .site-header {
  background: var(--bg);
}

[data-theme="dark"] body:not(.home) .site-header.scrolled,
body:not(.home)[data-theme="dark"] .site-header.scrolled {
  background: var(--bg);
}

body:not(.home) .site-main {
  padding-top: 76px;
}

/* Banner — no overlap with fixed header */
body.home .banner-slider {
  margin-top: 0;
}

body.home .banner-slider .banner-slide__content {
  padding-top: 0;
}


/* === Widget: Stats === */

.widget-stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-stats-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.widget-stats-list li:last-child {
  border-bottom: none;
}

.widget-stats-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 36px;
}

/* === Widget: CTA Banner === */

.widget-cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #2a3350 100%);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin: -20px;
}

.widget-cta-banner h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.widget-cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}


/* === Blog Grid === */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card__image {
  display: block;
  height: 200px;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 20px;
}

.blog-card__meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.blog-card__date {
  font-weight: 500;
}

.blog-card__cat a {
  color: var(--primary);
  font-weight: 600;
}

.blog-card__title {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card__title a {
  color: var(--secondary);
}

.blog-card__title a:hover {
  color: var(--primary);
}

.blog-card__excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* === Blog Single === */

.blog-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-single-layout { grid-template-columns: 1fr; }
}

.blog-single-sidebar {
  position: sticky;
  top: 100px;
}

.blog-single-header {
  margin-bottom: 24px;
}

.blog-single-meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.blog-single-title {
  font-size: 2rem;
  line-height: 1.3;
}

.blog-single-featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.blog-single-featured img {
  width: 100%;
  height: auto;
}

.blog-single-content {
  margin-bottom: 24px;
}

.blog-single-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.blog-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.blog-tag {
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
}

.blog-single-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--muted);
}

/* === Comments === */

.comments-area {
  margin-top: 20px;
}

.comments-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.comment-list li {
  margin-bottom: 20px;
}

.comment-body {
  display: flex;
  gap: 14px;
}

.comment-author-avatar img {
  border-radius: 50%;
}

.comment-content {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-author-name {
  font-size: 14px;
  color: var(--secondary);
}

.comment-date {
  font-size: 12px;
  color: var(--muted);
}

.comment-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}

.comment-reply a {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.comment-list .children {
  list-style: none;
  padding-left: 40px;
  margin-top: 16px;
}

/* Comment Form */
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.comment-form .required {
  color: #ef4444;
}

.comment-form p {
  margin-bottom: 14px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
}

.no-comments {
  color: var(--muted);
  font-style: italic;
}


/* === Building Card Excerpt === */

.building-card__excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.building-card__excerpt a {
  color: var(--muted);
}

.building-card__excerpt a:hover {
  color: var(--primary);
}


.building-card__readmore {
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}


.detail-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 10px;
  max-width: 700px;
}


/* === Related Carousel (Swiper) === */

.related-carousel {
  overflow: hidden;
  padding-bottom: 10px;
}

.related-carousel .swiper-slide {
  height: auto;
}

.related-card {
  height: 100%;
}

.related-nav {
  display: flex;
  gap: 8px;
}

.swiper-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s;
  user-select: none;
}

.swiper-nav-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--secondary);
}
