/*
Theme Name: MojeOsiedle
Theme URI: https://mojeosiedle.com
Author: MojeOsiedle
Description: Custom theme for MojeOsiedle.com real estate
Version: 1.0.0
Text Domain: mojeosiedle
*/

/* ===== DESIGN TOKENS ===== */
:root {
    --orange: #ff4e00;
    --orange-light: #ff7b54;
    --dark: #26292d;
    --dark-section: #3a3d3f;
    --text-black: #000000;
    --text-gray: #676767;
    --text-gray-light: #7e7f81;
    --text-white: #ffffff;
    --text-white-soft: #f5f5f5;
    --bg-white: #ffffff;
    --bg-light: #efefef;
    --line: #e5e5e5;
    --font: 'SUSE', system-ui, -apple-system, sans-serif;
    --container: 1240px;
}

/* ===== GOOGLE TRANSLATE OVERRIDES ===== */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }
.skiptranslate { display: none !important; }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); color: var(--text-black); background: var(--bg-light); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }

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

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 14px 32px; border-radius: 15px; font-weight: 600; font-size: 16px; text-align: center; transition: all 0.3s; }
.btn--primary { background: var(--orange); color: var(--text-white); }
.btn--primary:hover { background: var(--orange-light); }
.btn--small { padding: 10px 24px; font-size: 14px; }
.btn--white { background: var(--bg-white); color: var(--text-black); }
.btn--white:hover { background: var(--bg-light); }
.btn--success { background: #27ae60 !important; }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(38, 41, 45, 0.9); backdrop-filter: blur(10px); transition: background 0.3s; }
.header--scrolled { background: var(--dark); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.header__inner { max-width: 1080px; display: flex; align-items: center; justify-content: flex-start; gap: 50px; height: 70px; }
.header__logo img { height: 45px; width: auto; }
.header__nav { display: flex; gap: 32px; }
.header__link { color: var(--text-white); font-size: 12px; font-weight: 600; letter-spacing: 1.4px; transition: color 0.3s; }
.header__link:hover { color: var(--orange); }
.header__phone { display: flex; align-items: center; gap: 8px; background: var(--orange); color: var(--text-white); padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; transition: background 0.3s; margin-left: auto; }
.header__phone:hover { background: var(--orange-light); }
.header__phone i { font-size: 12px; }
.header__lang { display: flex; gap: 6px; align-items: center; margin-left: 10px; }
.header__lang-btn { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; opacity: 0.5; transition: opacity 0.3s; padding: 0; display: flex; align-items: center; justify-content: center; }
.header__lang-btn--active { opacity: 1; }
.header__lang-btn:hover { opacity: 1; }
.header__lang-btn svg { display: block; width: 22px; height: 22px; }
.header__hamburger { display: none; flex-direction: column; gap: 5px; padding: 5px; }
.header__hamburger span { display: block; width: 24px; height: 2px; background: var(--text-white); transition: all 0.3s; }

/* ===== HERO ===== */
/* Note: background-image set inline via PHP with get_template_directory_uri() */
.hero { position: relative; height: 100vh; min-height: 400px; max-height: 600px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5)); }
.hero__content { position: relative; text-align: center; color: var(--text-white); }
.hero__title { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 30px; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero__btn { font-size: 18px; padding: 16px 40px; }
.hero__usp { display: none; }

/* ===== USP ===== */
.usp { padding: 60px 0; background: var(--bg-light); }
.usp__grid { display: flex; justify-content: center; gap: 140px; }
.usp__item { text-align: center; flex: 0 0 auto; }
.usp__icon { width: 70px; height: 70px; margin: 0 auto 15px; object-fit: contain; opacity: 0.5; }
.usp__label { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-gray); line-height: 1.4; }

/* ===== OFFER ===== */
.offer { padding: 20px 0 60px; background: var(--bg-light); }

/* Shared card style */
.offer__card { background: var(--bg-white); border-radius: 15px; padding: 25px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); margin-bottom: 0; }

/* Offer header */
.offer__header { display: flex; align-items: stretch; justify-content: space-between; margin: -25px -25px 0 -25px; padding: 18px 25px; }
.offer__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.offer__subtitle { font-size: 13px; color: var(--text-gray); margin-top: 2px; }
.offer__header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; align-self: stretch; }
.offer__views { display: flex; align-items: center; gap: 6px; color: var(--text-gray); cursor: default; }
.offer__views i { font-size: 16px; }
.offer__views-count { font-size: 14px; font-weight: 600; }
.offer__share { width: 40px; height: 40px; border: none; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s; }
.offer__share img { width: 100%; height: 100%; object-fit: contain; }
.offer__share:hover { opacity: 0.7; }
.offer__share.share--copied { opacity: 0.5; }
.offer__badge { background: var(--orange); color: var(--text-white); padding: 0 18px; font-weight: 700; font-size: 18px; display: flex; align-items: center; align-self: stretch; margin: -18px -25px -18px 0; border-radius: 0 15px 0 0; }
.offer__nav { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 15px; }
.offer__arrow { width: 55px; height: 55px; border-radius: 50%; border: none; background: var(--bg-white); box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--orange); transition: all 0.3s; }
.offer__arrow:hover:not(.offer__arrow--disabled) { background: var(--orange); color: var(--text-white); }
.offer__arrow--disabled { opacity: 0.3; cursor: default; }
.offer__nav-label { font-size: 18px; font-weight: 600; }

/* Offer layout (master 2-column grid) */
.offer__layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.offer__left { min-width: 0; }
.offer__right { align-self: start; }

/* Offer body */
.offer__body { margin-bottom: 20px; }

/* Gallery */
.offer__gallery-main { position: relative; overflow: hidden; margin: 0 -25px; }
.offer__gallery-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.offer__gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-black); transition: all 0.3s; }
.offer__gallery-arrow:hover { background: var(--orange); color: var(--text-white); }
.offer__gallery-arrow--prev { left: 10px; }
.offer__gallery-arrow--next { right: 10px; }
.offer__gallery-counter { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.6); color: var(--text-white); padding: 4px 12px; border-radius: 12px; font-size: 13px; }

/* Price bar */
.offer__pricebar { display: flex; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer__pricebar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.offer__pricebar-meta { display: flex; align-items: baseline; gap: 18px; }
.offer__price { font-size: 22px; font-weight: 700; color: var(--text-black); margin-right: 30px; white-space: nowrap; }
.offer__area { font-size: 18px; font-weight: 400; color: var(--text-black); margin-right: 30px; white-space: nowrap; }
.offer__ppm2 { font-size: 18px; font-weight: 400; color: var(--text-black); white-space: nowrap; }
.offer__urgency { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 14px; color: var(--text-black); }
.offer__urgency-icon { height: 40px; width: auto; flex-shrink: 0; }
.offer__urgency span { line-height: 1.4; }
.offer__urgency strong { font-weight: 700; }

/* Feature icons bar */
.offer__features { display: flex; gap: 0; padding: 12px 0; margin-top: 10px; flex-wrap: wrap; }
.offer__feature { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 140px; padding: 0 8px; }
.offer__feature:first-child { padding-left: 0; }
.offer__feature img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.offer__feature-text { display: flex; flex-direction: column; gap: 1px; }
.offer__feature-label { font-size: 12px; color: var(--text-gray); line-height: 1.2; }
.offer__feature-value { font-size: 14px; font-weight: 700; line-height: 1.2; }

/* Contact sidebar */
.offer__contact { border-radius: 15px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.1); background: var(--bg-white); }
.offer__contact-header { background: var(--orange); color: var(--text-white); padding: 15px 20px; }
.offer__contact-header h3 { font-size: 24px; font-weight: 700; }
.offer__contact-body { padding: 20px; }
.offer__contact-agent { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.offer__contact-phone { display: flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 600; margin-bottom: 15px; white-space: nowrap; }
.offer__contact-phone a { color: var(--orange); }
.offer__contact-note { font-size: 13px; color: var(--text-gray); margin-bottom: 20px; line-height: 1.5; }
.offer__contact-form input,
.offer__contact-form textarea { width: 100%; padding: 12px 18px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.offer__contact-form textarea { height: 120px; resize: vertical; border-radius: 8px; }
.offer__contact-form-footer { background: var(--orange); margin: 0 -20px -20px; padding: 15px 20px; border-radius: 0 0 15px 15px; }
.offer__contact-form-footer .btn { width: 100%; background: var(--bg-white); color: var(--orange); border: none; border-radius: 30px; font-weight: 700; }
.offer__contact-form-footer .btn:hover { background: var(--bg-light); }

/* Details section */
.offer__details-wrapper { margin-top: 20px; }
.offer__details { background: var(--bg-white); border-radius: 15px; padding: 25px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.offer__details-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.offer__details-header h3 { font-size: 24px; font-weight: 700; }
.offer__expand-btn { padding: 8px 16px; border: 1px solid var(--orange); border-radius: 8px; font-size: 12px; color: var(--text-gray); transition: all 0.3s; cursor: pointer; }
.offer__expand-btn:hover { background: var(--orange); color: var(--text-white); border-color: var(--orange); }

/* Collapsible content */
.offer__details-content { max-height: 300px; overflow: hidden; position: relative; transition: max-height 0.5s ease; }
.offer__details-content::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--bg-white)); pointer-events: none; transition: opacity 0.3s; }
.offer__details-content--expanded { max-height: 5000px; }
.offer__details-content--expanded::after { opacity: 0; }

/* Details table */
.offer__details-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.offer__details-table tr { border-bottom: 1px solid var(--bg-light); }
.offer__details-table td { padding: 10px 0; font-size: 14px; vertical-align: top; }
.offer__details-table td:first-child { font-weight: 600; width: 200px; color: var(--text-black); }
.offer__details-table td:last-child { color: var(--text-gray); }

.offer__section-title { font-size: 24px; font-weight: 700; margin: 30px 0 15px; }

/* Location row */
.offer__location-row { display: flex; align-items: center; gap: 30px; }
.offer__location-table { flex: 1; }

/* Map link */
.offer__map-link { flex-shrink: 0; transition: transform 0.3s; }
.offer__map-link img { width: 120px; height: 120px; object-fit: contain; }
.offer__map-link:hover { transform: scale(1.05); }

/* Opis nieruchomości */
.offer__opis { background: var(--bg-white); border-radius: 15px; padding: 25px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); margin-top: 20px; }
.offer__opis .offer__description { font-size: 14px; line-height: 1.8; color: var(--text-gray); max-height: 150px; overflow: hidden; position: relative; transition: max-height 0.5s ease; }
.offer__opis .offer__description::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(transparent, var(--bg-white)); pointer-events: none; transition: opacity 0.3s; }
.offer__opis .offer__description--expanded { max-height: 3000px; }
.offer__opis .offer__description--expanded::after { opacity: 0; }
.offer__opis-agent { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.offer__opis-agent .offer__agent-info { display: flex; gap: 15px; align-items: center; }
.offer__opis-agent .offer__agent-photo { width: 120px; height: 120px; }
.offer__opis-agent .offer__agent-name { font-size: 22px; font-weight: 700; }
.offer__opis-agent .offer__agent-note { font-size: 13px; }
.offer__opis-phone { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; margin: 8px 0; white-space: nowrap; }
.offer__opis-phone a { color: var(--orange); }
.offer__opis-phone i { font-size: 18px; color: var(--orange); }
.offer__opis-form { display: flex; flex-direction: column; gap: 10px; }
.offer__opis-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.offer__opis-form-inputs { display: flex; flex-direction: column; gap: 8px; }
.offer__opis-form input,
.offer__opis-form textarea { width: 100%; padding: 10px 15px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; box-sizing: border-box; }
.offer__opis-form textarea { height: 100%; resize: vertical; min-height: 120px; }
.offer__description p { margin-bottom: 15px; }

/* Actions row */
.offer__actions-row { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.offer__actions { display: flex; gap: 25px; }
.offer__action { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-black); transition: color 0.3s; }
.offer__action img { width: 24px; height: 24px; object-fit: contain; }
.offer__action:hover { color: var(--orange); }

/* Sidebar: cities */
.offer__sidebar-title { font-size: 20px; font-weight: 700; margin: 20px 0 15px; }
.offer__city-placeholder { width: 100%; height: 150px; background: var(--orange); border-radius: 15px; margin-bottom: 15px; }
.offer__city-box { display: block; position: relative; width: 100%; height: 150px; border-radius: 15px; overflow: hidden; margin-bottom: 15px; background: var(--orange); }
.offer__city-box img { width: 100%; height: 100%; object-fit: cover; }
.offer__city-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 15px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: var(--text-white); font-weight: 700; font-size: 16px; }

/* Agent bar */
.offer__agent-bar { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 25px; background: var(--bg-white); border-radius: 15px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); margin-top: 20px; }
.offer__agent-info { display: flex; gap: 15px; align-items: flex-start; }
.offer__agent-photo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); flex-shrink: 0; }
.offer__agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.offer__agent-name { font-size: 18px; font-weight: 700; }
.offer__agent-phone2 { display: flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 600; margin: 5px 0; }
.offer__agent-phone2 a { color: var(--orange); }
.offer__agent-note { font-size: 12px; color: var(--text-gray); line-height: 1.5; }
.offer__agent-form { display: grid; grid-template-columns: 180px 1fr; grid-template-rows: auto auto auto; gap: 8px; }
.offer__agent-form input,
.offer__agent-form textarea { width: 100%; padding: 10px 15px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.offer__agent-form textarea { grid-column: 2; grid-row: 1 / 4; height: 100%; resize: vertical; min-height: 100px; }
.offer__agent-form .btn { grid-column: 2; justify-self: end; }

/* ===== ABOUT ===== */
/* Note: background-image set inline via PHP */
.about { position: relative; background-size: cover; background-position: center; padding: 80px 0; }
.about__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.1); }
.about__inner { position: relative; display: flex; gap: 60px; align-items: center; color: var(--text-white); }
.about__logo { position: relative; flex-shrink: 0; }
.about__logo-icon { position: absolute; top: -10px; left: -15px; width: 50px; z-index: 2; }
.about__logo-icon-inline { display: none; }
.about__photo { width: 350px; height: 350px; border-radius: 50%; object-fit: cover; }
.about__title { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.about__text p { font-size: 15px; line-height: 1.8; margin-bottom: 15px; color: var(--text-white-soft); }

/* ===== CONTACT ===== */
.contact { padding: 60px 0; }
.contact__inner { background: var(--orange); border-radius: 15px; padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__title { font-size: 30px; font-weight: 700; color: var(--text-white); margin-bottom: 15px; }
.contact__subtitle { font-size: 14px; color: var(--text-white-soft); line-height: 1.7; margin-bottom: 20px; }
.contact__divider { height: 1px; background: rgba(255,255,255,0.2); margin: 20px 0; }
.contact__details { display: flex; gap: 40px; }
.contact__detail-label { font-size: 14px; color: var(--text-white-soft); }
.contact__detail-value { font-size: 18px; font-weight: 700; color: var(--text-white); display: block; white-space: nowrap; }
.contact__social { display: flex; gap: 18px; }
.contact__social-link { display: flex; align-items: center; gap: 12px; color: var(--text-white); }
.contact__social-link i { font-size: 28px; }
.contact__social-icon { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.contact__social-link strong { font-size: 16px; line-height: 1.2; }
.contact__social-link span { font-size: 13px; color: var(--text-white-soft); line-height: 1.3; }
/*
 * Grid layout:
 *   col1 = fields (1fr)   col2 = button (45px)
 *   row1: input name       .
 *   row2: input phone      .
 *   row3: input email      .
 *   row4: textarea with button overlay (bottom-right)
 */
.contact__form { display: grid; grid-template-columns: 1fr; gap: 10px; }
.contact__fields { display: flex; flex-direction: column; gap: 10px; }
.contact__form input,
.contact__form textarea { width: 100%; box-sizing: border-box; min-width: 0; }
.contact__form input { padding: 14px 18px; border: none; border-radius: 8px; font-size: 14px; font-family: inherit; }
.contact__form textarea { padding: 14px 18px; border: none; border-radius: 8px; font-size: 14px; font-family: inherit; height: 150px; resize: none; }
.contact__submit { background: var(--bg-white); color: var(--text-black); border-radius: 0; display: flex; align-items: center; justify-content: center; padding: 12px 40px; transition: background 0.3s, opacity 0.3s; cursor: pointer; border: none; position: relative; overflow: hidden; }
.contact__submit:hover { background: var(--bg-light); }
.contact__submit-arrow { width: 50%; height: 50%; transition: opacity 0.2s; }
.contact__submit-label { font-size: 13px; font-weight: 600; font-family: inherit; color: inherit; letter-spacing: 0.5px; transition: opacity 0.2s; }
.contact__submit-icon { width: 60%; height: 60%; object-fit: contain; transition: opacity 0.2s; }
.contact__submit--loading { opacity: 0.7; cursor: wait; }
.contact__submit--loading .contact__submit-label,
.contact__submit--loading .contact__submit-icon { opacity: 0; }
.contact__submit--loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: var(--text-white); border-radius: 50%; animation: contact-spin 0.8s linear infinite; }
.contact__submit--success { background: #27ae60; }
.contact__submit--success .contact__submit-label,
.contact__submit--success .contact__submit-icon { opacity: 0; }
.contact__submit--success::after { content: '\2713'; position: absolute; color: var(--text-white); font-size: 22px; font-weight: 700; line-height: 1; }
@keyframes contact-spin { to { transform: rotate(360deg); } }

/* Toast notification */
.mo-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--dark); color: var(--text-white); padding: 12px 24px; border-radius: 8px; font-size: 14px; font-family: var(--font); opacity: 0; transition: opacity 0.3s, transform 0.3s; z-index: 9999; pointer-events: none; }
.mo-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== FOOTER ===== */
/* Note: background-image set inline via PHP */
.footer { position: relative; background-size: cover; background-position: center; padding: 30px 0; }
.footer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.footer__inner { position: relative; max-width: 1080px; display: flex; justify-content: space-between; align-items: center; gap: 60px; color: var(--text-white); flex-wrap: wrap; }
.footer__logo img { height: 60px; width: auto; }
.footer__menu { display: flex; flex-direction: column; gap: 4px; }
.footer__menu h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.footer__menu a { font-size: 14px; color: var(--text-gray-light); transition: color 0.3s; }
.footer__menu a:hover { color: var(--text-white); }
.footer__contact h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.footer__contact p { font-size: 14px; color: var(--text-gray-light); margin-bottom: 6px; }
.footer__contact a { color: var(--text-white); }

/* ===== PAGE TEMPLATE (Privacy, Legal) ===== */
.page-spacer { height: 90px; }
.page-content { padding: 20px 0 80px; }
.page-content__title { font-size: 32px; font-weight: 800; color: var(--text-black); margin-bottom: 30px; padding-bottom: 15px; border-bottom: 3px solid var(--orange); }
.page-content__card { background: var(--bg-white); border-radius: 15px; padding: 50px; box-shadow: 0 2px 20px rgba(0,0,0,0.06); max-width: 900px; margin: 0 auto; }

/* Legal content typography */
.page-content__card h2 { font-size: 22px; font-weight: 700; color: var(--text-black); margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; }
.page-content__card h2:first-child { margin-top: 0; }
.page-content__card h3 { font-size: 18px; font-weight: 700; color: var(--text-black); margin: 30px 0 12px; }
.page-content__card p { font-size: 15px; line-height: 1.8; color: var(--text-gray); margin-bottom: 14px; }
.page-content__card ul, .page-content__card ol { margin: 10px 0 18px 24px; color: var(--text-gray); font-size: 15px; line-height: 1.9; }
.page-content__card li { margin-bottom: 6px; }
.page-content__card li::marker { color: var(--orange); }
.page-content__card ul ul, .page-content__card ol ol { margin-top: 6px; margin-bottom: 6px; }
.page-content__card strong { color: var(--text-black); font-weight: 600; }
.page-content__card a { color: var(--orange); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.page-content__card a:hover { border-bottom-color: var(--orange); }

@media (max-width: 768px) {
    .page-content__title { font-size: 24px; }
    .page-content__card { padding: 30px 20px; }
}

/* ===== OFFER LIST (archive) ===== */
.offer-list { padding: 20px 0 60px; background: var(--bg-light); }
.offer-list__layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.offer-list__main { min-width: 0; }
.offer-list__sidebar { align-self: start; }

/* Sorting controls */
.offer-list__controls { margin-bottom: 15px; }
.offer-list__sort-label { font-size: 16px; font-weight: 700; color: var(--text-black); display: block; margin-bottom: 10px; }
.offer-list__sort-select { width: 100%; padding: 12px 40px 12px 18px; border: 1px solid var(--line); border-radius: 25px; font-size: 14px; font-family: var(--font); background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff4e00' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 18px center; appearance: none; cursor: pointer; text-align: center; }

/* Offer card (listing) */
.offer-card { display: block; background: var(--bg-white); border-radius: 15px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); margin-bottom: 20px; text-decoration: none; color: inherit; transition: box-shadow 0.3s; }
.offer-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
.offer-card__header { display: flex; justify-content: space-between; align-items: stretch; padding: 14px 25px; gap: 15px; }
.offer-card__title-group { min-width: 0; }
.offer-card__title { font-size: 18px; font-weight: 700; line-height: 1.2; }
.offer-card__subtitle { font-size: 13px; color: var(--text-gray); margin-top: 1px; line-height: 1.3; }
.offer-card__meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.offer-card__views { font-size: 14px; color: var(--text-gray); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.offer-card__views i { font-size: 22px; line-height: 1; }
.offer-card__views-count { font-size: 14px; font-weight: 600; }
.offer-card__badge { background: var(--orange); color: var(--text-white); padding: 0 18px; font-weight: 700; font-size: 16px; display: flex; align-items: center; align-self: stretch; margin: -14px -25px -14px 0; border-radius: 0 15px 0 0; }
.offer-card__image { overflow: hidden; }
.offer-card__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.offer-card__footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 25px; gap: 15px; }
.offer-card__stats { display: flex; gap: 25px; align-items: baseline; }
.offer-card__price { font-size: 22px; font-weight: 700; color: var(--orange); }
.offer-card__area { font-size: 15px; color: var(--text-black); }
.offer-card__ppm2 { font-size: 15px; color: var(--text-black); }
.offer-card__date { font-size: 12px; color: var(--text-gray); text-align: right; display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.offer-card__date-icon { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }

/* ===== REVIEWS ===== */
.reviews { padding: 60px 0; background: var(--bg-light); }
.reviews__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.reviews__title { font-size: 28px; font-weight: 700; color: var(--text-black); }
.reviews__rating { display: flex; align-items: center; gap: 12px; }
.reviews__rating-text { text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.reviews__avg { font-size: 18px; font-weight: 700; line-height: 1.1; }
.reviews__avg-label { font-size: 12px; color: var(--text-gray); margin-top: 2px; line-height: 1.1; }
.reviews__rating-star { font-size: 40px; color: var(--orange); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; grid-auto-rows: 1fr; }
.reviews__card { background: var(--bg-white); border-radius: 15px; padding: 30px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); display: flex; flex-direction: column; min-height: 320px; }
.reviews__card .reviews__text { flex: 1; }
.reviews__card--hidden { display: none; }
.reviews__stars { margin-bottom: 15px; }
.reviews__stars i { color: var(--orange); font-size: 16px; margin-right: 2px; }
.reviews__text { font-size: 14px; line-height: 1.7; color: var(--text-gray); margin-bottom: 20px; }
.reviews__author { font-size: 14px; font-weight: 600; color: var(--orange); }
.reviews__nav { display: flex; justify-content: center; gap: 15px; margin-top: 25px; }
.reviews__arrow { width: 45px; height: 45px; border-radius: 50%; background: var(--bg-white); box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--orange); transition: all 0.3s; border: none; cursor: pointer; }
.reviews__arrow:hover { background: var(--orange); color: var(--text-white); }

/* ===== MOBILE MENU ===== */
.menu-open .header__nav { display: flex !important; }
.menu-open .header__hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-open .header__hamburger span:nth-child(2) { opacity: 0; }
.menu-open .header__hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .offer__layout { grid-template-columns: 1fr; }
    .offer__right { position: static; }
    .offer-list__layout { grid-template-columns: 1fr; }
    .offer-list__sidebar { order: -1; }
    .offer-list__sidebar .offer__contact,
    .offer-list__sidebar .offer__sidebar-title,
    .offer-list__sidebar .offer__cities { display: none; }
    .reviews__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .reviews__card { min-height: 0; }
    .reviews__header { flex-direction: column; gap: 15px; align-items: flex-start; }
    .reviews__rating { align-self: flex-end; }
    .about__inner { flex-direction: column; text-align: center; }
    .about__photo { width: 250px; height: 250px; }
    .contact__inner { grid-template-columns: 1fr; }
    .footer__inner { flex-wrap: wrap; gap: 40px; justify-content: space-between; }
}

@media (max-width: 768px) {
    .header__nav { display: none; position: fixed; top: 70px; left: 0; width: 100%; background: var(--dark); flex-direction: column; padding: 20px; gap: 15px; }
    .header__inner { justify-content: space-between; gap: 15px; }
    .header__phone { display: none; }
    .header__hamburger { display: flex; }
    .header__lang { margin-left: auto; }
    .hero { height: 65vh; min-height: 350px; }
    .usp { display: none; }
    .hero__usp { display: grid; grid-template-columns: auto auto; gap: 15px 30px; margin-top: 25px; justify-content: center; }
    .hero__usp-item { display: flex; align-items: center; gap: 8px; }
    .hero__usp-item img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.8; }
    .hero__usp-item span { font-size: 9px; font-weight: 600; color: var(--text-white-soft); letter-spacing: 0.3px; line-height: 1.3; text-transform: uppercase; }
    .hero__title { font-size: 28px; }
    .usp__grid { flex-wrap: wrap; gap: 30px; }
    .usp__item { width: calc(50% - 15px); }
    .offer__header { flex-wrap: nowrap; gap: 10px; align-items: flex-start; }
    .offer__title-group { flex: 1; min-width: 0; }
    .offer__layout { display: flex; flex-direction: column; }
    .offer__right { display: contents; }
    .offer__nav { order: -1; margin-left: 0; }
    .offer__contact,
    .offer__sidebar-title,
    .offer__cities { display: none; }
    .offer__location-row { flex-direction: column; }
    .offer__map-link { align-self: center; }
    .offer__map-link img { width: 150px; height: 150px; }
    .offer__views { display: none; }
    .offer__share { width: 32px; height: 32px; }
    .offer__badge { font-size: 14px; padding: 0 12px; }
    .offer__gallery-img { aspect-ratio: 16/9; }
    .offer__pricebar { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 0; }
    .offer__pricebar-left { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
    .offer__price { margin-right: 0; font-size: 24px; font-weight: 700; color: var(--orange); }
    .offer__area, .offer__ppm2 { font-size: 14px; color: var(--text-gray); }
    .offer__pricebar-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
    .offer__pricebar-meta .offer__area { margin-right: 0; }
    .offer__urgency { display: none; }
    .offer__features { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 320px; margin: 15px auto 0; }
    .offer__feature { min-width: 0; flex: none; padding: 0; }
    .offer__details-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .offer__agent-bar { grid-template-columns: 1fr; }
    .offer__agent-form { grid-template-columns: 1fr; }
    .offer__agent-form textarea { grid-column: 1; grid-row: auto; }
    .about__photo { width: 200px; height: 200px; }
    .about__logo-icon { display: none; }
    .about__logo-icon-inline { display: block; width: 50px; height: auto; margin: 0 auto 12px; }
    .footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; text-align: left; }
    .footer__logo { grid-column: 1 / -1; text-align: center; }
    .footer__logo img { height: 40px; }
    .footer__menu, .footer__contact { text-align: left; }
    .offer__opis-agent { grid-template-columns: 1fr; }
    .offer__opis-form-fields { grid-template-columns: 1fr; }
    .offer__actions-row { flex-direction: column; align-items: center; gap: 15px; }
    .offer__actions { gap: 30px; justify-content: center; }
    .offer__action { padding: 10px 4px; min-height: 44px; cursor: pointer; }
    .offer__action img { width: 22px; height: 22px; }
    .offer__opis-agent .offer__agent-info { flex-direction: column; text-align: center; }
    .offer__opis-agent .offer__opis-phone { justify-content: center; }
    .offer__contact-phone { font-size: 14px; }
    .contact { overflow-x: hidden; }
    .contact__inner { padding: 30px 20px; max-width: 100%; box-sizing: border-box; }
    .contact__details { flex-direction: column; gap: 15px; }
    .contact__detail-value { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
    .contact__social { flex-direction: column; gap: 20px; }
    .contact__social-link { min-width: 0; }
    .contact__social-link strong,
    .contact__social-link span { word-break: break-word; }
    .contact__fields { min-width: 0; }
    .offer__details-table, .offer__details-table tbody, .offer__details-table tr, .offer__details-table td { display: block; width: 100%; }
    .offer__details-table tr { padding: 10px 0; }
    .offer__details-table td { padding: 0; }
    .offer__details-table td:first-child { width: 100%; font-size: 13px; margin-bottom: 2px; }
    .offer__details-table td:last-child { font-size: 15px; }
    .offer-card__footer { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 15px; flex-wrap: nowrap; }
    .offer-card__stats { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
    .offer-card__price { font-size: 18px; }
    .offer-card__area, .offer-card__ppm2 { font-size: 12px; }
    .offer-card__date { text-align: right; justify-content: flex-end; flex-shrink: 0; white-space: nowrap; gap: 6px; }
    .offer-card__date-icon { display: block; width: 22px; height: 22px; }
    .offer-card__date span { white-space: nowrap; font-size: 11px; }
    .offer-card__header { padding: 12px 15px; gap: 10px; }
    .offer-card__views { display: flex; align-items: center; }
    .offer-card__views i { font-size: 20px; }
    .offer-card__meta { gap: 10px; align-items: center; }
    .offer-card__badge { font-size: 14px; padding: 0 12px; margin: -12px -15px -12px 0; }
    .offer-list__controls { justify-content: flex-start; }
}

/* ===== PRINT ===== */
@media print {
    /* Expand all collapsed content */
    .offer__description,
    .offer__details-content {
        max-height: none !important;
        overflow: visible !important;
    }
    .offer__description::after,
    .offer__details-content::after {
        display: none !important;
    }

    /* Hide non-essential UI elements */
    .header,
    .hero,
    .usp,
    .offer__nav,
    .offer__expand-btn,
    .offer__contact-form,
    .offer__contact-form-footer,
    .offer__opis-form,
    .offer__actions-row,
    .offer__cities,
    .offer__sidebar-title,
    .about,
    .contact,
    .footer,
    .reviews,
    #expand-details,
    #expand-opis {
        display: none !important;
    }

    /* Clean layout for print */
    body { background: white; }
    .offer { padding: 0; }
    .offer__layout { display: block; }
    .offer__right { margin-top: 20px; }
    .offer__card,
    .offer__details,
    .offer__opis { box-shadow: none; border: 1px solid #ddd; }
    .offer__contact { box-shadow: none; }
    .offer__gallery-arrow { display: none; }

    /* Page margins */
    @page { margin: 15mm; }
}
