/* ============================================================
   Plot Manole — Static Property Microsite
   Design: premium, calm, credible, privacy-conscious
   Palette: warm neutrals, stone, muted green, off-white, charcoal
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --color-bg:        #FAF8F5;
  --color-bg-alt:    #F4F1EC;
  --color-surface:   #FFFFFF;
  --color-border:    #E2DDD5;
  --color-text:      #2D2A26;
  --color-text-muted:#6B6560;
  --color-text-light:#8B857F;
  --color-accent:    #5B7B5E;
  --color-accent-hover: #4A6A4D;
  --color-accent-subtle: #E8F0E9;
  --color-gold:      #C8A94E;
  --color-gold-subtle:#F9F3E3;
  --color-cta-gpt:   #2D2A26;
  --color-cta-gpt-hover: #1A1816;
  --color-cta-form:  #5B7B5E;
  --color-cta-form-hover: #4A6A4D;

  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-accent:  'Georgia', serif;

  /* Spacing */
  --section-gap:  5rem;
  --content-max:  72rem;
  --content-narrow: 42rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 1.0625rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem);  }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem);  }
h4 { font-size: 1.125rem; }

p + p { margin-top: 0.75rem; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--color-accent-hover); }

strong { font-weight: 600; }

.text-muted  { color: var(--color-text-muted); }
.text-light  { color: var(--color-text-light); }
.text-accent { color: var(--color-accent); }
.text-gold   { color: var(--color-gold); }

.text-center { text-align: center; }
.text-sm     { font-size: 0.875rem; }
.text-lg     { font-size: 1.125rem; }
.text-xl     { font-size: 1.25rem; }

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: var(--content-narrow);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  width: 100%;
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-gap) 0;
}
.section:first-of-type {
  padding-top: 6rem;
}

.section-header {
  margin-bottom: 2.5rem;
}
.section-header h2 {
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--color-text-muted);
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 auto;
  max-width: var(--content-max);
  width: calc(100% - 3rem);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration) var(--ease);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.navbar-links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}
.navbar-links a:hover { color: var(--color-text); }

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-switch button {
  background: none;
  border: none;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--duration) var(--ease);
  font-family: var(--font-body);
}
.lang-switch button.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.lang-switch button:hover:not(.active) {
  color: var(--color-text);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  transition: all var(--duration) var(--ease);
  border-radius: 1px;
}

.navbar.open .mobile-nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.navbar.open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.open .mobile-nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* --- Bilingual content visibility --- */
[lang] { display: none; }
[lang="bg"] { display: block; }

html.lang-bg [lang="bg"] { display: block; }
html.lang-bg [lang="en"] { display: none; }

html.lang-en [lang="bg"] { display: none; }
html.lang-en [lang="en"] { display: block; }

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-cta-gpt);
  color: #FFFFFF;
  border-color: var(--color-cta-gpt);
}
.btn-primary:hover {
  background: var(--color-cta-gpt-hover);
  border-color: var(--color-cta-gpt-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--color-cta-form);
  color: #FFFFFF;
  border-color: var(--color-cta-form);
}
.btn-secondary:hover {
  background: var(--color-cta-form-hover);
  border-color: var(--color-cta-form-hover);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-text);
  color: var(--color-text);
  background: rgba(0,0,0,0.02);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-group-stacked {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cta-group-stacked .btn {
  justify-content: space-between;
  text-align: left;
}

/* --- Hero --- */
.hero {
  padding-top: 5.5rem;
  padding-bottom: 4rem;
  background: var(--color-bg);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.hero-fact strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero-fact-icon {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.5;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-style: italic;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.gallery-item-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: var(--color-text-light);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
  gap: 0.3rem;
}
.gallery-item-placeholder span:first-child {
  font-size: 2rem;
  opacity: 0.3;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; }

/* --- Property Details --- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.details-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.details-card h4 {
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.details-list {
  list-style: none;
}

.details-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}
.details-list li:last-child { border-bottom: none; }

.details-list .label {
  color: var(--color-text-muted);
  font-weight: 500;
}
.details-list .value {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-tag {
  padding: 0.35rem 0.75rem;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* --- Location --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.location-map-link {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
  transition: transform var(--duration) var(--ease);
}
.location-map-link:hover { transform: scale(1.01); }

.location-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-align: center;
}

.location-map-placeholder span {
  font-size: 2.5rem;
  opacity: 0.3;
}

.location-highlights {
  list-style: none;
  margin-top: 1rem;
}
.location-highlights li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.location-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

/* --- Process --- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.process-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.process-card.gpt::before { background: var(--color-cta-gpt); }
.process-card.form::before { background: var(--color-cta-form); }

.process-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.process-card.gpt .process-card-icon {
  background: #F0F0F0;
  color: var(--color-cta-gpt);
}
.process-card.form .process-card-icon {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.process-card h3 { margin-bottom: 0.75rem; }

.process-steps {
  list-style: none;
  margin: 1.25rem 0;
}

.process-steps li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.process-steps .step-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* --- FAQ --- */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-light);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '\2013';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding-bottom 0.35s var(--ease);
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Closing CTA --- */
.closing {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
}

.closing .cta-group {
  justify-content: center;
}

/* --- Footer --- */
.footer {
  padding: 2.5rem 0 4rem;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.footer-links a {
  color: var(--color-text-muted);
}
.footer-links a:hover { color: var(--color-text); }

/* --- Placeholder badge --- */
.placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  border: 1px solid rgba(200,169,78,0.3);
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* --- Privacy notice --- */
.privacy-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

.privacy-notice-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* --- Missing inputs callout --- */
.missing-inputs {
  background: var(--color-gold-subtle);
  border: 1px solid rgba(200,169,78,0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.missing-inputs h4 {
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.missing-inputs ul {
  list-style: none;
  color: var(--color-text-muted);
}

.missing-inputs li::before {
  content: '\25A1 ';
  color: var(--color-gold);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 201;
  opacity: 0.7;
  transition: opacity var(--duration) var(--ease);
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 201;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-sm);
  opacity: 0.7;
  transition: opacity var(--duration) var(--ease);
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

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

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 3.5rem;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual {
    order: -1;
  }

  .process-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .navbar.open .navbar-links { display: flex; }

  .mobile-nav-toggle { display: block; }

  .cta-group .btn { width: 100%; justify-content: center; }
  .closing { border-radius: 0; margin: 0; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-facts { gap: 0.75rem; }
  .hero-fact { font-size: 0.85rem; }
  .gallery-grid { grid-template-columns: 1fr; }

  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }

  .cta-group { flex-direction: column; }
}
