/* ===========================================================
   MORENA nad morzem — style.css
   Paleta: granat + złoto (wg mockupu). Serif: Playfair. Sans: Inter.
   =========================================================== */

:root {
    --navy:        #1a3a5c;
    --navy-dark:   #122a44;
    --navy-light:  #2c5680;
    --gold:        #b5915f;
    --gold-dark:   #9a7a4a;
    --sand:        #f7f5f0;
    --grey-bg:     #f4f7fa;
    --text:        #2c3a47;
    --text-soft:   #5c6b78;
    --line:        #e4e9ee;
    --white:       #ffffff;
    --shadow:      0 10px 40px rgba(26,58,92,.12);
    --shadow-sm:   0 4px 18px rgba(26,58,92,.08);
    --radius:      14px;
    --maxw:        1280px;
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section--grey { background: var(--grey-bg); }
.section--sand { background: var(--sand); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head .eyebrow {
    display: inline-block; font-family: var(--font-sans); font-size: 13px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.section-head p { color: var(--text-soft); font-size: 17px; }
.ornament { width: 64px; height: 2px; background: var(--gold); margin: 18px auto 0; position: relative; }
.ornament::after { content: "⚓"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 14px; background: inherit; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px; justify-content: center;
    font-family: var(--font-sans); font-weight: 600; font-size: 15px;
    padding: 14px 26px; border-radius: 10px; border: 0; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-transform: uppercase; letter-spacing: .04em;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(181,145,95,.4); }
.btn--navy { background: var(--navy); color: #fff; width: 100%; }
.btn--navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(180deg, #f5f7fa 0%, #e8edf2 100%);
    border-bottom: 1px solid #dce3ea;
    box-shadow: 0 2px 10px rgba(26,58,92,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 24px; }
.brand { position: relative; z-index: 110; }
.brand img { height: 72px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
    font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy);
    position: relative; padding: 6px 0;
}
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .2s; }
.main-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; min-height: 660px; display: flex; align-items: flex-start;
    background: linear-gradient(105deg, rgba(18,42,68,.58) 0%, rgba(18,42,68,.2) 42%, rgba(18,42,68,0) 68%), url('assets/img/hero.jpg') center 42%/cover no-repeat; }
.hero .container { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; width: 100%; max-width: none; padding: 18px 20px 48px 48px; }
.hero-copy { margin-top: 60px; } /* tekst lekko niżej, widget zostaje wysoko */
.hero-copy { color: #fff; max-width: 560px; }
.hero-copy h1 { color: #fff; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero-copy .hero-line { width: 220px; height: 2px; background: var(--gold); margin: 22px 0; }
.hero-copy p { font-size: 19px; color: rgba(255,255,255,.92); max-width: 420px; }

/* ---------- Hero booking card (roomadmin) ---------- */
.hero-booking {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px 24px 18px; scroll-margin-top: 120px;
    align-self: start; margin-top: 32px; /* nad głównym budynkiem */
}
.hero-booking h3 { font-size: 23px; margin-bottom: 14px; text-align: center; }
.hero-booking .ra-widget { background: transparent; box-shadow: none; padding: 0; }

/* ---------- (legacy) custom widget ---------- */
.booking {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.booking h3 { font-size: 24px; margin-bottom: 20px; }
.booking .field { margin-bottom: 16px; }
.booking label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 7px; }
.booking .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking input, .booking select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px;
    font-family: var(--font-sans); font-size: 15px; color: var(--text); background: #fff;
}
.booking input:focus, .booking select:focus { outline: none; border-color: var(--gold); }
.booking .btn { margin-top: 6px; }
.booking .guarantee { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--text-soft); margin-top: 14px; }
.booking .guarantee svg { color: var(--gold); }

/* ===========================================================
   FEATURES BAR
   =========================================================== */
.features { padding: 54px 0; border-bottom: 1px solid var(--line); }
.features .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: start; }
.locmap { width: 100%; line-height: 0; }
.locmap iframe { width: 100%; height: 440px; border: 0; display: block; }
@media (max-width: 760px){ .locmap iframe { height: 320px; } }
.feature { display: flex; gap: 16px; }
.feature .ico { flex: 0 0 auto; color: var(--gold); }
.feature h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.feature p { font-size: 14px; color: var(--text-soft); margin: 0; }
.where-card { background: var(--grey-bg); border-radius: var(--radius); padding: 20px 22px; }
.where-card h4 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.where-card address { font-style: normal; font-size: 14px; color: var(--text-soft); line-height: 1.5; }
.where-card .mini-map { margin-top: 12px; border-radius: 10px; overflow: hidden; height: 90px; }
.where-card .mini-map iframe { width: 100%; height: 100%; border: 0; }

/* ===========================================================
   TRAVEL SECTION
   =========================================================== */
.travel { background: var(--grey-bg); }
.travel .container { display: grid; grid-template-columns: 1fr 1.2fr 0.9fr; gap: 40px; align-items: center; }
.travel-intro h2 { font-size: clamp(26px, 3.4vw, 36px); }
.travel-intro p { color: var(--text-soft); }
.travel-map img { width: 100%; }
.travel-list { list-style: none; padding: 0; margin: 0; }
.travel-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--text); }
.travel-list li:last-child { border-bottom: 0; }
.travel-list .ico { color: var(--gold); flex: 0 0 auto; }
.travel-list b { color: var(--navy); }

/* ===========================================================
   APARTMENTS GRID
   =========================================================== */
.apt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.apt-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.apt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.apt-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.apt-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.apt-card:hover .thumb img { transform: scale(1.06); }
.apt-card .badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 20px; letter-spacing: .04em; }
.apt-card .badge--sea { background: var(--navy); }
.apt-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.apt-card h3 { font-size: 21px; margin-bottom: 8px; }
.apt-card .meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-soft); margin-bottom: 10px; }
.apt-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.apt-card p { font-size: 14px; color: var(--text-soft); margin-bottom: 16px; flex: 1; }
.apt-card .btn { align-self: flex-start; }

/* ===========================================================
   ABOUT
   =========================================================== */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(28px, 4vw, 42px); }
.about-copy p { color: var(--text-soft); font-size: 16px; }
.about-amen { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-amen li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.about-amen .ico { color: var(--gold); }

/* ===========================================================
   ATTRACTIONS
   =========================================================== */
.attr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.attr-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s; text-decoration: none; }
.attr-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.attr-card .ico { color: var(--gold); margin-bottom: 12px; }
.attr-card h4 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.attr-card .attr-more { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--gold-dark); font-weight: 600; }

/* ===========================================================
   ARTYKUŁ ATRAKCJI (atrakcja.php)
   =========================================================== */
.article-hero { background-size: cover; background-position: center; color: #fff; padding: 96px 0 56px; }
.article-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); margin: 14px 0 12px; }
.article-hero .lead { color: rgba(255,255,255,.92); font-size: 19px; max-width: 680px; margin: 0; }
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-body p { font-size: 17px; color: var(--text); line-height: 1.8; margin-bottom: 18px; }
.article-note { background: var(--grey-bg); border-left: 4px solid var(--gold); border-radius: 8px; padding: 16px 20px; font-size: 15px; color: var(--text-soft); margin: 26px 0; }
.article-official { font-size: 14px; color: var(--text-soft); }
.article-official a { color: var(--gold-dark); font-weight: 600; }
.article-side { position: sticky; top: 124px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.article-side h3 { font-size: 19px; }
.article-links { list-style: none; padding: 0; margin: 0; }
.article-links li { border-bottom: 1px solid var(--line); }
.article-links li:last-child { border-bottom: 0; }
.article-links a { display: block; padding: 10px 0; font-size: 15px; color: var(--navy); font-weight: 500; }
.article-links a:hover { color: var(--gold-dark); }
@media (max-width: 880px){ .article-wrap { grid-template-columns: 1fr; } .article-side { position: static; } }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 0; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.contact-info { background: var(--navy); color: #fff; padding: 48px; }
.contact-info h2 { color: #fff; }
.contact-info a { color: #fff; }
.contact-info .ci-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 16px; }
.contact-info .ci-row .ico { color: var(--gold); flex: 0 0 auto; }
.contact-map { min-height: 420px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 48px 0 28px; font-size: 14px; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h5 { color: #fff; font-family: var(--font-sans); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand img { height: 124px; opacity: .96; margin-bottom: 26px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* ===========================================================
   APARTMENT DETAIL
   =========================================================== */
.apt-hero { padding: 40px 0 0; }
.breadcrumb { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--gold-dark); }
.apt-detail-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.apt-detail-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 0; }
.apt-detail-head .tags { display: flex; gap: 10px; }
.apt-detail-head .tag { background: var(--grey-bg); color: var(--navy); font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 20px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; margin-bottom: 16px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.gallery a:first-child { grid-row: span 2; grid-column: 1; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.apt-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; margin-top: 40px; align-items: start; }
.apt-body h2 { font-size: 26px; margin-top: 0; }
.apt-side { position: sticky; top: 104px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.apt-side h3 { font-size: 20px; }
.availability-box { min-height: 80px; }

/* ===========================================================
   GALERIA (strona galeria.php)
   =========================================================== */
.gallery-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.gallery-filters button {
    font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: .03em;
    padding: 10px 22px; border: 1.5px solid var(--line); border-radius: 30px; background: #fff; color: var(--navy);
    cursor: pointer; transition: all .18s ease;
}
.gallery-filters button:hover { border-color: var(--gold); }
.gallery-filters button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.masonry { columns: 4 280px; column-gap: 14px; }
.masonry .g-item { display: block; width: 100%; margin: 0 0 14px; border-radius: 12px; overflow: hidden; break-inside: avoid; box-shadow: var(--shadow-sm); cursor: zoom-in; background: #e9eef3; }
.masonry .g-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.masonry .g-item:hover img { transform: scale(1.06); }
@media (max-width: 600px){ .masonry { columns: 2 150px; } }

/* roomadmin widget */
.ra-widget { background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); }
.ra-widget iframe { display: block; border-radius: 8px; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(10,20,30,.92); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lb button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lb .lb-close { top: 24px; right: 24px; }
.lb .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1080px) {
    .features .container { grid-template-columns: repeat(2, 1fr); }
    .where-card { grid-column: 1 / -1; }
    .travel .container { grid-template-columns: 1fr; }
    .apt-layout { grid-template-columns: 1fr; }
    .apt-side { position: static; }
}
@media (max-width: 880px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-booking { margin-top: 12px; }
    .booking { max-width: 440px; }
    .about .container, .contact .container { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .gallery a:first-child { grid-column: 1 / -1; grid-row: auto; }
    .site-footer .container { grid-template-columns: 1fr; gap: 28px; }

    /* --- centrowanie tekstu na telefonie + zapobieganie wychodzeniu poza ekran --- */
    .contact-info, .contact-map { min-width: 0; }
    .contact-info { text-align: center; padding: 34px 22px; }
    .contact-info .ci-row { justify-content: center; flex-wrap: wrap; }
    .contact-info .ci-row span, .contact-info a { overflow-wrap: anywhere; }

    .hero-copy { text-align: center; margin-top: 24px; }
    .hero-copy .hero-line { margin-left: auto; margin-right: auto; }
    .hero-copy p { margin-left: auto; margin-right: auto; }

    .about-copy { text-align: center; }
    .about-amen { grid-template-columns: 1fr; justify-items: center; max-width: 320px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
    .main-nav { position: fixed; inset: 92px 0 auto 0; background: #fff; flex-direction: column; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s; }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 14px 24px; width: 100%; }
    .main-nav .btn { margin: 10px 24px; }
    .nav-toggle { display: block; }
    .brand img { height: 60px; }
    .features .container { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
}

/* ===========================================================
   STRONY PRAWNE (regulamin / polityka)
   =========================================================== */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 24px; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 18px; }
.legal p, .legal li { font-size: 16px; color: var(--text); line-height: 1.8; }
.legal ol, .legal ul { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin-bottom: 10px; }
.legal ul ul, .legal ol ul { margin-top: 10px; }
.legal .updated { color: var(--text-soft); font-size: 14px; font-style: italic; margin-bottom: 26px; }
.legal a { color: var(--gold-dark); font-weight: 600; }
.legal .article-note a { color: var(--gold-dark); }

/* ===========================================================
   BANER COOKIES
   =========================================================== */
.cookie-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: var(--navy-dark); color: rgba(255,255,255,.92);
    padding: 18px 0; box-shadow: 0 -6px 30px rgba(0,0,0,.28);
    transform: translateY(115%); transition: transform .4s ease; visibility: hidden;
}
.cookie-bar.show { transform: translateY(0); visibility: visible; }
.cookie-bar .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.cookie-bar p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 720px; }
.cookie-bar a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions .btn { padding: 12px 22px; font-size: 14px; }
.cookie-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.cookie-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
@media (max-width: 680px) {
    .cookie-bar .container { gap: 16px; }
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1; }
}
