/* === Jarosławiec Portal — Modern Coastal Design === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sea-deep: #0a3a5c;
  --sea-mid: #1976a8;
  --sea-light: #4ba8d8;
  --sea-lighter: #a8d8ed;
  --sand: #f5e6c8;
  --sand-warm: #e8c890;
  --wood: #8b5a2b;
  --wood-dark: #5a3818;
  --foam: #ffffff;
  --sky: #f0f8ff;
  --text: #1a2a3a;
  --text-soft: #4a5a6a;
  --text-light: #8a9aaa;
  --gold: #d4a548;
  --gold-soft: #f0d080;
  --shadow: 0 4px 16px rgba(10, 58, 92, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 58, 92, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

html, body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; color: var(--text); background: var(--sky); line-height: 1.6; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; color: var(--sea-deep); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }

a { color: var(--sea-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sea-deep); }

img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* === HEADER === */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(10,58,92,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; font-family: "Playfair Display", serif; font-size: 1.4rem; font-weight: 700; color: var(--sea-deep); }
.logo-icon { font-size: 1.8rem; }
.logo-tagline { font-family: "Inter", sans-serif; font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px; display: block; margin-top: -3px; }

.nav-main { display: flex; gap: 4px; align-items: center; }
.nav-main a { padding: 10px 16px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 0.95rem; transition: all 0.2s; }
.nav-main a:hover { background: var(--sky); color: var(--sea-mid); }
.nav-main a.active { background: var(--sea-deep); color: white; }

.btn-cta { padding: 10px 22px; background: var(--sea-deep); color: white !important; border-radius: 8px; font-weight: 600; transition: all 0.2s; }
.btn-cta:hover { background: var(--sea-mid); transform: translateY(-1px); box-shadow: var(--shadow); }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--sea-deep); }

/* === HERO === */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: linear-gradient(135deg, var(--sea-deep) 0%, var(--sea-mid) 50%, var(--sea-light) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: 
  radial-gradient(ellipse at top, rgba(255,255,255,0.15) 0%, transparent 60%),
  radial-gradient(ellipse at bottom, rgba(245,230,200,0.1) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 2; padding: 40px 24px; max-width: 900px; }
.hero h1 { color: white; margin-bottom: 1.5rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero .subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 2.5rem; line-height: 1.5; }

.hero-search { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; max-width: 800px; margin: 0 auto; text-align: left; }
.hero-search label { display: block; font-size: 0.8rem; color: var(--text-light); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.hero-search input, .hero-search select { width: 100%; padding: 12px 14px; border: 1px solid #e0e6ed; border-radius: 8px; font-size: 1rem; font-family: inherit; }
.hero-search button { padding: 14px 28px; background: var(--sea-deep); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 1rem; }
.hero-search button:hover { background: var(--sea-mid); }

.hero-stats { display: flex; gap: 32px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-stat { color: white; }
.hero-stat .num { font-family: "Playfair Display", serif; font-size: 2.5rem; font-weight: 700; display: block; line-height: 1; color: var(--gold-soft); }
.hero-stat .lbl { font-size: 0.85rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; display: block; }

/* === SEKCJE === */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-soft); font-size: 1.1rem; max-width: 700px; margin: 0 auto 50px; }
.section-light { background: var(--sky); }
.section-cream { background: linear-gradient(180deg, white 0%, var(--sky) 100%); }

/* === KARTY OBIEKTÓW === */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; position: relative; cursor: pointer; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--sea-light), var(--sea-mid)); position: relative; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255,255,255,0.4); }
.card-img.has-360::after { content: "360°"; position: absolute; top: 12px; right: 12px; background: var(--gold); color: white; padding: 4px 10px; border-radius: 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.card-img .badge-platinum { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, #d4a548, #f0d080); color: var(--sea-deep); padding: 4px 12px; border-radius: 16px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.card-img .badge-gold { position: absolute; top: 12px; left: 12px; background: var(--gold-soft); color: var(--wood-dark); padding: 4px 10px; border-radius: 16px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; }
.card-body { padding: 22px; }
.card-cat { font-size: 0.78rem; color: var(--sea-mid); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 6px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--sea-deep); }
.card-desc { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 14px; }
.card-meta { display: flex; gap: 12px; font-size: 0.85rem; color: var(--text-light); flex-wrap: wrap; align-items: center; }
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* === KATEGORIE — pasek ikon === */
.cats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.cat-tile { background: white; padding: 28px 16px; text-align: center; border-radius: var(--radius); box-shadow: var(--shadow); transition: all 0.2s; cursor: pointer; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-tile .icon { font-size: 2.4rem; margin-bottom: 10px; display: block; }
.cat-tile .name { font-weight: 600; color: var(--sea-deep); font-size: 0.95rem; }
.cat-tile .count { color: var(--text-light); font-size: 0.8rem; margin-top: 4px; }

/* === SEKCJA STREET VIEW (USP) === */
.section-360 { background: linear-gradient(135deg, var(--sea-deep) 0%, var(--sea-mid) 100%); color: white; position: relative; overflow: hidden; }
.section-360::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(212,165,72,0.15) 0%, transparent 50%); }
.section-360 h2 { color: white; }
.section-360 .section-subtitle { color: rgba(255,255,255,0.85); }
.section-360 .badge-360 { display: inline-block; background: var(--gold); color: white; padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 16px; }
.section-360 .container { position: relative; z-index: 2; }

/* === FOOTER === */
.site-footer { background: var(--sea-deep); color: rgba(255,255,255,0.85); padding: 60px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: white; font-size: 1.1rem; margin-bottom: 16px; }
.footer-grid a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-main { display: none; }
  .nav-main.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 16px; box-shadow: var(--shadow-lg); align-items: stretch; }
  .nav-main.open a { padding: 14px 20px; border-radius: 8px; }
  .mobile-toggle { display: block; }
  .hero { min-height: 70vh; }
  .hero-search { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 50px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .hero-stat .num { font-size: 1.8rem; }
}
