
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, .logo-text, .contact-eyebrow {
  font-family: 'Manrope', 'Inter', 'Segoe UI', sans-serif;
}

body {
  background: #f7f3eb;
  color: #22313f;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background: #0f172a;
  color: #f8fafc;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #f5835a 0%, #e76f51 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.header-hidden {
  transform: translateY(-120%);
}

.header-hidden + * {
  transition: padding-top 0.28s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: bold;
}

.logo-text {
  display: inline-block;
  white-space: nowrap;
  transform: translateX(0);
  opacity: 1;
  animation: brandSlideOut 10s ease forwards;
}

.logo-image {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

@keyframes brandSlideOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  14% {
    transform: translateX(28px);
    opacity: 1;
  }
  86% {
    transform: translateX(28px);
    opacity: 1;
  }
  100% {
    transform: translateX(28px);
    opacity: 1;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ffe066;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #222;
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.dark-mode-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

nav a:hover {
  color: #fff3c4;
  border-bottom: 2px solid #ffd166;
}

.nav-compare-item.active a {
  color: #ffe066;
  animation: comparePulse 0.8s ease-in-out 2;
}

body.dark-mode header {
  background: linear-gradient(135deg, #001a67 0%, #0f172a 100%);
}

body.dark-mode .property-card,
body.dark-mode .land-card,
body.dark-mode .filter-btn,
body.dark-mode .compare-section,
body.dark-mode .contact-section,
body.dark-mode footer {
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

body.dark-mode .card-buttons {
  border-top-color: #4b5563;
}

body.dark-mode .compare-btn,
body.dark-mode .view-btn,
body.dark-mode .filter-btn,
body.dark-mode .dark-mode-toggle {
  background: #374151;
  color: #f9fafb;
  border-color: #4b5563;
}

body.dark-mode .dark-mode-toggle {
  background: #f5f5f5;
  color: #111;
}

@keyframes comparePulse {
  0%, 100% { transform: scale(1); color: #ffe066; }
  50% { transform: scale(1.08); color: #ffd43b; }
}

@keyframes sectionPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 131, 90, 0.35); transform: scale(1); }
  50% { box-shadow: 0 0 0 14px rgba(245, 131, 90, 0.08); transform: scale(1.01); }
  100% { box-shadow: 0 0 0 0 rgba(245, 131, 90, 0); transform: scale(1); }
}

@keyframes clearComparePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 131, 90, 0.25); background: #f5835a; }
  50% { transform: scale(0.97); box-shadow: 0 0 0 12px rgba(245, 131, 90, 0.08); background: #ff8f5d; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 131, 90, 0); background: #f5835a; }
}

@keyframes compareResetGlow {
  0% { background-color: rgba(245, 131, 90, 0.08); }
  50% { background-color: rgba(245, 131, 90, 0.18); }
  100% { background-color: transparent; }
}

.section-highlight {
  animation: sectionPulse 0.8s ease-out;
}

.clear-compare-btn.is-clearing {
  animation: clearComparePulse 0.6s ease-out;
}

.compare-section.compare-resetting {
  animation: compareResetGlow 0.6s ease-out;
}

/* SLIDESHOW */
.slideshow {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  position: relative;
}

.slides {
  display: none;
  width: 100%;
  height: 100%;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fade {
  animation: fade 1s;
}

@keyframes fade {
  from {opacity: 0.4}
  to {opacity: 1}
}

/* PROPERTIES */
.properties-section {
  padding: 60px 40px;
  
}

.land-section {
  padding: 60px 40px;
}

.properties-section h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 40px;
}

.land-section h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 40px;
}
.property-filters {
  text-align: center;
  margin-bottom: 20px;
}

.land-filters {
  text-align: center;
  margin-bottom: 20px;
}


.filter-btn {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 6px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.active {
  background: #222;
  color: white;
  border-color: #222;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.land-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.property-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: relative;
  transition: 0.3s;
}

.land-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: relative;
  transition: 0.3s;
}

.property-card:hover {
  transform: translateY(-5px);
}

.land-card:hover {
  transform: translateY(-5px);
}

.offer-band {
  position: absolute;
  top: 20px;
  right: -80px;
  background: crimson;
  color: white;
  padding: 10px 80px;
  transform: rotate(45deg);
  font-weight: bold;
  display: none;
}

/* PRICE BAND */
.price-band {
  position: absolute;
  top: 20px;
  left: -70px;
  background: gold;
  color: #111;
  padding: 10px 70px;
  transform: rotate(-45deg);
  font-weight: bold;
  z-index: 5;
}

.offer-band.active {
  display: block;
}

.property-image-container {
  padding: 15px;
  position: relative;
}

.land-image-container {
  padding: 15px;
}

.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.75);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.property-image-container:hover .image-nav-btn,
.property-image-container:focus-within .image-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.image-nav-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(17, 17, 17, 0.9);
}

.image-nav-btn.prev {
  left: 24px;
}

.image-nav-btn.next {
  right: 24px;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.thumbnail-row img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.thumbnail-row img:hover {
  transform: scale(1.05);
}

.thumbnail-row img.active-thumbnail {
  outline: 2px solid #f5835a;
  outline-offset: 2px;
}

.property-details {
  padding: 20px;
}

.land-details {
  padding: 20px;
}

.property-details h2 {
  margin-bottom: 15px;
}

.land-details h2 {
  margin-bottom: 15px;
}

.property-details p {
  margin-bottom: 10px;
}

.land-details p {
  margin-bottom: 10px;
}

.property-map {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 8px;
  margin: 0 0 12px;
}

.land-map {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 8px;
  margin: 0 0 12px;
}

.property-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.land-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.spec-column {
  text-align: center;
}

.spec-column p {
  margin: 0;
}

.card-buttons {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  border-top: 1px solid #ddd;
}

.card-buttons button {
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.save-btn {
  background: crimson;
  color: white;
}

.compare-btn {
  background: #2f4f4f;
  color: white;
}

.view-btn {
  background: #2f8f5a;
  color: white;
}

.card-buttons button:hover {
  opacity: 0.8;
}

/* FAVORITES + COMPARE */
.favorites-section,
.compare-section,
.contact-section {
  padding: 60px 40px;
}

.compare-section.is-empty {
  display: none;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff6eb 0%, #fbe8d0 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(245, 131, 90, 0.18);
}

.contact-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #f5835a;
  margin-bottom: 8px;
}

.contact-card h2 {
  margin-bottom: 8px;
  color: #222;
}

.contact-copy {
  color: #555;
  max-width: 620px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: #222;
  color: white;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  background: #f5835a;
}

body.dark-mode .contact-card {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

body.dark-mode .contact-card h2,
body.dark-mode .contact-copy {
  color: #f9fafb;
}

.compare-section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.clear-compare-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: #f5835a;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.clear-compare-btn:hover:not(:disabled) {
  background: #e56d3f;
  transform: translateY(-1px);
}

.clear-compare-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#favorites-list,
#compare-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 20px;
}

#compare-list.compare-two-columns {
  grid-template-columns: 1fr 220px 1fr;
  align-items: start;
}

@media (max-width: 900px) {
  #compare-list.compare-two-columns {
    grid-template-columns: 1fr;
  }
}

.compare-bar {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff7ed 0%, #fff1e2 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.compare-bar-row {
  display: grid;
  gap: 12px;
}

.compare-bar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.compare-bar-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.compare-value {
  font-size: 0.95rem;
  color: #334155;
  text-align: center;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

.compare-value.winner {
  color: #0f9d58;
  font-weight: 800;
}

.compare-value.loser {
  color: #d32f2f;
}

.compare-meter {
    position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 80px;
  height: 14px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.compare-meter .meter-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
}

.compare-meter .left-fill {
  left: 0;
  background: rgba(43, 130, 217, 0.85);
  z-index: 1;
}

.compare-meter .right-fill {
  right: 0;
  background: rgba(255, 140, 66, 0.85);
  z-index: 1;
}

.compare-bar-status {
  font-size: 0.8rem;
  color: #475569;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.saved-item {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.compare-card {
  overflow: hidden;
}

.compare-card-side {
  background: white;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.09);
   border: 2px solid transparent;
}

.compare-card-side.left-card {
  border-color: rgba(43, 130, 217, 0.35);
}

.compare-card-side.right-card {
  border-color: rgba(255, 140, 66, 0.35);
}

.compare-card-header {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.compare-card-header img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.compare-card-price {
  color: #f5835a;
  font-weight: 700;
  margin-bottom: 6px;
}

.compare-card-side h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.compare-card-specs {
  display: grid;
  gap: 10px;
}

.compare-card-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.compare-spec-label {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

.compare-spec-value {
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 900px) {
  #compare-list.compare-two-columns {
    grid-template-columns: 1fr;
  }
}

/* CONTACT */
form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input,
form textarea {
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

form button {
  background: #111;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  margin-top: 3%;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 50px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .property-grid,
  .land-grid {
    grid-template-columns: 1fr;
  }

  .thumbnail-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    padding: 18px 20px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    padding: 8px 0;
  }

  .properties-section,
  .land-section,
  .compare-section,
  .contact-section {
    padding: 40px 18px;
  }

  .property-grid,
  .land-grid,
  #compare-list {
    grid-template-columns: 1fr;
  }

  .property-card,
  .land-card,
  .saved-item,
  .contact-card {
    width: 100%;
  }

  .property-card,
  .land-card {
    margin: 0 auto;
  }

  .main-image {
    height: 260px;
  }

  .thumbnail-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .property-map,
  .land-map {
    height: 200px;
  }

  .property-specs,
  .land-specs {
    grid-template-columns: 1fr;
  }

  .spec-column {
    text-align: left;
    padding-left: 12px;
  }

  .card-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .card-buttons button {
    width: 100%;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-card > div {
    width: 100%;
  }

  .contact-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .thumbnail-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-image {
    height: 220px;
  }

  .property-details,
  .land-details {
    padding: 16px;
  }

  .card-buttons {
    padding: 16px;
  }

  .filter-btn {
    padding: 10px 12px;
    margin: 6px 4px;
  }

  .contact-card {
    padding: 24px 18px;
  }
}

.property-features {
  display: flex;
  gap: 20px;
  color: #333;
}

            .feature-box {
                flex: 1;
                border: 1px solid #ddd;
                border-radius: 8px;
                padding: 15px;
                text-align: center;
                background-color: #f9f9f9;
                box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            }

            .feature-label {
                display: block;
                font-size: 0.85rem;
                color: #666;
                text-transform: uppercase;
                letter-spacing: 1px;
                margin-bottom: 5px;

            }

            .feature-value {
                display: block;
                font-size: 1.25rem;
                font-weight: bold;
                color: #2c3e50;       }


footer {
  background: linear-gradient(135deg, #233142 0%, #1d2a38 100%);
  color: white;
  padding: 20px 0;
  text-align: center;
}

.footerContainer {
  width: 100%;
  padding: 10px 30px 20px;
}

.socialIcons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.socialIcons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  text-decoration: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
  color: #222;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  margin: 10px;
}

.socialIcons a i {
  font-size: 1.25rem;
  transition: color 0.25s ease;
}

.socialIcons a:hover,
.socialIcons a:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #f5835a 0%, #ff9f6e 100%);
  color: white;
}

.socialIcons a:hover i,
.socialIcons a:focus-visible i {
  color: white;
}
