/* İlan sayfası yazdırma stili — 16 temanın hepsi (yalnız is_singular('property') sayfasında, media="print").
   Hedef: 1–2 sayfalık, okunaklı ilan özeti — ana fotoğraf, fiyat, adres, bilgiler, açıklama, emlakçı iletişimi.
   Menü, talep formu, hesaplayıcı, CTA bandı, "More in …" şeridi, video/3D çerçeveleri ve altbilgi menüleri basılmaz.
   Önceden hiç print kuralı yoktu: çıktı 4–6 sayfaydı ve v3'te sabit başlık her sayfada içeriğin üstüne biniyordu. */

@page { margin: 0.5in; }

html, body {
  background: #fff !important; color: #111 !important;
  font-size: 11pt !important;
}
body * { box-shadow: none !important; text-shadow: none !important; }
a { color: inherit !important; text-decoration: none !important; }

/* Ekranda yerinde duran parçalar: kâğıtta yalnız tekrar eder ya da işe yaramaz */
.topbar, .site-header, .hd, .skip-link, .screen-reader-text,
.footer-cta, .ft__cta, .footer-grid, .ft__grid, .footer-social, .footer-badges,
.rewp-breadcrumbs, .cmp-tray, .cmp-toast, .rewp-lb, .rewp-savebar,
.card__tools, .c__tools, .rgal__count, .prop-gallery__all, .prop-gallery__more, .rgal__more,
form, .rewp-lead-form, .rewp-consent, [data-mortgage],
.rewp-extras > div:not(.rewp-oh), .rewp-media,
iframe, video, button { display: none !important; }

/* Sayfa altındaki "More in …" / "More Homes in …" şeridi (ilan sayfasında main'in doğrudan bölümleri) */
.single-property main > section, .single-property main > .wrap > section, .single-property main + section { display: none !important; }

/* Sabit ve yapışkan her şey normal akışa: başlık içeriğin üstüne binmesin */
.single-property main, .single-property main * { position: static !important; }
.single-property main .rgal__item, .single-property main .prop-gallery__item { position: relative !important; }
.single-property main { padding-top: 0 !important; margin-top: 0 !important; }
.single-property .ph, .single-property .prop-bar { padding-top: 0 !important; }
.single-property .prop-bar { background: none !important; color: #111 !important; border: 0 !important; }
.single-property .prop-bar * { color: #111 !important; }

/* Galeri: yalnız ilk (kapak) fotoğraf, sayfayı kaplamadan */
.rgal, .prop-gallery { display: block !important; height: auto !important; margin: 0 0 12pt !important; overflow: visible !important; }
.rgal__item, .prop-gallery__item { display: none !important; }
.rgal__item:first-child, .prop-gallery__item:first-child,
.rgal__item:first-child > a, .prop-gallery__item:first-child > a {
  display: block !important; width: 100% !important; height: auto !important; margin: 0 !important;
  aspect-ratio: auto !important; min-height: 0 !important;
}
.rgal__item:first-child img, .prop-gallery__item:first-child img {
  display: block !important; width: 100% !important; height: 3in !important; max-height: 3in !important;
  object-fit: cover !important; border-radius: 6pt;
}
.single-property [data-rewp-gallery] { margin-bottom: 12pt !important; }

/* İki sütunlu düzen tek sütun: hiçbir şey sağdan kesilmesin */
.single-property .split, .single-property .prop-layout {
  display: block !important; grid-template-columns: none !important;
}
.single-property .wrap { max-width: none !important; width: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
.single-property aside { margin-top: 10pt !important; }
.single-property aside .panel { border: 1px solid #bbb !important; background: none !important; padding: 10pt 12pt !important; }

/* Bilgi kutuları kâğıtta da okunur, sayfa ortasında bölünmesin */
.figs, .spec-grid, .panel, .rewp-oh, .agent-mini { break-inside: avoid; page-break-inside: avoid; }
.figs, .spec-grid { background: none !important; border: 1px solid #ccc !important; padding: 8pt !important; margin-bottom: 12pt !important; }
.panel { margin-bottom: 12pt !important; }
h1, h2, h3 { break-after: avoid; page-break-after: avoid; color: #111 !important; }
.single-property .display, .single-property .h1 { font-size: 22pt !important; }
.rewp-oh { border: 1px solid #999 !important; background: none !important; }
.rewp-oh__ico { display: none !important; }


/* Altbilgi: yalnız lisans/broker satırı kalır, koyu zemin yerine beyaz kâğıtta koyu yazı */
.site-footer, .ft { background: none !important; color: #333 !important; padding: 8pt 0 0 !important; margin: 0 !important; border-top: 1px solid #ccc !important; }
.site-footer *, .ft * { color: #333 !important; }
.footer-legal, .ft__legal { font-size: 8.5pt !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }

/* Antet (inc/template-tags.php, wp_body_open): ad, broker, telefon, e-posta, site */
.rewp-print-head {
  display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4pt 16pt;
  padding: 0 0 6pt; margin: 0 0 10pt; border-bottom: 1.5pt solid #111; font-size: 10pt;
}
.rewp-print-head strong { font-size: 13pt; }
.single-property .prop-bar .price > span { display: block !important; }
