/* Nica Virtual Tours - Modern Responsive Stylesheet */
:root {
  --bg-base: #f3f8fe;
  --bg-elevated: #e8f2fc;
  --bg-surface: #ffffff;
  --text-primary: #0a3a6a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --brand-primary: #0284c7;
  --brand-primary-hover: #0369a1;
  --brand-accent: #00a854;
  --brand-accent-hover: #008f47;
  --border-subtle: #e2e8f0;
  --border-focus: #38bdf8;
  --shadow-sm: 0 1px 2px 0 rgba(10, 58, 106, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 58, 106, 0.08), 0 2px 4px -2px rgba(10, 58, 106, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(10, 58, 106, 0.1), 0 4px 6px -4px rgba(10, 58, 106, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(10, 58, 106, 0.12), 0 8px 10px -6px rgba(10, 58, 106, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-secondary);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

@media (max-width: 959px) {
  .header-inner {
    height: 64px;
    gap: 10px;
  }
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .logo-img {
    height: 38px;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .logo-title {
    font-size: 1rem;
  }
}

.logo-subtitle {
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .logo-subtitle {
    display: none;
  }
}

.nav {
  display: none;
}

@media (min-width: 960px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
  }
}

@media (min-width: 1180px) {
  .nav {
    gap: 26px;
  }
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.15s ease;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--brand-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-btn {
  display: inline-flex;
}

@media (max-width: 959px) {
  .header-btn {
    display: none !important;
  }
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: #dfeefb;
  border-color: var(--brand-primary);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  padding: 6px 0;
  z-index: 60;
}

.lang-menu.show {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.lang-option:hover {
  background: var(--bg-elevated);
  color: var(--brand-primary);
}

.lang-option.active {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-base);
}

/* Primary CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 168, 84, 0.25);
}

.btn-primary:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 168, 84, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  background: var(--bg-elevated);
  color: var(--brand-primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 22px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background: #ffffff;
  border-bottom: 2px solid var(--border-subtle);
  box-shadow: 0 20px 30px rgba(10, 58, 106, 0.12);
  padding: 16px 20px 24px;
}

.mobile-menu.open {
  display: block;
  animation: mobileSlideDown 0.2s ease-out;
}

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

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a:focus {
  background: var(--bg-elevated);
  color: var(--brand-primary);
}

.mobile-cta-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(232, 242, 252, 0.7) 0%, rgba(243, 248, 254, 1) 100%);
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--brand-primary);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 168, 84, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 168, 84, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 168, 84, 0); }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
  background: #ffffff;
}

.visual-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(10, 58, 106, 0.95) 0%, rgba(10, 58, 106, 0) 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.visual-overlay h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.visual-overlay p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.play-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--brand-accent);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.play-badge:hover {
  transform: scale(1.1);
}

/* Section Common */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-elevated);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.4rem;
  }
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Feature & Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-primary);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Technology / LiDAR Spotlight */
.tech-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .tech-split {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.tech-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-content h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.tech-list {
  list-style: none;
  margin: 24px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.975rem;
  color: var(--text-secondary);
}

.tech-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 168, 84, 0.15);
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Portfolio / Demos Section */
.tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .tour-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tour-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tour-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.tour-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
}

.tour-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tour-card:hover .tour-thumb-wrap img {
  transform: scale(1.05);
}

.tour-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 58, 106, 0.85);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.tour-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 168, 84, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
  border: none;
}

.tour-card:hover .tour-play-btn {
  background: var(--brand-accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.tour-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tour-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tour-loc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tour-specs {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.tour-cta-btn {
  margin-top: 16px;
  width: 100%;
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 10px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Quote & Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1.35fr;
    gap: 60px;
  }
}

.contact-info-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.info-item {
  display: flex;
  gap: 16px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.info-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Quote Form */
.quote-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

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

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-full {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: #fdfdfd;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 14px;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* 360 Tour Modal Viewer */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: #020617;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-viewport {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background: #000000;
}

.modal-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: #071e36;
  color: #cbd5e1;
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-credit {
  color: #94a3b8;
}

.footer-credit a {
  color: #38bdf8;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* As-Built Measuring & Interactive Tools Guide (Inspired by Canadian Blueprint) */
/* -------------------------------------------------------------------------- */

.modes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}

@media (min-width: 768px) {
  .modes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.mode-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.mode-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  width: fit-content;
}

.mode-badge-blue {
  background: #e0f2fe;
  color: #0369a1;
}

.mode-badge-green {
  background: #dcfce7;
  color: #15803d;
}

.mode-badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.mode-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.mode-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* What to Send Us Checklist */
.send-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

@media (min-width: 640px) {
  .send-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .send-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.send-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.send-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.send-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.send-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid #bae6fd;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.send-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.send-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Credential / Access Code Lock Overlay for Private Tours                     */
/* -------------------------------------------------------------------------- */

.tour-card.is-locked .tour-thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.45);
  pointer-events: none;
}

.lock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #f59e0b;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Access Code Modal */
.lock-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lock-modal-overlay.active {
  display: flex;
}

.lock-modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lock-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.lock-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.lock-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.lock-input-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.lock-input-wrap .lock-input {
  margin-bottom: 0;
  padding-right: 48px;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.toggle-password-btn:hover {
  color: var(--text-primary);
}

.lock-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  background: #f8fafc;
}

.lock-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #ffffff;
}

.lock-input.shake {
  animation: shake 0.4s ease-in-out;
  border-color: #ef4444;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.lock-error {
  display: none;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.lock-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lock-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.lock-close-btn:hover {
  color: var(--text-primary);
}

/* Single Featured Public Showcase Card */
.single-showcase-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1.5px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .single-showcase-card {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.single-showcase-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.single-showcase-preview picture,
.single-showcase-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-showcase-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.single-showcase-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  font-size: 0.9rem;
}

.showcase-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-login-banner {
  max-width: 980px;
  margin: 28px auto 0;
  background: rgba(2, 132, 199, 0.06);
  border: 1px dashed rgba(2, 132, 199, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.875rem;
}

.client-login-banner a {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Tours Archive Filter Toolbar & Interactive Cards (CBP Lineage)            */
/* -------------------------------------------------------------------------- */
.archive-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .archive-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-input-wrap {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.archive-search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.925rem;
  transition: all 0.2s ease;
}

.archive-search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.filter-pill.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.tour-card.is-unlocked .tour-thumb-wrap::after {
  display: none !important;
}

.tour-card.is-unlocked .lock-badge {
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
}

.no-tours-found {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.no-tours-found.active {
  display: block;
}

