:root {
    --primary-color: #34495e;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --background-color: rgb(238, 238, 255);
    --text-color: #555;
    --header-height: 60px;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--background-color);
}

header {
  background-color: var(--background-color);
}

.logo-container {
  padding: 0px;
  text-align: center;
}

.logo img {
  height: 300px;
  width: auto;
}

nav {
  background-color: var(--primary-color);
  padding: 0;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

nav a:hover {
  background-color: var(--secondary-color);
}

@media (min-width: 768px) {
  nav ul {
    flex-direction: row;
    justify-content: center;
  }

  nav a {
    padding: 15px 20px;
    font-size: 16px;
  }
}

main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 60px;
  scroll-margin-top: 200px;
}

section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 32px;
}

section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.30);
  margin: 20px 0;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}

.card:hover {
  transform: scale(1.005);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.card-content {
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.map-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
}

.map-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.card-text {
  padding: 20px;
}

.card-text h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 22px;
}

.card-text p {
  color: var(--text-color);
  margin-bottom: 0;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.gallery-arrow {
  appearance: none;
  border: none;
  background: var(--primary-color);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 200ms ease, transform 200ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  outline: none;
}

.gallery-page-label {
  color: var(--secondary-color);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.30);
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.30);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  transition: transform 240ms ease;
  cursor: zoom-in;
}

.gallery-item img:hover {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.image-modal-nav.prev {
  left: 12px;
}

.image-modal-nav.next {
  right: 12px;
}

.image-modal-nav:hover,
.image-modal-nav:focus {
  background: #fff;
  outline: none;
}

@media (min-width: 768px) {
  .card-content {
    flex-direction: row;
    align-items: stretch;
  }

  .card-image {
    width: 40%;
    height: 250px;
    max-height: 250px;
    flex-shrink: 0;
  }

  .map-wrapper {
    width: 40%;
    height: auto;
    min-height: 250px;
  }

  .card-text {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Pricing cards grid */
.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.price-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.30);
  margin: 0;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
  text-align: center;
}

.price-card:hover {
  transform: scale(1.005);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.price-card h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: var(--primary-color);
}

.price-card h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: var(--secondary-color);
  font-weight: 600;
}

.price-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.price-card table {
  width: 100%;
  border-collapse: collapse;
}

.price-card td {
  padding: 8px 0;
}

.price-card td:first-child {
  text-align: left;
}

.price-card td:last-child {
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-card {
    text-align: left;
  }
}

/* On large screens make the contact form column wider than the info column */
@media (min-width: 992px) {
  .contact-card .card-text {
    padding: 32px;
  }

  .contact-card .card-text.contact-info {
    width: 35%;
  }

  .contact-card .card-text:not(.contact-info) {
    width: 65%;
  }
}

td {
  padding-right: 20px;
}

#prijzen p {
  margin-top: 10px;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--text-color);
  text-align: center;
  padding: 10px 0;
  color: var(--text-color);
  background: transparent;
}

footer p {
  margin: 0;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
}

/* Fullscreen image modal */
.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.image-modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.image-modal:not(.hidden) {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  transition: background 240ms ease;
}

.image-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  transform: scale(0.96);
  transition: transform 240ms ease;
}

.image-modal:not(.hidden) .image-modal-content {
  transform: scale(1);
}

.image-modal-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.image-modal-close:hover,
.image-modal-close:focus {
  background: #fff;
  outline: none;
}

/* Contact form styles (matches card visuals) */
.contact-form {
  display: block;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-color);
  font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.30);
}

/* Focus styles using primary color */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.30), 0 0 0 4px rgba(52,73,94,0.08); /* subtle ring matching --primary-color (#34495e) */
}

.contact-form .form-actions {
  display: flex;
  justify-content: flex-start;
}

.contact-form button[type="submit"] {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.contact-form button[type="submit"]:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

/* Center contact info inside the left column */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

@media (min-width: 768px) {
  .contact-info {
    align-items: flex-start; /* keep vertical centering but keep left alignment if you prefer */
    text-align: center; /* keep centered text */
  }
}
