/* --- CSS RESET & NORMALIZE --- */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li, nav, section, main, header, footer, blockquote, figure, button, input, label, small, strong {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* Box-sizing everywhere */
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #232C38;
  background-color: #F8F9FB;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #224768;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #ac924b;
  outline: none;
}

ul, ol {
  list-style-position: inside;
  margin-left: 0;
}

/* --- LUXURY PREMIUM PALETTE --- */
:root {
  --color-primary: #224768;
  --color-secondary: #6EA9D7;
  --color-accent: #ac924b; /* Gold accent */
  --color-white: #fff;
  --color-bg: #F8F9FB;
  --color-bg-light: #f1f3f6;
  --color-muted: #9ea6b2;
  --color-dark: #232C38;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-dark);
}

h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4, h5 {
  font-size: 1.1rem;
}

p, ul, ol, blockquote {
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}

.big {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 18px;
}

strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* --- CONTAINER AND LAYOUT --- */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(44,38,21,0.06), 0 1.5px 8px rgba(172,146,75,0.03);
}

/* --- HEADER --- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(34,71,104,0.045);
  border-bottom: 2px solid var(--color-bg-light);
  position: relative;
  z-index: 30;
}

header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 2px 4px;
  border-radius: 2px;
  transition: color 0.2s;
  position: relative;
}

header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
}

header .button.primary {
  margin-left: auto;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 8px 12px;
  z-index: 105;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-bg-light);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  box-shadow: 0 6px 20px rgba(34,71,104,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.75,0,.25,1);
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 24px 24px 24px;
  width: 100vw;
  max-width: 400px;
  min-height: 100vh;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-bg-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1.3;
  text-decoration: none;
  padding: 7px 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: var(--color-bg-light);
}

@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--color-white);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 100px;
  border: 2px solid var(--color-accent);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 1px 8px rgba(44,38,21,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 18px;
  gap: 10px;
  text-align: center;
  letter-spacing: 0.03em;
}
.button.primary {
  background: var(--color-primary);
  color: var(--color-white) !important;
  border: 2px solid var(--color-accent);
  box-shadow: 0 3px 16px rgba(34,71,104,0.09), 0 1.5px 8px rgba(172,146,75,0.09);
}
.button.primary:hover, .button.primary:focus {
  background: var(--color-accent);
  color: var(--color-dark) !important;
  border-color: var(--color-accent);
  box-shadow: 0 4px 18px rgba(34,71,104,0.19);
}
.button:hover, .button:focus {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(34,71,104,0.09);
}

/* --- FLEXBOX ESSENTIALS (MANDATORY) --- */
.card-container, .property-teasers, .property-listings, .features-grid, .testimonial-list, .testimonial-slider, .footer-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.property-listings {
  gap: 24px;
  margin-bottom: 28px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(44,38,21,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  flex: 1 1 280px;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-bg-light);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 8px rgba(34,71,104,0.050);
  min-width: 220px;
  flex: 1 1 350px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.blog-list {
  gap: 24px;
  flex-wrap: wrap;
}

.blog-post-teaser {
  background: var(--color-white);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1.5px 8px rgba(34,71,104,0.06);
  flex: 1 1 310px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* --- HERO, FEATURES, PROPERTY CARDS, ETC. --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.features-grid > div {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 1.5px 8px rgba(172,146,75,0.08);
  padding: 32px 24px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 6px solid var(--color-accent);
  gap: 12px;
}
.features-grid > div img {
  height: 38px;
  width: 38px;
  margin-bottom: 7px;
  filter: drop-shadow(0 0 6px #ece2c5);
}
.features-grid > div h3 {
  color: var(--color-primary);
  margin-bottom: 2px;
}

.property-teasers, .property-listings {
  gap: 24px;
}
.property-card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 1.5px 8px rgba(44,38,21,0.08);
  min-width: 220px;
  flex: 1 1 310px;
  padding: 26px 22px 18px 22px;
  margin-bottom: 20px;
  border-top: 4px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.property-card:hover {
  box-shadow: 0 4px 24px 0 rgba(172,146,75,0.15), 0 2px 8px rgba(34,71,104,0.10);
  transform: translateY(-5px) scale(1.022);
}
.property-card h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 5px;
  margin-top: 0;
}
.property-card span {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.06rem;
  margin-top: 6px;
}

/* cards --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.text-section {
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.text-section ul,
.text-section ol {
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 1rem;
}
.text-section li {
  margin-bottom: 6px;
}

.testimonial-slider, .testimonial-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

blockquote {
  color: var(--color-dark);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 8px 0;
  padding-left: 14px;
  border-left: 3px solid var(--color-accent);
}

.testimonial-card p {
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card span {
  color: var(--color-accent);
  font-size: 1.05em;
  margin-left: 8px;
}

/* --- CONTACT SNIPPET & FOOTER --- */
.contact-snippet, .contact-footer {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-snippet img, .contact-footer img {
  height: 23px;
  width: 23px;
  vertical-align: middle;
  margin-right: 8px;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: 40px;
  padding-bottom: 18px;
  position: relative;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-direction: column;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
}
.footer-menu a {
  color: var(--color-bg-light);
  transition: color 0.2s;
  text-decoration: underline dotted;
}
.footer-menu a:hover {
  color: var(--color-accent);
}
.contact-footer {
  color: var(--color-bg-light);
  font-size: 0.97rem;
  max-width: 270px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a img {
  opacity: 0.77;
  transition: opacity 0.18s, filter 0.18s;
  height: 28px; width: 28px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  padding: 2px;
}
.social-links a:hover img {
  filter: brightness(1.3);
  opacity: 1;
}

footer small {
  display: block;
  text-align: center;
  color: var(--color-bg-light);
  font-size: 0.98rem;
  margin-top: 12px;
}

/* --- BLOG CATEGORY FILTER --- */
.blog-category-filter {
  margin-top: 32px;
  background: var(--color-bg-light);
  padding: 20px 18px;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 1.5px 8px rgba(34,71,104,0.10);
}
.blog-category-filter h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.blog-category-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-category-filter li {
  color: var(--color-dark);
  padding: 5px 14px;
  background: var(--color-white);
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid var(--color-accent);
  transition: background 0.15s, color 0.15s;
}
.blog-category-filter li:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  cursor: pointer;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--color-bg-light);
  color: var(--color-dark);
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -2px 24px rgba(44,38,21,0.09);
  z-index: 999;
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: fadeInBottom 0.7s cubic-bezier(.60,0,.30,1);
}
.cookie-banner__text {
  flex: 1 1 220px;
  font-size: 0.97rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-banner__button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 22px;
  border-radius: 100px;
  border: 2px solid var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: var(--color-white);
  color: var(--color-accent);
  margin: 0 2px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cookie-banner__button.accept {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}
.cookie-banner__button.accept:hover,
.cookie-banner__button.accept:focus {
  background: #b39a5a;
  color: var(--color-white);
}
.cookie-banner__button.reject {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-banner__button.reject:hover,
.cookie-banner__button.reject:focus {
  background: #eee7d2;
}
.cookie-banner__button.settings {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.cookie-banner__button.settings:hover,
.cookie-banner__button.settings:focus {
  background: var(--color-accent);
  color: var(--color-dark);
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal__overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,71,104,0.19);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.3s;
}
.cookie-modal {
  background: var(--color-white);
  box-shadow: 0 2px 32px 0 rgba(34,71,104,0.27);
  border-radius: 20px;
  max-width: 430px;
  width: 97vw;
  padding: 38px 30px 29px 30px;
  animation: slideDownModal 0.39s cubic-bezier(.75,0,.25,1);
  z-index: 2010;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.20rem;
  margin-bottom: 8px;
}
.cookie-modal__desc {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.cookie-modal__category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal__category label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal__category input[type='checkbox'] {
  width: 21px;
  height: 21px;
  accent-color: var(--color-accent);
  margin-right: 7px;
}
.cookie-modal__category .alwayson {
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 8px;
  font-size: 0.92rem;
  padding: 2px 7px;
  margin-left: 4px;
}
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal__button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 22px;
  border-radius: 100px;
  border: 2px solid var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: var(--color-white);
  color: var(--color-accent);
  margin: 0 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-modal__button.save {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}
.cookie-modal__button.save:hover,
.cookie-modal__button.save:focus {
  background: #b39a5a;
  color: var(--color-white);
}
.cookie-modal__button.close {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-modal__button.close:hover,
.cookie-modal__button.close:focus {
  background: #eee7d2;
  color: var(--color-dark);
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
  .content-wrapper {
    max-width: 790px;
  }
}

@media (max-width: 900px) {
  .property-card, .features-grid > div, .blog-post-teaser, .testimonial-card {
    min-width: 180px;
    flex: 1 1 240px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
  .content-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.0rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  section {
    padding: 26px 6px;
  }
  .features-grid, .card-container, .property-listings, .property-teasers, .testimonial-slider, .testimonial-list, .blog-list, .footer-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .property-card, .features-grid > div, .blog-post-teaser, .testimonial-card {
    min-width: unset;
    flex: 1 1 100%;
  }
  body {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 520px) {
  .content-wrapper, .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .section {
    padding: 18px 1px;
  }
}

/* --- ANIMATIONS --- */
@keyframes fadeInBottom {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDownModal {
  from { opacity: 0; transform: translateY(-38px) scale(0.93); }
  to   { opacity: 1; transform: none; }
}

/* --- MISC REFINEMENT & ACCENTS --- */
hr {
  border: none;
  border-top: 1.5px solid var(--color-accent);
  margin: 34px 0;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--color-accent);
  padding: 11px 16px;
  background: var(--color-bg-light);
  color: var(--color-dark);
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
}
::-webkit-input-placeholder { color: var(--color-muted); }
::-moz-placeholder { color: var(--color-muted); }
:-ms-input-placeholder { color: var(--color-muted); }
::placeholder { color: var(--color-muted); }

/* Decorative small rounded corners and gold lines as motif */
section, .card, .property-card, .features-grid > div, .testimonial-card, .blog-post-teaser {
  border-radius: 16px;
  box-shadow: 0 1.5px 8px rgba(44,38,21,0.045);
}

/* Decorative gold underline for section headers */
h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 7px;
}
h2:after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}

@media (max-width: 500px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.08rem; }
  .footer-grid, .features-grid, .property-teasers, .property-listings, .testimonial-list, .blog-list {
    gap: 12px;
  }
}

/* Utility --- visually hidden (for accessiblity, e.g. skip links) */
.visually-hidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

/* --- Z-INDEX LAYERING --- */
header { z-index: 30; }
.mobile-menu, .mobile-menu.open { z-index: 110; }
.cookie-banner { z-index: 999; }
.cookie-modal__overlay { z-index: 2001; }

/* --- FOCUS VISIBLE FOR ACCESSIBILITY --- */
a:focus-visible, .button:focus-visible, .cookie-banner__button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0.5px;
}

/* --- OVERRIDE FOR CARD WRAPPERS (prevents grid/column fallback) --- */
.card-container,
.property-teasers,
.property-listings,
.features-grid,
.testimonial-list,
.testimonial-slider,
.footer-grid,
.blog-list,
.content-grid,
.text-image-section,
.testimonial-card,
.feature-item,
.blog-category-filter ul {
  display: flex !important;
  flex-wrap: wrap;
}

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