/* =========================
   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
========================= */

.property-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;
}

.navbar-brand span {
  color: var(--accent);
}

.property-navbar .nav-link {
  color: rgba(255, 255, 255, 0.65) !important;

  font-size: 13px;

  transition: 0.3s ease;
}

.property-navbar .nav-link:hover {
  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;
}

.property-list-btn:hover {
  background: var(--accent);
  color: var(--white);
}


/* =========================
   BREADCRUMB
========================= */

.property-breadcrumb {
  padding: 17px 0;

  background: var(--white);

  border-bottom: 1px solid var(--border);
}

.breadcrumb-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 9px;

  color: var(--muted);

  font-size: 10px;
}

.breadcrumb-content a {
  color: var(--primary);

  font-weight: 600;
}

.breadcrumb-content i {
  font-size: 8px;

  color: #a5ada9;
}


/* =========================
   GALLERY
========================= */

.property-gallery-section {
  padding: 30px 0 0;

  background: var(--white);
}

.property-gallery {
  display: grid;

  grid-template-columns: 2fr 1fr;

  gap: 10px;

  height: 540px;

  overflow: hidden;

  border-radius: 20px;
}

.gallery-main {
  position: relative;

  overflow: hidden;
}

.gallery-main>img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.gallery-status {
  position: absolute;

  top: 18px;
  left: 18px;

  padding: 7px 11px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.95);

  color: var(--primary);

  font-size: 9px;
  font-weight: 700;
}

.gallery-expand {
  position: absolute;

  right: 18px;
  bottom: 18px;

  display: inline-flex;
  align-items: center;

  gap: 7px;

  padding: 10px 14px;

  border: 0;

  border-radius: 7px;

  background: rgba(13, 43, 37, 0.88);

  color: var(--white);

  font-size: 10px;
  font-weight: 600;
}

.gallery-side {
  display: grid;

  grid-template-rows: repeat(4, 1fr);

  gap: 10px;
}

.gallery-thumb {
  position: relative;

  overflow: hidden;

  padding: 0;

  border: 0;

  background: transparent;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.gallery-thumb.active {
  outline: 3px solid var(--accent);

  outline-offset: -3px;
}

.gallery-last span {
  position: absolute;

  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(13, 43, 37, 0.55);

  color: var(--white);

  font-size: 12px;
  font-weight: 700;
}


/* =========================
   PROPERTY CONTENT
========================= */

.property-details-section {
  padding: 65px 0 90px;
}


/* =========================
   IDENTITY
========================= */

.property-identity {
  padding-bottom: 28px;

  border-bottom: 1px solid var(--border);
}

.property-title-line {
  display: flex;
  justify-content: space-between;

  gap: 20px;
}

.property-category {
  color: var(--accent);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 1.7px;
}

.property-title-line h1 {
  margin-top: 8px;

  font-family: "Playfair Display", serif;

  font-size: clamp(36px, 4.5vw, 52px);

  line-height: 1.05;

  letter-spacing: -1px;
}

.property-save {
  width: 43px;
  height: 43px;

  flex-shrink: 0;

  border: 1px solid var(--border);

  border-radius: 50%;

  background: var(--white);

  color: var(--primary);

  transition: 0.3s ease;
}

.property-save:hover {
  background: var(--primary);
  color: var(--white);
}

.property-location {
  margin-top: 12px;

  color: var(--muted);

  font-size: 11px;
}

.property-location i {
  margin-right: 4px;

  color: var(--primary);
}

.property-price-row {
  display: flex;
  align-items: baseline;

  gap: 13px;

  margin-top: 18px;
}

.property-price-row strong {
  color: var(--primary);

  font-family: "Playfair Display", serif;

  font-size: 28px;
}

.property-price-row span {
  color: var(--muted);

  font-size: 10px;
}


/* =========================
   FACTS
========================= */

.property-facts {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  margin-top: 25px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 15px;
}

.property-fact {
  display: flex;
  align-items: center;

  gap: 11px;

  padding: 19px;

  border-right: 1px solid var(--border);
}

.property-fact:last-child {
  border-right: 0;
}

.property-fact>i {
  color: var(--primary);

  font-size: 20px;
}

.property-fact span {
  display: block;

  color: var(--muted);

  font-size: 9px;
}

.property-fact strong {
  display: block;

  margin-top: 3px;

  font-size: 12px;
}


/* =========================
   CONTENT BLOCK
========================= */

.property-content-block {
  margin-top: 60px;
}

.property-eyebrow {
  color: var(--accent);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 1.7px;
}

.property-content-block h2 {
  max-width: 700px;

  margin-top: 9px;

  font-family: "Playfair Display", serif;

  font-size: 36px;

  line-height: 1.1;
}

.property-content-block h2 span {
  color: var(--primary);
}

.property-content-block h3 {
  margin-top: 8px;

  font-family: "Playfair Display", serif;

  font-size: 28px;
}

.property-content-block>p {
  max-width: 720px;

  margin-top: 15px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.8;
}


/* =========================
   AMENITIES
========================= */

.amenities-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;

  margin-top: 25px;
}

.amenity-item {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 17px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 12px;
}

.amenity-item i {
  color: var(--primary);

  font-size: 18px;
}

.amenity-item span {
  color: var(--muted);

  font-size: 11px;
}


/* =========================
   MAP
========================= */

.property-map {
  height: 330px;

  position: relative;

  overflow: hidden;

  margin-top: 25px;

  border-radius: 18px;

  background:
    linear-gradient(135deg,
      #dce4de,
      #eef1eb);
}

.property-map::before {
  content: "";

  position: absolute;

  width: 140%;
  height: 1px;

  left: -20%;
  top: 48%;

  background: rgba(23, 63, 53, 0.1);

  transform: rotate(-12deg);
}

.property-map::after {
  content: "";

  position: absolute;

  width: 140%;
  height: 1px;

  left: -20%;
  top: 60%;

  background: rgba(23, 63, 53, 0.08);

  transform: rotate(18deg);
}

.map-center {
  position: absolute;

  inset: 0;

  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-center i {
  color: var(--primary);

  font-size: 37px;
}

.map-center strong {
  margin-top: 5px;

  color: var(--primary);

  font-size: 12px;
}

.map-center span {
  margin-top: 3px;

  color: var(--muted);

  font-size: 9px;
}

.location-note {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-top: 12px;

  color: var(--muted);

  font-size: 9px;
}

.location-note i {
  color: var(--accent);
}


/* =========================
   CONTACT CARD
========================= */

.property-contact-card {
  padding: 28px;

  border-radius: 19px;

  background: var(--primary);

  color: var(--white);
}

.property-contact-card h3 {
  margin-top: 11px;

  font-family: "Playfair Display", serif;

  font-size: 29px;

  line-height: 1.15;
}

.property-contact-card>p {
  margin-top: 12px;

  color: rgba(255, 255, 255, 0.57);

  font-size: 11px;

  line-height: 1.7;
}

.property-call-btn,
.property-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  width: 100%;

  padding: 12px;

  margin-top: 15px;

  border-radius: 7px;

  font-size: 11px;
  font-weight: 700;
}

.property-call-btn {
  background: var(--white);

  color: var(--primary);
}

.property-whatsapp-btn {
  background: rgba(255, 255, 255, 0.08);

  color: #9de4b5;
}

.contact-divider {
  height: 1px;

  margin: 23px 0;

  background: rgba(255, 255, 255, 0.12);
}


/* =========================
   LISTING AGENT
========================= */

.listing-agent {
  display: flex;
  align-items: center;

  gap: 11px;

  color: var(--white);
}

.listing-agent img {
  width: 47px;
  height: 47px;

  object-fit: cover;

  border-radius: 10px;
}

.listing-agent>div {
  flex: 1;
}

.listing-agent span {
  display: block;

  color: rgba(255, 255, 255, 0.4);

  font-size: 7px;
  font-weight: 700;

  letter-spacing: 1.2px;
}

.listing-agent strong {
  display: block;

  margin-top: 3px;

  font-family: "Playfair Display", serif;

  font-size: 15px;
}

.listing-agent small {
  display: block;

  margin-top: 3px;

  color: rgba(255, 255, 255, 0.5);

  font-size: 8px;
}

.listing-agent small i {
  color: #79b9ff;
}

.listing-agent>i {
  color: var(--accent);

  font-size: 13px;
}


/* =========================
   INFO CARD
========================= */

.property-info-card {
  margin-top: 18px;

  padding: 24px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 18px;
}

.info-row {
  display: flex;
  justify-content: space-between;

  padding: 14px 0;

  border-bottom: 1px solid var(--border);

  font-size: 10px;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span {
  color: var(--muted);
}

.info-row strong {
  color: var(--primary);

  font-size: 10px;
}


/* =========================
   NIVORA NOTE
========================= */

.property-nivora-note {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  margin-top: 18px;

  padding: 17px;

  border: 1px solid rgba(214, 168, 95, 0.3);

  border-radius: 14px;

  background: rgba(214, 168, 95, 0.08);
}

.property-nivora-note>i {
  color: var(--accent);

  font-size: 20px;
}

.property-nivora-note strong {
  display: block;

  color: var(--primary);

  font-size: 11px;
}

.property-nivora-note span {
  display: block;

  margin-top: 4px;

  color: var(--muted);

  font-size: 9px;

  line-height: 1.5;
}


/* =========================
   SIMILAR PROPERTIES
========================= */

.similar-properties {
  padding: 75px 0 100px;

  background: var(--white);

  border-top: 1px solid var(--border);
}

.similar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 28px;
}

.similar-heading h2 {
  margin-top: 8px;

  font-family: "Playfair Display", serif;

  font-size: 36px;
}

.similar-heading>a {
  color: var(--primary);

  font-size: 10px;
  font-weight: 700;
}


/* CARD */

.similar-property-card {
  display: block;

  overflow: hidden;

  background: var(--cream);

  border: 1px solid var(--border);

  border-radius: 16px;

  color: var(--text);

  transition: 0.35s ease;
}

.similar-property-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 18px 45px rgba(23, 63, 53, 0.09);
}

.similar-image {
  height: 220px;

  position: relative;

  overflow: hidden;
}

.similar-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.6s ease;
}

.similar-property-card:hover img {
  transform: scale(1.05);
}

.similar-image span {
  position: absolute;

  left: 13px;
  bottom: 13px;

  padding: 6px 10px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.95);

  color: var(--primary);

  font-family: "Playfair Display", serif;

  font-size: 13px;
  font-weight: 600;
}

.similar-content {
  padding: 17px;
}

.similar-content h4 {
  margin: 0;

  font-family: "Playfair Display", serif;

  font-size: 18px;
}

.similar-content p {
  margin: 6px 0 0;

  color: var(--muted);

  font-size: 10px;
}


/* =========================
   FOOTER
========================= */

.property-footer {
  padding: 27px 0;

  background: var(--primary-dark);

  color: rgba(255, 255, 255, 0.4);
}

.property-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 9px;
}

.property-footer-logo {
  color: var(--white);

  font-family: "Playfair Display", serif;

  font-size: 23px;
  font-weight: 700;
}

.property-footer-logo span {
  color: var(--accent);
}

.property-footer-inner>a:last-child {
  color: rgba(255, 255, 255, 0.55);
}


/* =========================
   GALLERY MODAL
========================= */

.gallery-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background: rgba(7, 22, 19, 0.94);
}

.gallery-modal.show {
  display: flex;
}

.gallery-modal img {
  max-width: 90%;
  max-height: 85vh;

  object-fit: contain;

  border-radius: 12px;
}

.gallery-close {
  position: absolute;

  top: 25px;
  right: 25px;

  width: 42px;
  height: 42px;

  border: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.1);

  color: var(--white);

  font-size: 16px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

  .property-gallery {
    height: 430px;
  }

}

@media (max-width: 767px) {

  .property-gallery {
    grid-template-columns: 1fr;

    height: 500px;
  }

  .gallery-side {
    display: none;
  }

  .property-facts {
    grid-template-columns: 1fr 1fr;
  }

  .property-fact:nth-child(2) {
    border-right: 0;
  }

  .property-fact:nth-child(1),
  .property-fact:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 576px) {

  .property-gallery {
    height: 330px;

    border-radius: 14px;
  }

  .property-title-line {
    align-items: flex-start;
  }

  .property-title-line h1 {
    font-size: 35px;
  }

  .property-price-row {
    flex-direction: column;

    gap: 2px;
  }

  .property-facts {
    grid-template-columns: 1fr 1fr;
  }

  .property-fact {
    padding: 14px;
  }

  .property-fact>i {
    font-size: 17px;
  }

  .property-content-block h2 {
    font-size: 30px;
  }

  .similar-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 10px;
  }

  .property-footer-inner {
    align-items: flex-start;

    flex-direction: column;

    gap: 10px;
  }

}