/*
 * Descopera Timisoara - tema vizuala integrata cu harta-tm.ro
 * Cromatica de baza a domeniului principal:
 * galben #FFD800, albastru #3E5D9D / #408FE5,
 * gri #F3F3F3, bordo #990000, link #0066CC.
 *
 * Fisier gandit pentru PHP 8.3 / layout responsive.
 */

:root {
    --legacy-yellow: #FFD800;
    --legacy-yellow-soft: #FFF7C7;
    --legacy-blue: #3E5D9D;
    --legacy-blue-dark: #3C477D;
    --legacy-blue-light: #408FE5;
    --legacy-link: #0066CC;
    --legacy-maroon: #990000;
    --legacy-ink: #0C333F;
    --legacy-text: #1F2933;
    --legacy-muted: #64707A;
    --legacy-grey: #F3F3F3;
    --legacy-grey-2: #ECECEC;
    --legacy-border: #D2D6DA;
    --legacy-white: #FFFFFF;
    --legacy-success: #2E7D32;
    --legacy-danger: #9F2D20;
    --shadow-soft: 0 2px 8px rgba(30, 45, 70, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--legacy-yellow);
    color: var(--legacy-text);
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

a {
    color: var(--legacy-link);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

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

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

.shell {
    width: min(940px, calc(100% - 34px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 12px;
    z-index: 9999;
    padding: 8px 12px;
    background: #FFFFFF;
    color: #000000;
    border: 2px solid var(--legacy-blue);
}

.skip-link:focus {
    top: 12px;
}

/* =========================================================
   CADRUL GENERAL - apropiat de harta-tm.ro
   ========================================================= */

.site-header,
.demo-banner,
main,
.site-footer {
    width: min(1000px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    background: var(--legacy-white);
    border-top: 1px solid #D9D9D9;
    border-bottom: 5px solid var(--legacy-blue);
}

.site-header::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--legacy-blue-light);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--legacy-ink);
    min-width: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    color: var(--legacy-maroon);
    letter-spacing: -0.2px;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: var(--legacy-ink);
    font-size: 11px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-actions a {
    display: inline-block;
    padding: 7px 11px;
    color: #FFFFFF;
    background: var(--legacy-blue);
    border: 1px solid var(--legacy-blue-dark);
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}

.header-actions a:hover,
.header-actions a:focus-visible {
    color: #000000;
    background: var(--legacy-yellow);
    text-decoration: none;
}

.demo-banner {
    background: #FFF4CC;
    border-bottom: 1px solid #E1C45A;
    color: #674C00;
}

.demo-banner .shell {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 12px;
}

.demo-banner strong {
    color: var(--legacy-maroon);
}

main {
    background: #FFFFFF;
    box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    background: linear-gradient(180deg, var(--legacy-blue) 0%, var(--legacy-blue-dark) 100%);
    color: #FFFFFF;
    border-bottom: 5px solid var(--legacy-yellow);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr);
    gap: 34px;
    align-items: center;
    min-height: 330px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-copy {
    max-width: 620px;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 8px;
    color: var(--legacy-maroon);
    font-size: 11px;
    line-height: 1.3;
    font-weight: bold;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hero-kicker {
    display: inline-block;
    padding: 4px 7px;
    color: #142447;
    background: var(--legacy-yellow);
    border: 1px solid rgba(255,255,255,.32);
}

.hero-copy h1 {
    margin: 13px 0 12px;
    max-width: 650px;
    color: #FFFFFF;
    font-size: clamp(31px, 4.2vw, 49px);
    line-height: 1.05;
    letter-spacing: -.02em;
}

.hero-copy p {
    margin: 0;
    max-width: 590px;
    color: #F1F5FF;
    font-size: 17px;
}

.hero-actions,
.primary-actions,
.card-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 23px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    text-decoration: none;
}

.button-primary {
    background: var(--legacy-blue);
    color: #FFFFFF;
    border-color: var(--legacy-blue-dark);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--legacy-blue-light);
    color: #FFFFFF;
}

.button-secondary {
    background: var(--legacy-grey);
    color: #003366;
    border-color: #C8CDD3;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: #FFFFFF;
    color: var(--legacy-link);
    border-color: var(--legacy-blue-light);
}

.button-light {
    background: var(--legacy-yellow);
    color: #1E2E48;
    border-color: #E3BE00;
}

.button-light:hover,
.button-light:focus-visible {
    background: #FFFFFF;
    color: #003366;
}

.button-glass {
    background: rgba(255,255,255,.08);
    color: #FFFFFF;
    border-color: rgba(255,255,255,.65);
}

.button-glass:hover,
.button-glass:focus-visible {
    background: #FFFFFF;
    color: var(--legacy-blue-dark);
}

.button-large {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13px;
}

.hero-map {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.hero-map img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .48;
    filter: grayscale(1) contrast(.85) brightness(1.3);
}

.map-pin {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--legacy-yellow);
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.pin-one { left: 24%; top: 35%; }
.pin-two { left: 58%; top: 51%; }
.pin-three { left: 74%; top: 25%; }

.map-label {
    position: absolute;
    right: 12px;
    bottom: 10px;
    padding: 3px 7px;
    background: #FFFFFF;
    color: var(--legacy-blue-dark);
    font-size: 12px;
    font-weight: bold;
}

/* =========================================================
   SECTIUNI SI TITLURI
   ========================================================= */

.categories-section,
.partners-section,
.landmarks-section,
.partner-detail > .shell {
    padding-top: 32px;
    padding-bottom: 34px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--legacy-grey-2);
}

.section-heading h2,
.info-panel h2,
.offer-panel h2 {
    margin: 0;
    color: var(--legacy-maroon);
    font-size: 22px;
    line-height: 1.2;
}

.section-heading p:not(.eyebrow) {
    margin: 6px 0 0;
    color: var(--legacy-muted);
}

.text-link {
    color: var(--legacy-link);
    font-size: 13px;
    text-decoration: underline;
}

.filter-summary {
    padding: 6px 9px;
    background: var(--legacy-yellow-soft);
    border-left: 3px solid var(--legacy-yellow);
    color: #403A22 !important;
}

/* =========================================================
   CATEGORII
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.category-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    column-gap: 9px;
    min-height: 78px;
    padding: 11px;
    background: var(--legacy-grey);
    border: 1px solid #D7D7D7;
    color: var(--legacy-ink);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

.category-card:hover,
.category-card:focus-visible {
    background: #FFFFFF;
    border-color: var(--legacy-blue-light);
    text-decoration: none;
}

.category-card.is-active {
    background: var(--legacy-yellow-soft);
    border-color: #D8B600;
    box-shadow: inset 0 3px 0 var(--legacy-yellow);
}

.category-icon {
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 25px;
}

.category-card strong {
    align-self: end;
    color: #003366;
    font-size: 13px;
}

.category-card small {
    color: #6E747A;
    font-size: 11px;
}

/* =========================================================
   CAUTARE
   ========================================================= */

.search-section {
    padding: 20px 0;
    background: var(--legacy-grey-2);
    border-top: 1px solid #D6D6D6;
    border-bottom: 1px solid #D6D6D6;
}

.search-box {
    margin: 0;
}

.search-box label {
    display: block;
    margin-bottom: 7px;
    color: #003366;
    font-weight: bold;
    font-size: 13px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
}

.search-row input {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #AEB6BF;
    background: #FFFFFF;
    color: #111111;
    outline: none;
}

.search-row input:focus {
    border-color: var(--legacy-blue-light);
    box-shadow: 0 0 0 2px rgba(64,143,229,.15);
}

/* =========================================================
   PARTENERI
   ========================================================= */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid #D6D6D6;
    box-shadow: var(--shadow-soft);
}

.partner-visual {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #E9EDF1;
    border-bottom: 3px solid var(--legacy-blue);
}

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

.visual-placeholder,
.detail-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 170px;
    font-size: 52px;
    background: linear-gradient(135deg, #F3F3F3, #E2E7EC);
}

.card-badges,
.detail-badges {
    position: absolute;
    left: 8px;
    top: 8px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 4px 6px;
    border: 1px solid rgba(0,0,0,.18);
    background: #FFFFFF;
    color: #1C2733;
    font-size: 10px;
    line-height: 1;
    font-weight: bold;
}

.badge-demo {
    background: #FFF1C4;
    color: #6A4B00;
}

.badge-premium {
    background: var(--legacy-yellow);
    color: #2D2800;
}

.badge-partner {
    background: var(--legacy-blue);
    color: #FFFFFF;
}

.partner-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.partner-card-body .eyebrow {
    margin-bottom: 5px;
    color: #58626D;
}

.partner-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.2;
}

.partner-card h3 a {
    color: #003366;
}

.partner-description,
.card-address {
    margin: 0 0 10px;
    color: #3D4853;
    font-size: 13px;
}

.card-address {
    color: #5C6670;
}

.mini-offer {
    margin: 2px 0 12px;
    padding: 7px 8px;
    background: var(--legacy-yellow-soft);
    border-left: 3px solid var(--legacy-yellow);
    color: #493D00;
    font-size: 12px;
    font-weight: bold;
}

.card-actions {
    margin-top: auto;
}

.card-actions .button {
    flex: 1 1 auto;
}

.empty-state {
    padding: 34px;
    text-align: center;
    border: 1px dashed #BEC5CC;
    background: var(--legacy-grey);
}

.empty-state span {
    display: block;
    margin-bottom: 5px;
    font-size: 38px;
}

.empty-state h3 {
    margin: 0;
    color: #003366;
}

/* =========================================================
   CUM FUNCTIONEAZA
   ========================================================= */

.how-section {
    padding: 30px 0 34px;
    background: var(--legacy-blue);
    color: #FFFFFF;
    border-top: 4px solid var(--legacy-yellow);
    border-bottom: 2px solid var(--legacy-blue-light);
}

.section-heading-light {
    border-color: rgba(255,255,255,.18);
}

.section-heading-light h2,
.section-heading-light .eyebrow {
    color: #FFFFFF;
}

.section-heading-light .eyebrow {
    opacity: .82;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.steps-grid article {
    min-height: 150px;
    padding: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
}

.steps-grid article > span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    background: var(--legacy-yellow);
    color: #1B2942;
    font-weight: bold;
}

.steps-grid h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.steps-grid p {
    margin: 0;
    color: #EEF3FF;
    font-size: 13px;
}

/* =========================================================
   REPERE
   ========================================================= */

.landmark-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.landmark-grid a {
    display: block;
    min-height: 145px;
    padding: 14px;
    background: var(--legacy-grey);
    border: 1px solid #D6D6D6;
    color: var(--legacy-text);
    text-decoration: none;
}

.landmark-grid a:hover,
.landmark-grid a:focus-visible {
    background: #FFFFFF;
    border-color: var(--legacy-blue-light);
    text-decoration: none;
}

.landmark-grid span {
    font-size: 26px;
}

.landmark-grid h3 {
    margin: 7px 0 5px;
    color: #003366;
    font-size: 15px;
}

.landmark-grid p {
    margin: 0;
    color: #5E6872;
    font-size: 12px;
}

/* =========================================================
   PAGINA PARTENER
   ========================================================= */

.partner-detail {
    background: #FFFFFF;
}

.back-link {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--legacy-link);
    font-size: 13px;
    text-decoration: underline;
}

.detail-card {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.25fr);
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid #CFD3D7;
    background: #FFFFFF;
    box-shadow: var(--shadow-soft);
}

.detail-visual {
    position: relative;
    min-height: 300px;
    background: #E9EDF1;
    border-right: 4px solid var(--legacy-blue);
}

.detail-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.detail-main {
    padding: 24px;
}

.detail-main h1 {
    margin: 0 0 10px;
    color: var(--legacy-maroon);
    font-size: clamp(27px, 4vw, 40px);
    line-height: 1.08;
}

.detail-description {
    margin: 0 0 18px;
    color: #46515C;
    font-size: 15px;
}

.primary-actions {
    margin-bottom: 13px;
}

.secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    padding-top: 11px;
    border-top: 1px solid var(--legacy-grey-2);
}

.secondary-actions a {
    font-size: 13px;
    text-decoration: underline;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-panel,
.offer-panel {
    padding: 18px;
    border: 1px solid #D4D7DA;
    background: var(--legacy-grey);
}

.info-panel h2,
.offer-panel h2 {
    padding-bottom: 8px;
    border-bottom: 1px solid #D6D6D6;
}

.info-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #DEDEDE;
}

.info-row > span {
    font-size: 19px;
}

.info-row strong {
    color: #003366;
    font-size: 12px;
}

.info-row p {
    margin: 2px 0 0;
    font-size: 13px;
}

.verification-note {
    margin: 12px 0 0;
    color: #5F6973;
    font-size: 11px;
}

.offer-panel {
    position: relative;
    background: var(--legacy-yellow-soft);
    border-color: #D9BC2F;
}

.offer-panel .eyebrow {
    color: #6D5600;
}

.offer-icon {
    float: right;
    font-size: 30px;
}

.offer-panel > p {
    color: #554C29;
}

.offer-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 13px 0;
    padding: 9px 10px;
    background: #FFFFFF;
    border: 1px dashed #9F8D29;
}

.offer-code span {
    font-size: 11px;
}

.offer-code strong {
    color: var(--legacy-maroon);
    font-size: 17px;
}

.offer-validity,
.offer-confirmation {
    font-size: 12px;
}

.button-offer {
    background: var(--legacy-blue);
    color: #FFFFFF;
    border-color: var(--legacy-blue-dark);
}

.button-offer:hover,
.button-offer:focus-visible {
    background: var(--legacy-blue-light);
}

.offer-confirmation {
    color: var(--legacy-success) !important;
    font-weight: bold;
}

/* =========================================================
   ALERTE
   ========================================================= */

.alert-section {
    padding-top: 18px;
}

.alert {
    padding: 11px 13px;
    border: 1px solid #D5D5D5;
    background: #FFFFFF;
}

.alert strong,
.alert span {
    display: block;
}

.alert-error {
    border-left: 4px solid var(--legacy-danger);
    background: #FFF1F0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #E8E8E8;
    border-top: 5px solid var(--legacy-blue);
    border-bottom: 1px solid #AC9200;
    color: var(--legacy-ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-footer strong {
    color: #003366;
}

.site-footer p {
    margin: 4px 0 0;
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
    font-size: 11px;
}

.footer-links a {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 820px) {
    .shell {
        width: min(100% - 24px, 940px);
    }

    .header-inner {
        min-height: auto;
        align-items: flex-start;
    }

    .brand strong {
        font-size: 21px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .hero-map {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landmark-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-visual {
        min-height: 250px;
        border-right: 0;
        border-bottom: 4px solid var(--legacy-blue);
    }

    .detail-visual img {
        min-height: 250px;
        max-height: 430px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 13px;
    }

    .shell {
        width: calc(100% - 18px);
    }

    .header-inner {
        display: block;
        padding-top: 10px;
        padding-bottom: 9px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand strong {
        font-size: 19px;
    }

    .brand small {
        font-size: 10px;
    }

    .header-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .header-actions a {
        flex: 1 1 auto;
        text-align: center;
    }

    .demo-banner .shell {
        display: block;
    }

    .demo-banner span {
        display: block;
        margin-top: 2px;
    }

    .hero-copy h1 {
        font-size: 31px;
    }

    .hero-copy p {
        font-size: 15px;
    }

    .hero-actions .button {
        flex: 1 1 100%;
    }

    .categories-section,
    .partners-section,
    .landmarks-section,
    .partner-detail > .shell {
        padding-top: 24px;
        padding-bottom: 26px;
    }

    .section-heading {
        display: block;
    }

    .section-heading .text-link,
    .section-heading > .text-link {
        display: inline-block;
        margin-top: 8px;
    }

    .section-heading h2,
    .info-panel h2,
    .offer-panel h2 {
        font-size: 20px;
    }

    .category-grid,
    .partner-grid,
    .steps-grid,
    .landmark-grid,
    .detail-columns,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 68px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .search-row .button {
        width: 100%;
    }

    .partner-grid {
        gap: 11px;
    }

    .partner-visual {
        aspect-ratio: 16 / 8.5;
    }

    .how-section {
        padding-top: 24px;
        padding-bottom: 26px;
    }

    .steps-grid article {
        min-height: 0;
    }

    .detail-main {
        padding: 17px;
    }

    .primary-actions .button {
        flex: 1 1 100%;
    }

    .secondary-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-links {
        align-items: flex-start;
        text-align: left;
    }
}

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


/* =========================================================
   RAFINARE V2 - integrare mai fireasca cu harta-tm.ro
   ========================================================= */

/* Ascundere robusta pentru linkul de accesibilitate; reapare doar la focus. */
.skip-link {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 0 !important;
}

.skip-link:focus {
    position: fixed !important;
    left: 12px !important;
    top: 12px !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 8px 12px !important;
    border: 2px solid var(--legacy-blue) !important;
    background: #FFFFFF !important;
    z-index: 9999;
}

/* Header mai compact, apropiat ca proportii de domeniul principal. */
.site-header {
    border-bottom-width: 3px;
}

.header-inner {
    min-height: 72px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.brand img {
    width: 42px;
    height: 42px;
}

.brand strong {
    font-size: 22px;
}

.header-actions a {
    padding: 6px 10px;
}

/* Bannerul DEMO devine mai discret. */
.demo-banner .shell {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Hero: mai putin "microsite modern", mai aproape de limbajul vizual Harta TM. */
.hero-section {
    background: #F5F5F5;
    color: var(--legacy-text);
    border-top: 1px solid #D8D8D8;
    border-bottom: 4px solid var(--legacy-blue);
}

.hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
    gap: 28px;
    min-height: 245px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.hero-copy h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--legacy-blue-dark);
    font-size: clamp(30px, 3.5vw, 41px);
    line-height: 1.08;
}

.hero-copy p {
    color: #4F5963;
    font-size: 15px;
    line-height: 1.5;
}

.hero-actions {
    margin-top: 18px;
}

.hero-kicker {
    color: #4A3B00;
    background: var(--legacy-yellow);
    border-color: #D8B600;
}

.button-glass {
    background: #FFFFFF;
    color: var(--legacy-blue-dark);
    border-color: #AEB7C2;
}

.button-glass:hover,
.button-glass:focus-visible {
    background: var(--legacy-grey);
    color: var(--legacy-link);
    border-color: var(--legacy-blue-light);
}

.hero-map {
    min-height: 190px;
    background: #E8ECF0;
    border: 1px solid #C5CBD2;
    box-shadow: none;
}

.hero-map img {
    opacity: .60;
    filter: grayscale(.7) contrast(.9) brightness(1.08);
}

.map-label {
    color: #003366;
    border: 1px solid #D3D3D3;
}

/* Sectiuni ceva mai compacte. */
.categories-section,
.partners-section,
.landmarks-section,
.partner-detail > .shell {
    padding-top: 27px;
    padding-bottom: 29px;
}

.section-heading {
    margin-bottom: 14px;
    padding-bottom: 8px;
}

.section-heading h2,
.info-panel h2,
.offer-panel h2 {
    color: var(--legacy-blue-dark);
    font-size: 21px;
}

.eyebrow {
    color: var(--legacy-maroon);
}

/* Categoriile devin mai compacte, ca un instrument de navigare, nu carduri mari. */
.category-grid {
    gap: 7px;
}

.category-card {
    grid-template-columns: 30px 1fr;
    column-gap: 8px;
    min-height: 66px;
    padding: 9px 10px;
    background: #F5F5F5;
}

.category-icon {
    font-size: 22px;
}

.category-card strong {
    font-size: 12px;
}

.category-card small {
    font-size: 10px;
}

/* Cautarea ocupa mai putin spatiu vertical. */
.search-section {
    padding: 14px 0;
    background: #EFEFEF;
}

.search-box label {
    margin-bottom: 5px;
}

.search-row input {
    min-height: 35px;
}

/* Cardurile partenerilor: 2 coloane pe desktop pentru lizibilitate si echilibru. */
.partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.partner-card {
    box-shadow: 0 1px 5px rgba(30, 45, 70, 0.09);
}

.partner-visual {
    aspect-ratio: 16 / 8;
    border-bottom-width: 2px;
}

.partner-card-body {
    padding: 13px 14px 14px;
}

.partner-card h3 {
    font-size: 17px;
}

.partner-description,
.card-address {
    font-size: 12px;
    line-height: 1.5;
}

.mini-offer {
    margin-bottom: 10px;
}

/* "Cum functioneaza" devine o sectiune luminoasa, nu un al doilea hero albastru. */
.how-section {
    padding: 26px 0 29px;
    background: #F2F2F2;
    color: var(--legacy-text);
    border-top: 4px solid var(--legacy-blue);
    border-bottom: 1px solid #D7D7D7;
}

.section-heading-light {
    border-color: #D8D8D8;
}

.section-heading-light h2 {
    color: var(--legacy-blue-dark);
}

.section-heading-light .eyebrow {
    color: var(--legacy-maroon);
    opacity: 1;
}

.steps-grid {
    gap: 9px;
}

.steps-grid article {
    min-height: 125px;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid #D3D3D3;
}

.steps-grid article > span {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

.steps-grid h3 {
    color: #003366;
    font-size: 15px;
}

.steps-grid p {
    color: #5C6670;
    font-size: 12px;
}

/* Repere utile mai aerisite si mai putin "blocuri". */
.landmark-grid a {
    min-height: 125px;
    padding: 12px;
    background: #F5F5F5;
}

.landmark-grid span {
    font-size: 23px;
}

.landmark-grid h3 {
    font-size: 14px;
}

/* Footer mai compact, apropiat de footerul domeniului principal. */
.footer-grid {
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-footer {
    border-top-width: 4px;
}

/* Pagina de partener pastreaza aceeasi directie vizuala. */
.detail-main h1 {
    color: var(--legacy-blue-dark);
}

.offer-panel {
    background: #FFF8D9;
}

/* Responsive */
@media (max-width: 820px) {
    .hero-grid {
        padding-top: 24px;
        padding-bottom: 24px;
    }

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

@media (max-width: 600px) {
    .hero-section {
        border-bottom-width: 3px;
    }

    .hero-copy h1 {
        font-size: 28px;
    }

    .hero-copy p {
        font-size: 14px;
    }

    .categories-section,
    .partners-section,
    .landmarks-section,
    .partner-detail > .shell {
        padding-top: 21px;
        padding-bottom: 23px;
    }

    .category-card {
        min-height: 62px;
    }

    .how-section {
        padding-top: 22px;
        padding-bottom: 24px;
    }
}


/* =========================================================
   RAFINARE V3 - hero mobil
   ========================================================= */

@media (max-width: 600px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding-top: 20px !important;
        padding-bottom: 22px !important;
    }

    .hero-copy {
        max-width: none !important;
        width: 100% !important;
        text-align: center;
    }

    .hero-kicker {
        display: table;
        max-width: calc(100% - 20px);
        margin: 0 auto 12px auto !important;
        padding: 5px 9px;
        text-align: center;
        white-space: normal;
    }

    .hero-copy h1 {
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }

    .hero-copy p {
        max-width: 520px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-map {
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
}
