@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Core Custom Properties --- */
:root {
  --color-bg-dark: #0b0b0c;
  --color-bg-panel: #141416;
  --color-bg-card: rgba(22, 22, 24, 0.7);
  --color-border: rgba(197, 168, 128, 0.15);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-primary: #c5a880;
  --color-primary-hover: #d4bfa0;
  --color-text-main: #f5f5f7;
  --color-text-muted: #a1a1a6;
  --color-success: #5eaf7b;
  --color-accent-blue: #4a90e2;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(197, 168, 128, 0.15);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* --- Layout Elements --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 80px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

header.scrolled {
  background: rgba(11, 11, 13, 0.9);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 168, 128, 0.06);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 24px;
  max-width: 1400px;
  padding: 0 40px;
}

.header-container .logo {
  justify-self: start;
}

.header-container nav {
  justify-self: center;
}

.header-container .nav-actions {
  justify-self: end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.logo:hover {
  opacity: 0.95;
  transform: scale(1.01);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.logo span {
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(197, 168, 128, 0.25);
  font-weight: 500;
}

.logo-tag {
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.25);
  color: var(--color-primary);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  min-width: 160px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 8px var(--color-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-actions .btn {
  min-width: 180px;
  font-size: 1.35rem;
  height: 48px;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  height: 42px;
  line-height: 1;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b39268 100%);
  color: var(--color-bg-dark);
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.mobile-nav-actions {
  display: none;
}

/* --- Hero Section --- */
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(197, 168, 128, 0.1), transparent 60%),
              linear-gradient(270deg, rgba(11, 11, 12, 1) 0%, rgba(20, 20, 22, 1) 50%, rgba(11, 11, 12, 1) 100%);
  background-size: 200% 200%;
  animation: heroGradient 15s ease infinite;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid var(--color-border);
  padding: 6px 16px;
  border-radius: 50px;
}

.hero h1 {
  font-size: 3.5rem;
  max-width: 850px;
  margin: 0 auto 24px auto;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(135deg, #fff 30%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- Specs Banner (The Kubera Standard) --- */
.specs-section {
  padding: 80px 0;
  border-top: 1px solid var(--color-border-subtle);
  background: rgba(20, 20, 22, 0.5);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-title-wrap h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-title-wrap p {
  color: var(--color-text-muted);
  max-width: 550px;
  margin: 0 auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.spec-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.spec-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-premium);
}

.spec-icon {
  width: 50px;
  height: 50px;
  background: rgba(197, 168, 128, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: bold;
}

.spec-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

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

.spec-list li {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

.spec-list li::before {
  content: "•";
  color: var(--color-primary);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.spec-list strong {
  color: var(--color-text-main);
}

/* --- Section Switching & Layouts --- */
.content-section {
  display: none;
  padding: 80px 0;
  animation: fadeIn 0.5s ease;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Invest Section (Properties Catalog) --- */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-tags {
  display: flex;
  gap: 12px;
}

.filter-tag {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.filter-tag:hover, .filter-tag.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg-dark);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.property-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-premium);
}

.property-image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.property-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card:hover .property-image-wrap img {
  transform: scale(1.08);
}

.status-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.status-active {
  background: rgba(94, 175, 123, 0.2);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.status-renovating {
  background: rgba(197, 168, 128, 0.2);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.status-sold {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.property-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.property-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

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

.property-card-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3em;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 16px;
  margin-top: auto;
}

.property-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.property-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-link:hover {
  color: var(--color-primary);
}

/* --- Reno Section (Before/After Slider & Portfolio) --- */
.slider-showcase {
  margin-bottom: 80px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 550px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-premium);
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.slider-img-after {
  z-index: 1;
}

.slider-img-before {
  z-index: 2;
  /* Masked clip-path dynamically controlled by JS */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-primary);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.5);
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  background: rgba(11, 11, 12, 0.8);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.4), inset 0 0 10px rgba(197, 168, 128, 0.2);
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.slider-wrapper:hover .slider-handle-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle-button::before,
.slider-handle-button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Left arrow */
.slider-handle-button::before {
  border-width: 5px 6px 5px 0;
  border-color: transparent var(--color-primary) transparent transparent;
  left: 12px;
}

/* Right arrow */
.slider-handle-button::after {
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent var(--color-primary);
  right: 12px;
}

.slider-label {
  position: absolute;
  bottom: 24px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: rgba(11, 11, 12, 0.8);
  border: 1px solid var(--color-border-subtle);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.slider-label-before {
  left: 24px;
}

.slider-label-after {
  right: 24px;
}

.slider-info {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.slider-info h3 {
  font-size: 1.6rem;
}

.slider-info p {
  color: var(--color-text-muted);
}

/* --- ROI / Energy Calculator --- */
.calculator-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .calculator-wrap {
    grid-template-columns: 1fr;
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-label-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.input-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* Range Input Styling */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
  transition: transform 0.1s ease;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.5);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Custom Select Dropdowns */
.calc-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c5a880' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
}

.calc-select:focus {
  border-color: var(--color-primary);
}

.calc-results {
  background: rgba(197, 168, 128, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 16px;
}

.result-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.result-label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.result-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.result-val.highlight {
  color: var(--color-primary);
}

.result-val.success-text {
  color: var(--color-success);
}

/* --- Floating Property Concierge Chat --- */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
}

.chat-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg-dark);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
  position: relative;
}

.chat-trigger:hover {
  transform: scale(1.05);
  background: var(--color-primary-hover);
}

.chat-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.3;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
}

.chat-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title-wrap h4 {
  font-size: 1rem;
}

.chat-status {
  font-size: 0.75rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.chat-close:hover {
  color: #fff;
}

/* Language selector */
.chat-lang-bar {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-border-subtle);
}

.chat-lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: bold;
}

.chat-lang-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg-dark);
}

/* Messages area */
.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.msg-bot {
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-main);
  align-self: flex-start;
  border-top-left-radius: 0;
}

.msg-user {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  align-self: flex-end;
  border-top-right-radius: 0;
  font-weight: 500;
}

.chat-input-bar {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex-grow: 1;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border-subtle);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.chat-input:focus {
  border-color: var(--color-primary);
}

.chat-send {
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-dark);
  cursor: pointer;
  transition: var(--transition);
}

.chat-send:hover {
  background: var(--color-primary-hover);
}

/* Footer Section */
footer {
  border-top: 1px solid var(--color-border-subtle);
  padding: 60px 0 30px 0;
  background: var(--color-bg-dark);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--color-text-muted);
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-group h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-group ul {
  list-style: none;
}

.footer-group li {
  margin-bottom: 12px;
}

.footer-group a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-group a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 30px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Quick responsiveness tweaks */
.menu-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--color-primary);
}

@media (max-width: 1250px) {
  .header-container {
    display: flex;
    justify-content: space-between;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-actions {
    display: none;
  }
  .logo span {
    display: none;
  }
  .logo-tag {
    display: none;
  }
  header nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    flex-direction: column;
    gap: 0;
    padding: 24px;
    z-index: 99;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  }
  header.scrolled nav {
    top: 70px;
  }
  header nav.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .nav-link:last-of-type {
    border-bottom: none;
  }
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-nav-actions .btn {
    width: 100%;
    padding: 12px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .chat-window {
    width: 320px;
    right: -10px;
  }
}

/* --- Interactive Floorplan (Digital Twin) --- */
.floorplan-showcase {
  margin-top: 80px;
  text-align: center;
}

.floorplan-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #060607;
  box-shadow: var(--shadow-premium);
}

.floorplan-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  opacity: 0;
  transform: scale(0.98);
}

.floorplan-img.active {
  opacity: 1;
  transform: scale(1);
}

.floorplan-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* --- Multi-step Renovatie-Aanvraagformulier --- */
.reno-form-section {
  margin-top: 100px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 50px;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: var(--shadow-premium);
}

.reno-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.form-progress-container {
  margin-bottom: 40px;
}

.form-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
  margin-bottom: 20px;
}

.form-progress-fill {
  height: 100%;
  width: 33.3%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-glow);
}

.form-steps-indicator {
  display: flex;
  justify-content: space-between;
}

.step-indicator {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.step-indicator.active {
  color: var(--color-primary);
}

.step-indicator.completed {
  color: var(--color-success);
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .reno-form-section {
    padding: 40px 20px;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.08);
}

.form-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.checkbox-card {
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.checkbox-card:hover {
  border-color: var(--color-primary);
  background: rgba(197, 168, 128, 0.02);
}

.checkbox-card input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-card span {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.form-success-state {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(94, 175, 123, 0.1);
  border: 2px solid var(--color-success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  font-size: 2.5rem;
  margin-bottom: 24px;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- 360° Virtuele Tour Modal Lightbox --- */
.tour-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(11, 11, 12, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
}

.tour-modal.active {
  display: flex;
}

.tour-modal-content {
  width: 90%;
  max-width: 1000px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-premium);
}

.tour-modal-header {
  padding: 20px 24px;
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-modal-header h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.tour-close-btn:hover {
  color: #fff;
}

.panorama-container {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.panorama-image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  cursor: grab;
  user-select: none;
}

.panorama-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 5;
  background: #000;
}

.panorama-instruction {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 11, 12, 0.8);
  border: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(6px);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  box-shadow: var(--shadow-premium);
}

.panorama-instruction i {
  color: var(--color-primary);
}

/* Link Style for 360 Tour Trigger */
.property-tour-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-top: 8px;
}

.property-tour-link:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
}

/* --- Geluidsisolatie-demonstrator --- */
.audio-demo-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-premium);
}

.audio-control-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Custom Switch for Sound Demo */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.08);
  transition: .4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 34px;
  border: 1px solid var(--color-border-subtle);
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-text-muted);
  transition: .4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

input:checked + .slider-round:before {
  transform: translateX(22px);
  background-color: var(--color-bg-dark);
}

.insulation-label {
  transition: var(--transition);
  color: var(--color-text-muted);
}

.insulation-label.active {
  color: #fff;
}

/* Audio Visualizer Waves */
.wave-bar {
  width: 6px;
  height: 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  transition: var(--transition);
}

.audio-visualizer.playing .wave-bar {
  background: #fff;
  animation: bounce 0.6s ease-in-out infinite alternate;
}

.audio-visualizer.playing .wave-bar:nth-child(2n) {
  animation-delay: 0.1s;
  animation-duration: 0.4s;
}

.audio-visualizer.playing .wave-bar:nth-child(3n) {
  animation-delay: 0.25s;
  animation-duration: 0.85s;
}

.audio-visualizer.playing .wave-bar:nth-child(4n) {
  animation-delay: 0.15s;
  animation-duration: 0.5s;
}

.audio-visualizer.playing .wave-bar:nth-child(5n) {
  animation-delay: 0.3s;
  animation-duration: 0.7s;
}

@keyframes bounce {
  0% { transform: scaleY(1); height: 10px; }
  100% { transform: scaleY(1); height: 45px; }
}

/* Insulated (Dampened) Waves */
.audio-visualizer.playing.insulated .wave-bar {
  background: var(--color-primary) !important;
  animation-duration: 1.8s !important;
  animation-delay: 0s !important;
  height: 6px !important;
  opacity: 0.5;
}

/* --- Renovatie-Tijdlijn (Visual Stepper) --- */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.timeline-stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 20px 0 40px 0;
  width: 100%;
}

.stepper-line {
  position: absolute;
  top: 22px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
  border-radius: 2px;
}

.stepper-line-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-glow);
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
  width: 90px;
  text-align: center;
  user-select: none;
}

.stepper-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-muted);
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.stepper-label {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: var(--transition);
}

/* Active and completed states */
.stepper-step:hover .stepper-circle,
.stepper-step.active .stepper-circle {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg-panel);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.stepper-step.active .stepper-label {
  color: #fff;
}

.stepper-step.completed .stepper-circle {
  border-color: var(--color-success);
  color: var(--color-success);
  background: var(--color-bg-dark);
}

.stepper-step.completed .stepper-label {
  color: var(--color-success);
}

.timeline-content-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-phase-details {
  display: none;
  animation: fadeIn 0.4s ease;
}

.timeline-phase-details.active {
  display: block;
}

.timeline-grid-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .timeline-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.timeline-phase-image-wrap {
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-premium);
  background: var(--color-bg-panel);
  transition: var(--transition);
}

.timeline-phase-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.timeline-phase-image-wrap:hover {
  border-color: var(--color-border);
}

.timeline-phase-image-wrap:hover img {
  transform: scale(1.04);
}

.timeline-phase-details h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #fff;
}

.timeline-phase-details p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

/* --- Antwerpse Wijkgids --- */
.neighborhood-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.neighborhood-mobile-widget {
  display: none;
}

@media (max-width: 768px) {
  .neighborhood-container {
    grid-template-columns: 1fr;
  }
}

.neighborhood-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.neighborhood-card {
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.neighborhood-card:hover, .neighborhood-card.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.neighborhood-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

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

.neighborhood-details-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.neighborhood-details-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.stat-row:last-child {
  margin-bottom: 0;
  flex-direction: row;
  justify-content: space-between;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 16px;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.stat-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Mobile Responsive Overrides for Reno & ROI Page --- */
@media (max-width: 768px) {
  /* Before/After Slider Height Tweak */
  .slider-wrapper {
    height: 320px;
  }
  
  /* Floorplan Digital Twin Height & Padding Tweak */
  .floorplan-wrapper {
    height: 320px;
  }
  .floorplan-img {
    padding: 10px;
  }
  
  /* ROI Calculator Padding Tweak */
  .calculator-wrap {
    padding: 20px;
    gap: 20px;
  }
  .calc-results {
    padding: 20px;
    gap: 16px;
  }
  .calc-inputs {
    gap: 20px;
  }
  
  /* Renovatie-Tijdlijn Spacing Tweak */
  .timeline-container {
    padding: 20px;
    gap: 20px;
  }
  .stepper-circle {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .stepper-line {
    top: 18px;
    left: 20px;
    right: 20px;
  }
  .stepper-label {
    font-size: 0.72rem;
    margin-top: 8px;
  }
  .stepper-step {
    width: 60px;
  }

  /* Wijkgids Antwerpen Mobile Tabbed Card Layout */
  .neighborhood-container {
    padding: 20px;
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .neighborhood-container {
    display: none !important;
  }
  
  .neighborhood-mobile-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
  }

  .neigh-mobile-tabs {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    background: rgba(20, 20, 22, 0.6);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
  }

  .neigh-mobile-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .neigh-mobile-tab-btn.active {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.2);
  }

  .neigh-mobile-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-premium);
  }

  .neigh-mobile-card.active-change {
    animation: cardChangeFade 0.4s ease;
  }

  @keyframes cardChangeFade {
    0% { opacity: 0.6; transform: scale(0.99); }
    100% { opacity: 1; transform: scale(1); }
  }

  .neigh-mobile-card-body h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 4px;
    font-family: var(--font-heading);
  }

  .neigh-mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 16px;
    margin-top: 8px;
  }

  .neigh-mobile-dots {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .neigh-mobile-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
  }

  .neigh-mobile-dots .dot.active {
    background: var(--color-primary);
    transform: scale(1.25);
    box-shadow: 0 0 8px var(--color-primary);
  }
}

/* Panorama Selector Styles */
.panorama-selector-wrap {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(15, 15, 18, 0.75);
  padding: 6px 12px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 90%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide standard scrollbar for clean look */
}

.panorama-selector-wrap::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.panorama-select-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.panorama-select-btn:hover {
  color: var(--color-text-light);
  background: rgba(255, 255, 255, 0.05);
}

.panorama-select-btn.active {
  color: #0f0f12 !important;
  background: var(--color-primary) !important;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(197, 168, 128, 0.3);
}


/* --- Interactive Widgets CSS Upgrades --- */

/* 1. Materialen Visualizer Upgrade */
.visualizer-layout {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.visualizer-layout .visualizer-wrapper {
  position: relative;
  flex: 1.6;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-premium);
}

.visualizer-layout .visualizer-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.swatches-panel {
  flex: 1;
  background: var(--color-bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.swatches-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.swatches-intro {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.swatches-group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.swatches-grid {
  display: flex;
  gap: 10px;
}

.swatch-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.45;
}

.swatch-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(197, 168, 128, 0.35);
  opacity: 0.8;
}

.swatch-card.active {
  background: rgba(197, 168, 128, 0.08);
  border-color: var(--color-primary);
  opacity: 1;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.08);
}

.swatch-color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swatch-label {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.material-description-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  border-left: 3px solid var(--color-primary);
  min-height: 110px;
  margin-top: auto;
}

.material-description-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.material-description-card p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* Hotspots Styling */
.vis-hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  display: none;
}

.vis-hotspot.active {
  display: block;
}

.hotspot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.6;
  animation: pulse-ring 1.8s infinite;
}

.hotspot-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.vis-hotspot:hover .hotspot-dot {
  transform: translate(-50%, -50%) scale(1.3);
}

.hotspot-tooltip {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 15, 18, 0.95);
  border: 1px solid var(--color-border);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.vis-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* 2. Smart Home Simulator */
.simulator-layout {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto 0 auto;
}

.simulator-panel {
  flex: 1;
  background: linear-gradient(135deg, rgba(22, 22, 24, 0.8) 0%, rgba(11, 11, 12, 0.9) 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-screen {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.screen-body {
  text-align: center;
  padding: 6px 0;
}

.screen-scene-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.screen-scene-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(197, 168, 128, 0.4);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.panel-scene-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.panel-scene-btn i {
  width: 20px;
  height: 20px;
}

.panel-scene-btn span {
  font-size: 0.8rem;
  font-weight: 600;
}

.panel-scene-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.panel-scene-btn.active {
  background: rgba(197, 168, 128, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.15);
}

.panel-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 16px;
  display: flex;
  justify-content: center;
}

.panel-temp-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  padding: 4px 16px;
  border: 1px solid var(--color-border-subtle);
}

.panel-temp-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.panel-temp-controls .temp-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.panel-temp-controls .temp-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
}

.panel-temp-controls .temp-btn i {
  width: 14px;
  height: 14px;
}

.simulator-preview {
  flex: 1.4;
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-premium);
  min-height: 380px;
}

.preview-glow-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: all 0.8s ease-in-out;
  opacity: 0.12;
}

/* Room simulated lighting glows */
.ambient-morning {
  background: radial-gradient(circle at center, rgba(253, 227, 167, 0.5) 0%, transparent 70%);
}

.ambient-cinema {
  background: radial-gradient(circle at center, rgba(74, 144, 226, 0.35) 0%, transparent 70%);
}

.ambient-evening {
  background: radial-gradient(circle at center, rgba(230, 126, 34, 0.4) 0%, transparent 70%);
}

.ambient-away {
  background: radial-gradient(circle at center, rgba(149, 165, 166, 0.15) 0%, transparent 70%);
}

.preview-content {
  position: relative;
  z-index: 2;
}

.preview-content h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #fff;
}

.preview-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 24px;
}

.sim-metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.metric-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

/* 3. Quality Comparator */
.comparator-wrapper {
  max-width: 1000px;
  margin: 30px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.comparator-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.comparator-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.comparator-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.comparator-tab.active {
  background: rgba(197, 168, 128, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.1);
}

.comparator-tab i {
  width: 16px;
  height: 16px;
}

.comparator-content {
  display: flex;
  gap: 30px;
}

.compare-card {
  flex: 1;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.compare-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.compare-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.badge-f {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.25);
}

.badge-a {
  background: rgba(94, 175, 123, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(94, 175, 123, 0.25);
}

.compare-card h4 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #fff;
}

.compare-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 30px;
  flex-grow: 1;
}

.compare-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 20px;
}

.comp-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.comp-metric-lbl {
  color: var(--color-text-muted);
}

.comp-metric-val {
  font-weight: 600;
  color: #fff;
}

.comp-metric-val.val-bad {
  color: #e74c3c;
}

.comp-metric-val.val-good {
  color: var(--color-success);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .visualizer-layout {
    flex-direction: column;
  }
  
  .visualizer-layout .visualizer-wrapper {
    height: 350px;
  }

  .simulator-layout {
    flex-direction: column;
  }

  .comparator-content {
    flex-direction: column;
  }

  .comparator-tabs {
    flex-wrap: wrap;
  }
}

/* --- Flemish Subsidies & Benefits Grid Styling --- */
.subsidy-card {
  transition: var(--transition) !important;
}

.subsidy-card:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 20px rgba(197, 168, 128, 0.12) !important;
  transform: translateY(-4px);
}

/* Animations for Smart Home Simulator */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes pulseRed {
  0%, 100% {
    box-shadow: 0 0 10px rgba(226, 74, 74, 0.4);
    border-color: rgba(226, 74, 74, 0.5);
  }
  50% {
    box-shadow: 0 0 22px rgba(226, 74, 74, 0.8);
    border-color: rgba(226, 74, 74, 1);
  }
}

.panel-doorbell-btn:hover {
  background: rgba(226, 74, 74, 0.2) !important;
  transform: translateY(-1px);
}

.panel-doorbell-btn:active {
  transform: translateY(1px);
}

.intercom-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px currentColor;
}

.intercom-btn:active {
  transform: scale(0.95);
}



/* Medium Desktop Spacing Optimizations (1101px to 1300px) */
@media (min-width: 1101px) and (max-width: 1300px) {
  .header-container {
    padding: 0 16px;
    gap: 12px;
  }
  .logo {
    font-size: 1.35rem;
    gap: 6px;
  }
  .logo-tag {
    font-size: 0.6rem;
    padding: 1px 4px;
    margin-left: 4px;
  }
  nav {
    gap: 20px;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .nav-actions {
    gap: 10px;
  }
  .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* --- Page Transition Overlay --- */
.page-transition-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--color-bg-dark);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Loader Animation --- */
@keyframes pulseLoader {
  0% { opacity: 0.6; text-shadow: 0 0 10px rgba(197, 168, 128, 0.2); transform: scale(1); }
  50% { opacity: 1; text-shadow: 0 0 30px rgba(197, 168, 128, 0.8); transform: scale(1.05); }
  100% { opacity: 0.6; text-shadow: 0 0 10px rgba(197, 168, 128, 0.2); transform: scale(1); }
}

/* --- Belgian Official Bidding Modal --- */
.bid-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bid-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bid-modal-container {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 750px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium), var(--shadow-glow);
  overflow: hidden;
  opacity: 0; transform: scale(0.9) translateY(20px);
}

@keyframes modalFadeIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.bid-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bid-modal-header h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 4px;
}

.bid-modal-header p {
  color: var(--color-primary);
  font-size: 0.9rem;
  margin: 0;
}

.bid-modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.bid-modal-close:hover {
  color: #fff;
}

.bid-progress-bar-wrap {
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

.bid-progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.bid-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.bid-progress-step span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  border: 2px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.bid-progress-step label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.bid-progress-step.active span,
.bid-progress-step.completed span {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-bg-dark);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.4);
}

.bid-progress-step.active label,
.bid-progress-step.completed label {
  color: #fff;
}

.bid-progress-line {
  position: absolute;
  top: 36px;
  left: 56px;
  right: 56px;
  height: 2px;
  background: var(--color-border-subtle);
  z-index: 1;
}

.bid-progress-line-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.bid-steps-wrap {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.bid-step-pane {
  display: none;
  animation: paneFadeIn 0.4s ease;
}

.bid-step-pane.active {
  display: block;
}

@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bid-step-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #fff;
}

.bid-step-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.input-helper {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: block;
}

.legal-warning-box {
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--color-text-main);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 22px;
}

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  line-height: 1.4;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: var(--color-bg-dark);
  border: 1px solid var(--color-border-subtle);
  border-radius: 4px;
  transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--color-primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid var(--color-bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 1.1rem;
}

.price-input {
  padding-left: 32px !important;
  font-size: 1.2rem !important;
  font-weight: 700;
  color: var(--color-primary) !important;
}

.bid-amount-words-box {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-primary);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.legal-scroll-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
}

.legal-scroll-box p {
  margin-bottom: 8px;
}

.signature-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 15px;
}

.signature-pad-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signature-pad-container label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.signature-canvas-wrap {
  background: #fff;
  border: 2px dashed #ccc;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 150px;
  position: relative;
}

.signature-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  background: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  align-self: flex-start;
}

.bid-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.1);
}

/* File Upload Styles for ID Card photos */
.file-upload-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.file-upload-box:hover {
  border-color: var(--color-primary);
  background: rgba(197, 168, 128, 0.05);
}

.file-upload-box.has-file {
  border-style: solid;
  border-color: var(--color-primary);
}

.file-upload-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.file-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
  z-index: 5;
}

.file-preview::after {
  content: 'Wijzig Foto';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.file-upload-box:hover .file-preview::after {
  opacity: 1;
}

/* --- Print Bidding Layout Styles --- */
.bid-print-document {
  display: none;
}

@media print {
  /* Hide standard web layouts completely */
  header, footer, .premium-header, .chat-widget, .bid-modal-overlay, .project-detail-layout, #kubera-loader {
    display: none !important;
  }
  
  body * {
    visibility: hidden;
  }
  
  .bid-print-document, .bid-print-document * {
    visibility: visible;
  }
  
  .bid-print-document {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000 !important;
    background: #fff !important;
    font-family: 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.5;
    padding: 10mm;
  }
  
  .bid-print-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  
  .bid-print-header h1 {
    font-size: 16pt;
    margin-bottom: 5px;
    font-weight: bold;
    color: #000;
  }
  
  .bid-print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
  }
  
  .bid-print-section {
    margin-bottom: 15px;
  }
  
  .bid-print-section h3 {
    font-size: 11pt;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  
  .bid-print-row {
    display: flex;
    margin-bottom: 4px;
  }
  
  .bid-print-label {
    width: 180px;
    font-weight: bold;
  }
  
  .bid-print-val {
    flex: 1;
  }
  
  .bid-print-signatures {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    page-break-inside: avoid;
  }
  
  .bid-print-sig-box {
    text-align: center;
    width: 45%;
  }
  
  .bid-print-sig-img {
    border-bottom: 1px solid #000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
  }
  
  .bid-print-sig-img img {
    max-height: 70px;
    max-width: 100%;
  }
}

body { overflow-x: hidden; }

.bid-modal-overlay.active .bid-modal-container { animation: modalFadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
