/* =========================
   ROOT
========================= */

:root {
  --primary: #173f35;
  --primary-dark: #0d2b25;
  --accent: #d6a85f;
  --cream: #f7f5ef;
  --text: #17211e;
  --muted: #68736f;
  --white: #ffffff;
  --border: rgba(23, 63, 53, 0.11);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--cream);
}

a {
  text-decoration: none;
}


/* =========================
   NAVBAR
========================= */

.properties-navbar {
  padding: 15px 0;

  background: var(--primary);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  color: var(--white) !important;

  font-family: "Playfair Display", serif;

  font-size: 30px;
  font-weight: 700;

  letter-spacing: -1px;
}

.navbar-brand span {
  color: var(--accent);
}

.properties-navbar .nav-link {
  color: rgba(255, 255, 255, 0.65) !important;

  font-size: 13px;

  transition: 0.3s ease;
}

.properties-navbar .nav-link:hover,
.properties-navbar .nav-link.active {
  color: var(--white) !important;
}

.property-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 17px;

  border-radius: 50px;

  background: var(--white);
  color: var(--primary);

  font-size: 11px;
  font-weight: 700;

  transition: 0.3s ease;
}

.property-list-btn:hover {
  background: var(--accent);
  color: var(--white);
}


/* =========================
   HERO
========================= */

.properties-hero {
  padding: 105px 0 80px;

  background:
    radial-gradient(circle at 80% 0%,
      rgba(214, 168, 95, 0.15),
      transparent 30%),
    var(--primary);

  color: var(--white);
}

.properties-hero-content {
  max-width: 850px;
}

.eyebrow {
  color: var(--accent);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 2px;
}

.properties-hero h1 {
  margin-top: 13px;

  font-family: "Playfair Display", serif;

  font-size: clamp(45px, 6vw, 72px);

  line-height: 1.03;

  letter-spacing: -2.5px;
}

.properties-hero h1 span {
  display: block;

  color: #d9b878;
}

.properties-hero p {
  max-width: 600px;

  margin-top: 20px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 15px;
  line-height: 1.7;
}


/* =========================
   SEARCH
========================= */

.property-search {
  max-width: 720px;

  display: flex;

  margin-top: 30px;

  padding: 6px;

  background: var(--white);

  border-radius: 11px;
}

.property-search-field {
  flex: 1;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 0 15px;
}

.property-search-field i {
  color: var(--primary);
}

.property-search-field input {
  width: 100%;

  padding: 14px 0;

  border: 0;
  outline: 0;

  font-family: inherit;
  font-size: 13px;
}

.property-search button {
  border: 0;

  padding: 13px 21px;

  border-radius: 7px;

  background: var(--primary-dark);
  color: var(--white);

  font-size: 12px;
  font-weight: 700;
}


/* =========================
   DIRECTORY
========================= */

.properties-directory {
  padding: 70px 0 100px;
}


/* =========================
   FILTER BOX
========================= */

.property-filter {
  position: sticky;
  top: 25px;

  padding: 24px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 18px;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 20px;

  border-bottom: 1px solid var(--border);
}

.filter-heading h5 {
  margin: 0;

  font-family: "Playfair Display", serif;

  font-size: 19px;
}

.filter-heading button {
  border: 0;

  background: transparent;

  color: var(--accent);

  font-size: 10px;
  font-weight: 700;
}


/* =========================
   FILTER GROUP
========================= */

.property-filter-group {
  padding: 20px 0;

  border-bottom: 1px solid var(--border);
}

.property-filter-group>label:first-child {
  display: block;

  margin-bottom: 11px;

  font-size: 11px;
  font-weight: 700;
}


/* PURPOSE */

.purpose-tabs {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6px;
}

.purpose-tabs button {
  padding: 9px;

  border: 1px solid var(--border);

  border-radius: 7px;

  background: var(--cream);

  color: var(--muted);

  font-size: 10px;
  font-weight: 600;
}

.purpose-tabs .purpose-active {
  background: var(--primary);

  border-color: var(--primary);

  color: var(--white);
}


/* SELECT */

.property-filter-group select {
  width: 100%;

  padding: 10px 12px;

  border: 1px solid var(--border);

  border-radius: 7px;

  background: var(--cream);

  color: var(--text);

  outline: 0;

  font-family: inherit;
  font-size: 10px;
}


/* CHECKBOX */

.property-check {
  display: flex !important;
  align-items: center;

  gap: 9px;

  margin-bottom: 10px;

  color: var(--muted);

  font-size: 11px;
}

.property-check input {
  accent-color: var(--primary);
}


/* BUDGET */

.budget-row {
  display: flex;
  align-items: center;

  gap: 6px;
}

.budget-row select {
  padding: 9px 6px;

  font-size: 9px;
}

.budget-row span {
  color: var(--muted);

  font-size: 10px;
}


/* BEDROOM */

.bedroom-options {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 6px;
}

.bedroom-options button {
  padding: 8px 4px;

  border: 1px solid var(--border);

  border-radius: 6px;

  background: var(--cream);

  color: var(--muted);

  font-size: 10px;
}


/* APPLY */

.apply-property-filter {
  width: 100%;

  margin-top: 20px;

  padding: 12px;

  border: 0;

  border-radius: 7px;

  background: var(--primary);

  color: var(--white);

  font-size: 11px;
  font-weight: 700;
}


/* =========================
   DIRECTORY TOP
========================= */

.property-directory-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 28px;
}

.directory-label {
  color: var(--accent);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 1.7px;
}

.property-directory-top h2 {
  margin-top: 7px;

  font-family: "Playfair Display", serif;

  font-size: 34px;
}

.property-directory-top p {
  margin-top: 5px;

  color: var(--muted);

  font-size: 10px;
}

.property-sort {
  display: flex;
  align-items: center;

  gap: 8px;

  color: var(--muted);

  font-size: 10px;
}

.property-sort select {
  padding: 7px 10px;

  border: 1px solid var(--border);

  border-radius: 6px;

  background: var(--white);

  color: var(--text);

  font-family: inherit;
  font-size: 10px;
}


/* =========================
   PROPERTY CARD
========================= */

.property-directory-card {
  display: block;

  overflow: hidden;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 18px;

  color: var(--text);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.property-directory-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 22px 55px rgba(23, 63, 53, 0.1);
}


/* IMAGE */

.property-directory-image {
  height: 245px;

  position: relative;

  overflow: hidden;
}

.property-directory-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.property-directory-card:hover .property-directory-image img {
  transform: scale(1.05);
}


/* BADGE */

.property-badge {
  position: absolute;

  top: 14px;
  left: 14px;

  padding: 7px 11px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.95);

  color: var(--primary);

  font-size: 9px;
  font-weight: 700;
}


/* HEART */

.property-heart {
  position: absolute;

  top: 13px;
  right: 13px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.95);

  color: var(--primary);

  font-size: 15px;
}


/* CONTENT */

.property-directory-content {
  padding: 20px;
}

.property-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;
}

.property-category {
  color: var(--accent);

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 1.4px;
}

.property-title-row h3 {
  margin-top: 5px;

  font-family: "Playfair Display", serif;

  font-size: 20px;

  line-height: 1.15;
}

.property-title-row strong {
  flex-shrink: 0;

  color: var(--primary);

  font-family: "Playfair Display", serif;

  font-size: 18px;
}


/* LOCATION */

.property-location {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 10px;
}

.property-location i {
  margin-right: 3px;
}


/* FEATURES */

.property-features {
  display: flex;
  flex-wrap: wrap;

  gap: 15px;

  margin-top: 18px;
}

.property-features span {
  color: var(--muted);

  font-size: 9px;
}

.property-features i {
  margin-right: 4px;

  color: var(--primary);
}


/* LISTED */

.property-listed {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 18px;
  padding-top: 15px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: 9px;
}

.property-listed strong {
  color: var(--primary);
}

.property-listed>i {
  color: var(--primary);

  transition: 0.3s ease;
}

.property-directory-card:hover .property-listed>i {
  transform: translate(3px, -3px);
}


/* =========================
   PAGINATION
========================= */

.property-pagination {
  display: flex;
  justify-content: center;

  gap: 7px;

  margin-top: 45px;
}

.property-pagination button {
  width: 36px;
  height: 36px;

  border: 1px solid var(--border);

  border-radius: 7px;

  background: var(--white);

  color: var(--muted);

  font-size: 11px;
}

.property-pagination .page-active {
  background: var(--primary);

  border-color: var(--primary);

  color: var(--white);
}


/* =========================
   FOOTER
========================= */

.properties-footer {
  padding: 55px 0 25px;

  background: var(--primary-dark);

  color: var(--white);
}

.properties-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.properties-footer-logo {
  color: var(--white);

  font-family: "Playfair Display", serif;

  font-size: 28px;
  font-weight: 700;
}

.properties-footer-logo span {
  color: var(--accent);
}

.properties-footer-main p {
  max-width: 330px;

  margin-top: 9px;

  color: rgba(255, 255, 255, 0.4);

  font-size: 10px;
  line-height: 1.7;
}

.footer-list-link {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  color: var(--white);

  font-size: 11px;
  font-weight: 700;
}

.properties-footer-bottom {
  display: flex;
  justify-content: space-between;

  margin-top: 40px;
  padding-top: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.3);

  font-size: 9px;
}

.properties-footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

  .properties-hero {
    padding: 85px 0 65px;
  }

  .property-filter {
    position: static;
  }

}

@media (max-width: 576px) {

  .properties-hero h1 {
    font-size: 45px;
  }

  .property-search {
    flex-direction: column;

    gap: 5px;
  }

  .property-search button {
    width: 100%;
  }

  .property-directory-top {
    align-items: flex-start;

    flex-direction: column;
  }

  .property-directory-top h2 {
    font-size: 29px;
  }

  .property-title-row {
    flex-direction: column;

    gap: 5px;
  }

  .property-title-row strong {
    font-size: 20px;
  }

  .properties-footer-main {
    align-items: flex-start;

    flex-direction: column;
  }

  .properties-footer-bottom {
    flex-direction: column;

    gap: 10px;
  }

}