/* CSS Reset & Normalize (Mobile-first, clean slate for Scandinavian style) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font: inherit;
  font-size: 100%;
  background: transparent;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #FFF;
  color: #212733;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: #F8FAFB;
}
ul, ol {
  list-style: none;
}
a {
  color: #212733;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B28B49;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button:focus, [tabindex="0"]:focus {
  outline: 2px solid #B28B49;
  outline-offset: 2px;
}

/* Typography (Scandinavian-inspired) */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  margin-bottom: 20px;
  color: #212733;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  margin-bottom: 20px;
  color: #212733;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  margin-bottom: 12px;
  color: #212733;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #212733;
}
strong {
  font-weight: 700;
}
address {
  font-style: normal;
  color: #212733;
  font-size: 0.95rem;
}

@media (min-width: 769px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.35rem; }
}

/* Layout Containers (Functional Flexbox Patterns) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 769px) {
  .content-wrapper {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(33,39,51,0.08);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 260px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 2px rgba(33,39,51,0.15);
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px){
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 1.5px 4px 0 rgba(33,39,51,0.03);
  transition: box-shadow 0.16s;
}
.feature-item:hover {
  box-shadow: 0 4px 24px 0 rgba(178,139,73,0.16);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 3px 16px 0 rgba(33,39,51,0.13);
  padding: 32px 24px 28px 24px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 420px;
  color: #212733;
  transition: box-shadow 0.18s;
}
.testimonial-card strong { color: #B28B49; font-size: 1rem; }
.testimonial-card span {
  font-size: 1.15rem;
  color: #B28B49;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 32px 2px rgba(33,39,51,0.16);
  background: #FAFAFA;
}

/* Flexbox utility classes for property/blog/category filters */
.property-filters,
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.property-filters li, .category-filters li {
  background: #F2F2F2;
  border-radius: 32px;
  padding: 8px 18px;
  color: #212733;
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: background 0.2s, color 0.2s;
}
.property-filters li:hover, .category-filters li:hover {
  background: #B28B49;
  color: #FFF;
  cursor: pointer;
}

.featured-properties, .blog-feed > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 769px) {
  .featured-properties, .blog-feed > div {
    flex-direction: row;
    gap: 32px;
  }
}
.featured-properties > div, .blog-feed article {
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(33,39,51,0.05);
  padding: 22px 18px;
  flex: 1 1 250px;
  min-width: 180px;
  max-width: 350px;
}

.services-list, .services-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (min-width: 769px) {
  .services-list, .services-detail {
    flex-direction: row;
    gap: 28px;
  }
  .services-list > div, .services-detail > div {
    flex: 1 1 220px;
  }
}
.services-list > div, .services-detail > div {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(178,139,73,0.06);
  padding: 20px 18px;
  color: #212733;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-accordion details {
  border: 1px solid #EEECE7;
  border-radius: 8px;
  background: #FFF;
  padding: 16px 20px;
  transition: box-shadow 0.15s;
}
.faq-accordion details[open] {
  box-shadow: 0 2px 22px 0 rgba(178,139,73,0.09);
  border-color: #B28B49;
}
.faq-accordion summary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

/* Buttons & CTAs (Primary/Secondary, Scandinavian visual) */
.cta,
button, .mobile-menu-toggle, .mobile-menu-close, .cookie-consent-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  padding: 12px 28px;
  min-width: 44px;
  min-height: 44px;
  display: inline-block;
  transition: background 0.20s, color 0.20s, box-shadow 0.20s;
  box-sizing: border-box;
}
.cta.primary {
  background: #212733;
  color: #FFF;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(33,39,51,0.08);
}
.cta.primary:hover, .cta.primary:focus {
  background: #B28B49;
  color: #FFF;
  box-shadow: 0 4px 18px 1px rgba(178,139,73,0.17);
}
.cta.secondary {
  background: #FFF;
  color: #212733;
  border: 1.5px solid #B28B49;
  font-weight: 600;
  margin-top: 6px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #F2F2F2;
  color: #B28B49;
  border-color: #B28B49;
}
button:disabled, .cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Header Navigation & Hamburger */
header {
  background: #FFF;
  border-bottom: 1px solid #F2F2F2;
  width: 100%;
  z-index: 50;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  position: relative;
  gap: 12px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #212733;
  position: relative;
  padding: 7px 2px 7px 2px;
  border-radius: 2px;
  transition: color 0.20s, background 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #B28B49;
  background: #F8FAFB;
}
header .cta.primary {
  margin-left: 18px;
}

/* Hamburger for Mobile */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
  border: 2px solid #212733;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  color: #212733;
  z-index: 110;
  box-shadow: none;
  margin-left: 12px;
  transition: background 0.2s, border 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F2F2F2;
  border-color: #B28B49;
  color: #B28B49;
}

/* Hide nav and show hamburger on mobile */
@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* MOBILE MENU (Overlay) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(248,250,251,0.98);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.375s cubic-bezier(.7,.2,.28,1);
  box-shadow: -4px 0 24px 0 rgba(33,39,51,0.07);
  padding-top: 16px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.menu-open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: #FFF;
  border: 2px solid #B28B49;
  color: #B28B49;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  align-self: flex-end;
  margin: 14px 20px 9px 0;
  font-size: 1.25rem;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F2F2F2;
  color: #212733;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 16px 32px;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  padding: 14px 0;
  color: #212733;
  border-radius: 6px;
  transition: background 0.2s, color 0.18s;
  margin-right: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EEECE7;
  color: #B28B49;
}

@media (max-width: 420px) {
  .mobile-nav {
    padding: 12px 10px;
  }
}

/* Hero, Feature, About, Services, CTA, Map, etc. */
section {
  background: none;
}
section:not(:last-child) {
  border-bottom: 1px solid #EEECE7;
}

/* Footer */
footer {
  background: #FAFAFA;
  border-top: 1px solid #EEECE7;
  padding: 28px 0 18px 0;
  width: 100%;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
  margin-top: 6px;
}
footer nav a {
  color: #212733;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 3px 12px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: #EEECE7;
  color: #B28B49;
}
footer address {
  margin-top: 6px;
  color: #212733;
  font-size: 0.99rem;
  text-align: center;
}
footer p {
  color: #B28B49;
  margin-top: 12px;
  font-size: 0.95rem;
}

/* Forms (if present) */
input[type="text"], input[type="email"], textarea, select {
  background: #FFF;
  border: 1px solid #EEECE7;
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 1rem;
  margin-bottom: 12px;
  width: 100%;
  transition: border-color 0.17s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: #B28B49;
}

/* Spacing & Responsive Tweaks */
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .section { padding: 28px 9px; margin-bottom: 36px; }
  .testimonial-card, .card, .services-list > div, .services-detail > div, .featured-properties > div, .blog-feed article {
    min-width: 0; max-width: 100%;
  }
  .content-wrapper {
    gap: 15px;
  }
  .property-filters, .category-filters {
    gap: 9px;
  }
}

/* Subtle Shadows, Cards, Scandinavian accents */
.card, .testimonial-card, .feature-item, .services-list > div, .services-detail > div, .featured-properties > div, .blog-feed article {
  box-shadow: 0 1.5px 8px 0 rgba(33,39,51,0.06);
}

/* Animations, Micro-interactions */
.cta, button, .mobile-menu-toggle, .mobile-menu-close, .cookie-consent-button {
  transition: background 0.18s, color 0.20s, box-shadow 0.22s;
}
.property-filters li, .category-filters li {
  transition: background 0.18s, color 0.20s;
}
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.20s;
}

/* Scrollbar - subtle for Scandinavian look */
::-webkit-scrollbar {
  width: 9px;
  background: #F2F2F2;
}
::-webkit-scrollbar-thumb {
  background: #EEECE7;
  border-radius: 7px;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFFDF8;
  color: #212733;
  box-shadow: 0 -2px 18px 0 rgba(33,39,51,0.13);
  border-top: 1px solid #EEECE7;
  z-index: 1000;
  padding: 20px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  font-size: 1rem;
  min-height: 70px;
  animation: cookie-slide-up 0.45s cubic-bezier(.68,.32,.55,1);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(120%); opacity: 0; }
  75% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-btn-group {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cookie-consent-banner .cookie-consent-button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #B28B49;
  color: #FFF;
  border-radius: 24px;
  font-weight: 600;
  padding: 12px 26px;
  border: none;
}
.cookie-consent-banner .cookie-consent-button.secondary {
  background: #FFF;
  color: #212733;
  border: 1.5px solid #B28B49;
}
.cookie-consent-banner .cookie-consent-button.secondary:hover {
  background: #F2F2F2;
  color: #B28B49;
}
.cookie-consent-banner .cookie-consent-button.settings {
  background: #F2F2F2;
  color: #212733;
  border: 1.5px solid #EEECE7;
}
.cookie-consent-banner .cookie-consent-button.settings:hover {
  background: #EEECE7;
  color: #212733;
}

/* Cookie Preferences Modal Popup */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 8px 54px 0 rgba(33,39,51,0.17);
  z-index: 1100;
  width: calc(100vw - 30px);
  max-width: 410px;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s, transform 0.35s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  margin-bottom: 9px;
  color: #212733;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 11px 0;
}
.cookie-modal .cookie-toggle {
  width: 38px; height: 21px;
  border-radius: 15px;
  background: #EEECE7;
  position: relative;
  cursor: pointer;
  border: 1.3px solid #B28B49;
  transition: background 0.2s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: #B28B49;
}
.cookie-modal .cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 1.5px 6px rgba(178,139,73,0.09);
  transition: left 0.20s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] .slider {
  left: 19px;
}
.cookie-modal .cookie-category-label {
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 13px;
}
/* Modal close button (if present) */
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #B28B49;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 6px;
}
.cookie-modal .modal-close:hover {
  color: #212733;
}

/* Overlay for modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,39,51,0.19);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Miscellaneous & Accessibility */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* Custom selection */
::selection {
  background: #B28B49;
  color: #FFF;
}

/* Scandinavian dividers */
hr {
  border: none;
  border-top: 1.5px solid #EEECE7;
  margin: 28px 0;
}

/* Table Styling (for price tables, etc.) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(33,39,51,0.05);
  margin-bottom: 22px;
  overflow: hidden;
}
th, td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #EEECE7;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #B28B49;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* Responsive adjustments for table */
@media (max-width: 630px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th, td {
    padding: 10px 6px;
  }
}

/* Hide visually on desktop */
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
