/* =====================
   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,
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background: #F7F6F1;
    color: #22324C;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, ol {
    list-style: none;
}
img {
    border-style: none;
    max-width: 100%;
    height: auto;
    display: block;
}
input, select, button, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
    border-radius: 0;
    background: none;
    border: none;
}
button {
    cursor: pointer;
}

/* =====================
   VINTAGE RETRO THEME
   ===================== */
:root {
    --primary: #22324C;
    --secondary: #8CA5BE;
    --accent: #F7F6F1;
    --vintage-red: #941C2F;
    --vintage-gold: #F8D882;
    --vintage-green: #537066;
    --vintage-shadow: rgba(34,50,76,0.09);
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    color: var(--primary);
    background: var(--accent);
    letter-spacing: 0.2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 1px 1px 0 var(--vintage-gold), 0 2px 2px var(--vintage-shadow);
    letter-spacing: 1px;
    margin-bottom: 16px;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 18px;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.4rem;
}
h4, h5, h6 {
    font-size: 1.1rem;
}

p, ul, ol, li, label {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.7;
}
strong {
    font-weight: 700;
    color: var(--vintage-red);
}

/* Vintage accents */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    border-radius: 22px;
    background: var(--accent);
    box-shadow: 0 4px 24px var(--vintage-shadow), 0 2px 0 var(--vintage-gold);
    border: 3px solid var(--vintage-gold);
    position: relative;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 12px;
    width: 100%;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}
.text-section {
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

/* =============================
   RETRO FLEXBOX LAYOUT PATTERNS
   ============================= */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: var(--accent);
    box-shadow: 0 8px 32px var(--vintage-shadow);
    border-radius: 18px;
    border: 2px solid var(--secondary);
    margin-bottom: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    max-width: 340px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.card:hover, .card:focus-within {
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 12px 36px var(--vintage-shadow);
    border-color: var(--vintage-gold);
}
.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 28px;
    background: var(--vintage-gold);
    color: var(--primary);
    border-radius: 20px;
    box-shadow: 0 6px 24px var(--vintage-shadow);
    margin-bottom: 20px;
    border-left: 6px solid var(--vintage-red);
}
.testimonial-card p {
    color: var(--primary);
    font-style: italic;
    font-size: 1.08rem;
}
.testimonial-card span {
    font-size: 1rem;
    font-family: 'Merriweather', serif;
    opacity: 0.88;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 10px;
}
.feature-grid > div {
    background: var(--accent);
    border-radius: 14px;
    box-shadow: 0 2px 16px var(--vintage-shadow);
    border: 2px solid var(--secondary);
    flex: 1 1 220px;
    max-width: 270px;
    min-width: 210px;
    padding: 26px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-grid > div:hover {
    box-shadow: 0 6px 24px var(--vintage-shadow);
    border-color: var(--vintage-gold);
}
.feature-grid img {
    width: 38px;
    margin-bottom: 10px;
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}
.team-list > div {
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--vintage-shadow);
    border: 1.5px solid var(--secondary);
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 240px;
    padding: 18px 16px;
    transition: border 0.2s, box-shadow 0.2s;
}
.team-list > div:hover {
    border-color: var(--vintage-gold);
    box-shadow: 0 4px 18px var(--vintage-shadow);
}

/* Cookie Banner & Modal Structure */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff8e3;
    color: var(--primary);
    box-shadow: 0 -6px 32px var(--vintage-shadow);
    border-top: 3px solid var(--vintage-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1100;
    padding: 18px 16px;
    font-size: 1rem;
    font-family: 'Open Sans', Arial, sans-serif;
    animation: cookieBannerIn 0.6s;
}
@keyframes cookieBannerIn {
    from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
    margin-left: 12px;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    border: none;
    background: var(--vintage-gold);
    color: var(--primary);
    font-family: 'Merriweather', serif;
    font-weight: 700;
    box-shadow: 0 2px 8px var(--vintage-shadow);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
    background: var(--vintage-red);
    color: #fff8e3;
    box-shadow: 0 4px 12px var(--vintage-shadow);
}

.cookie-modal {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(34,50,76,0.7);
    z-index: 1200;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: cookieModalIn 0.35s;
}
@keyframes cookieModalIn {
    from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
    background: #fff8e3;
    padding: 40px 32px 28px;
    border-radius: 18px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 6px 32px var(--vintage-shadow);
    position: relative;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--primary);
}
.cookie-modal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    text-align: left;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.cookie-category label {
    font-size: 1rem;
}
.cookie-toggle {
    width: 38px;
    height: 22px;
    background: var(--secondary);
    border-radius: 12px;
    position: relative;
    margin-right: 4px;
    transition: background 0.2s;
    flex: none;
}
.cookie-toggle input { display: none; }
.cookie-toggle::after {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
    box-shadow: 0 1px 3px var(--vintage-shadow);
}
.cookie-toggle input:checked + .cookie-toggle::after {
    left: 19px;
    background: var(--vintage-gold);
}
.cookie-toggle input:checked + .cookie-toggle {
    background: var(--vintage-gold);
}
.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 10px;
}
.cookie-modal-close {
    position: absolute;
    right: 16px;
    top: 10px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--vintage-red);
    cursor: pointer;
}

/* =====================
   HEADER / NAVIGATION
   ===================== */
header {
    background: var(--primary);
    box-shadow: 0 6px 32px var(--vintage-shadow);
    position: relative;
    z-index: 100;
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    max-width: 1120px;
    margin: 0 auto;
}
.main-nav > a img {
    height: 50px;
    margin-right: 12px;
}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
}
.main-nav ul li a {
    color: var(--accent);
    font-family: 'Merriweather', serif;
    font-size: 1.08rem;
    text-shadow: 1px 1px 0 var(--secondary);
    transition: color 0.18s, text-shadow 0.18s;
    padding: 3px 2px;
    border-radius: 3px;
    letter-spacing: 0.7px;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
    color: var(--vintage-gold);
    text-shadow: 1px 2px 2px var(--vintage-red);
    background: rgba(248,216,130,0.09);
}
.cta-btn {
    background: var(--vintage-red);
    color: #fff;
    padding: 11px 30px;
    border-radius: 24px 6px 24px 6px;
    border: none;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 12px var(--vintage-shadow);
    transition: background 0.19s, color 0.19s, transform 0.22s, box-shadow 0.22s;
    margin-left: 22px;
    display: inline-block;
    outline: none;
    position: relative;
}
.cta-btn:hover, .cta-btn:focus {
    background: var(--vintage-gold);
    color: var(--primary);
    transform: translateY(-2px) scale(1.045) rotate(-0.2deg);
    box-shadow: 0 5px 24px var(--vintage-shadow);
}

/* =========================
   BURGER MOBILE NAVIGATION
   ========================= */
.mobile-menu-toggle {
    display: none;
    background: var(--vintage-gold);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    margin-right: 10px;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 150;
    box-shadow: 0 2px 10px var(--vintage-shadow);
    transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: var(--vintage-red);
    color: #fff9e3;
}
.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: var(--accent);
    z-index: 1010;
    transform: translateX(-100vw);
    transition: transform 0.42s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 6px 0 32px var(--vintage-shadow);
    padding: 26px 0 0 0;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    padding: 0 26px 10px 0;
    font-size: 2rem;
    color: var(--vintage-red);
    cursor: pointer;
    z-index: 1101;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0 0 0;
    padding: 0 44px;
}
.mobile-nav a {
    font-size: 1.2rem;
    color: var(--primary);
    padding: 12px 6px;
    border-radius: 6px;
    font-family: 'Merriweather', serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--vintage-gold);
    color: var(--vintage-red);
}
@media (max-width: 1060px) {
  .main-nav {
      padding: 18px 18px;
  }
}
@media (max-width: 900px) {
    .main-nav ul {
        gap: 13px;
    }
    .main-nav > a img {
        height: 38px;
    }
    .main-nav {
        padding: 13px 4px
    }
}
@media (max-width: 767px) {
    .main-nav ul, .main-nav .cta-btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ===================
   PAGE ELEMENTS
   =================== */
.property-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 30px auto 18px auto;
    background: var(--accent);
    border-radius: 12px;
    box-shadow: 0 2px 14px var(--vintage-shadow);
    padding: 18px 20px 10px 16px;
    width: 100%;
    max-width: 730px;
    border: 1.5px solid var(--vintage-gold);
}
.property-search-bar label {
    font-size: 1rem;
    font-family: 'Merriweather', serif;
    width: 100%;
    margin-bottom: 5px;
    color: var(--vintage-green);
}
.property-search-bar input[type="text"] {
    background: #f7f6f1;
    border: 1.5px solid var(--vintage-gold);
    border-radius: 5px;
    font-size: 1rem;
    padding: 6px 12px;
    width: 100%;
    max-width: 300px;
    margin-right: 8px;
    color: var(--primary);
    font-family: 'Open Sans', Arial, sans-serif;
}
.property-search-bar button {
    background: var(--vintage-gold);
    color: var(--primary);
    border-radius: 5px;
    padding: 8px 20px;
    font-size: 1rem;
    border: none;
    font-family: 'Merriweather', serif;
    opacity: 0.6;
    cursor: not-allowed;
}
.property-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 34px;
    margin-bottom: 16px;
    align-items: center;
}
.property-filters label {
    font-family: 'Merriweather', serif;
    color: var(--secondary);
    margin-bottom: 0;
    margin-right: 6px;
    font-size: 1rem;
}
.property-filters select {
    background: #fff;
    border: 1.2px solid var(--secondary);
    padding: 5px 14px 5px 8px;
    border-radius: 5px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    color: var(--primary);
}

.map-placeholder {
    display: flex;
    align-items: center;
    background: #fdf7e7;
    border: 1.5px dashed var(--vintage-gold);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 26px auto 0 auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    gap: 10px;
    align-items: flex-start;
}
.contact-details p img, .footer-contact p img {
    width: 22px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline;
}

/* ===================
   FOOTER
   =================== */
footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--primary);
    color: var(--accent);
    padding: 48px 20px 20px 20px;
    margin-top: 72px;
    border-top: 5px solid var(--vintage-gold);
}
.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}
.footer-nav ul li a {
    color: var(--vintage-gold);
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.19s, color 0.19s;
}
.footer-nav ul li a:hover, .footer-nav ul li a:focus {
    background: #fffbe8;
    color: var(--vintage-red);
}
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 38px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 4px;
}
.footer-contact p {
    display: flex;
    align-items: center;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 0.98rem;
    color: #fff6de;
    margin-right: 16px;
}
.footer-contact p img {
    width: 22px;
    margin-right: 8px;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--vintage-gold);
    font-size: 1.08rem;
}
.footer-brand img {
    height: 36px;
}

/* =============
   LIST & OL STYLE
   ============= */
ul, ol {
    margin-left: 1em;
    margin-bottom: 13px;
    line-height: 1.7;
}
ul li::before {
    content: '•';
    color: var(--vintage-red);
    font-weight: bold;
    display: inline-block;
    width: 1.1em;
    margin-left: -1.1em;
    font-size: 1.1em;
    font-family: 'Merriweather', serif;
}
ul li {
    margin-bottom: 5px;
    padding-left: 2px;
}
ol {
    counter-reset: olcounter;
    padding-left: 18px;
}
ol li {
    counter-increment: olcounter;
    margin-bottom: 7px;
    padding-left: 2px;
}
ol li::before {
    content: counter(olcounter) '. ';
    color: var(--vintage-gold);
    font-family: 'Merriweather', serif;
    font-weight: 800;
    margin-left: -1.2em;
    display: inline-block;
    width: 1.2em;
}

/* ===================
   ANIMATIONS
   =================== */
.cta-btn, .feature-grid > div, .testimonial-card, .card {
    transition: box-shadow 0.22s, transform 0.15s, background 0.18s, border-color 0.18s;
}

/* ==============================
   RESPONSIVE DESIGN, FLEX SWITCH
   ============================== */
@media (max-width: 1060px) {
    .container {
        max-width: 90vw;
    }
}
@media (max-width: 991px) {
    .feature-grid {
        flex-direction: column;
        align-items: center;
    }
    .team-list {
        flex-direction: column;
        align-items: center;
    }
    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }
}
@media (max-width: 768px) {
    body, .section {
        font-size: 15px;
    }
    .section {
        margin-bottom: 36px;
        padding: 24px 8px;
    }
    .feature-grid, .content-grid, .card-container, .team-list {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
    .testimonial-card, .feature-grid > div, .team-list > div,
    .card {
        max-width: 97vw;
        min-width: unset;
    }
    .text-image-section {
        flex-direction: column;
        gap: 18px;
        align-items: center;
        text-align: center;
    }
    .footer-brand {
        flex-direction: column;
        gap: 10px;
    }
    .container {
        padding: 0 2px;
    }
}
@media (max-width: 545px) {
    h1 { font-size: 1.45rem; }
    h2 { font-size: 1.05rem; }
    .section {
        padding: 12px 2px;
    }
    .cookie-modal-content {
        padding: 20px 5vw 10px 5vw;
    }
    .footer-brand img {
        height: 23px;
    }
}

/* Accessibility: focus-visible ----------- */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
    outline: 2.5px dashed var(--vintage-red);
    outline-offset: 2px;
    background: #fffbe7;
}

/* Utility classes */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.gap-1 { gap: 12px !important; }
.gap-2 { gap: 20px !important; }

/* ================
   PRINT RETRO TAPESTRY BACKGROUND ACCENTS
   ================= */
.section::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 14px; right: 30px;
    width: 80px; height: 24px;
    background: repeating-linear-gradient(135deg,var(--vintage-gold),var(--vintage-gold) 5px,var(--accent) 5px,var(--accent) 10px);
    opacity: 0.12;
    border-radius: 9px;
    z-index: 0;
    pointer-events: none;
}

/* ==============
   HIGHLIGHT HEADINGS (Retro underlines)
   ============= */
h1, h2 {
    position: relative;
}
h1::after, h2::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    border-radius: 12px;
    background: var(--vintage-gold);
    opacity: 0.7;
}
.text-section h1::after, .text-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ==============
   RETRO SHADOWS
   ============== */
.card, .feature-grid > div, .testimonial-card, .property-search-bar {
    box-shadow: 0 4px 24px var(--vintage-shadow);
}

/* ===========
   SCROLLBAR
   =========== */
::-webkit-scrollbar {
    width: 10px;
    background: var(--accent);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 6px;
}

/* ==========================
   ENSURE SPACING, NO OVERLAP
   ========================== */
.card-container > *, .content-grid > *, .feature-grid > *, .team-list > *, .testimonial-card {
    margin-bottom: 20px;
}

/* ===============
   END OF STYLE.CSS
   =============== */
