/* ══════════════════════════════════════════════════════════════════════
   TERENY PRZEMYSŁOWE – Portal Nieruchomości Inwestycyjnych
   Stonowany, profesjonalny design dla sektora przemysłowego
   ══════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
    /* Primary palette – stonowany industrial blue-gray */
    --tp-primary: #1e40af;
    --tp-primary-light: #3b82f6;
    --tp-primary-dark: #1e3a8a;

    /* Accent – subtelny zielony (przemysłowy sukces) */
    --tp-accent: #059669;
    --tp-accent-light: #10b981;

    /* Neutrals */
    --tp-dark: #0f172a;
    --tp-navy: #1e293b;
    --tp-slate: #334155;
    --tp-gray: #64748b;
    --tp-muted: #94a3b8;
    --tp-light: #cbd5e1;
    --tp-border: #e2e8f0;
    --tp-bg: #f8fafc;
    --tp-white: #ffffff;

    /* Typography */
    --tp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --tp-font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Spacing scale */
    --tp-space-xs: 4px;
    --tp-space-sm: 8px;
    --tp-space-md: 16px;
    --tp-space-lg: 24px;
    --tp-space-xl: 32px;
    --tp-space-2xl: 48px;
    --tp-space-3xl: 64px;

    /* Layout */
    --tp-max-width: 1280px;
    --tp-radius: 8px;
    --tp-radius-lg: 12px;
    --tp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --tp-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    --tp-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

    /* Animation */
    --tp-transition: 0.2s ease;
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--tp-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tp-slate);
    background: var(--tp-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */
.tp-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.tp-header__inner {
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tp-space-xl);
}

.tp-header__logo {
    display: flex;
    align-items: center;
    gap: var(--tp-space-sm);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--tp-white);
    white-space: nowrap;
}

.tp-header__logo-img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.tp-header__logo strong {
    font-weight: 700;
    color: #ef4444;
}

.tp-header__nav {
    display: flex;
    align-items: center;
    gap: var(--tp-space-xl);
}

.tp-header__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--tp-transition);
}

.tp-header__link:hover {
    color: var(--tp-white);
}

.tp-header__actions {
    display: flex;
    align-items: center;
    gap: var(--tp-space-md);
}

.tp-header__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--tp-space-sm);
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--tp-radius);
    transition: all var(--tp-transition);
}

.tp-header__btn--ghost {
    color: rgba(255, 255, 255, 0.85);
    border: none;
    background: none;
}

.tp-header__btn--ghost:hover {
    color: var(--tp-white);
}

.tp-header__btn--outline {
    border: 1.5px solid var(--tp-white);
    color: var(--tp-white);
}

.tp-header__btn--outline:hover {
    background: var(--tp-white);
    color: var(--tp-dark);
}

.tp-header__mobile-toggle {
    display: none;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.tp-header__mobile-toggle span {
    display: block;
    height: 2px;
    background: var(--tp-white);
    border-radius: 2px;
    transition: var(--tp-transition);
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.tp-hero {
    position: relative;
    background: url('../images/hero.jpg') center/cover no-repeat;
    padding: clamp(100px, 12vw, 140px) 0 clamp(60px, 10vw, 100px);
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 20, 50, 0.70) 0%,
            rgba(15, 25, 55, 0.60) 50%,
            rgba(10, 20, 50, 0.75) 100%);
    pointer-events: none;
}

.tp-hero__inner {
    position: relative;
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tp-hero__badge {
    display: none;
}

.tp-hero__title {
    font-family: var(--tp-font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--tp-white);
    line-height: 1.15;
    text-align: center;
    margin-bottom: var(--tp-space-md);
}

.tp-hero__title span {
    color: var(--tp-white);
}

.tp-hero__subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    max-width: 800px;
    line-height: 1.5;
    margin-bottom: var(--tp-space-2xl);
    font-weight: 400;
}

/* ── Search Wrapper (tabs + panel) ─────────────────────────── */
.tp-hero__search-wrapper {
    width: 100%;
}

/* ── Search Tabs ───────────────────────────────────────────── */
.tp-hero__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 16px 16px 0 0;
    padding: 0 var(--tp-space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.tp-hero__tab {
    padding: 16px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all var(--tp-transition);
    letter-spacing: 0.01em;
    margin-bottom: -1px;
}

.tp-hero__tab:hover {
    color: #fff;
}

.tp-hero__tab--active {
    color: #fff;
    border-bottom-color: #dc2626;
}

/* ── Glass Search Panel ────────────────────────────────────── */
.tp-hero__search {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    width: 100%;
    overflow: hidden;
}

.tp-hero__search--advanced {
    flex-direction: column;
    overflow: visible;
    padding: var(--tp-space-lg) var(--tp-space-xl) var(--tp-space-xl);
    gap: var(--tp-space-md);
    border-radius: 0 0 16px 16px;
}

.tp-hero__search-row {
    display: flex;
    gap: var(--tp-space-md);
    flex-wrap: wrap;
}

.tp-hero__search--advanced .tp-hero__search-group {
    flex: 1;
    min-width: 180px;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-right: none;
    gap: var(--tp-space-xs);
}

.tp-hero__search--advanced .tp-hero__search-group label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tp-hero__search--advanced .tp-hero__search-group select,
.tp-hero__search--advanced .tp-hero__search-group input {
    padding: 11px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--tp-radius);
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.92rem;
    color: #fff;
    transition: border-color var(--tp-transition), box-shadow var(--tp-transition);
}

.tp-hero__search--advanced .tp-hero__search-group select:focus,
.tp-hero__search--advanced .tp-hero__search-group input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    outline: none;
}

.tp-hero__search--advanced .tp-hero__search-group select:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
}

.tp-hero__search--advanced .tp-hero__search-group input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.tp-hero__search--advanced .tp-hero__search-group select option {
    background: var(--tp-dark);
    color: #fff;
}

.tp-hero__search-actions {
    display: flex;
    gap: var(--tp-space-md);
    justify-content: center;
    margin-top: var(--tp-space-sm);
}

.tp-hero__search--advanced .tp-hero__search-btn {
    padding: 14px 36px;
    border-radius: var(--tp-radius);
    display: flex;
    align-items: center;
    gap: var(--tp-space-sm);
}

.tp-hero__search-reset {
    padding: 14px 24px;
    border-radius: var(--tp-radius);
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--tp-transition);
}

.tp-hero__search-reset:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

.tp-hero__search-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 var(--tp-space-md);
    border-right: 1px solid var(--tp-border);
}

.tp-hero__search-group:last-of-type {
    border-right: none;
}

.tp-hero__search-group svg {
    width: 20px;
    height: 20px;
    color: var(--tp-muted);
    flex-shrink: 0;
    margin-right: var(--tp-space-sm);
}

.tp-hero__search-group input,
.tp-hero__search-group select {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px 0;
    font-size: 0.95rem;
    color: var(--tp-dark);
    outline: none;
}

.tp-hero__search-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tp-hero__search-group select {
    appearance: none;
    cursor: pointer;
}

.tp-hero__search-group select option {
    background: var(--tp-dark);
    color: #fff;
}

.tp-hero__search-btn {
    background: #dc2626;
    color: var(--tp-white);
    padding: 0 28px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--tp-radius);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    transition: background var(--tp-transition), box-shadow var(--tp-transition), transform var(--tp-transition);
}

.tp-hero__search-btn:hover {
    background: #b91c1c;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

/* Tabs - removed, keep for backwards compatibility */
.tp-hero__tabs-legacy {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════════════ */
.tp-stats {
    background: var(--tp-white);
    border-bottom: 1px solid var(--tp-border);
    padding: var(--tp-space-lg) 0;
}

.tp-stats__inner {
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    display: flex;
    align-items: center;
    gap: var(--tp-space-2xl);
}

.tp-stats__left {
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}

.tp-stats__headline {
    font-family: var(--tp-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tp-dark);
    line-height: 1.35;
    margin-bottom: 2px;
}

.tp-stats__text {
    font-size: 0.78rem;
    color: var(--tp-gray);
    line-height: 1.5;
}

.tp-stats__text strong {
    color: var(--tp-dark);
    font-weight: 600;
    font-size: 0.78rem;
}

.tp-stats__right {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
}

.tp-stats__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 var(--tp-space-xl);
    border-left: 3px solid #dc2626;
    min-width: 140px;
}

.tp-stats__number {
    font-family: var(--tp-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tp-dark);
    line-height: 1;
}

.tp-stats__desc {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tp-gray);
    line-height: 1.35;
    white-space: nowrap;
}

/* Legacy stats elements */
.tp-stats__label,
.tp-stats__divider {
    display: none;
}

.tp-stats__icon svg {
    width: 22px;
    height: 22px;
}

.tp-stats__text span {
    font-size: 0.75rem;
    color: var(--tp-gray);
}

/* ═══════════════════════════════════════════════════════════════════════
   FILTERS BAR
   ═══════════════════════════════════════════════════════════════════════ */
.tp-filters {
    background: var(--tp-white);
    border-bottom: 1px solid var(--tp-border);
    padding: var(--tp-space-md) 0;
}

.tp-filters__inner {
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    display: flex;
    align-items: center;
    gap: var(--tp-space-md);
    flex-wrap: wrap;
}

.tp-filters__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-slate);
    margin-right: var(--tp-space-sm);
}

.tp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tp-slate);
    transition: all var(--tp-transition);
}

.tp-filter-btn:hover {
    border-color: var(--tp-primary);
    color: var(--tp-primary);
}

.tp-filter-btn--active {
    background: var(--tp-primary);
    border-color: var(--tp-primary);
    color: var(--tp-white);
}

.tp-filter-btn svg {
    width: 14px;
    height: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   SPLIT LAYOUT: MAP + LISTINGS SIDE BY SIDE
   ═══════════════════════════════════════════════════════════════════════ */
.tp-split {
    padding: var(--tp-space-lg) 0;
    background: var(--tp-bg);
}

.tp-split__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--tp-space-xl);
}

.tp-split__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--tp-space-md) var(--tp-space-lg);
    border-bottom: 1px solid var(--tp-border);
    background: var(--tp-white);
    flex-wrap: wrap;
    gap: var(--tp-space-md);
}

.tp-split__title {
    font-family: var(--tp-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tp-dark);
}

.tp-split__content {
    display: grid;
    grid-template-columns: 540px 1fr;
    grid-template-rows: 1fr;
    gap: var(--tp-space-lg);
    height: calc(100vh - 120px);
    min-height: 0;
}

.tp-split__map {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
}

.tp-split__map-container {
    height: 100%;
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
}

.tp-split__list {
    display: flex;
    flex-direction: column;
    gap: var(--tp-space-sm);
    padding: var(--tp-space-md);
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    scrollbar-gutter: stable;
    background: var(--tp-bg);
}

/* Scrollbar styling */
.tp-split__list::-webkit-scrollbar {
    width: 8px;
}

.tp-split__list::-webkit-scrollbar-track {
    background: transparent;
}

.tp-split__list::-webkit-scrollbar-thumb {
    background: var(--tp-border);
    border-radius: 3px;
}

.tp-split__list::-webkit-scrollbar-thumb:hover {
    background: var(--tp-muted);
}

/* Card variant for split layout – compact horizontal */
.tp-card--split {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    border-radius: var(--tp-radius);
    border: 1px solid var(--tp-border);
    box-shadow: var(--tp-shadow-sm);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--tp-white);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tp-card--split:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
    border-color: var(--tp-primary-light);
}

.tp-card--split .tp-card__image {
    width: 200px;
    min-width: 200px;
    height: auto;
    border-radius: 0;
    align-self: stretch;
}

.tp-card--split .tp-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tp-card--split .tp-card__placeholder {
    min-height: 140px;
}

.tp-card--split .tp-card__badge {
    top: var(--tp-space-sm);
    left: var(--tp-space-sm);
    padding: 4px 10px;
    font-size: 0.68rem;
    border-radius: 4px;
}

.tp-card--split .tp-card__transaction {
    top: auto;
    bottom: var(--tp-space-sm);
    left: var(--tp-space-sm);
    right: auto;
    padding: 4px 10px;
    font-size: 0.65rem;
    border-radius: 4px;
}

.tp-card--split .tp-card__body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.tp-card--split .tp-card__location {
    font-size: 0.78rem;
    margin-bottom: 0;
    color: var(--tp-muted);
}

.tp-card--split .tp-card__location svg {
    width: 13px;
    height: 13px;
}

.tp-card--split .tp-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.3;
}

.tp-card--split .tp-card__meta {
    gap: var(--tp-space-sm);
    padding: 0;
    margin-bottom: 0;
    border-top: none;
    border-bottom: none;
}

.tp-card--split .tp-card__meta-item {
    font-size: 0.78rem;
    color: var(--tp-gray);
}

.tp-card--split .tp-card__meta-item svg {
    width: 13px;
    height: 13px;
}

.tp-card--split .tp-card__footer {
    gap: var(--tp-space-sm);
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid var(--tp-border);
}

.tp-card--split .tp-card__price-value {
    font-size: 1.1rem;
}

.tp-card--split .tp-card__price-currency {
    font-size: 0.78rem;
}

.tp-card--split .tp-card__price-negotiable {
    font-size: 0.82rem;
}

.tp-card--split .tp-card__btn {
    padding: 7px 16px;
    font-size: 0.78rem;
    border-radius: 6px;
    white-space: nowrap;
}

/* Card highlight when hovered on map */
.tp-card--highlight {
    box-shadow: 0 0 0 2px var(--tp-primary), 0 4px 16px rgba(30, 64, 175, 0.2) !important;
    border-color: var(--tp-primary) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   MAP SECTION (legacy - kept for compatibility)
   ═══════════════════════════════════════════════════════════════════════ */
.tp-map-section {
    padding: var(--tp-space-2xl) 0;
    background: var(--tp-white);
}

.tp-map-section__inner {
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
}

.tp-map-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--tp-space-lg);
    flex-wrap: wrap;
    gap: var(--tp-space-md);
}

.tp-map-section__title {
    font-family: var(--tp-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tp-dark);
}

.tp-map-section__subtitle {
    font-size: 0.9rem;
    color: var(--tp-gray);
    margin-top: 4px;
}

.tp-map-section__map {
    height: 520px;
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--tp-border);
    box-shadow: var(--tp-shadow);
}

/* Leaflet popup */
.leaflet-popup-content-wrapper {
    border-radius: var(--tp-radius) !important;
    box-shadow: var(--tp-shadow-lg) !important;
}

.leaflet-popup-content {
    margin: 14px !important;
    font-family: var(--tp-font-body) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   LISTINGS GRID
   ═══════════════════════════════════════════════════════════════════════ */
.tp-listings {
    padding: var(--tp-space-2xl) 0 var(--tp-space-3xl);
    background: var(--tp-bg);
}

.tp-listings__inner {
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
}

.tp-listings__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--tp-space-lg);
    flex-wrap: wrap;
    gap: var(--tp-space-md);
}

.tp-listings__title {
    font-family: var(--tp-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tp-dark);
}

.tp-listings__count {
    font-size: 0.85rem;
    color: var(--tp-muted);
    background: var(--tp-white);
    padding: 4px 14px;
    border-radius: 99px;
    border: 1px solid var(--tp-border);
}

.tp-listings__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--tp-space-lg);
}

/* ═══════════════════════════════════════════════════════════════════════
   PROPERTY CARD - Modern Real Estate Design
   ═══════════════════════════════════════════════════════════════════════ */
.tp-card {
    background: var(--tp-white);
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--tp-border);
}

.tp-card:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

/* Card image area */
.tp-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.tp-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tp-card:hover .tp-card__image img {
    transform: scale(1.05);
}

/* Placeholder when no photo */
.tp-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.tp-card__placeholder svg {
    width: 56px;
    height: 56px;
    color: var(--tp-light);
}

/* Badge (property type) */
.tp-card__badge {
    position: absolute;
    top: var(--tp-space-md);
    left: var(--tp-space-md);
    padding: 6px 12px;
    background: var(--tp-white);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tp-slate);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Transaction type badge (sale/rent) */
.tp-card__transaction {
    position: absolute;
    top: var(--tp-space-md);
    right: var(--tp-space-md);
    padding: 6px 12px;
    background: var(--tp-primary);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tp-white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tp-card__transaction--rent {
    background: var(--tp-accent);
}

/* Map button on card */
.tp-card__map-btn {
    position: absolute;
    bottom: var(--tp-space-md);
    right: var(--tp-space-md);
    width: 40px;
    height: 40px;
    background: var(--tp-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.tp-card__map-btn:hover {
    background: var(--tp-primary-dark);
    transform: scale(1.1);
}

.tp-card__map-btn svg {
    width: 20px;
    height: 20px;
    color: var(--tp-white);
}

/* Card body */
.tp-card__body {
    padding: var(--tp-space-lg);
}

.tp-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--tp-gray);
    margin-bottom: var(--tp-space-sm);
}

.tp-card__location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--tp-primary);
}

.tp-card__title {
    font-family: var(--tp-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tp-dark);
    line-height: 1.4;
    margin-bottom: var(--tp-space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta info row */
.tp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tp-space-md);
    padding: var(--tp-space-md) 0;
    border-top: 1px solid var(--tp-border);
    border-bottom: 1px solid var(--tp-border);
    margin-bottom: var(--tp-space-md);
}

.tp-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--tp-slate);
}

.tp-card__meta-item svg {
    width: 15px;
    height: 15px;
    color: var(--tp-muted);
}

/* Footer with price and button */
.tp-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tp-space-md);
}

.tp-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tp-card__price-value {
    font-family: var(--tp-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tp-dark);
}

.tp-card__price-currency {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tp-gray);
}

.tp-card__price-negotiable {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tp-gray);
}

.tp-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--tp-primary);
    border-radius: var(--tp-radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-white);
    transition: all var(--tp-transition);
    text-decoration: none;
}

.tp-card__btn:hover {
    background: var(--tp-primary-dark);
    transform: translateX(2px);
}

.tp-card__btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.tp-card__btn:hover svg {
    transform: translateX(3px);
}

/* Empty state */
.tp-listings__empty {
    text-align: center;
    padding: var(--tp-space-3xl) var(--tp-space-lg);
    color: var(--tp-gray);
}

.tp-listings__empty svg {
    width: 64px;
    height: 64px;
    color: var(--tp-light);
    margin-bottom: var(--tp-space-md);
}

/* Map marker style */
.tp-map-marker {
    width: 32px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 6px rgba(30, 64, 175, 0.4));
}

.tp-map-marker svg {
    width: 32px;
    height: 40px;
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.tp-cta {
    background: linear-gradient(135deg, var(--tp-dark) 0%, #1a365d 100%);
    padding: var(--tp-space-3xl) 0;
}

.tp-cta__inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    text-align: center;
}

.tp-cta__title {
    font-family: var(--tp-font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--tp-white);
    margin-bottom: var(--tp-space-sm);
}

.tp-cta__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--tp-space-xl);
}

.tp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--tp-space-sm);
    padding: 14px 32px;
    background: var(--tp-primary-light);
    color: var(--tp-white);
    border-radius: var(--tp-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: background var(--tp-transition);
}

.tp-cta__btn:hover {
    background: var(--tp-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   DODAJ OFERTĘ – Formularz publiczny
   ═══════════════════════════════════════════════════════════════════════ */
.tp-add-offer {
    padding: var(--tp-space-3xl) 0;
}

.tp-add-offer__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
}

.tp-add-offer__header {
    text-align: center;
    margin-bottom: var(--tp-space-2xl);
}

.tp-add-offer__title {
    font-family: var(--tp-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--tp-dark);
    margin-bottom: var(--tp-space-sm);
}

.tp-add-offer__subtitle {
    font-size: 1rem;
    color: var(--tp-gray);
    max-width: 500px;
    margin: 0 auto;
}

.tp-add-offer__errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--tp-radius);
    padding: var(--tp-space-md);
    margin-bottom: var(--tp-space-xl);
    color: #991b1b;
}

.tp-add-offer__errors ul {
    margin-top: var(--tp-space-sm);
    padding-left: var(--tp-space-lg);
}

.tp-add-offer__section {
    background: var(--tp-white);
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow);
    padding: var(--tp-space-xl);
    margin-bottom: var(--tp-space-xl);
}

.tp-add-offer__section-title {
    font-family: var(--tp-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tp-dark);
    display: flex;
    align-items: center;
    gap: var(--tp-space-md);
    margin-bottom: var(--tp-space-lg);
    padding-bottom: var(--tp-space-md);
    border-bottom: 1px solid var(--tp-border);
}

.tp-add-offer__section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tp-primary);
    color: var(--tp-white);
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tp-add-offer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tp-space-md);
}

.tp-add-offer__field {
    display: flex;
    flex-direction: column;
    gap: var(--tp-space-xs);
}

.tp-add-offer__field--full {
    grid-column: 1 / -1;
}

.tp-add-offer__field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-slate);
}

.tp-add-offer__field input,
.tp-add-offer__field select,
.tp-add-offer__field textarea {
    padding: 12px 14px;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    background: var(--tp-bg);
    font-size: 0.95rem;
    font-family: var(--tp-font-body);
    color: var(--tp-dark);
    transition: border-color var(--tp-transition), box-shadow var(--tp-transition);
}

.tp-add-offer__field input:focus,
.tp-add-offer__field select:focus,
.tp-add-offer__field textarea:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.tp-add-offer__field select:disabled {
    background: var(--tp-border);
    color: var(--tp-muted);
    cursor: not-allowed;
}

.tp-add-offer__field input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.tp-add-offer__field-hint {
    font-size: 0.8rem;
    color: var(--tp-muted);
}

.tp-add-offer__field-error {
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 500;
}

/* Mapa */
.tp-add-offer__map-wrapper {
    margin-top: var(--tp-space-lg);
}

.tp-add-offer__map-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-slate);
    margin-bottom: var(--tp-space-sm);
}

.tp-add-offer__map {
    height: 450px;
    width: 100%;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    margin-top: var(--tp-space-sm);
}

/* Podgląd zdjęć */
.tp-add-offer__preview {
    display: flex;
    gap: var(--tp-space-sm);
    flex-wrap: wrap;
    margin-top: var(--tp-space-sm);
}

.tp-add-offer__preview-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--tp-radius);
    border: 1px solid var(--tp-border);
}

/* Actions */
.tp-add-offer__actions {
    text-align: center;
    margin-top: var(--tp-space-sm);
}

.tp-add-offer__submit {
    display: inline-flex;
    align-items: center;
    gap: var(--tp-space-sm);
    padding: 16px 40px;
    background: var(--tp-primary);
    color: var(--tp-white);
    border: none;
    border-radius: var(--tp-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--tp-transition);
}

.tp-add-offer__submit:hover {
    background: var(--tp-primary-dark);
}

.tp-add-offer__disclaimer {
    margin-top: var(--tp-space-md);
    font-size: 0.85rem;
    color: var(--tp-muted);
}

/* Sukces */
.tp-add-offer-success {
    padding: var(--tp-space-3xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.tp-add-offer-success__inner {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    text-align: center;
}

.tp-add-offer-success__icon {
    color: var(--tp-accent);
    margin-bottom: var(--tp-space-lg);
}

.tp-add-offer-success__title {
    font-family: var(--tp-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--tp-dark);
    margin-bottom: var(--tp-space-md);
}

.tp-add-offer-success__text {
    font-size: 1rem;
    color: var(--tp-gray);
    margin-bottom: var(--tp-space-xl);
    line-height: 1.7;
}

.tp-add-offer-success__actions {
    display: flex;
    gap: var(--tp-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.tp-add-offer-success__btn {
    display: inline-flex;
    padding: 14px 28px;
    background: var(--tp-primary);
    color: var(--tp-white);
    border-radius: var(--tp-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background var(--tp-transition);
}

.tp-add-offer-success__btn:hover {
    background: var(--tp-primary-dark);
}

.tp-add-offer-success__btn--outline {
    background: transparent;
    border: 1px solid var(--tp-border);
    color: var(--tp-slate);
}

.tp-add-offer-success__btn--outline:hover {
    border-color: var(--tp-primary);
    color: var(--tp-primary);
    background: transparent;
}

/* Responsive */
@media (max-width: 640px) {
    .tp-add-offer__grid {
        grid-template-columns: 1fr;
    }

    .tp-add-offer__map {
        height: 350px;
    }

    .tp-add-offer__title {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.tp-footer {
    background: var(--tp-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--tp-space-3xl) 0 var(--tp-space-xl);
}

.tp-footer__inner {
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
}

.tp-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--tp-space-2xl);
    padding-bottom: var(--tp-space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tp-footer__logo {
    display: flex;
    align-items: center;
    gap: var(--tp-space-sm);
    font-size: 1rem;
    color: var(--tp-white);
    margin-bottom: var(--tp-space-md);
}

.tp-footer__logo svg {
    color: var(--tp-primary-light);
}

.tp-footer__logo-img {
    height: 32px;
    width: auto;
}

.tp-footer__logo strong {
    font-weight: 700;
    color: var(--tp-primary-light);
}

.tp-footer__tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.tp-footer__col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--tp-space-md);
}

.tp-footer__col li {
    margin-bottom: var(--tp-space-sm);
}

.tp-footer__col a {
    font-size: 0.9rem;
    transition: color var(--tp-transition);
}

.tp-footer__col a:hover {
    color: var(--tp-white);
}

.tp-footer__col li svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    color: var(--tp-primary-light);
}

.tp-footer__bottom {
    padding-top: var(--tp-space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--tp-space-md);
}

.tp-footer__bottom p {
    font-size: 0.85rem;
}

.tp-footer__legal {
    display: flex;
    gap: var(--tp-space-lg);
}

.tp-footer__legal a {
    font-size: 0.85rem;
    transition: color var(--tp-transition);
}

.tp-footer__legal a:hover {
    color: var(--tp-white);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .tp-split__content {
        grid-template-columns: 440px 1fr;
        gap: var(--tp-space-md);
    }

    .tp-card--split .tp-card__image {
        width: 140px;
        min-width: 140px;
    }

    .tp-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tp-header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--tp-space-lg);
        gap: var(--tp-space-md);
        border-bottom: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .tp-header__nav--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .tp-header__nav--open .tp-header__link {
        color: rgba(255, 255, 255, 0.85);
    }

    .tp-header__actions {
        display: none;
    }

    .tp-header__mobile-toggle {
        display: flex;
    }

    .tp-hero__search {
        flex-direction: column;
    }

    .tp-hero__tabs {
        padding: 0 var(--tp-space-md);
        gap: 0;
        overflow-x: auto;
    }

    .tp-hero__tab {
        padding: 12px 14px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .tp-hero__search--advanced {
        padding: var(--tp-space-md);
        border-radius: 0 0 12px 12px;
    }

    .tp-hero__search-row {
        flex-direction: column;
        gap: var(--tp-space-sm);
    }

    .tp-hero__search--advanced .tp-hero__search-group {
        min-width: 100%;
    }

    .tp-hero__search-actions {
        flex-direction: column;
    }

    .tp-hero__search--advanced .tp-hero__search-btn,
    .tp-hero__search-reset {
        width: 100%;
        justify-content: center;
    }

    .tp-hero__search-group {
        border-right: none;
        border-bottom: 1px solid var(--tp-border);
    }

    .tp-hero__search-btn {
        padding: 16px;
    }

    .tp-stats__inner {
        flex-direction: column;
        gap: var(--tp-space-xl);
    }

    .tp-stats__left {
        text-align: center;
    }

    .tp-stats__right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--tp-space-lg);
        width: 100%;
    }

    .tp-stats__item {
        padding: 0 0 0 var(--tp-space-md);
    }

    .tp-listings__grid {
        grid-template-columns: 1fr;
    }

    /* Split layout: stack on mobile */
    .tp-split__content {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
        border: none;
        border-radius: 0;
    }

    .tp-split__list {
        height: auto;
        overflow-y: visible;
        padding: var(--tp-space-md);
        gap: var(--tp-space-md);
        border-right: none;
    }

    .tp-card--split {
        flex-direction: column;
    }

    .tp-card--split .tp-card__image {
        width: 100%;
        min-width: 100%;
        height: 180px;
        min-height: 180px;
    }

    .tp-card--split .tp-card__transaction {
        top: var(--tp-space-sm);
        bottom: auto;
        left: auto;
        right: var(--tp-space-sm);
    }

    .tp-split__map {
        position: relative;
        top: auto;
        height: auto;
    }

    .tp-split__map-container {
        height: 350px;
        min-height: 280px;
    }

    .tp-split__list {
        height: auto;
        overflow-y: visible;
    }

    .tp-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--tp-space-xl);
    }

    .tp-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .tp-map-section__map {
        height: 360px;
    }
}

@media (max-width: 480px) {
    .tp-hero__tabs {
        flex-wrap: wrap;
    }

    .tp-filters__inner {
        justify-content: center;
    }
}