/* ===================================================
   HALLER 20 · Real Estate Landing Page
   Design: Modern luxury property listing
   =================================================== */

/* ----- Custom Properties ----- */
:root {
    --navy:        #14213D;
    --navy-light:  #1E3257;
    --gold:        #C9A96E;
    --gold-light:  #E8D5B0;
    --gold-dark:   #A07840;
    --cream:       #F8F6F3;
    --white:       #FFFFFF;
    --text:        #2C2C2C;
    --text-muted:  #6B7280;
    --border:      #E5E7EB;
    --shadow:      0 4px 24px rgba(0,0,0,.12);
    --shadow-lg:   0 16px 48px rgba(0,0,0,.18);
    --radius:      8px;
    --radius-lg:   16px;
    --transition:  .3s ease;
    --max-width:   1200px;
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Inter', system-ui, sans-serif;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ----- Language Switching ----- */
.lang-hu, .lang-en, .lang-de { display: none; }
body.lang-hu .lang-hu { display: inline; }
body.lang-en .lang-en { display: inline; }
body.lang-de .lang-de { display: inline; }
/* body carries the lang- class for targeting — must never be hidden */
body.lang-hu,
body.lang-en,
body.lang-de { display: block; }
/* block-level elements */
body.lang-hu p.lang-hu,
body.lang-hu div.lang-hu { display: block; }
body.lang-en p.lang-en,
body.lang-en div.lang-en { display: block; }
body.lang-de p.lang-de,
body.lang-de div.lang-de { display: block; }

/* ----- Navigation ----- */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition);
    background: transparent;
}
#navbar.scrolled {
    background: rgba(20,33,61,.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: .04em;
    opacity: .95;
}
.lang-switcher {
    display: flex;
    gap: .25rem;
    background: rgba(255,255,255,.12);
    border-radius: 50px;
    padding: .25rem;
}
.lang-btn {
    padding: .35rem .8rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: rgba(255,255,255,.7);
    transition: all var(--transition);
}
.lang-btn:hover { color: var(--white); background: rgba(255,255,255,.15); }
.lang-btn.active { background: var(--gold); color: var(--navy); }

/* ----- Hero ----- */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #14213D; /* fallback if slides/overlay fail to render */
}
.hero-slides { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.hero-slide {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1);
    animation: kenBurns 8s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes kenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}
.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        160deg,
        rgba(14,24,45,.72) 0%,
        rgba(14,24,45,.55) 50%,
        rgba(14,24,45,.75) 100%
    );
}
.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
    animation: fadeUp .9s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.4rem;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: .8rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-address {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .12em;
    opacity: .85;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.hero-price {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 2rem;
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    transition: all var(--transition);
    cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,169,110,.4); }
.btn-outline { border: 2px solid rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }

/* Hero extras */
.hero-scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.6));
    margin: 0 auto;
    animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
    0%,100% { opacity: .4; transform: scaleY(.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}
.hero-dots {
    position: absolute;
    bottom: 2.5rem; right: 2.5rem;
    display: flex; gap: .5rem;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: all var(--transition);
}
.dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ----- Stats Bar ----- */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: var(--navy);
    padding: 1.6rem 2rem;
}
.stat {
    text-align: center;
    padding: .5rem 2.5rem;
    color: var(--white);
}
.stat-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}
.stat-label {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .7;
    margin-top: .15rem;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.15);
}

/* ----- Sections ----- */
.section { padding: 5rem 0; }
.section-light { background: var(--cream); }
.section-dark  { background: var(--navy); }
.section-gold  { background: linear-gradient(135deg, var(--gold-light) 0%, #f0e0c0 100%); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section-eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
    display: block;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    color: var(--text);
}
.section-title.text-light { color: var(--white); }
.text-gold { color: var(--gold) !important; }

/* ----- Description Section ----- */
.desc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.desc-body p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.8; }
.desc-body strong { color: var(--text); }
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--gold-light);
    color: var(--navy);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
}
.pill svg { color: var(--gold-dark); }
.desc-features { display: grid; gap: 1rem; }
.feat-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    transition: all var(--transition);
}
.feat-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.feat-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--gold-light);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-dark);
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.feat-text strong { font-size: .9rem; color: var(--text); font-weight: 600; }
.feat-text span { font-size: .8rem; color: var(--text-muted); }

/* ----- Gallery ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: .75rem;
    margin-bottom: 1rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--navy-light);
}
.gallery-item.gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item.gallery-wide { grid-column: span 2; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-hover {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20,33,61,.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-hover span {
    width: 44px; height: 44px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1;
}
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-count {
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    margin-top: .75rem;
}

/* ----- Lightbox ----- */
.lightbox {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: rgba(0,0,0,.93);
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lb-inner {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#lbImg {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.lb-close, .lb-prev, .lb-next {
    position: fixed;
    color: var(--white);
    font-size: 2rem;
    padding: .5rem 1rem;
    background: rgba(255,255,255,.1);
    border-radius: var(--radius);
    transition: background var(--transition);
    z-index: 1001;
}
.lb-close { top: 1.5rem; right: 1.5rem; font-size: 1.4rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-counter {
    position: fixed;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    letter-spacing: .1em;
}

/* ----- Rooms ----- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.room-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    transition: all var(--transition);
}
.room-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.room-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--gold-light), #f5e8d0);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    color: var(--gold-dark);
}
.room-icon svg { width: 26px; height: 26px; }
.room-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .6rem;
    color: var(--navy);
}
.room-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }
.heating-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-lg);
    padding: 1.8rem 2rem;
    color: var(--white);
}
.heating-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: var(--gold);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy);
}
.heating-icon svg { width: 26px; height: 26px; }
.heating-text { display: flex; flex-direction: column; gap: .4rem; }
.heating-text strong { font-size: 1rem; color: var(--gold-light); }
.heating-text span { font-size: .85rem; opacity: .8; line-height: 1.6; }

/* ----- Location ----- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.location-highlights { display: flex; flex-direction: column; gap: 1.5rem; }
.loc-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.loc-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: rgba(201,169,110,.15);
    border: 1px solid rgba(201,169,110,.3);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
}
.loc-icon svg { width: 20px; height: 20px; }
.loc-text {
    display: flex; flex-direction: column; gap: .3rem;
}
.loc-text strong { font-size: .9rem; color: var(--white); font-weight: 600; }
.loc-text span { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.6; }
.map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 380px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(201,169,110,.2);
}
.map-wrapper iframe { display: block; }
.map-link {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(20,33,61,.85);
    color: var(--gold-light);
    text-align: center;
    padding: .6rem;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    transition: background var(--transition);
}
.map-link:hover { background: var(--navy); }

/* ----- Contact ----- */
.contact-lead {
    font-size: 1.05rem;
    color: var(--navy);
    max-width: 600px;
    margin: 0 0 3rem;
    opacity: .85;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: .2rem;
}
.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
}
.contact-value:hover { color: var(--gold-dark); }

/* ----- Contact reveal ----- */
.reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem;
    border: 1.5px dashed var(--gold);
    border-radius: 6px;
    color: var(--gold-dark);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .02em;
    background: transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    cursor: pointer;
}
.reveal-btn:hover {
    background: rgba(201,169,110,.12);
    border-color: var(--gold-dark);
    color: var(--navy);
}
.contact-value.revealed {
    animation: revealFade .35s ease forwards;
}
@keyframes revealFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

.price-box {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    text-align: center;
}
.price-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: .5rem;
}
.price-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: .4rem;
}
.price-note {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
}
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--navy);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    font-size: .9rem;
    color: var(--text);
    background: var(--cream);
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,.15);
    background: var(--white);
}
.form-note {
    font-size: .75rem;
    color: var(--text-muted);
    text-align: center;
}
/* ----- Footer ----- */
.footer { background: var(--navy); padding: 2rem; }
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: .08em;
}
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.35); }

/* ----- Scroll Reveal ----- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .desc-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .location-grid { grid-template-columns: 1fr; }
    .map-wrapper { height: 300px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item.gallery-featured { grid-column: span 2; }
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .stats-bar { gap: .25rem; }
    .stat { padding: .5rem 1.2rem; }
    .stat-divider { display: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
    .gallery-item.gallery-featured { grid-column: span 2; }
    .gallery-item.gallery-wide { grid-column: span 2; }
    .rooms-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-grid > .contact-info { order: 2; }
    .contact-grid > .contact-form { order: 1; }
    .heating-bar { flex-direction: column; text-align: center; }
    .nav-inner { padding: 1rem 1.25rem; }
    .hero-dots { display: none; }
    .lb-prev { left: .75rem; }
    .lb-next { right: .75rem; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
    .rooms-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .btn { padding: .8rem 1.5rem; }
}
