/* Nicaragua Real Estate — Argumentit Investment LLC */

:root {
  --color-bg: #fbf8f2;
  --color-surface: #ffffff;
  --color-text: #23302a;
  --color-text-muted: #5b6b62;
  --color-primary: #1f6e52;
  --color-primary-dark: #164f3b;
  --color-accent: #d98e34;
  --color-border: #e6e0d4;
  --shadow-card: 0 10px 30px rgba(23, 41, 33, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(23, 41, 33, 0.14);
  --radius: 14px;
  --max-width: 1160px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.brand:hover {
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
  }
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(160deg, #eef4ee 0%, #fbf8f2 60%);
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  max-width: 18ch;
}

.hero p {
  max-width: 60ch;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-head {
  max-width: 65ch;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* Property grid & cards */

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.property-card a.card-link {
  color: inherit;
}

.property-card a.card-link:hover {
  text-decoration: none;
}

.property-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}

.property-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
}

.property-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.property-location {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.property-summary {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.property-meta span strong {
  color: var(--color-text);
}

.property-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-top: 4px;
}

/* Detail page */

.detail-header {
  padding: 40px 0 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.detail-title-row h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 6px;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery button {
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #ddd;
  overflow: hidden;
  position: relative;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery button:hover img {
  transform: scale(1.05);
}

.gallery-item-main {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-more {
  position: relative;
}

.gallery-more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(23, 41, 33, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .gallery-item-main {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.detail-body {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .detail-body {
    grid-template-columns: 1fr;
  }
}

.detail-body h2 {
  font-size: 1.3rem;
  margin-top: 0;
}

.detail-description p {
  color: var(--color-text);
}

.fact-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.fact-list li {
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
}

.fact-list .fact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.fact-list .fact-value {
  font-weight: 600;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-list li::before {
  content: "\2713";
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 10px;
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 96px;
}

.sidebar-card h2 {
  font-size: 1.1rem;
}

.sidebar-card .btn {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.sidebar-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 17, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 6px;
}

.lightbox-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.lightbox-controls button {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
  padding: 40px 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}
