/* === TOKENS === */
:root {
    --color-primary: #ffc107;
    --color-primary-dark: #e0a800;
    --color-secondary: #15cd72;
    --color-text: #2d2d2d;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-gray: #f7f7f5;
    --color-border: #e5e7eb;
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --container: 1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === CONTAINER === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.4rem; border-radius: var(--radius); font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: background 0.15s, color 0.15s; }
.btn--primary { background: var(--color-primary); color: var(--color-text); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline { border-color: var(--color-border); color: var(--color-text); }
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.btn--secondary { background: #6c757d; color: #fff; margin-left: 8px; text-decoration: none; line-height: 1; }
.btn--secondary:hover { background: #5a6268; }

/* === NAVBAR === */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--color-border); }
.navbar .container { display: flex; align-items: center; gap: 2rem; height: 64px; }
.navbar__logo .logo-text { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--color-text); }
.navbar__menu { display: flex; gap: 1.5rem; flex: 1; }
.navbar__menu a { font-size: 0.95rem; color: var(--color-text-light); transition: color 0.15s; }
.navbar__menu a:hover { color: var(--color-primary-dark); }
.navbar__actions { display: flex; gap: 0.75rem; align-items: center; }
.navbar__burger { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; }

/* === HERO === */
.hero { background: var(--color-text) url('/images/forge-550622_1280.jpg') center/cover no-repeat; min-height: 420px; display: flex; align-items: center; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(20,20,20,0.65); }
.hero__content { position: relative; width: 100%; padding: 4rem 0; }
.hero__content h1 { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.hero__sub { color: #fff; font-size: 1.1rem; margin-bottom: 2rem; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.hero__search { background: #fff; border-radius: var(--radius); padding: 0.5rem; display: inline-flex; }
.hero__search-fields { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.hero__search-field { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; }
.hero__search-field i { color: var(--color-text-light); }
.hero__search-field input { border: none; outline: none; font-family: var(--font-body); font-size: 0.95rem; min-width: 200px; }

/* === SECTIONS === */
.section { padding: 4rem 0; }
.section--gray { background: var(--color-bg-gray); }
.section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.section__header h2 { font-family: var(--font-head); font-size: 1.6rem; }
h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 1.5rem; }

/* === CATEGORIES === */
.categories__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.category-card { background: var(--color-bg-gray); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: border-color 0.15s, transform 0.15s; }
.category-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.category-card__icon { font-size: 2rem; color: var(--color-primary-dark); margin-bottom: 0.75rem; }
.category-card__name { font-family: var(--font-head); font-weight: 500; font-size: 1rem; margin-bottom: 0.25rem; }
.category-card__count { font-size: 0.85rem; color: var(--color-text-light); }

/* === LISTING CARDS === */
.listings__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.listing-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; display: block; }
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.listing-card__image { height: 180px; overflow: hidden; background: var(--color-bg-gray); }
.listing-card__image img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__image-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--color-border); }
.listing-card__body { padding: 1rem 1.25rem; }
.listing-card__category { font-size: 0.75rem; font-weight: 600; color: var(--color-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.listing-card__title { font-family: var(--font-head); font-size: 1rem; font-weight: 500; margin: 0.35rem 0; line-height: 1.4; }
.listing-card__location { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.listing-card__location i { color: var(--color-secondary); }
.listing-card__price { font-weight: 600; color: var(--color-text); font-size: 0.95rem; }
.listing-card__price--free { color: var(--color-secondary); }

/* === STEPS === */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.step { text-align: center; }
.step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--color-text-light); max-width: 200px; margin: 0 auto; }

/* === FOOTER === */
.site-footer { background: var(--color-text); color: rgba(255,255,255,0.7); padding: 2.5rem 0; margin-top: 4rem; }
.footer__cols { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer__col a { color: var(--color-primary); }
.footer__nav { display: flex; gap: 1.5rem; font-size: 0.85rem; }
.footer__nav a { color: rgba(255,255,255,0.5); }
.footer__nav a:hover { color: #fff; }

/* === EMPTY === */
.empty { color: var(--color-text-light); text-align: center; padding: 2rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .navbar__menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); padding: 1rem 1.5rem; }
    .navbar__menu--open { display: flex; }
    .navbar__burger { display: block; }
    .navbar__actions { display: none !important; }
    .hero__content h1 { font-size: 1.8rem; }
    .hero__search { width: 100%; }
    .hero__search-field input { min-width: 140px; }
    .section__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* === PAGE CONTENT === */
.page-content p { margin-bottom: 1.25rem; max-width: 72ch; line-height: 1.8; }
.page-content h1.content-h1 { font-family: var(--font-head); font-size: 1.8rem; margin: 2rem 0 0.75rem; }
.page-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.content-list { margin: 0 0 1.25rem 1.25rem; }
.content-list li { margin-bottom: 0.4rem; line-height: 1.7; }
.video-wrap { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.video-wrap video { max-width: 100%; border-radius: var(--radius); }
.content-categories { margin: 1.5rem 0 2rem; }

/* === PAGE TEXT (WordPress-style) === */
.page__text { padding: 2rem 0; }
.page__text h1.wp-block-heading { font-family: var(--font-head); font-size: 1.8rem; font-weight: 500; margin: 1.5rem 0 0.75rem; }
.page__text h2.wp-block-heading { font-family: var(--font-head); font-size: 1.4rem; font-weight: 500; margin: 1.5rem 0 0.75rem; }
.page__text p { margin-bottom: 1rem; line-height: 1.8; max-width: 72ch; }
.page__text .wp-block-list { margin: 0 0 1.25rem 1.5rem; }
.page__text .wp-block-list li { margin-bottom: 0.4rem; line-height: 1.7; }
.wp-block-columns { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.wp-block-column { flex: 1; min-width: 0; }
.wp-video video { max-width: 100%; border-radius: var(--radius); }
.wp-block-embed__wrapper { max-width: 640px; margin: 0 auto; }
.has-text-align-center { text-align: center; }
.has-medium-font-size { font-size: 1.25rem; }

.hero--home {
    background-image: url('/images/image-6.jpg');
}

/* === NAVBAR === */
.navbar__logo img { width: auto; height: 60px; display: block; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 0; }
.navbar__actions { display: flex; gap: 0.75rem; align-items: center; margin-left: 1.5rem; }
.navbar__menu a { font-size: 0.95rem; color: var(--color-text-light); position: relative; padding-bottom: 4px; }
.navbar__menu a:hover { color: var(--color-primary-dark); }
.navbar__menu a.active::before,
.navbar__menu a[aria-current]::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 3px; background: var(--color-primary); border-radius: 2px; }
.btn--secondary { background: #6c757d; color: #fff; margin-left: 8px; text-decoration: none; line-height: 1; }
.btn--secondary:hover { background: #5a6268; }

/* === BUTTONS WIE ORIGINAL === */
.btn--primary { background: var(--color-primary); color: var(--color-text); border: none; }
.btn--outline { border: 1px solid var(--color-border); color: var(--color-text); background: #fff; }
.btn--outline:hover { border-color: var(--color-primary); }

/* === HERO TEXT === */
.hero__content h1 { text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* === AUTH FORMS === */
.auth-form { max-width: 480px; margin: 3rem auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; }
.auth-form__field { margin-bottom: 1.25rem; }
.auth-form__field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.auth-form__field input { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.6rem 0.9rem; font-family: var(--font-body); font-size: 0.95rem; outline: none; }
.auth-form__field input:focus { border-color: var(--color-primary); }
.auth-form__check { margin-bottom: 1.25rem; font-size: 0.9rem; }
.auth-form__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.auth-form__footer a { font-size: 0.9rem; color: var(--color-text-light); }
.auth-form__footer a:hover { color: var(--color-primary-dark); }
.auth-form__switch { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--color-text-light); }
.auth-form__switch a { color: var(--color-primary-dark); font-weight: 600; }

/* === SEARCH BAR === */
.page-header { background: var(--color-bg-gray); padding: 1.5rem 0; border-bottom: 1px solid var(--color-border); }
.page-header h1 { font-size: 1.4rem; margin-bottom: 1rem; }
.search-bar { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); display: inline-flex; padding: 0.4rem; }
.search-bar__fields { display: flex; gap: 0; align-items: center; flex-wrap: nowrap; }
.search-bar__field { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; border-right: 1px solid var(--color-border); }
.search-bar__field i { color: var(--color-text-light); }
.search-bar__field input { border: none; outline: none; font-size: 0.9rem; min-width: 180px; }
.search-bar__select { border: none; outline: none; padding: 0.4rem 0.75rem; font-size: 0.9rem; background: none; cursor: pointer; }

/* === GPS BUTTON === */
#gps-btn { background: none; border: none; cursor: pointer; color: var(--color-text-light); font-size: 1rem; padding: 0 0.25rem; }
#gps-btn:hover { color: var(--color-secondary); }

/* === AUTOCOMPLETE === */
.search-bar__field { position: relative; }
#autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); list-style: none; margin: 0; padding: 0; z-index: 1000; box-shadow: var(--shadow); min-width: 300px; }
#autocomplete-list li { padding: 0.6rem 1rem; cursor: pointer; font-size: 0.85rem; border-bottom: 1px solid var(--color-border); }
#autocomplete-list li:last-child { border-bottom: none; }
#autocomplete-list li:hover { background: var(--color-bg-gray); }

/* === GPS STANDORT MARKER === */
.gps-dot { width: 16px; height: 16px; background: #4285f4; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 rgba(66,133,244,0.4); animation: gps-pulse 2s infinite; }
@keyframes gps-pulse {
    0% { box-shadow: 0 0 0 0 rgba(66,133,244,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(66,133,244,0); }
    100% { box-shadow: 0 0 0 0 rgba(66,133,244,0); }
}

/* === MOBILE MENU AUTH LINKS === */
@media (max-width: 768px) {
    .navbar__menu a.mobile-create { color: var(--color-text); background: var(--color-primary); padding: 0.5rem 1rem; border-radius: var(--radius); display: inline-block; font-weight: 600; }
    .navbar__menu a.mobile-login { color: var(--color-secondary); font-weight: 600; }
}

.navbar__mobile-only { display: none; }
@media (max-width: 768px) { .navbar__mobile-only { display: contents; } }
