/* CSS RESET & NORMALIZE */
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F2F5F5;
  color: #1A2233;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #1A2233;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6B8C6E;
}
ul, ol {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
strong, b {
  font-weight: 700;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #1A2233;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; border-left: 4px solid #6B8C6E; padding-left: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; letter-spacing: 0.035em; }
h4, h5, h6 { font-size: 1rem; }
p, li, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #2e3750;
  margin-bottom: 14px;
}
blockquote {
  border-left: 3px solid #6B8C6E;
  padding-left: 18px;
  color: #47681d;
  font-style: italic;
  margin: 24px 0 20px 0;
  background: #E7EEE9;
  border-radius: 8px;
}

/* Brand containers & grid structures */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* --- Sections and Spacing --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 0;
}
.hero {
  background: #E7EEE9;
  position: relative;
  border-radius: 24px;
  margin-bottom: 64px;
  min-height: 280px;
}
.feature-grid,
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.property-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* --- Header, Navigation & Mobile Menu --- */
header {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(26,34,51,0.05);
  position: sticky;
  top: 0;
  z-index: 19;
  padding: 0;
}
.logo {
  display: flex;
  align-items: center;
  padding: 18px 0 18px 12px;
  margin-right: 24px;
}
.logo img {
  max-height: 52px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #1A2233;
  padding: 16px 8px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E7EEE9;
  color: #6B8C6E;
}
.cta-button {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  background: #1A2233;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 30px;
  margin-left: 24px;
  box-shadow: 0 3px 14px 0 rgba(26,34,51,0.07);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.20s, box-shadow 0.2s, color 0.2s;
  display: inline-block;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #6B8C6E;
  color: #1A2233;
  box-shadow: 0 8px 32px -8px #1A223320;
}

/* --- Mobile Menu (Burger) --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #1A2233;
  font-size: 2.2rem;
  border: none;
  padding: 8px 18px;
  margin-left: auto;
  cursor: pointer;
  z-index: 32;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #6B8C6E;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 99;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: -6px 0 32px rgba(26,34,51,.18);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: #1A2233;
  border: none;
  margin: 32px 36px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 101;
}
.mobile-menu-close:hover {
  color: #6B8C6E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 18px 60px 24px 40px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.22rem;
  color: #1A2233;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.22s, border-color 0.2s;
  width: 100%;
  display: block;
  margin-bottom: 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #6B8C6E;
  border-bottom: 2px solid #6B8C6E;
}

/* --- Layout Patterns --- */
.card-container { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 24px; 
}
.card {
  margin-bottom: 20px; 
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 21px 0 rgba(26,34,51,0.07);
  padding: 26px 28px 22px 28px;
  min-width: 260px;
  flex: 1 1 320px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F2F5F5;
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px 0 rgba(26,34,51,0.07);
  color: #1A2233;
}
.testimonial-card p {
  font-family: 'Merriweather', serif;
  font-size: 1.11rem;
  font-style: italic;
  color: #28304c;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #6B8C6E;
  border-left: 3px solid #6B8C6E;
  padding-left: 12px;
  margin-left: 16px;
  font-style: normal;
}
.feature-item {
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
  gap: 15px;
}
.listing-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  background: #E7EEE9;
  padding: 16px 24px;
  border-radius: 12px;
}
.listing-filter label {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: #1A2233;
  margin-right: 4px;
}
.listing-filter select, .listing-filter input[type="text"] {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #CED6D2;
  border-radius: 8px;
  padding: 8px 14px;
  margin-right: 12px;
  outline: none;
  transition: border 0.2s;
}
.listing-filter select:focus, .listing-filter input:focus {
  border: 1.5px solid #6B8C6E;
}
.property-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(26,34,51,0.07);
  padding: 24px 24px 18px 24px;
  min-width: 260px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rating-summary {
  background: #E7EEE9;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

/* --- Features, Cards, Highlight Grids --- */
.feature {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(26,34,51,0.08);
  padding: 24px 24px 18px 24px;
  flex: 1 1 230px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}
.feature img {
  width: 40px; height: 40px; margin-bottom: 10px;
}
.feature h3 {
  font-size: 1.1rem;
  color: #1A2233;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.feature p {
  margin-bottom: 0;
  color: #2e3750;
}

/****** Footer ******/
footer {
  background: #1A2233;
  color: #fff;
  padding-top: 40px;
  padding-bottom: 32px;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #F2F5F5;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 0 4px;
  border-bottom: 1.7px solid transparent;
  transition: border 0.18s, color 0.18s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #6B8C6E;
  border-color: #6B8C6E;
}
.footer-contact p {
  color: #D7DFDF;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.footer-contact a {
  color: #6B8C6E;
  transition: text-decoration 0.1s;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-logo img {
  width: 42px;
  height: 42px;
  margin-top: 16px;
}

/***** Cookie Consent Banner *****/
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #1A2233;
  color: #fff;
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 199;
  box-shadow: 0 -3px 18px 0 #1A223330;
  animation: cookieBannerSlideIn 0.6s cubic-bezier(0.7,0.2,0.5,1.0);
}
@keyframes cookieBannerSlideIn {
  from {transform: translateY(100%); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-consent-banner p {
  margin: 0;
  color: #F2F5F5;
  font-size: 1rem;
  flex: 1 1 240px;
}
.cookie-consent-banner .cookie-btn {
  padding: 10px 25px;
  border-radius: 8px;
  border: none;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 6px;
  cursor: pointer;
  transition: background .18s, color .15s, box-shadow .22s;
}
.cookie-consent-banner .accept {
  background: #6B8C6E;
  color: #fff;
  box-shadow: 0 2px 8px #6B8C6E11;
}
.cookie-consent-banner .accept:hover,
.cookie-consent-banner .accept:focus {
  background: #537357;
}
.cookie-consent-banner .reject {
  background: #fff;
  color: #1A2233;
  border: 1.5px solid #CED6D2;
}
.cookie-consent-banner .reject:hover,
.cookie-consent-banner .reject:focus {
  background: #E7EEE9;
}
.cookie-consent-banner .settings {
  background: transparent;
  color: #F2F5F5;
  border: 1.5px solid #6B8C6E;
}
.cookie-consent-banner .settings:hover,
.cookie-consent-banner .settings:focus {
  background: #E7EEE9;
  color: #1A2233;
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right:0; bottom: 0;
  width:100vw; height:100vh;
  background: rgba(38,46,66,0.72);
  z-index: 1999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  width: 100%;
  max-width: 410px;
  margin-bottom: 50px;
  background: #fff;
  color: #1A2233;
  border-radius: 16px;
  box-shadow: 0 8px 28px #1A223355;
  padding: 34px 32px 28px 32px;
  animation: modalScrollIn 0.45s cubic-bezier(.66,.2,0,1.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
@keyframes modalScrollIn {
  from {transform: translateY(90px) scale(0.98); opacity:0;}
  to {transform: translateY(0) scale(1); opacity:1;}
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #1A2233;
  letter-spacing: 0.04em;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1.5px solid #E7EEE9;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #28304c; font-size: 1.03rem;
}
.cookie-category input[type="checkbox"] {
  width: 22px; height:22px;
  accent-color: #6B8C6E;
}
.cookie-category input[disabled] {
  opacity: .5;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex; flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  padding: 10px 24px;
  border-radius: 7px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 2px;
  cursor: pointer;
  border: none;
  background: #6B8C6E;
  color: #fff;
  transition: background 0.18s;
}
.cookie-modal .cookie-btn.cancel {
  background: #E7EEE9;
  color: #1A2233;
}
.cookie-modal .cookie-btn.cancel:hover {
  background: #CED6D2;
}
.cookie-modal .cookie-btn.save:hover {
  background: #537357;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  color: #1A2233;
  font-size: 1.3rem; border: none;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s;
}
.cookie-modal .cookie-modal-close:hover {
  color: #6B8C6E;
}

/* --- Geometric Structured Details --- */
h1, h2, h3 {
  text-transform: none;
  border-radius: 0.5em 0 0 0;
}
.hero::before {
  content: '';
  display: block;
  position: absolute;
  left: -44px; top: -44px;
  width: 115px; height: 115px;
  background: #6B8C6E20;
  clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}
.feature::before {
  content: '';
  position: absolute;
  top: -9px; left: -10px;
  width: 20px; height: 20px;
  background: #1A223317;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-radius: 0 0 14px 0;
}

/***** Animations & Transitions *****/
.cta-button, .cookie-btn {
  transition: background 0.22s, color 0.19s, box-shadow 0.19s, border 0.16s;
}
.card, .property-card, .feature, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.17s;
}
.card:hover, .property-card:hover, .feature:hover {
  box-shadow: 0 8px 40px -16px #1A223335;
  transform: translateY(-2px) scale(1.02);
}

/***** Visual Hierarchy and List Styles *****/
ul, ol {
  margin: 8px 0 20px 16px;
}
ul li, ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1rem;
}
ul li::before {
  content: "▻";
  color: #6B8C6E;
  font-size: 1.1em;
  position: absolute;
  left: 0; top: 2px;
}
ol li {
  list-style: decimal inside;
  padding-left: 0;
  margin-bottom: 12px;
}

/***** Miscellaneous & Geometric Accents *****/
.brand-style-description {
  background: #E7EEE9;
  border-left: 4px solid #6B8C6E;
  padding: 11px 20px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  margin-top: 18px;
}

/***** Responsive Design *****/
@media (max-width: 980px) {
  .container { max-width: 98vw; padding-left: 6vw; padding-right: 6vw; }
  .main-nav { gap: 16px; }
  .card-container, .feature-grid, .benefits-grid, .property-list {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .main-nav, .cta-button { display: none !important; }
  .mobile-menu-toggle { display: block; }
  header {
    flex-direction: row;
    padding: 0 0 0 0;
  }
  section {
    padding: 32px 6px;
  }
  .card, .property-card, .feature {
    min-width: 100%;
    flex-basis: 100%;
    padding: 20px 12px 16px 14px;
  }
  .feature-grid, .benefits-grid, .property-list, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 7px;
  }
  .footer-logo img { margin-top: 20px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.09rem; }
  h3 { font-size: 1rem; }
  .cookie-consent-banner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .cookie-consent-banner .cookie-btn { width: 100%; margin: 4px 0; padding: 10px 0; }
  .cookie-modal { padding: 24px 8px 16px 8px; }
}

/***** Utility Classes *****/
.hide { display: none!important; }
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.text-center { text-align: center!important; }

/***** DEMO Purpose: Layout fix for header row *****/
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

/***** Accessibility & Focus Borders *****/
a:focus, .cta-button:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2.5px solid #6B8C6E;
  outline-offset: 1.5px;
  background: #E7EEE9;
}

/***** END CSS *****/