:root {
  --navy: #132f54;
  --navy-deep: #083262;
  --blue-btn: #2c75ba;
  --blue-card: #47658b;
  --footer: #313234;
  --card-header: #bdbdbd;
  --border-light: #dadada;
  --page-bg: #f5f5f5;
  --search-bg: #0e2340;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ========== Header ========== */
.site-header {
  background-color: var(--navy);
  padding: 0.55rem 0;
}

.site-header .navbar {
  padding: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.brand-logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  border-bottom-color: #fff;
}

.nav-links a.auth-link {
  font-weight: 700;
  margin-left: 0.35rem;
}

.header-search {
  position: relative;
  min-width: 180px;
  max-width: 220px;
}

.header-search input {
  background: var(--search-bg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border-radius: 2px;
  width: 100%;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.header-search input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  background: var(--search-bg);
  color: #fff;
}

.header-search .search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== Footer ========== */
.site-footer {
  background: var(--footer);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  margin-top: auto;
}

/* ========== Home ========== */
.hero-slider {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  background: #fafafa;
}

.hero-slider .carousel-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.hero-slider .carousel-indicators {
  margin-bottom: 0.75rem;
}

.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(255, 255, 255, 0.55);
}

.hero-slider .carousel-indicators .active {
  background-color: #fff;
}

.category-section {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.category-section:last-of-type {
  border-bottom: none;
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0 0.85rem;
  gap: 1rem;
}

.category-row h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #111;
}

.btn-view-all {
  background: var(--blue-btn);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
}

.btn-view-all:hover {
  background: #2465a3;
  color: #fff;
}

/* Owl carousels */
.slab-carousel {
  margin-bottom: 0.5rem;
}

.slab-carousel .item {
  padding: 0 6px;
}

.slab-carousel .item a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.slab-carousel .item a:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.slab-carousel .item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.slab-carousel .slab-caption {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slab-carousel .owl-nav {
  position: absolute;
  top: 42%;
  width: 100%;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.slab-carousel .owl-nav button.owl-prev,
.slab-carousel .owl-nav button.owl-next {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  background: var(--navy) !important;
  color: #fff !important;
  font-size: 1.35rem !important;
  line-height: 28px !important;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slab-carousel .owl-nav button.owl-prev {
  left: -6px;
}

.slab-carousel .owl-nav button.owl-next {
  right: -6px;
}

.slab-carousel .owl-nav button span {
  display: block;
  margin-top: -2px;
}

.slab-carousel .owl-dots {
  margin-top: 0.65rem;
}

.slab-carousel .owl-dots .owl-dot span {
  background: #c5c5c5;
  width: 8px;
  height: 8px;
  margin: 4px;
}

.slab-carousel .owl-dots .owl-dot.active span,
.slab-carousel .owl-dots .owl-dot:hover span {
  background: var(--blue-btn);
}

/* ========== Contact ========== */
.page-title {
  text-align: center;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin: 2rem 0 0.35rem;
  display: inline-block;
  width: 100%;
}

.page-title::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  background: var(--navy-deep);
  margin: 0.4rem auto 0;
}

.contact-map {
  width: 100%;
  min-height: 480px;
  height: 480px;
  border: 1px solid #ccc;
  border-radius: 2px;
  overflow: hidden;
  background: #e8eef5;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-card {
  background: var(--blue-card);
  color: #fff;
  border-radius: 4px;
  min-height: 480px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.contact-card h3 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-card p {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.contact-section {
  margin-bottom: 3rem;
}

/* ========== Buyer / Seller shared ========== */
.video-panel {
  border: 12px solid var(--navy);
  background: #000;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.video-panel .video-embed,
.video-panel .ratio {
  --bs-aspect-ratio: 0;
  height: 260px;
  max-height: 260px;
  padding: 0 !important;
  background: #111;
  position: relative;
}

.video-panel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767.98px) {
  .video-panel {
    border-width: 8px;
  }

  .video-panel .video-embed,
  .video-panel .ratio {
    height: 180px;
    max-height: 180px;
  }
}

.filter-bar {
  background: var(--navy);
  padding: 0.75rem 0.85rem;
}

.filter-bar .form-select {
  border-radius: 2px;
  font-size: 0.85rem;
  border: none;
  padding: 0.45rem 2rem 0.45rem 0.65rem;
}

.info-card {
  border: 1px solid #c8c8c8;
  border-radius: 0;
  margin-bottom: 1.15rem;
  overflow: hidden;
  background: #fff;
}

.info-card .card-header {
  background: var(--card-header);
  border-bottom: 1px solid #b0b0b0;
  font-weight: 700;
  font-size: 1rem;
  color: #111;
  padding: 0.65rem 1rem;
  border-radius: 0;
}

.info-card .card-body {
  padding: 1rem 1.1rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #222;
}

.page-wrap {
  padding-bottom: 2.5rem;
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
  .nav-collapse-panel {
    background: var(--navy);
    padding: 0.75rem 0 1rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
  }

  .header-search {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .hero-slider .carousel-item img {
    height: 220px;
  }

  .slab-carousel .item img {
    height: 140px;
  }

  .contact-card {
    min-height: 360px;
    margin-top: 1rem;
  }

  .contact-map {
    min-height: 360px;
    height: 360px;
  }
}

@media (max-width: 575.98px) {
  .brand-logo img {
    height: 40px;
    max-width: 130px;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .category-row h2 {
    font-size: 1rem;
  }
}
