/* ============================================================
   4YOU NIERUCHOMOŚCI — Custom Stylesheet
   Replaces Tailwind CSS with hand-crafted utility + component classes
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --brick: #B22222;
  --brick-light: #CD5C5C;
  --brick-dark: #8B0000;
  --cream: #FDF5E6;
  --gray-light: #f8f5f2;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --green-600: #16a34a;
  --blue-600: #2563eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 8px 10px rgba(0,0,0,.04);
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --transition: 150ms cubic-bezier(.4,0,.2,1);
  --font-sans: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--brick-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brick);
}

/* Firefox */
html {
  scrollbar-color: var(--brick-light) var(--gray-light);
  scrollbar-width: thin;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px)  { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem;   padding-right: 2rem;   } }

/* ---------- Grid System ---------- */
.grid      { display: grid; gap: 1.5rem; }
.grid-1    { grid-template-columns: repeat(1, 1fr); }
.grid-2    { grid-template-columns: repeat(2, 1fr); }
.grid-3    { grid-template-columns: repeat(3, 1fr); }
.grid-4    { grid-template-columns: repeat(4, 1fr); }
.grid-5    { grid-template-columns: repeat(5, 1fr); }
.grid-6    { grid-template-columns: repeat(6, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .md\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:grid-5 { grid-template-columns: repeat(5, 1fr); }
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ---------- Flexbox Utilities ---------- */
.flex           { display: flex; }
.inline-flex    { display: inline-flex; }
.flex-col       { flex-direction: column; }
.flex-row       { flex-direction: row; }
.flex-wrap      { flex-wrap: wrap; }
.flex-nowrap    { flex-wrap: nowrap; }
.flex-1         { flex: 1 1 0%; }
.flex-shrink-0  { flex-shrink: 0; }
.items-start    { align-items: flex-start; }
.items-center   { align-items: center; }
.items-end      { align-items: flex-end; }
.items-stretch  { align-items: stretch; }
.justify-start    { justify-content: flex-start; }
.justify-center   { justify-content: center; }
.justify-end      { justify-content: flex-end; }
.justify-between  { justify-content: space-between; }
.self-center { align-self: center; }

/* ---------- Display ---------- */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline       { display: inline; }
.hidden       { display: none; }

@media (min-width: 768px) {
  .md\:flex    { display: flex; }
  .md\:hidden  { display: none; }
  .md\:block   { display: block; }
}

@media (min-width: 1024px) {
  .lg\:flex    { display: flex; }
  .lg\:hidden  { display: none; }
  .lg\:block   { display: block; }
}

/* ---------- Spacing ---------- */
.m-0  { margin: 0; }
.m-1  { margin: 0.25rem; }
.m-2  { margin: 0.5rem; }
.m-4  { margin: 1rem; }
.m-auto { margin: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-2  { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4  { margin-top: 1rem;   margin-bottom: 1rem; }
.my-6  { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8  { margin-top: 2rem;   margin-bottom: 2rem; }

.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }

.ml-1  { margin-left: 0.25rem; }
.ml-2  { margin-left: 0.5rem; }
.ml-3  { margin-left: 0.75rem; }
.ml-4  { margin-left: 1rem; }
.mr-1  { margin-right: 0.25rem; }
.mr-2  { margin-right: 0.5rem; }
.mr-3  { margin-right: 0.75rem; }
.mr-4  { margin-right: 1rem; }

.p-0  { padding: 0; }
.p-1  { padding: 0.25rem; }
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }

/* ---------- Width / Height ---------- */
.w-full   { width: 100%; }
.w-auto   { width: auto; }
.w-1\/2   { width: 50%; }
.w-1\/3   { width: 33.333%; }
.w-2\/3   { width: 66.667%; }
.w-1\/4   { width: 25%; }
.w-3\/4   { width: 75%; }
.w-5      { width: 1.25rem; }
.w-6      { width: 1.5rem; }
.w-8      { width: 2rem; }
.w-10     { width: 2.5rem; }
.w-12     { width: 3rem; }
.w-16     { width: 4rem; }
.w-48     { width: 12rem; }
.w-64     { width: 16rem; }
.max-w-sm   { max-width: 24rem; }
.max-w-md   { max-width: 28rem; }
.max-w-lg   { max-width: 32rem; }
.max-w-xl   { max-width: 36rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-6xl  { max-width: 72rem; }
.max-w-full { max-width: 100%; }
.min-w-0    { min-width: 0; }

.h-full   { height: 100%; }
.h-auto   { height: auto; }
.h-5      { height: 1.25rem; }
.h-6      { height: 1.5rem; }
.h-8      { height: 2rem; }
.h-10     { height: 2.5rem; }
.h-12     { height: 3rem; }
.h-16     { height: 4rem; }
.h-48     { height: 12rem; }
.h-64     { height: 16rem; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

/* ---------- Typography ---------- */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1.15; }

.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.italic     { font-style: italic; }
.uppercase  { text-transform: uppercase; }
.lowercase  { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.leading-tight  { line-height: 1.25; }
.leading-snug   { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight  { letter-spacing: -0.025em; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.whitespace-nowrap { white-space: nowrap; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Colors ---------- */
.text-white       { color: var(--white); }
.text-black       { color: var(--black); }
.text-brick       { color: var(--brick); }
.text-brick-light { color: var(--brick-light); }
.text-brick-dark  { color: var(--brick-dark); }
.text-cream       { color: var(--cream); }
.text-gray-400    { color: var(--gray-400); }
.text-gray-500    { color: var(--gray-500); }
.text-gray-600    { color: var(--gray-600); }
.text-gray-700    { color: var(--gray-700); }
.text-gray-800    { color: var(--gray-800); }
.text-gray-900    { color: var(--gray-900); }
.text-green-600   { color: var(--green-600); }
.text-blue-600    { color: var(--blue-600); }

.bg-white       { background-color: var(--white); }
.bg-black       { background-color: var(--black); }
.bg-brick       { background-color: var(--brick); }
.bg-brick-light { background-color: var(--brick-light); }
.bg-brick-dark  { background-color: var(--brick-dark); }
.bg-cream       { background-color: var(--cream); }
.bg-gray-light  { background-color: var(--gray-light); }
.bg-gray-100    { background-color: #f3f4f6; }
.bg-gray-200    { background-color: var(--gray-200); }
.bg-gray-800    { background-color: var(--gray-800); }
.bg-gray-900    { background-color: var(--gray-900); }

/* ---------- Borders ---------- */
.border       { border: 1px solid var(--gray-200); }
.border-2     { border: 2px solid var(--gray-200); }
.border-t     { border-top: 1px solid var(--gray-200); }
.border-b     { border-bottom: 1px solid var(--gray-200); }
.border-l     { border-left: 1px solid var(--gray-200); }
.border-r     { border-right: 1px solid var(--gray-200); }
.border-none  { border: none; }
.border-brick       { border-color: var(--brick); }
.border-brick-light { border-color: var(--brick-light); }
.border-gray-200    { border-color: var(--gray-200); }
.border-gray-300    { border-color: var(--gray-300); }
.border-transparent { border-color: transparent; }

.rounded-sm  { border-radius: var(--radius-sm); }
.rounded     { border-radius: var(--radius); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-t-lg { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.rounded-b-lg { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }

/* ---------- Shadows ---------- */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow    { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* ---------- Positioning ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.right-0  { right: 0; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }
.top-full { top: 100%; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ---------- Overflow ---------- */
.overflow-hidden  { overflow: hidden; }
.overflow-auto    { overflow: auto; }
.overflow-x-auto  { overflow-x: auto; }
.overflow-y-auto  { overflow-y: auto; }
.overflow-visible { overflow: visible; }

/* ---------- Opacity & Visibility ---------- */
.opacity-0   { opacity: 0; }
.opacity-50  { opacity: 0.5; }
.opacity-75  { opacity: 0.75; }
.opacity-100 { opacity: 1; }
.invisible   { visibility: hidden; }
.visible     { visibility: visible; }

/* ---------- Object Fit ---------- */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center  { object-position: center; }

/* ---------- Cursor ---------- */
.cursor-pointer  { cursor: pointer; }
.cursor-default  { cursor: default; }
.pointer-events-none { pointer-events: none; }

/* ---------- Transitions ---------- */
.transition {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: var(--transition);
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}

.transition-all {
  transition: all var(--transition) cubic-bezier(.4,0,.2,1);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-duration: var(--transition);
}

.transition-transform {
  transition-property: transform;
  transition-duration: var(--transition);
}

.transition-opacity {
  transition-property: opacity;
  transition-duration: var(--transition);
}

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* ---------- Transforms ---------- */
.transform         { transform: translateZ(0); }
.scale-100         { transform: scale(1); }
.scale-105         { transform: scale(1.05); }
.hover\:scale-105:hover { transform: scale(1.05); }
.translate-y-1     { transform: translateY(0.25rem); }
.-translate-y-1    { transform: translateY(-0.25rem); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.rotate-180        { transform: rotate(180deg); }

/* ---------- Hover Utilities ---------- */
.hover\:text-brick:hover     { color: var(--brick); }
.hover\:text-brick-light:hover { color: var(--brick-light); }
.hover\:text-white:hover     { color: var(--white); }
.hover\:bg-brick:hover       { background-color: var(--brick); }
.hover\:bg-brick-dark:hover  { background-color: var(--brick-dark); }
.hover\:bg-brick-light:hover { background-color: var(--brick-light); }
.hover\:bg-cream:hover       { background-color: var(--cream); }
.hover\:bg-gray-100:hover    { background-color: #f3f4f6; }
.hover\:shadow-lg:hover      { box-shadow: var(--shadow-lg); }
.hover\:shadow-xl:hover      { box-shadow: var(--shadow-xl); }
.hover\:underline:hover      { text-decoration: underline; }
.hover\:opacity-90:hover     { opacity: 0.9; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110   { transform: scale(1.1); }

/* ---------- Focus Utilities ---------- */
.focus\:outline-none:focus   { outline: none; }
.focus\:ring-2:focus         { box-shadow: 0 0 0 2px var(--brick-light); }
.focus\:ring-brick:focus     { box-shadow: 0 0 0 3px rgba(178,34,34,.35); }
.focus\:border-brick:focus   { border-color: var(--brick); }

/* ============================================================
   COMPONENT STYLES
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.25rem;
}

.btn-primary {
  background: var(--brick);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brick-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--brick);
  border-color: var(--brick);
}
.btn-secondary:hover {
  background: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--brick);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-full);
}

/* ---------- Form Inputs ---------- */
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(178,34,34,.15);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-group {
  margin-bottom: 1rem;
}

/* Checkbox / Radio */
.form-checkbox,
.form-radio {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--brick);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 300ms, transform 300ms;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

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

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-light);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-brick {
  background: var(--brick);
  color: var(--white);
}

.badge-green {
  background: var(--green-600);
  color: var(--white);
}

.badge-outline {
  background: transparent;
  border: 1px solid currentColor;
}

/* ============================================================
   LAYOUT COMPONENTS
   ============================================================ */

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--brick-dark);
  color: var(--white);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.top-bar a {
  color: var(--white);
  transition: opacity var(--transition);
}

.top-bar a:hover {
  opacity: 0.8;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.15);
  transition: background var(--transition);
}

.top-bar-social a:hover {
  background: rgba(255,255,255,.3);
}

/* ---------- Main Navigation ---------- */
.main-nav {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brick);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.nav-logo .logo-4 {
  color: var(--brick-dark);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brick);
  background: var(--cream);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.9rem;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-caret {
  font-size: 0.72rem;
  transition: transform var(--transition);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 0.75rem;
  min-width: 360px;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 251, 248, 0.98);
  border: 1px solid rgba(178, 34, 34, 0.1);
  box-shadow: 0 20px 44px rgba(86, 24, 24, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 20;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  width: 1rem;
  height: 1rem;
  background: rgba(255, 248, 245, 0.98);
  border-top: 1px solid rgba(178, 34, 34, 0.12);
  border-left: 1px solid rgba(178, 34, 34, 0.12);
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  min-height: 5.25rem;
  padding: 1rem 1.1rem !important;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.12) 0%, rgba(205, 92, 92, 0.18) 100%);
  color: var(--white) !important;
  font-size: 0.95rem !important;
  box-shadow: 0 10px 24px rgba(178, 34, 34, 0.08);
  text-align: left;
  border: 1px solid rgba(178, 34, 34, 0.12);
}

.nav-dropdown .nav-tile:hover,
.nav-dropdown .nav-tile:focus-visible {
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.16) 0%, rgba(205, 92, 92, 0.24) 100%);
  color: var(--gray-900);
  transform: translateY(-2px);
}

.nav-tile-title {
  color: var(--brick);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-tile-meta {
  color: var(--gray-600);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Hamburger button */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.375rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--gray-light);
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

.hamburger-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
}

.mobile-menu.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--cream);
  color: var(--brick);
}

.mobile-submenu {
  padding: 0 1.5rem 0.5rem 2.25rem;
  display: grid;
  gap: 0.25rem;
}

.mobile-menu .mobile-submenu-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: rgba(178, 34, 34, 0.05);
}

/* ---------- Hero Slideshow ---------- */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--gray-900);
}

@media (min-width: 768px) {
  .hero { height: 600px; }
}

@media (min-width: 1024px) {
  .hero { height: 650px; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: #d6b8a3;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(23, 16, 14, 0.16) 0%, rgba(23, 16, 14, 0.05) 38%, rgba(23, 16, 14, 0.24) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.96;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background var(--transition);
}

.hero-dot.active {
  background: var(--white);
}

/* ---------- Property Card ---------- */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 300ms, transform 300ms;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.property-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

.property-card:hover .property-card-image img {
  transform: scale(1.08);
}

.property-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.property-card-price {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
}

.property-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.property-card-location {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.property-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

.property-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ---------- Section ---------- */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section { padding: 4rem 0; }
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2rem; }
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-divider {
  width: 3rem;
  height: 3px;
  background: var(--brick);
  margin: 0.75rem auto 0;
  border-radius: var(--radius-full);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--brick);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 0.25rem;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-contact-bar {
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-contact-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--gray-400);
}

.footer-contact-item a {
  color: var(--gray-300);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--brick-light);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--cream);
  border-color: var(--brick);
  color: var(--brick);
}

.pagination .active {
  background: var(--brick);
  color: var(--white);
  border-color: var(--brick);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  padding: 1rem 0;
}

.breadcrumbs a {
  color: var(--brick);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--brick-dark);
}

.breadcrumbs .separator {
  color: var(--gray-400);
}

/* ---------- Alert / Messages ---------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ---------- Skeleton / Loading ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, #e8e8e8 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ---------- Tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--cream);
  color: var(--brick);
  border: 1px solid rgba(178,34,34,.2);
}

/* ---------- No Image Placeholder ---------- */
.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
  color: var(--gray-400);
  font-size: 0.875rem;
  width: 100%;
  height: 100%;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fadeIn      { animation: fadeIn 500ms ease-out both; }
.animate-fadeOut     { animation: fadeOut 300ms ease-in both; }
.animate-slideInRight { animation: slideInRight 400ms ease-out both; }
.animate-slideInUp   { animation: slideInUp 400ms ease-out both; }
.animate-pulse       { animation: pulse 2s ease-in-out infinite; }
.animate-spin        { animation: spin 1s linear infinite; }

/* Staggered children */
.animate-stagger > :nth-child(1) { animation-delay: 0ms; }
.animate-stagger > :nth-child(2) { animation-delay: 75ms; }
.animate-stagger > :nth-child(3) { animation-delay: 150ms; }
.animate-stagger > :nth-child(4) { animation-delay: 225ms; }
.animate-stagger > :nth-child(5) { animation-delay: 300ms; }
.animate-stagger > :nth-child(6) { animation-delay: 375ms; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Small screens */
@media (max-width: 639px) {
  .top-bar-contact { display: none; }
  .hero { height: 350px; }
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.9375rem; }
  .section { padding: 2rem 0; }
  .section-title { font-size: 1.375rem; }
}

/* Tablet portrait */
@media (min-width: 640px) and (max-width: 767px) {
  .top-bar-contact-item:nth-child(n+3) { display: none; }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links { display: none; }
}

/* Print */
@media print {
  .top-bar,
  .main-nav,
  .footer,
  .hamburger,
  .mobile-menu,
  .hero { display: none; }

  body { font-size: 12pt; color: #000; }
  .container { max-width: 100%; }
}

/* ============================================================
   CATEGORY PAGE LAYOUT  (sidebar + listings grid)
   ============================================================ */

/* Hero banner for category pages */
.category-hero {
  background: linear-gradient(135deg, #8B0000 0%, #B22222 40%, #CD5C5C 100%);
  padding: 3rem 0;
  color: var(--white);
  text-align: center;
}

.category-hero--brick {
  background:
    linear-gradient(135deg, rgba(79, 16, 16, 0.82) 0%, rgba(139, 34, 34, 0.72) 45%, rgba(205, 92, 92, 0.58) 100%),
    url('https://s3.eu-central-1.amazonaws.com/pressland-cms/cache/article_show_cover/ky/19148033-ogrodowa-klasyka-scianka-z-cegly-aby-nie-zamykala.jpeg') center center / cover no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 420'%3E%3Crect width='1200' height='420' fill='%23924a3b'/%3E%3Cg fill='none' stroke='%23d9a18e' stroke-width='6'%3E%3Cpath d='M0 70h1200M0 140h1200M0 210h1200M0 280h1200M0 350h1200'/%3E%3Cpath d='M0 0v70M150 0v70M300 0v70M450 0v70M600 0v70M750 0v70M900 0v70M1050 0v70M1200 0v70'/%3E%3Cpath d='M75 70v70M225 70v70M375 70v70M525 70v70M675 70v70M825 70v70M975 70v70M1125 70v70'/%3E%3Cpath d='M0 140v70M150 140v70M300 140v70M450 140v70M600 140v70M750 140v70M900 140v70M1050 140v70M1200 140v70'/%3E%3Cpath d='M75 210v70M225 210v70M375 210v70M525 210v70M675 210v70M825 210v70M975 210v70M1125 210v70'/%3E%3Cpath d='M0 280v70M150 280v70M300 280v70M450 280v70M600 280v70M750 280v70M900 280v70M1050 280v70M1200 280v70'/%3E%3Cpath d='M75 350v70M225 350v70M375 350v70M525 350v70M675 350v70M825 350v70M975 350v70M1125 350v70'/%3E%3C/g%3E%3C/svg%3E") center center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.category-hero--brick .container {
  position: relative;
  z-index: 1;
}

.category-hero--brick h1,
.category-hero--brick p {
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.category-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.category-hero p {
  font-size: 1.125rem;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .category-hero { padding: 4rem 0; }
  .category-hero h1 { font-size: 3rem; }
}

/* Sidebar + content flex layout */
.category-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .category-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.category-sidebar {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .category-sidebar {
    width: 280px;
    position: sticky;
    top: 5rem;
  }
}

.category-content {
  flex: 1;
  min-width: 0;
}

/* Filter sections inside sidebar */
.filter-section {
  margin-bottom: 1.25rem;
}

.filter-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Room selector buttons */
.room-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.room-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.room-btn:hover {
  border-color: var(--brick);
  color: var(--brick);
}

.room-btn.active,
.room-btn:checked + label,
input[type="radio"]:checked + .room-btn {
  background: var(--brick);
  color: var(--white);
  border-color: var(--brick);
}

/* Results count + sorting bar */
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.results-count {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.results-count strong {
  color: var(--gray-900);
  font-weight: 700;
}

/* No results state */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results svg {
  margin: 0 auto 1rem;
  color: var(--gray-400);
}

/* ============================================================
   UTILITY – SR ONLY (screen-reader)
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* =========================
   Header / Nav logo sizing (wide logotype)  (+20% SAFE)
   ========================= */
.main-nav .main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
  /* 16px * 1.2 */
}

/* Logo container */
.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  /* ważne przy flex, żeby nie rozpychało */
}

/* Make the image behave nicely */
.nav-logo-img {
  display: block;
  height: 77px;
  /* 64px * 1.2 */
  width: auto;
  max-width: 408px;
  /* 340px * 1.2 */
  object-fit: contain;
}

/* tablet */
@media (max-width: 1024px) {
  .nav-logo-img {
    height: 65px;
    /* 54px * 1.2 */
    max-width: 336px;
    /* 280px * 1.2 */
  }
}

/* mobile: keep previous (DON'T scale) */
@media (max-width: 768px) {
  .main-nav .main-nav-inner {
    gap: 10px;
    /* zostawiamy bez zmian na telefonie */
  }

  .nav-logo-img {
    height: 44px;
    /* zostawiamy bez zmian na telefonie */
    max-width: 170px;
    /* zostawiamy bez zmian na telefonie */
  }
}

/* extra small phones */
@media (max-width: 360px) {
  .nav-logo-img {
    height: 40px;
    /* zostawiamy bez zmian */
    max-width: 150px;
    /* zostawiamy bez zmian */
  }
}


/* Footer funding logo only (centered) */
.footer-funding {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-funding__logo {
  height: 52px;
  width: auto;
  display: block;
}


/* =========================
   Header +10% (SAFE) - desktop/tablet only
   Wklej TEN blok zamiast wcześniejszego "+20%"
   ========================= */

/* TOP BAR: +10% */
@media (min-width: 769px){
  .top-bar{
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .top-bar-content{
    min-height: 40px;
  }

  .top-bar,
  .top-bar a,
  .top-bar span{
    font-size: 1.1em;
  }

  /* MAIN NAV: +10% */
  .main-nav{
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .nav-links a{
    font-size: 1.1em;
  }

  /* Hamburger minimalnie większy (jeśli się pokazuje na Twoim layoutcie) */
  .hamburger{
    transform: scale(1.1);
    transform-origin: center;
  }
}

/* Mobile: bez skalowania */
@media (max-width: 768px){
  .hamburger{
    transform: none;
  }
}


/* Top-bar contact (phone/email/hours): keep smaller even when header is scaled */
@media (min-width: 769px){
  .top-bar-contact,
  .top-bar-contact a,
  .top-bar-contact span{
    font-size: 0.95em; /* mniejsze i nie rośnie razem z resztą */
  }
}

/* =========================
   Property details (Otodom-like layout + stable gallery)
   ========================= */

.property-layout{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

.property-main{
  min-width: 0; /* IMPORTANT: prevents overflow when there are many images */
}

.property-side{
  min-width: 280px;
}

@media (max-width: 1024px){
  .property-layout{
    grid-template-columns: 1fr;
  }
  .property-side{
    min-width: 0;
  }
}

/* Header */
.property-header__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.property-header__title{
  margin: 0 0 0.25rem 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #1f2937;
}

.property-header__ref{
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.property-header__location{
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

.property-header__price{
  text-align: right;
  margin-left: auto;
}

.property-header__price-main{
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--brick);
}

.property-header__price-sub{
  font-size: 0.95rem;
  color: #6b7280;
}

/* Badges */
.property-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.property-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  color: #fff;
}

.property-badge--gold{ background:#eab308; }
.property-badge--green{ background:#16a34a; }
.property-badge--blue{ background:#2563eb; }

/* Gallery */
.property-gallery{
  overflow: hidden;
}

.property-gallery__main{
  position: relative;
  height: 480px;
  background: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-gallery__main img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.property-gallery__placeholder{
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#B22222,#CD5C5C);
}

.property-gallery__count{
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}

/* Thumbs row with scroll (works on desktop too) */
.property-gallery__thumbs{
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f5f5f5;
}

.property-gallery__thumbnav{
  height: 44px;
  width: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.property-gallery__thumbtrack{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.property-gallery__thumbtrack::-webkit-scrollbar{
  height: 8px;
}
.property-gallery__thumbtrack::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
}

.property-gallery__thumb{
  flex: 0 0 auto;
  width: 92px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  outline: none;
}

.property-gallery__thumb.is-active{
  border-color: var(--brick);
}

/* Facts grid */
.property-facts{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 768px){
  .property-gallery__main{ height: 320px; }
  .property-gallery__placeholder{ height: 320px; }
  .property-facts{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.property-fact{
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.property-fact__label{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 6px;
}

.property-fact__value{
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
}

/* Features */
.property-features{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 768px){
  .property-features{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.property-feature{
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #374151;
}

.property-feature__check{
  color: var(--brick);
  font-weight: 900;
}

/* Sidebar */
.property-side__contact{
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.property-side__link{
  color: var(--brick);
  font-weight: 700;
  text-decoration: none;
}

/* Fullscreen modal */
.property-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 50;
  align-items: center;
  justify-content: center;
}

.property-modal__img{
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.property-modal__close{
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 51;
}

.property-modal__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 10px;
}

.property-modal__nav--prev{ left: 16px; }
.property-modal__nav--next{ right: 16px; }

.property-modal__counter{
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
}

/* --- Gallery image transition --- */
.property-gallery__img{
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}

.property-gallery__img.is-fading{
  opacity: 0;
  transform: scale(0.985);
}

/* --- CTA buttons (visible on white + premium look) --- */
.property-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ensure outline button text is visible */
.btn.btn-outline.property-cta--msg{
  color: var(--brick);
  border-color: rgba(178,34,34,0.35);
  background: rgba(178,34,34,0.06);
}

.btn.btn-outline.property-cta--msg:hover{
  background: rgba(178,34,34,0.10);
  border-color: rgba(178,34,34,0.55);
}

/* nicer primary */
.btn.btn-primary.property-cta--call{
  box-shadow: 0 10px 18px rgba(178,34,34,0.18);
}

.property-cta__icon{
  font-size: 1.1rem;
  line-height: 1;
}

.property-cta__text{
  line-height: 1;
}


/* Mobile usability for gallery */
.property-gallery__main{
  position: relative;
}

/* przycisk "Pokaż zdjęcia" - tylko jeśli go dodałeś */
.property-gallery__open{
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

@media (min-width: 769px){
  .property-gallery__open{ display:none; } /* desktop nie potrzebuje */
}
