* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    padding: 0;
}
/* Stilul general al header-ului pe Desktop */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
}
/* Aspectul header-ului când dai scroll în jos */
.site-header.scrolled {
    background-color: #ffffff;
    padding: 14px 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .main-nav a {
    color: #222222;
}

.site-header.scrolled .main-nav a:hover {
    color: #1b4d3e;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

/* Meniul e centrat pe orizontală, independent de lățimea logo-ului —
   fără telefonul din header, un simplu justify-content: space-between
   l-ar fi împins spre marginea din dreapta. */
.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 18px;
    font-size: 17px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Hero Section cu Video */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 850px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 44px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 21px;
    margin-bottom: 30px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
}

.btn-primary:hover {
    background: #fff;
    color: #333;
}

/* Stiluri pentru Secțiunea Portofoliu minimalistă */
.portofoliu-section {
    padding: 70px 50px;
    background-color: #ffffff;
}

.portofoliu-container {
    max-width: 1300px;
    margin: 0 auto;
}

.portofoliu-kicker {
    font-size: 16px;
    font-weight: 700;
    color: #1b4d3e;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.portofoliu-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.portofoliu-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 40px;
}

.portofoliu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* .portofoliu-item e un <a> (link direct spre pagina proprietății), nu un <div> —
   fără regula asta ar apărea ca link albastru, subliniat, inline. */
.portofoliu-item {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.portofoliu-item:hover {
    transform: translateY(-3px);
}

.portofoliu-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.portofoliu-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.portofoliu-price {
    font-size: 16px;
    font-weight: 700;
    color: #1b4d3e;
    margin-bottom: 6px;
}

.portofoliu-info {
    font-size: 13px;
    color: #666;
}

/* Stiluri Secțiune Recenzii */
.recenzii-section {
    padding: 80px 50px;
    background-color: #ffffff;
    text-align: center;
}

.recenzii-container {
    max-width: 900px;
    margin: 0 auto;
}

.recenzii-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin-bottom: 60px;
}

.recenzii-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
}

.recenzie-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.recenzie-text h3 {
    font-size: 18px;
    color: #1b4d3e;
    margin-bottom: 8px;
}

.recenzie-text p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

/* Stiluri pentru Secțiunea Banner CTA */
.cta-banner-section {
    position: relative;
    width: 100%;
    height: 450px;
    background-image: url('../img/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 60px 0;
    background-color: #ffffff;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #fff;
}

.cta-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.btn-evaluare {
    display: inline-block;
    background-color: #1b4d3e;
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-evaluare:hover {
    background-color: #14382c;
    transform: translateY(-2px);
}

/* Stiluri pentru Footer și Contact */
.site-footer {
    background-color: #ffffff;
    padding: 80px 40px 40px 40px;
    border-top: none;
    color: #444;
    position: relative;
}

.site-footer::before {
    content: "";
    display: block;
    width: 800px;
    height: 4px;
    background-color: #1b4d3e;
    margin: 0 auto 50px auto;
    border-radius: 2px;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    /* Am schimbat aici în 1fr 1fr 1fr pentru a avea 3 coloane perfect egale */
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 60px;
    align-items: start;
}

.footer-col.footer-links-col {
    justify-self: end;
}

.footer-brand {
    font-size: 22px;
    font-weight: 700;
    color: #1b4d3e;
    margin-bottom: 5px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #666;
}

.footer-contact-item a, .footer-address {
    color: #1b4d3e;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.footer-contact-item a:hover {
    text-decoration: underline;
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: #1b4d3e;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    background-color: #14382c;
    transform: translateY(-2px);
}


.footer-map-col iframe {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: block;
}

.map-wrapper-overlay {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.map-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: pointer;
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-nav-links li {
    margin-bottom: 8px;
}

.footer-nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.footer-nav-links a:hover {
    color: #1b4d3e;
}

.footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.footer-legal-links a {
    color: #777;
    text-decoration: none;
    font-size: 12px;
}

.footer-legal-links a:hover {
    color: #333;
}

.anpc-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Asigurăm că tot blocul pozei este o zonă activă de click */
.anpc-badge-link {
    display: block;
    transition: transform 0.2s ease; /* Feedback vizual subtil la trecerea cu mouse-ul */
}

.anpc-badge-link:hover {
    transform: scale(1.02); /* Se mărește foarte puțin când utilizatorul e gata să dea click */
}

.anpc-badge-link img {
    max-width: 180px;
    height: auto;
    display: block;
}
.hamburger-btn {
    display: none;
}

/* ========================================== */
/* STILURI FINALE FOOTER (Valabile pe orice ecran) */
/* ========================================== */
.footer-bottom {
    max-width: 1350px;
    margin: 50px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
    text-align: center;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom-logo {
    height: auto !important;
    max-width: 120px !important; /* Aici controlezi dimensiunea logo-ului */
    width: 100% !important;
    margin-bottom: 15px;
    display: inline-block !important;
}

.footer-bottom p {
    font-size: 13px;
    color: #777;
    margin: 0;
}
/* Butonul Înapoi la pagina principală */
.back-home { 
    display: inline-block; 
    margin-top: 35px; 
    background-color: #1b4d3e; 
    color: #ffffff !important; 
    font-size: 18px;           /* <-- DE AICI modifici mărimea textului */
    font-weight: 600; 
    padding: 14px 28px;        /* <-- Dimensiunea butonului */
    border-radius: 30px; 
    text-decoration: none; 
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.back-home:hover { 
    background-color: #14382c; 
    transform: translateY(-2px); 
    text-decoration: none; 
}
/* Layout Pagina Proprietăți */
.properties-page {
    max-width: 1300px;
    margin: 140px auto 60px auto;
    padding: 0 30px;
}

.page-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.page-top-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.properties-subtitle {
    font-size: 17px;
    color: #666;
}

/* ========================================== */
/* PAGINA DE SERVICII (servicii.html) */
/* ========================================== */
.servicii-intro {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.servicii-intro h1 {
    font-size: 34px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.3;
}

.servicii-intro p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.service-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.service-block-reverse {
    flex-direction: row-reverse;
}

.service-block-image {
    flex: 1;
    min-width: 0;
}

.service-block-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.service-block-content {
    flex: 1;
    min-width: 0;
}

.service-block-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.service-list li:last-child {
    margin-bottom: 0;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #1b4d3e;
}

.service-list li strong {
    color: #111;
    font-weight: 700;
}

/* ========================================== */
/* PAGINA DESPRE AZYMERA (despre.html) */
/* ========================================== */
.despre-story {
    max-width: 850px;
    margin: 0 auto 70px auto;
    text-align: center;
}

.despre-story h1 {
    font-size: 34px;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
    line-height: 1.3;
}

.despre-story p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
}

.despre-story p:last-child {
    margin-bottom: 0;
}

.despre-story strong {
    color: #1b4d3e;
    font-weight: 700;
}

.despre-principles {
    margin-bottom: 80px;
}

.despre-principles h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 40px;
    text-align: center;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.principle-item {
    padding: 0 40px;
    text-align: center;
}

.principle-item:not(:first-child) {
    border-left: 1px solid #eaeaea;
}

.principle-icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.principle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e6efe9;
    color: #1b4d3e;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.principle-icon {
    font-size: 30px;
    color: #1b4d3e;
    line-height: 1;
}

.principle-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}

.principle-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.principle-item li {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.principle-item li:last-child {
    margin-bottom: 0;
}

.despre-team {
    margin-bottom: 20px;
}

.despre-team h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 40px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #e6efe9;
    color: #1b4d3e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px auto;
    overflow: hidden;
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.team-role {
    font-size: 14px;
    color: #888;
    margin-bottom: 14px;
}

.team-contact {
    font-size: 14px;
}

.team-contact a {
    display: block;
    color: #555;
    text-decoration: none;
    margin-bottom: 6px;
}

.team-contact a:last-child {
    margin-bottom: 0;
}

.team-contact a:hover {
    color: #1b4d3e;
    text-decoration: underline;
}

.team-contact i {
    width: 16px;
    color: #1b4d3e;
    margin-right: 6px;
}

.cv-upload {
    display: block;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cv-upload:hover,
.cv-upload.drag-over {
    border-color: #1b4d3e;
    background-color: #f7faf8;
}

.cv-upload-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.cv-upload-hint {
    display: block;
    font-size: 13px;
    color: #888;
}

.cv-upload-link {
    color: #1b4d3e;
    font-weight: 600;
    text-decoration: underline;
}

.cv-upload-filename {
    display: block;
    font-size: 13px;
    color: #1b4d3e;
    font-weight: 600;
    margin-top: 8px;
}

/* ========================================== */
/* PAGINA DE CONTACT (contact.html) */
/* ========================================== */
.contact-intro {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.contact-intro h1 {
    font-size: 34px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-intro p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.contact-intro p:last-child {
    margin-bottom: 0;
}

.contact-info-block {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #444;
}

.contact-info-item i {
    color: #1b4d3e;
    font-size: 18px;
    width: 18px;
    text-align: center;
}

.contact-info-item a {
    color: #444;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: #1b4d3e;
    text-decoration: underline;
}

/* ========================================== */
/* PAGINA GHID & PIAȚĂ (ghid.html) */
/* ========================================== */
.ghid-hero-banner {
    background-color: #1b4d3e;
    color: #fff;
    text-align: center;
    padding: 60px 40px;
    margin-bottom: 60px;
}

.ghid-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    font-weight: 700;
    color: #8fd3b0;
    margin-bottom: 16px;
}

.ghid-hero-banner h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.ghid-hero-banner p {
    font-size: 16px;
    color: #d8e8df;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.ghid-tools-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.ghid-tools-intro h2 {
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}

.ghid-tools-intro p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.calculator-widget {
    max-width: 900px;
    margin: 0 auto 80px auto;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 40px;
}

.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 30px;
    padding-bottom: 24px;
}

.calculator-tab-btn {
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.calculator-tab-btn.active {
    background-color: #1b4d3e;
    color: #fff;
}

.calculator-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
}

.calculator-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.calculator-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    background-color: #fff;
}

/* Dropdown-urile custom din calculatoare (Grad de neocupare, Cartier, Tip Imobil,
   Parcare) reutilizează exact componenta .custom-dropdown de la sortarea din
   proprietati.html — doar lățimea diferă, ca să umple coloana din grid. */
.calculator-field .custom-dropdown {
    width: 100%;
}

.calc-submit-btn {
    display: block;
    width: 100%;
    background-color: #1b4d3e;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 25px;
}

.calc-submit-btn:hover {
    background-color: #14382c;
}

.calc-results {
    display: none;
    background-color: #e6efe9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.calc-results.calc-results-2col {
    grid-template-columns: repeat(2, 1fr);
}

.calc-results.visible {
    display: grid;
}

.calc-result-label {
    font-size: 13px;
    font-weight: 600;
    color: #1b4d3e;
    margin-bottom: 8px;
}

.calc-result-value {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.calc-note {
    text-align: center;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.calc-cta-wrapper {
    text-align: center;
}

/* CTA "Ai nevoie de o opinie obiectivă..." — la fel ca în referință, dar fără
   dreptunghiul verde: doar text + buton, ca să nu mai adăugăm un al doilea bloc
   colorat pe pagină (avem deja banner-ul verde de sus). */
.ghid-consult-cta {
    max-width: 800px;
    /* Spațiu egal sus/jos, ca CTA-ul să fie la mijlocul distanței dintre
       calculator (deasupra) și secțiunea "Piața Imobiliară din Cluj în Cifre
       Reale" (dedesubt) — înainte era 200px sus / 80px jos, asimetric. */
    margin: 140px auto 140px auto;
    text-align: center;
}

.ghid-consult-cta h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    line-height: 1.3;
}

.ghid-consult-cta p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Secțiunea "Piața Imobiliară din Cluj în Cifre Reale" — carduri interactive care
   trimit spre paginile de articol ghid-*.html (nu sunt în meniul principal).
   grid-template-columns folosește auto-fit ca să arate bine și cu 2 carduri acum,
   fără să necesite modificări de CSS când adăugăm al treilea card. */
.ghid-insights-section {
    max-width: 1100px;
    margin: 0 auto 90px auto;
    padding: 0 30px;
}

.ghid-insights-section h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}

.ghid-insights-intro {
    text-align: center;
    font-size: 16px;
    color: #666;
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.ghid-insights-grid {
    display: grid;
    /* auto-fill (nu auto-fit): păstrează lățimea cardului constantă indiferent
       câte carduri sunt în secțiune — altfel un singur card (ex. secțiunea
       "Ghiduri de Navigare Imobiliară", încă incompletă) s-ar întinde pe tot
       rândul și ar arăta mult mai mare decât cardurile din secțiunea cu 3. */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ghid-insight-card {
    display: block;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 28px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ghid-insight-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.ghid-insight-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 700;
    color: #1b4d3e;
    margin-bottom: 12px;
}

.ghid-insight-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin-bottom: 16px;
}

.ghid-insight-link {
    font-size: 14px;
    font-weight: 600;
    color: #1b4d3e;
}

.ghid-insight-link i {
    margin-left: 6px;
    font-size: 12px;
}

/* Pagini de articol Ghid & Piață (ghid-*.html) — accesibile doar prin cardurile
   interactive de mai sus, nu din meniul principal, la fel ca proprietate.html.
   Folosesc wrapper-ul .properties-page (max-width 1300px, margin-top 140px)
   pentru poziționare sub header, dar restrâng lățimea la 780px pentru lizibilitate. */
.ghid-article-page {
    max-width: 780px;
}

.ghid-article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1b4d3e;
    text-decoration: none;
    margin-bottom: 30px;
}

.ghid-article-back:hover {
    text-decoration: underline;
}

.ghid-article-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    font-weight: 700;
    color: #1b4d3e;
    margin-bottom: 14px;
}

.ghid-article-page h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin-bottom: 30px;
}

.ghid-article-hero-image {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
}

.ghid-article-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 36px 0 14px 0;
}

.ghid-article-body p {
    font-size: 16px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 18px;
}

.ghid-article-body a {
    color: #1b4d3e;
    font-weight: 600;
}

.ghid-article-disclaimer {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
    margin-top: 30px;
}

.header-right-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.results-count {
    font-size: 13px;
    color: #777;
}

#sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    padding: 10px 40px 10px 20px;
    border-radius: 30px; /* Formă de pastilă */
    font-size: 14px;
    font-family: 'Exo 2', sans-serif;
    color: #333;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
}

#sort-select:hover {
    border-color: #1b4d3e;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.listings-grid {
    flex: 3;
}

/* Card Proprietate Stilizat */
.property-card {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 30px;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.property-card:hover {
    background-color: #fafafa;
}

.property-image {
    position: relative;
    width: 320px;
    height: 210px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Galeria mare de pe pagina proprietății (proprietate.html) — spre deosebire
   de cardurile mici de mai sus, aici NU decupăm poza (object-fit: contain),
   ca să nu tăiem urât o poză verticală încărcată de un agent. Spațiul gol
   rămas în stânga/dreapta unei poze verticale e umplut cu .gallery-backdrop
   (aceeași poză, blurată și mărită), nu cu dungi albe. */
.property-image.detail-gallery-image {
    background: #1b1b1b;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(30px) brightness(0.65);
    transform: scale(1.15); /* acoperă marginile — blurul altfel lasă un contur deschis la colțuri */
    z-index: 0;
}

.property-image.detail-gallery-image img {
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.image-nav {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 2;
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: 0.2s;
    z-index: 2;
}

.arrow-btn:hover {
    background: #fff;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.property-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.property-info .price {
    font-size: 20px;
    font-weight: 700;
    color: #1b4d3e;
    margin-bottom: 8px;
}

.property-info .price span {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.property-info .price-per-sqm {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.property-info .specs {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Panou Filtre Lateral */
.filter-panel {
    flex: 1;
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.filter-panel h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #111;
}

.filter-panel select,
.filter-panel input {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

/* Dropdown-ul "Tip proprietate" trebuie să ocupe toată lățimea panoului,
   la fel ca celelalte câmpuri (implicit .custom-dropdown are lățime fixă,
   gândită pentru bara de sortare). */
.filter-panel .custom-dropdown {
    width: 100%;
    margin-bottom: 15px;
}

/* Placeholder gri cât timp nu e nimic bifat, îngroșat/închis la culoare
   după prima selecție (clasa .has-value e comutată din script.js). */
.filter-panel .dropdown-selected span {
    color: #888;
}

.filter-panel .dropdown-selected.has-value span {
    color: #222;
    font-weight: 600;
}

/* Opțiune de dropdown cu checkbox (selecție multiplă) */
.custom-dropdown.multiselect .dropdown-options {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-checkbox-option:hover {
    background-color: #f4f8f6;
}

.dropdown-checkbox-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1b4d3e;
    cursor: pointer;
    flex-shrink: 0;
}

/* Etichetă de grup în interiorul unui dropdown cu selecție multiplă
   (ex: "Cartiere Cluj-Napoca" / "Comune învecinate" la filtrul de Zone) */
.dropdown-group-label {
    padding: 12px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-group-label:not(:first-child) {
    margin-top: 6px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-type-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.2s;
}

.filter-type-btn.active {
    background: #1b4d3e;
    color: #fff;
    border-color: #1b4d3e;
}

/* Variantă a .btn-group pentru seturi de 4+ butoane comutabile (ex. "Alte
   opțiuni": Cu parcare / Construcții noi / Comision 0% / Exclusivități) —
   aceleași butoane .filter-type-btn, dar aranjate pe 2 coloane în loc de un
   singur rând, ca să nu se îngusteze prea tare pe panoul de filtre. */
.btn-group-grid {
    flex-wrap: wrap;
}

.btn-group-grid .filter-type-btn {
    flex: 1 1 calc(50% - 5px);
}

/* .filter-group înlocuiește vechiul .price-range: e folosit acum pentru
   toate perechile "etichetă + control" din panou (Preț, Camere, Suprafață,
   An construcție, Etaj), nu doar pentru preț. */
.filter-group {
    margin-bottom: 15px;
}

.filter-group p {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.range-inputs {
    display: flex;
    gap: 10px;
}

/* Pastilă Min/Max: etichetă + input, în același contur rotunjit */
.pill-range-input {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    cursor: text;
}

.pill-range-input span {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f3f5f4;
    white-space: nowrap;
}

.pill-range-input input {
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 14px;
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
}

/* "Mai multe filtre": link + blocul extins pe care îl arată/ascunde */
.more-filters-link {
    display: block;
    text-align: center;
    margin-bottom: 15px;
    color: #1b4d3e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.more-filters-link:hover {
    text-decoration: underline;
}

.extra-filters {
    display: none;
}

.extra-filters.open {
    display: block;
}

.btn-filter {
    width: 100%;
    padding: 12px;
    background: #1b4d3e;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-filter:hover {
    background: #14382c;
}

.clear-filters {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

/* Pe paginile secundare, header-ul are fundal alb permanent și text închis.
   Regula cu :not(:has(...)) acoperă orice pagină fără nevoie de clasă suplimentară
   (suportată de browserele moderne), iar clasa .secondary-page de pe <body> e
   fallback-ul garantat, ca stilul să nu depindă exclusiv de suportul CSS :has(). */
body:not(:has(.hero-section)) .site-header,
body.secondary-page .site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 14px 50px;
}

body:not(:has(.hero-section)) .site-header .main-nav a,
body.secondary-page .site-header .main-nav a {
    color: #222222;
}

body:not(:has(.hero-section)) .site-header .main-nav a:hover,
body.secondary-page .site-header .main-nav a:hover {
    color: #1b4d3e;
}

/* ========================================== */
/* STILURI PENTRU MENIUL CUSTOM DE SORTARE */
/* ========================================== */

.custom-dropdown {
    position: relative;
    width: 210px;
    font-family: 'Exo 2', sans-serif;
    user-select: none;
    text-align: left;
}

.dropdown-selected {
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.dropdown-selected:hover {
    border-color: #1b4d3e;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: none;
    z-index: 999;
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-option {
    padding: 11px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #f4f8f6;
    color: #1b4d3e;
}

.dropdown-option.active {
    font-weight: 600;
    color: #1b4d3e;
    background-color: #f9fbfb;
}

/* ========================================== */
/* SECȚIUNE "NU AI GĂSIT PROPRIETATEA?" (pagina Proprietăți) */
/* ========================================== */
.no-results-section {
    padding: 70px 20px 20px;
    text-align: center;
}

.no-results-container {
    max-width: 700px;
    margin: 0 auto;
}

.no-results-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.no-results-section p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* ========================================== */
/* SECȚIUNE "SCRIE-NE ACUM" (formular de contact direct) */
/* ========================================== */
.contact-form-section {
    padding: 40px 20px 90px;
}

.contact-form-container {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.contact-form-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
}

.contact-form-container h2:has(+ .contact-form-intro) {
    margin-bottom: 12px;
}

.contact-form-intro {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 26px;
}

/* Variantă pentru cazul în care acest text e singurul conținut al secțiunii
   (fără niciun formular dedesubt) — ex. despre.html, secțiunea de carieră.
   Mărime aliniată cu restul textului de conținut al paginii (vezi
   .despre-story p, 16px/1.7), nu cu stilul mic gândit ca introducere
   deasupra unui formular. */
.contact-form-intro.standalone-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

.contact-form {
    text-align: left;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required-mark {
    color: #d9333f;
    margin-right: 2px;
}

.contact-form input[type="tel"],
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    font-family: 'Exo 2', sans-serif;
    outline: none;
    resize: vertical;
}

.contact-form textarea {
    border-radius: 16px;
    min-height: 110px;
}

.contact-form input[type="tel"]:focus,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #1b4d3e;
}

.contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #444;
    margin-bottom: 25px;
    cursor: pointer;
}

.contact-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #1b4d3e;
    cursor: pointer;
    flex-shrink: 0;
}

.contact-consent a {
    color: #1b4d3e;
    font-weight: 600;
    text-decoration: none;
}

.contact-consent a:hover {
    text-decoration: underline;
}

.contact-form-container .btn-evaluare {
    border: none;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.contact-form-status {
    margin-top: 18px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.contact-form-status.success {
    color: #1b4d3e;
}

.contact-form-status.error {
    color: #d9333f;
}
























































/* ========================================== */
/* PAGINA DE DETALIU PROPRIETATE (proprietate.html) */
/* ========================================== */
.property-detail-page {
    max-width: 1300px;
    margin: 140px auto 60px auto;
    padding: 0 30px;
}

.breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumb .crumb-sep {
    margin: 0 6px;
    color: #ccc;
}

.detail-top {
    margin-bottom: 25px;
}

.detail-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.detail-title-row h1 {
    font-size: 26px;
    font-weight: 700;
    color: #111;
}

.detail-id {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.detail-meta-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

.detail-price .price-note {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-left: 4px;
}

.detail-specs {
    font-size: 14px;
    color: #555;
}

.detail-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Coloana principală: poze, detalii tehnice, descriere, hartă — toate la un loc,
   ca să se stivuiască automat în această ordine pe mobil, înaintea sidebar-ului
   (formularul de vizionare), fără reguli separate de reordonare pe mobil. */
.detail-main-col {
    flex: 3;
    min-width: 0;
}

.detail-gallery-image {
    width: 100%;
    height: 480px;
    margin-bottom: 40px;
}

.arrow-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.detail-sidebar {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Poza de profil a agentului, deasupra numelui — același model vizual ca
   .team-avatar de pe despre.html (cerc, fundal verde-deschis, iconiță
   generică drept fallback dacă agentul nu are avatar în CRM). */
.detail-sidebar .agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e6efe9;
    color: #1b4d3e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 14px auto;
    overflow: hidden;
}

.detail-sidebar .agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-sidebar .agent-name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 6px;
}

/* Numărul agentului e ascuns implicit, în spatele unui buton "Afișează numărul"
   (protecție minimă anti-scraping + practică uzuală pe siturile imobiliare).
   Starea inițială arată ca un link mic, subliniat; după click (.revealed),
   devine text simplu, mai mare, cu numărul real — vezi secțiunea 8 din script.js. */
.detail-sidebar .agent-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: none;
    border: none;
    font-family: 'Exo 2', sans-serif;
    color: #1b4d3e;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.detail-sidebar .agent-phone:hover {
    opacity: 0.8;
}

.detail-sidebar .agent-phone.revealed {
    cursor: default;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.sidebar-cta-label {
    font-size: 14px;
    color: #444;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #eaeaea;
    margin-bottom: 18px;
}

.detail-sidebar .btn-evaluare {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
}

.detail-description-section {
    margin-bottom: 50px;
}

.detail-description-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.detail-description {
    max-width: 800px;
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}

.detail-technical {
    margin-bottom: 50px;
}

.detail-technical h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.detail-technical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
    max-width: 800px;
}

.detail-technical-grid div {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.detail-technical-grid dt {
    color: #777;
}

.detail-technical-grid dd {
    color: #222;
    font-weight: 600;
}

.detail-map-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.detail-map-frame {
    max-width: 800px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.detail-map-frame iframe {
    display: block;
    width: 100%;
    height: 400px;
}

.detail-similar-section {
    margin-top: 40px;
}

.detail-similar-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.detail-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.detail-not-found {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #555;
}

.detail-not-found a {
    display: inline-block;
    margin-top: 15px;
    color: #1b4d3e;
    font-weight: 600;
    text-decoration: none;
}

.detail-not-found a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .detail-content-wrapper {
        flex-direction: column;
    }

    /* Fără astea, .detail-main-col și .detail-sidebar s-ar micșora la lățimea
       conținutului (align-items: flex-start pe axa transversală, care pe coloană
       e orizontala) în loc să ocupe toată lățimea disponibilă. */
    .detail-main-col {
        width: 100%;
    }

    .detail-gallery-image {
        width: 100%;
        height: 300px;
    }

    .detail-sidebar {
        width: 100%;
    }

    .detail-technical-grid {
        grid-template-columns: 1fr;
    }

    .detail-map-frame iframe {
        height: 280px;
    }

    .detail-similar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* 2. Setări pentru Header pe mobil */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: transparent;
        padding: 12px 15px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    }

    .site-header.scrolled {
        background-color: #ffffff;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        padding: 10px 15px !important;
    }

   /* 3. Butonul din dreapta pe mobil (Meniu) - alb pe fundal transparent */
    .hamburger-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        color: #ffffff !important;
        padding: 6px 12px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
    }

    /* Devine închis la culoare DOAR când header-ul devine alb (la scroll sau pe pagini secundare) */
    .site-header.scrolled .hamburger-btn,
    body:not(:has(.hero-section)) .site-header .hamburger-btn,
    body.secondary-page .site-header .hamburger-btn {
        color: #222222 !important;
        border-color: rgba(0, 0, 0, 0.3) !important;
    }

    /* 4. Meniul dropdown care se deschide din hamburger — stilizat ca o
       "pastilă" flotantă rotunjită, ancorată sub butonul Meniu, la fel ca
       celelalte dropdown-uri de pe site (ex: sortarea "Actualizate recent"),
       nu ca un banner drept pe toată lățimea ecranului.
       Resetăm explicit "transform" — pe desktop .main-nav e centrat cu
       translateX(-50%), care altfel ar rămâne aplicat și aici, peste
       right:15px, și ar deplasa meniul mobil greșit. */
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: auto;
        right: 15px;
        transform: none;
        width: 220px;
        background-color: #1b4d3e;
        border-radius: 16px;
        padding: 8px 0;
        text-align: left;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        z-index: 1000;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
    }

    .main-nav a {
        display: block;
        color: #ffffff !important;
        margin: 0;
        padding: 12px 20px;
        font-size: 15px;
        transition: background-color 0.2s ease;
    }

    .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.12);
        opacity: 1;
    }

    /* 5. Corectare secțiuni și grile pe telefon */
    .content-wrapper { 
        flex-direction: column; 
    }

    .portofoliu-grid {
        grid-template-columns: 1fr;
    }

    .recenzii-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer::before {
        width: 80px; 
    }

    .footer-col.footer-info {
        text-align: center;
    }

    .footer-socials {
        justify-content: center; 
    }

    .footer-col.footer-links-col {
        justify-self: center; 
        text-align: center; 
        width: 100%;
    }

    .anpc-badges {
        align-items: center; 
    }

    /* AICI ERA PROBLEMA: Am pus 130px și !important ca să coboare titlul sub header */
    .properties-page {
        margin-top: 130px !important;
        padding: 0 15px;
    }

    .servicii-intro h1 {
        font-size: 26px;
    }

    .service-block,
    .service-block-reverse {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }

    .service-block-image img {
        height: 240px;
    }

    .service-block-content h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .despre-story h1 {
        font-size: 26px;
    }

    .despre-principles h2,
    .despre-team h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .principle-item {
        padding: 0;
    }

    .principle-item:not(:first-child) {
        border-left: none;
        border-top: 1px solid #eaeaea;
        padding-top: 30px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-intro h1 {
        font-size: 26px;
    }

    .contact-info-block {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    /* Pe mobil, adresa trece ultima (după program), pentru o aliniere mai
       curată a blocurilor stivuite vertical — pe desktop rândul rămâne
       neschimbat (telefon, email, adresă, program), acolo unde elementele
       stau orizontal și ordinea originală arată bine. */
    .contact-info-block .contact-info-item:nth-child(3) {
        order: 4;
    }

    .contact-info-block .contact-info-item:nth-child(4) {
        order: 3;
    }

    .ghid-hero-banner {
        padding: 40px 24px;
    }

    .ghid-hero-banner h2 {
        font-size: 24px;
    }

    .ghid-tools-intro h2 {
        font-size: 22px;
    }

    .calculator-widget {
        padding: 24px 20px;
    }

    .calculator-fields {
        grid-template-columns: 1fr;
    }

    .calc-results,
    .calc-results.calc-results-2col {
        grid-template-columns: 1fr;
    }

    .ghid-consult-cta {
        margin-bottom: 50px;
    }

    .ghid-consult-cta h2 {
        font-size: 22px;
    }

    .ghid-insights-section h2 {
        font-size: 24px;
    }

    .ghid-insights-grid {
        grid-template-columns: 1fr;
    }

    .ghid-article-page h1 {
        font-size: 24px;
    }

    .ghid-article-hero-image {
        height: 220px;
    }

    .page-top-header {
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 15px; 
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .header-right-controls { 
        align-items: center; 
        width: 100%;
    }
    
    .custom-dropdown {
        width: 100%;
        max-width: 250px;
    }
    
    .property-card { 
        flex-direction: column; 
        align-items: stretch; 
    }
    
    .property-image {
        width: 100%;
        height: 250px;
    }
}

/* ========================================== */
/* BANNER DE CONSIMȚĂMÂNT COOKIE-URI (GDPR / e-Privacy) */
/* Construit din JS (secțiunea 15, script.js), nu markup dus manual pe fiecare pagină. */
/* ========================================== */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    background-color: #1b4d3e;
    color: #fff;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-consent-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e6efe9;
    flex: 1;
    min-width: 240px;
}

.cookie-consent-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.cookie-btn-accept {
    background-color: #ffffff;
    color: #1b4d3e;
}

.cookie-btn-refuse {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.cookie-btn:hover {
    opacity: 0.85;
}

@media (max-width: 900px) {
    .cookie-consent-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
        text-align: center;
    }

    .cookie-consent-actions {
        justify-content: center;
    }
}
/* ============================================================
   Faza 2e — control de mărime și stil de font per bloc de text,
   din panoul /admin (Decap CMS). Clasele de mai jos sunt adăugate
   AUTOMAT de scripts/inject-content.js la build, pe baza alegerii
   făcute pentru fiecare câmp editabil — nu se ating manual din cod.
   Vezi NOTE-DEZVOLTARE.md, secțiunea 4, Faza 2e, pentru arhitectura
   completă.

   Mărimile folosesc "em" (relativ la mărimea proprie a elementului),
   NU px fix, ca proporția să rămână corectă și pe mobil — un titlu
   mărit rămâne, în continuare, un titlu mare, doar puțin mai mare.
   Nu există clasă pentru "normal" — acela e comportamentul implicit,
   fără nicio suprascriere (dacă cineva alege "Normal" din panou,
   scriptul nu adaugă nicio clasă, ca aspectul să rămână identic cu
   varianta hardcodată din cod).

   !important e intenționat: acestea sunt clase de suprascriere,
   trebuie să câștige mereu față de regulile specifice ale
   elementului (ex. .ghid-article-kicker are propriul font-size). */
.cms-size-mic { font-size: 0.85em !important; }
.cms-size-mare { font-size: 1.15em !important; }
.cms-size-foarte_mare { font-size: 1.3em !important; }

/* Fonturile "elegant" și "modern" sunt încărcate din Google Fonts în
   <head>-ul fiecărei pagini, alături de fontul implicit (Exo 2) — vezi
   comentariul "Google Fonts" din fiecare fișier .html. Nu există clasă
   pentru "implicit" din același motiv ca la mărime: fără suprascriere,
   rămâne fontul curent al site-ului (Exo 2). */
.cms-font-elegant { font-family: 'Playfair Display', serif !important; }
.cms-font-modern { font-family: 'Inter', sans-serif !important; }
