/* ===========================================================
   UNIMARK GROUP PALETTE — DESIGN TOKENS
   (colors extracted directly from the Unimark Group logo)
   Master Orange:    #f27921  (primary brand color — CTAs, links, accents, navbar highlights)
   Orange Dark:      #d6660f  (hover state for orange elements)
   Ash Grey:         #828a8a  (secondary brand color — replaces old navy for dark sections)
   Ash Grey Dark:    #5c6363  (deeper structural tone — footer base / footer-bottom strip)
   Text Grey:        #6c7270  (body copy / muted text, warmed slightly toward ash)
   Light Grey:        #f5f4f2  (section backgrounds — warm off-white, not blue-tinted)
   Border Grey:       #e4e2df
   Display font: Playfair Display (serif headings)
   Body font:    Nunito Sans (sans-serif body/UI)
=========================================================== */

:root {
  --navy: #828a8a;       /* ash grey now drives "dark section" role previously held by navy */
  --navy-dark: #5c6363;  /* deeper ash for footer-bottom strip */
  --sky: #f27921;        /* master orange now drives links/buttons/accents previously sky blue */
  --orange: #f27921;     /* CTA orange = same master orange, single consistent brand color */
  --orange-dark: #d6660f;
  --text-grey: #6c7270;
  --light-grey: #f5f4f2;
  --border-grey: #e4e2df;
}

* { box-sizing: border-box; }

body {
  font-family: 'Nunito Sans', sans-serif;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #1f2d3d;
  margin: 0;
}

a {
  text-decoration: none;
  transition: 0.25s ease;
}

p { margin: 0; }

/* Generic photo placeholder look */
.hero-photo-placeholder,
.fp-photo-placeholder,
.welcome-photo-placeholder,
.property-photo-placeholder,
.lifestyle-photo-placeholder,
.city-photo-placeholder,
.agent-photo-placeholder {
  background: repeating-linear-gradient(45deg, #dde3e8, #dde3e8 10px, #e9edf0 10px, #e9edf0 20px);
  color: #8a97a3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  border: 1px dashed #c3ccd4;
}

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--light-grey);
  border-bottom: 1px solid var(--border-grey);
  padding: 10px 0;
  font-size: 0.82rem;
  color: var(--text-grey);
}
.topbar-item { margin-right: 28px; }
.topbar-item i { color: var(--sky); margin-right: 6px; }
.topbar-right a {
  color: var(--text-grey);
  margin-left: 14px;
  font-size: 0.85rem;
}
.topbar-right a:hover { color: var(--sky); }

/* ===================== NAVBAR ===================== */
.main-navbar {
  background: var(--orange);
  padding: 14px 0;
}
.navbar-brand {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.brand-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}
.brand-icon { color: #fff; margin-right: 8px; font-size: 1.4rem; }

.main-menu .nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 16px;
}
.main-menu .nav-link.active,
.main-menu .nav-link:hover { color: #fff; }

.utility-menu .nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  padding: 8px 12px;
}
.utility-menu .nav-link:hover { color: #fff; }
.fav-count {
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  padding: 1px 7px;
  font-size: 0.75rem;
  margin-left: 4px;
}

.btn-cta-orange {
  background: #ffffff;
  color: var(--orange) !important;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 0.88rem;
}
.btn-cta-orange:hover { background: #f2f2f2; }

.dropdown-menu {
  border: none;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.dropdown-item { font-size: 0.9rem; padding: 8px 18px; }
.dropdown-item:hover { background: var(--light-grey); color: var(--sky); }

/* ===================== HERO ===================== */
.hero-section { position: relative; }

.hero-photo-placeholder {
  height: 560px;
  width: 100%;
  font-size: 1.4rem;
  /* When replacing the placeholder div with a real photo, use either:
     1) <img class="hero-photo" src="..."> with the rule below, or
     2) background-image here with background-size: cover; background-position: center;
     Recommended export size for the photo: 1920px wide x 900-1000px tall (JPG/WebP) */
  background-size: cover;
  background-position: center;
}
.hero-photo {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  background: var(--sky);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.95;
}
.carousel-control-prev, .carousel-control-next { width: 6%; opacity: 1; }
.carousel-control-prev { justify-content: flex-start; padding-left: 24px; }
.carousel-control-next { justify-content: flex-end; padding-right: 24px; }

/* Floating property card */
.floating-property-card {
  position: absolute;
  top: 90px;
  left: 6%;
  width: 320px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
  z-index: 5;
  overflow: hidden;
}
.fp-photo-placeholder { height: 130px; font-size: 0.85rem; }
.fp-body { padding: 18px 20px; }
.fp-body h5 { font-size: 1.05rem; margin-bottom: 6px; }
.fp-address { font-size: 0.8rem; color: var(--text-grey); margin-bottom: 10px; }
.fp-address i { color: var(--sky); margin-right: 4px; }
.fp-price { font-size: 1.25rem; font-weight: 800; color: #1f2d3d; margin-bottom: 10px; }
.fp-sqft { font-size: 0.8rem; color: var(--text-grey); font-weight: 600; margin-left: 6px; }
.fp-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-grey); margin-bottom: 8px; }
.fp-meta i { color: var(--sky); margin-right: 4px; }
.fp-type { font-size: 0.72rem; color: var(--text-grey); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 14px; }
.btn-details {
  background: var(--sky);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 22px;
  border-radius: 4px;
}
.btn-details:hover { background: #d6660f; color: #fff; }

/* Search bar */
.search-bar-wrap {
  position: relative;
  margin-top: -32px;
  z-index: 6;
}
.search-bar {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  padding: 8px 10px;
  flex-wrap: wrap;
}
.search-field {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-field.grow { flex: 1 1 220px; }
.search-field.divider { border-left: 1px solid var(--border-grey); }
.search-field i { color: var(--text-grey); }
.search-field input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
}
.form-select-plain {
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #444;
  background: transparent;
}
.btn-clear {
  border: none;
  background: transparent;
  color: var(--sky);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
}
.btn-go {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 26px;
  border-radius: 4px;
}
.btn-go:hover { background: #d6660f; color: #fff; }

/* ===================== SECTION HEADINGS ===================== */
.section-heading h2 { font-size: 2.1rem; margin-bottom: 10px; }
.section-heading p { color: var(--text-grey); font-size: 0.95rem; }
.section-heading-row .section-heading { margin-bottom: 0; }

.slider-nav .btn-outline-nav {
  border: 1px solid var(--sky);
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 4px;
  margin-left: 8px;
}
.slider-nav .btn-outline-nav:hover { background: var(--sky); color: #fff; }

/* ===================== WELCOME SECTION ===================== */
.welcome-section { background: var(--light-grey); padding: 90px 0; }
.welcome-photo-placeholder { height: 220px; border-radius: 6px; margin-bottom: 24px; }
.welcome-card h4 { font-size: 1.3rem; margin-bottom: 14px; }
.welcome-card p { color: var(--text-grey); font-size: 0.9rem; }

/* ===================== FEATURED / FOR-SALE PROPERTY CARDS ===================== */
.featured-section, .for-sale-section { padding: 90px 0; }
.for-sale-section { background: var(--light-grey); }

.property-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.property-photo-placeholder {
  height: 220px;
  position: relative;
  font-size: 0.85rem;
}
.property-photo-placeholder.photo-tall { height: 260px; }

.badge-featured {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #5cb85c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.badge-status {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #1f2d3d;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.badge-hot {
  position: absolute;
  top: 44px;
  right: 14px;
  background: #e23636;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
}
.price-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 4px;
}
.price-overlay small { font-weight: 600; font-size: 0.72rem; display: block; opacity: 0.85; }

.card-arrow-prev, .card-arrow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #1f2d3d;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.property-photo-placeholder:hover .card-arrow-prev,
.property-photo-placeholder:hover .card-arrow-next { opacity: 1; }
.card-arrow-prev { left: 12px; }
.card-arrow-next { right: 12px; }

.property-body { padding: 20px 22px; }
.property-body h5 { font-size: 1.1rem; margin-bottom: 6px; }
.prop-address { font-size: 0.82rem; color: var(--text-grey); margin-bottom: 8px; }
.prop-address i { color: var(--sky); margin-right: 4px; }
.prop-type { font-size: 0.72rem; font-weight: 700; color: var(--sky); letter-spacing: 0.5px; margin-bottom: 14px; }
.prop-meta { display: flex; gap: 18px; font-size: 0.85rem; color: #444; margin-bottom: 10px; flex-wrap: wrap; }
.prop-meta i { color: var(--sky); margin-right: 4px; }
.prop-meta small { color: var(--text-grey); margin-left: 2px; }
.property-body hr { border-color: var(--border-grey); margin: 14px 0; }
.prop-agent { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; }
.agent-avatar-placeholder {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #d8dee3;
  flex-shrink: 0;
}

/* ===================== WHY HOUZEZ / INQUIRY FORM ===================== */
.why-section {
  background: var(--navy);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.why-bg-pattern {
  position: absolute;
  left: 0; top: 0;
  width: 45%;
  height: 100%;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 14px);
  opacity: 0.6;
}
.why-title { color: #fff; font-size: 1.9rem; max-width: 460px; position: relative; z-index: 2; }
.why-point { position: relative; z-index: 2; }
.why-number { color: rgba(255,255,255,0.35); font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.why-point h5 { color: #fff; font-size: 1.05rem; margin: 10px 0 14px; }
.why-divider { border-color: rgba(255,255,255,0.25); width: 40px; margin: 0 0 14px; }
.why-point p { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.inquiry-form-card {
  background: #fff;
  border-radius: 6px;
  padding: 36px 38px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  position: relative;
  z-index: 2;
}
.inquiry-form-card h4 { font-size: 1.35rem; margin-bottom: 8px; }
.inquiry-form-card > p { font-size: 0.85rem; margin-bottom: 24px; }
.inquiry-form-card .form-label { font-size: 0.85rem; font-weight: 700; color: #1f2d3d; margin-bottom: 6px; }
.inquiry-form-card .form-control,
.inquiry-form-card .form-select {
  border: 1px solid var(--border-grey);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.88rem;
}
.inquiry-form-card .form-control:focus,
.inquiry-form-card .form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(46,164,224,0.15);
}
.btn-submit {
  background: var(--sky);
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: 4px;
  font-size: 0.95rem;
}
.btn-submit:hover { background: #d6660f; color: #fff; }

/* ===================== LIFESTYLES / CITIES ===================== */
.lifestyles-section, .cities-section { padding: 90px 0; }

.lifestyle-card, .city-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.lifestyle-photo-placeholder { height: 100%; font-size: 0.85rem; }
.lifestyle-tall .lifestyle-photo-placeholder { height: 280px; }
.lifestyle-short .lifestyle-photo-placeholder { height: 150px; }
.city-photo-placeholder { height: 220px; font-size: 0.85rem; }

.lifestyle-overlay, .city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,35,0.75) 0%, rgba(10,20,35,0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  color: #fff;
  pointer-events: none;
}
.lifestyle-overlay h5, .city-overlay h5 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.lifestyle-overlay span, .city-overlay span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; opacity: 0.85; }

.lifestyle-card::after, .city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46,164,224,0);
  transition: background 0.3s ease;
}
.lifestyle-card:hover::after, .city-card:hover::after {
  background: rgba(28,58,94,0.25);
}

/* ===================== AGENTS / GET IN TOUCH ===================== */
.agents-section { background: var(--light-grey); padding: 90px 0; }
.agent-photo-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 18px;
  font-size: 0.65rem;
}
.agent-name { color: var(--sky); font-weight: 700; margin-bottom: 4px; }
.agent-role { font-size: 0.8rem; color: #444; margin-bottom: 12px; }
.agent-bio { font-size: 0.82rem; color: var(--text-grey); margin-bottom: 12px; }
.view-profile-link { color: var(--sky); font-size: 0.85rem; font-weight: 700; }
.view-profile-link:hover { color: var(--navy); }

/* ===================== PARTNERS STRIP ===================== */
.partners-section { padding: 50px 0; border-top: 1px solid var(--border-grey); }
.logo-placeholder {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab4bd;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  filter: grayscale(100%);
  opacity: 0.7;
}

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.footer-main { padding: 80px 0 50px; }
.footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 22px; text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Nunito Sans', sans-serif; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.footer-links a i { color: var(--sky); font-size: 0.7rem; margin-right: 8px; }
.footer-links a:hover { color: #fff; }
.footer-contact li { font-size: 0.88rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--sky); margin-top: 3px; }

.footer-bottom {
  background: var(--navy-dark);
  padding: 26px 0;
}
.footer-social { margin-bottom: 22px; }
.footer-social a {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  margin: 0 12px;
}
.footer-social a i { margin-right: 5px; }
.footer-social a:hover { color: var(--sky); }
.footer-logo {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.footer-logo i { color: var(--sky); margin-right: 6px; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin: 0; }

.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--sky);
  color: #fff;
  border: none;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 999;
}
.scroll-top-btn.show { display: flex; }
.scroll-top-btn:hover { background: #d6660f; }

/* ===========================================================
   RESPONSIVE BREAKPOINTS
=========================================================== */

/* Tablet */
@media (max-width: 991.98px) {
  .hero-photo-placeholder { height: 460px; }
  .hero-photo { height: 460px; }
  .floating-property-card { width: 280px; top: 60px; left: 4%; }
  .why-bg-pattern { display: none; }
  .why-title { max-width: 100%; }
  .inquiry-form-card { margin-top: 50px; }
  .main-menu .nav-link, .utility-menu .nav-link { color: #fff; }
  .main-navbar { background: var(--orange); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
  .navbar-brand { color: #fff; }
  .brand-logo-img { height: 46px; }
  .btn-cta-orange { display: inline-block; margin-top: 10px; }
}

/* Mobile */
@media (max-width: 767.98px) {
  .topbar { display: none; }
  .hero-photo-placeholder { height: 360px; font-size: 1rem; }
  .hero-photo { height: 360px; }
  .floating-property-card { position: static; width: 100%; margin: 20px auto 0; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
  .search-bar-wrap { margin-top: 20px; position: static; }
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-field.divider { border-left: none; border-top: 1px solid var(--border-grey); }
  .btn-clear, .btn-go { width: 100%; margin-top: 8px; }
  .section-heading h2 { font-size: 1.6rem; }
  .why-section { padding: 60px 0; }
  .inquiry-form-card { padding: 26px 22px; margin-top: 40px; }
  .welcome-section, .featured-section, .for-sale-section,
  .lifestyles-section, .cities-section, .agents-section { padding: 60px 0; }
  .section-heading-row { flex-direction: column; align-items: flex-start !important; gap: 14px; }
  .slider-nav { margin-top: 10px; }
  .scroll-top-btn { bottom: 16px; right: 16px; }
}