:root {
    --deep-water: #00639e;
    --capri-blue: #0099d6;
    --turquoise: #00b8d9;
    --soft-turquoise: #48d0e8;
    --light-cyan: #b0f0ff;
    --white-wash: #fffcf4;
    --cream-building: #fff2d8;
    --warm-sand: #f9e9d0;
    --soft-pink: #ff9ab8;
    --soft-orange: #ffb38a;
    --soft-gold: #ffcb8f;
    --terracotta: #e07a5f;
    --pine-green: #2aa38f;
    --pine-deep: #1f7a6e;
    --navy-text: #013a6b;
    --text-strong: #0f3154;
    --text-secondary: #2d4f72;
    --muted: #355f84;
    --soft-border: rgba(1, 58, 107, 0.18);
    --card-surface: rgba(255, 252, 240, 0.93);
    --card-border: rgba(255, 255, 255, 0.78);
    --surface-glass: rgba(255, 252, 240, 0.94);

    --footer-bg-1: #013a6b;
    --footer-bg-2: #00639e;
    --footer-bg-3: #062f4f;
    --footer-text: rgba(255, 255, 255, 0.9);
    --footer-muted: rgba(255, 255, 255, 0.68);
    --footer-border: rgba(255, 255, 255, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--navy-text);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at 18% 14%, rgba(72, 208, 232, 0.30), transparent 30%),
        radial-gradient(circle at 82% 8%, rgba(255, 203, 143, 0.32), transparent 28%),
        radial-gradient(circle at 78% 86%, rgba(42, 163, 143, 0.16), transparent 32%),
        linear-gradient(135deg, #f8fcff 0%, #eefaff 46%, #fff7ea 100%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 62% 52% at 36% 44%, rgba(255, 255, 255, 0.46) 0%, transparent 62%),
        radial-gradient(ellipse 52% 60% at 68% 52%, rgba(72, 208, 232, 0.18) 0%, transparent 66%);
    filter: blur(4px);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.22;
    background:
        radial-gradient(ellipse 58% 44% at 78% 20%, rgba(255, 179, 138, 0.24) 0%, transparent 74%),
        radial-gradient(ellipse 40% 34% at 20% 72%, rgba(42, 163, 143, 0.16) 0%, transparent 72%);
    filter: blur(70px);
    pointer-events: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ACCESSIBILITY */

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--deep-water);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(1, 58, 107, 0.22);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.site-menu-link:focus-visible,
.btn-offer:focus-visible,
.btn-large:focus-visible,
.county-card:focus-visible,
.locality-card:focus-visible,
.property-card a:focus-visible {
    outline: 3px solid rgba(0, 153, 214, 0.45);
    outline-offset: 3px;
    border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* HEADER */

header {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px 0;
    box-shadow: 0 6px 35px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 20;
}

header h1,
header h1 a {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    background: linear-gradient(135deg, var(--capri-blue), var(--soft-turquoise), var(--soft-orange), var(--soft-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    line-height: 1;
}

header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 600;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo-block p {
    margin-top: 6px;
}

.site-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.site-menu-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-strong);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.site-menu-link:hover {
    color: var(--deep-water);
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(1, 58, 107, 0.16);
}

.site-menu-link.is-admin {
    background: linear-gradient(135deg, var(--soft-orange), var(--soft-gold));
    color: #153452;
    border-color: rgba(1, 58, 107, 0.2);
    box-shadow: 0 10px 22px rgba(255, 179, 138, 0.25);
}

.site-menu-link.is-admin:hover {
    color: #0f2d48;
    transform: translateY(-1px);
}

/* GLOBAL */

main.container,
.main,
section,
.card,
.property-card,
.county-card,
.locality-card,
.step,
.search-box,
.search-section,
.featured-section,
.counties-section,
.sidebar-card {
    border-radius: 14px;
}

a {
    color: var(--capri-blue);
}

a:hover {
    color: var(--deep-water);
}

/* FOOTER PREMIUM */

.site-footer,
footer.site-footer {
    margin-top: 72px;
    padding: 58px 0 26px;
    background:
        radial-gradient(circle at 12% 18%, rgba(72, 208, 232, 0.24), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(255, 203, 143, 0.28), transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(42, 163, 143, 0.18), transparent 40%),
        linear-gradient(135deg, var(--footer-bg-1) 0%, var(--footer-bg-2) 48%, var(--footer-bg-3) 100%);
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 36%);
    opacity: 0.9;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.site-footer-shell {
    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(160px, 1fr));
    gap: 34px;
    align-items: start;
}

.site-footer-brand {
    grid-row: span 2;
}

.site-footer-logo {
    display: inline-block;
    margin-bottom: 14px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, var(--light-cyan) 42%, var(--soft-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-footer-logo:hover {
    filter: brightness(1.08);
}

.site-footer-lead {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    font-size: 0.96rem;
}

.site-footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.site-footer-trust span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.site-footer-col h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.site-footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer-col a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-size: 0.93rem;
    line-height: 1.45;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.site-footer-col a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.site-footer-anpc {
    padding: 18px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.site-footer-anpc-box {
    margin-top: 16px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer-anpc-box strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 0.92rem;
}

.site-footer-anpc-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    line-height: 1.55;
}

.site-footer-seo {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer-seo p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.7;
}

.site-footer-seo a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 750;
}

.site-footer-seo a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer-copy {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 750;
}

.site-footer-note {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
    line-height: 1.6;
}

.site-footer-bottom-links {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 220px;
}

.site-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 750;
}

.site-footer-bottom-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* FALLBACK pentru pagini care inca folosesc footer simplu */

footer:not(.site-footer) {
    margin-top: 72px;
    background:
        radial-gradient(circle at 12% 18%, rgba(72, 208, 232, 0.24), transparent 34%),
        linear-gradient(135deg, var(--footer-bg-1), var(--footer-bg-2), var(--footer-bg-3));
    color: #f8fbff;
    padding: 34px 0;
}

footer:not(.site-footer) a {
    color: var(--light-cyan);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .site-footer-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-brand {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 700px) {
    .site-footer,
    footer.site-footer {
        margin-top: 48px;
        padding-top: 42px;
        padding-bottom: 100px;
    }

    .site-footer-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer-bottom {
        flex-direction: column;
    }

    .site-footer-bottom-links {
        justify-content: flex-start;
        min-width: 0;
    }

    .site-footer-lead {
        font-size: 0.93rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 16px 0;
    }

    header h1,
    header h1 a {
        font-size: 2rem;
    }

    .site-menu {
        gap: 6px;
    }

    .site-menu-link {
        font-size: 0.88rem;
        padding: 7px 10px;
    }

    .site-footer-trust span {
        font-size: 0.78rem;
    }
}

/* HEADER PREMIUM */

.site-header,
header.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 14px 0;
    background:
        linear-gradient(135deg, rgba(255, 252, 240, 0.92), rgba(255, 255, 255, 0.78)),
        radial-gradient(circle at 12% 0%, rgba(72, 208, 232, 0.22), transparent 32%),
        radial-gradient(circle at 88% 0%, rgba(255, 203, 143, 0.24), transparent 34%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(1, 58, 107, 0.12);
    box-shadow: 0 12px 36px rgba(1, 58, 107, 0.12);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text-strong);
    text-decoration: none;
}

.site-brand:hover {
    color: var(--text-strong);
}

.site-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.42), transparent 28%),
        linear-gradient(135deg, var(--capri-blue), var(--deep-water) 55%, var(--pine-green));
    box-shadow: 0 14px 28px rgba(0, 99, 158, 0.24);
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    background: linear-gradient(135deg, var(--capri-blue), var(--deep-water), var(--soft-orange), var(--soft-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-brand-subtitle {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.site-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.site-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--text-strong);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-menu-link:hover {
    color: var(--deep-water);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(1, 58, 107, 0.14);
    box-shadow: 0 10px 22px rgba(1, 58, 107, 0.08);
    transform: translateY(-1px);
}

.site-menu-icon {
    font-size: 1rem;
    line-height: 1;
}

.site-menu-link.is-admin {
    color: #153452;
    background: linear-gradient(135deg, var(--soft-orange), var(--soft-gold));
    border-color: rgba(1, 58, 107, 0.16);
    box-shadow: 0 12px 24px rgba(255, 179, 138, 0.28);
}

.site-menu-link.is-admin:hover {
    color: #0f2d48;
    transform: translateY(-2px);
}

/* MOBILE MENU */

.site-mobile-menu {
    display: none;
    position: relative;
}

.site-mobile-menu summary {
    list-style: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(1, 58, 107, 0.14);
    box-shadow: 0 10px 22px rgba(1, 58, 107, 0.09);
    font-weight: 900;
}

.site-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu-text {
    font-size: 0.92rem;
}

.mobile-menu-burger {
    width: 22px;
    display: grid;
    gap: 4px;
}

.mobile-menu-burger span {
    height: 2px;
    border-radius: 999px;
    background: var(--deep-water);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-mobile-menu[open] .mobile-menu-burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-mobile-menu[open] .mobile-menu-burger span:nth-child(2) {
    opacity: 0;
}

.site-mobile-menu[open] .mobile-menu-burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-mobile-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(92vw, 420px);
    padding: 10px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,252,240,0.94)),
        radial-gradient(circle at 10% 0%, rgba(72,208,232,0.18), transparent 34%),
        radial-gradient(circle at 90% 0%, rgba(255,203,143,0.2), transparent 32%);
    border: 1px solid rgba(1, 58, 107, 0.14);
    box-shadow: 0 28px 70px rgba(1, 58, 107, 0.24);
    animation: siteMobileMenuIn 0.18s ease-out;
}

@keyframes siteMobileMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.site-mobile-nav {
    display: grid;
    gap: 6px;
}

.site-mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-strong);
    text-decoration: none;
    border: 1px solid rgba(1, 58, 107, 0.08);
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.95rem;
    font-weight: 850;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-mobile-nav a:hover {
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 153, 214, 0.22);
    transform: translateY(-1px);
}

.site-mobile-nav a.is-admin {
    color: #153452;
    background: linear-gradient(135deg, var(--soft-orange), var(--soft-gold));
    box-shadow: 0 16px 30px rgba(255, 179, 138, 0.26);
}

.site-mobile-nav a.is-admin:hover {
    color: #153452;
}

/* HEADER RESPONSIVE */

@media (max-width: 1060px) {
    .site-menu-desktop {
        display: none;
    }

    .site-mobile-menu {
        display: block;
    }
}

@media (max-width: 560px) {
    .site-header,
    header.site-header {
        padding: 10px 0;
    }

    .site-header-inner {
        gap: 10px;
    }

    .site-brand {
        gap: 9px;
    }

    .site-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        font-size: 1.55rem;
    }

    .site-brand-name {
        font-size: 1.7rem;
    }

    .site-brand-subtitle {
        font-size: 0.72rem;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu-text {
        display: none;
    }

    .site-mobile-menu summary {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .site-mobile-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 74px;
        width: auto;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        border-radius: 22px;
    }
}
