/* Budapest Property Rentals – site styles (2027)
 Linked from every page as https://budapestpropertyrentals.com/css/2027.css */

:root {
  --stone: #ECEEE9;
  --paper: #FFFFFF;
  --ink: #1B2A33;
  --ink-soft: #4A5860;
  --danube: #24506A;
  --tram: #F2BE1A;
  --ivy: #3F5D45;
  --line: #CDD2CC;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --wrap: 72rem;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; display: block; }
/* Photos keep their proportions on the public site. Admin pages are left out so
   that height="..." on their images (e.g. menu icons) is respected. */
:where(body:not(.admin)) img { height: auto; }
a { color: var(--danube); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--tram); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* Placeholder highlighting – delete this rule once every TODO is filled in */
.todo { background: #FFF3B0; color: #1B2A33; outline: 1px dashed #B58900; padding: 0 .2em; }

/* Header */
.site-head { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: block; margin-right: auto; line-height: 0; }
.brand img { height: 3.5rem; width: auto; }
@media (max-width: 30rem) { .brand img { height: 2.75rem; } }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--danube); text-decoration: underline; }
.head-phone { color: var(--danube); font-weight: 600; text-decoration: none; white-space: nowrap; }
.head-phone:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: 2.5rem 0 3rem; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1fr 1.15fr; gap: 3rem; } }
.hero-text { display: grid; gap: 1.25rem; max-width: 34rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-block; padding: .8rem 1.25rem; border-radius: 2rem; font-weight: 600; text-decoration: none; border: 2px solid var(--ink); }
.btn-primary { background: var(--ink); color: var(--stone); }
.btn-primary:hover { background: var(--danube); border-color: var(--danube); color: var(--paper); }
.btn-plain { color: var(--ink); }
.btn-plain:hover { background: var(--paper); }
/* Hero slideshow: photos are stacked and cross-fade; no libraries */
.slideshow { margin: 0; }
.slides { position: relative; aspect-ratio: 3 / 2; border-radius: .5rem; overflow: hidden; background: var(--line); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.slides img.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .slides img { transition: opacity .9s ease; } }
.slide-controls { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.slide-controls button {
  font: inherit; font-size: .9rem; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.slide-controls button:hover { background: var(--ink); color: var(--stone); }
.slide-count { font-size: .875rem; color: var(--ink-soft); margin-left: .25rem; font-variant-numeric: tabular-nums; }

/* All-inclusive "ticket" */
.ticket-band { padding: 0 0 3.5rem; }
.ticket {
  background: var(--tram); color: var(--ink);
  border-radius: .75rem; display: grid; gap: 1.5rem; padding: 1.75rem 1.5rem;
  position: relative;
}
@media (min-width: 48rem) {
  .ticket { grid-template-columns: 17rem 1fr; gap: 0; padding: 2rem 0; }
  .ticket > div:first-child { padding: 0 2rem; border-right: 2px dashed rgba(27,42,51,.45); }
  .ticket > ul:last-child { padding: 0 2rem 0 2.75rem; } /* more specific, so it beats the base .ticket ul rule */
  /* punched notches where the stub would tear off */
  .ticket::before, .ticket::after {
    content: ""; position: absolute; left: calc(17rem - 0.75rem); width: 1.5rem; height: 1.5rem;
    background: var(--stone); border-radius: 50%;
  }
  .ticket::before { top: -0.75rem; }
  .ticket::after { bottom: -0.75rem; }
}
.ticket h2 { font-size: 1.6rem; }
.ticket .small { font-size: .95rem; margin-top: .5rem; }
.ticket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); align-content: center; }
.ticket li { display: flex; gap: .5rem; align-items: baseline; font-weight: 600; }
.ticket li svg { flex: none; transform: translateY(.15em); }

/* Sections */
section { padding: 3.5rem 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--ink-soft); max-width: 36rem; }
.on-paper { background: var(--paper); }

/* Apartment list */
.flats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.flat { position: relative; background: var(--paper); border-radius: .5rem; overflow: hidden; display: flex; flex-direction: column; }
.flat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.flat-body { padding: 1rem 1.1rem 1.25rem; display: grid; gap: .35rem; }
.flat h3 a { color: var(--ink); text-decoration: none; }
.flat h3 a::after { content: ""; position: absolute; inset: 0; }
.flat:hover h3 a, .flat h3 a:focus-visible { text-decoration: underline; }
.flat .district { color: var(--ivy); font-weight: 600; font-size: .95rem; }
.flat .facts { color: var(--ink-soft); font-size: .95rem; }
.flat .price { font-weight: 600; margin-top: .25rem; }

/* Search */
.search { display: grid; gap: 1rem; background: var(--ink); color: var(--stone); padding: 1.5rem; border-radius: .5rem; margin-top: 2.5rem; }
.search h3 { font-size: 1.3rem; }
.search form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; }
.search label { display: grid; gap: .3rem; font-size: .9rem; }
.search select, .search input[type=text] {
  font: inherit; padding: .6rem .7rem; border-radius: .35rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 100%;
}
.search .date { display: flex; gap: .35rem; }
.search .date select { width: auto; flex: 0 0 auto; }
.search .date select[name="month"] { flex: 1 1 auto; min-width: 0; }
.search fieldset { min-width: 0; }
@media (min-width: 56rem) { .search form:not(.name-search) { grid-template-columns: minmax(17rem, 1.4fr) 1fr 1fr auto; } }
.search fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }
.search legend { padding: 0; margin-bottom: .3rem; }
.search button { font: inherit; font-weight: 600; padding: .65rem 1.25rem; border-radius: 2rem; border: 0; background: var(--tram); color: var(--ink); cursor: pointer; }
.search button:hover { background: var(--paper); }

/* Districts */
.districts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); border-top: 1px solid var(--line); }
.districts li { padding: 1.1rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.districts h3 { margin-bottom: .3rem; }
.districts h3 a { color: var(--ink); }
.districts p { color: var(--ink-soft); font-size: .95rem; }

/* Ranges */
.ranges { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.range { border-left: 4px solid var(--danube); padding: .25rem 0 .25rem 1.25rem; display: grid; gap: .5rem; align-content: start; }
.range-logo { display: block; line-height: 0; margin-bottom: .25rem; }
.range-logo img { height: 3.5rem; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.range.students { border-color: var(--ivy); }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--danube); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 40rem; }

/* Footer */
/* Same background as the current site's .footersleeve, for continuity */
.site-foot {
  --foot-img-h: 420px; /* height of the Budapest picture; lower = smaller. Sides stay cropped on normal screens */
  --foot-img-crop: 0px; /* how much of the top of the picture to hide */
  background: #d5dff1 url(https://budapestpropertyrentals.com/gifs/budapest2026.jpg) no-repeat
              center calc(-1 * var(--foot-img-crop)) / auto var(--foot-img-h);
  color: var(--ink); padding: calc(var(--foot-img-h) - var(--foot-img-crop)) 0 1.5rem; font-size: .95rem;
  display: flex; flex-direction: column;
}
/* Desktop: show only the bottom half of the picture (same size, top half cut off) */
@media (min-width: 56rem) { .site-foot { --foot-img-crop: calc(var(--foot-img-h) / 2); } }
.site-foot .wrap { width: 100%; }
.site-foot .wrap {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  background: rgba(255,255,255,.88); border-radius: .5rem; padding-top: 2rem; padding-bottom: 1.5rem;
}
@media (max-width: 48rem) { .site-foot .wrap { margin: 0 1rem; width: auto; } }
.site-foot h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.foot-logo { height: 3rem; width: auto; margin-bottom: .75rem; }
.site-foot a { color: var(--danube); }
.site-foot a:hover { color: var(--ink); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.foot-links { grid-column: 1 / -1; }
.site-foot .foot-links ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.foot-links a { white-space: nowrap; }
.site-foot address { font-style: normal; display: grid; gap: .35rem; overflow-wrap: anywhere; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; color: var(--ink-soft); font-size: .85rem; }
.legal a { color: var(--ink-soft); }

/* Reviews: a slow, continuous scroll. The list is repeated once (hidden from screen readers)
   so the loop is seamless. Hover, keyboard focus or the Pause button stops it. */
.reviews { overflow: hidden; }
.review-viewport { overflow: hidden; }
.review-track { display: flex; width: max-content; }
.review-list { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0 .625rem; }
.review {
  width: 20rem; flex: none; background: var(--stone); border-radius: .5rem; padding: 1.25rem 1.25rem 1.1rem;
  display: flex; flex-direction: column; gap: .6rem; border-top: 4px solid var(--tram);
}
.review .stars { color: #C99400; letter-spacing: .1em; font-size: 1.05rem; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-size: 1rem; }
.reviewer { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.review-controls { margin-top: 1rem; }
.review-pause { font: inherit; font-size: .9rem; padding: .4rem 1rem; border-radius: 2rem; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.review-pause:hover { background: var(--ink); color: var(--stone); }
@keyframes review-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .review-track { animation: review-scroll 90s linear infinite; }
  .review-viewport:hover .review-track,
  .review-viewport:focus-within .review-track,
  .reviews.is-paused .review-track { animation-play-state: paused; }
}
/* Reduced motion: no auto-scroll, people swipe or scroll the row themselves */
@media (prefers-reduced-motion: reduce) {
  .review-viewport { overflow-x: auto; }
  .review-copy, .review-controls { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .search button { transition: background-color .15s, color .15s; }
}

/* ---------- Reviews page ---------- */
.page-intro { padding: 2.5rem 0 3rem; }
.page-intro .wrap { display: grid; gap: 1.25rem; justify-items: start; }
.page-intro .lede { max-width: 38rem; }
.review-grid { list-style: none; margin: 0; padding: 0; columns: 20rem; column-gap: 1.25rem; }
.review-grid .review { width: auto; break-inside: avoid; margin-bottom: 1.25rem; background: var(--stone); }
.review-grid .review blockquote p { font-size: 1.0625rem; }
.review-more { font-size: .9rem; }
.ticket li a { color: var(--ink); }
.ticket li a:hover { color: var(--danube); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--stone); border-radius: .5rem; padding: 1.5rem; display: grid; gap: .5rem; align-content: start; border-top: 4px solid var(--danube); }
.contact-card h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.contact-card p { color: var(--ink-soft); }
.contact-big, .contact-card address.contact-big { font-family: var(--display); font-size: 1.35rem; font-weight: 500; font-style: normal; color: var(--ink); line-height: 1.3; }
.contact-big a { color: var(--ink); }
.contact-big a:hover { color: var(--danube); }
.contact-email { font-size: 1.15rem; }
.contact-card .btn { margin-top: .5rem; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-card .note { font-size: .9rem; margin-top: .5rem; }
.district-map { margin: 0 0 1.25rem; background: var(--paper); border-radius: .5rem; padding: 1rem; }
.district-map img { margin: 0 auto; }

/* ---------- About page ---------- */
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .5rem; background: var(--line); }
.about-cols { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .about-cols { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.prose { display: grid; gap: 1rem; max-width: 36rem; }
.prose p { color: var(--ink-soft); }
.pull-quote { margin: 0; border-left: 4px solid var(--tram); padding: .25rem 0 .25rem 1.5rem; }
.pull-quote blockquote { margin: 0; }
.pull-quote blockquote p { font-family: var(--display); font-size: 1.5rem; line-height: 1.3; font-weight: 500; }
.pull-quote figcaption { margin-top: .75rem; font-size: .9rem; color: var(--ink-soft); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; display: grid; gap: .5rem; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--danube); }
.steps p { color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-row h2 { margin-bottom: .5rem; }

/* ---------- Privacy page and other long legal text ---------- */
.updated { font-size: .9rem; color: var(--ink-soft); }
.policy-layout { display: grid; gap: 2.5rem; }
.policy-layout > * { min-width: 0; } /* lets wide tables scroll instead of stretching the page */
@media (min-width: 56rem) { .policy-layout { grid-template-columns: 14rem 1fr; gap: 4rem; align-items: start; } }
.policy-toc { font-size: .95rem; }
@media (min-width: 56rem) { .policy-toc { position: sticky; top: 1.5rem; } }
.policy-toc h2 { font-size: 1.1rem; margin-bottom: .75rem; }
.policy-toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; }
.policy { max-width: 44rem; }
.policy h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; scroll-margin-top: 1rem; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--ink-soft); }
.policy p + p { margin-top: .75rem; }
.policy ul { padding-left: 1.25rem; margin: .5rem 0 .75rem; display: grid; gap: .35rem; }
.policy li strong { color: var(--ink); }
.policy-table { width: 100%; border-collapse: collapse; margin: .75rem 0 1rem; font-size: .95rem; display: block; overflow-x: auto; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
.policy-table th { color: var(--ink); font-weight: 600; }
.policy-table td { color: var(--ink-soft); }
.policy code { font-size: .9em; }

/* ---------- Cookie banner (js/consent.js) ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 46rem; margin: 0 auto;
  background: var(--ink); color: var(--stone); border-radius: .75rem; padding: 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; box-shadow: 0 10px 30px rgba(27,42,51,.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 22rem; font-size: .95rem; }
.cookie-banner a { color: var(--tram); }
.cookie-actions { display: flex; gap: .75rem; }
/* Accept and Reject look the same: rejecting must be as easy as accepting */
.cookie-btn { font: inherit; font-weight: 600; min-width: 7rem; padding: .65rem 1.25rem; border-radius: 2rem; border: 2px solid var(--tram); background: var(--tram); color: var(--ink); cursor: pointer; }
.cookie-btn:hover { background: var(--paper); border-color: var(--paper); }
.link-button { font: inherit; color: var(--danube); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; white-space: nowrap; }
.link-button:hover { color: var(--ink); }

/* Apartment card with no photo yet (home2027.pl) */
.flat-photo-missing { aspect-ratio: 4 / 3; background: var(--line); }

/* ---------- Apartment pages (apartments2027.pl) ---------- */
.apt-hero { padding: 2rem 0 3rem; }
.apt-hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .apt-hero-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }
.apt-summary { display: grid; gap: 1rem; justify-items: start; }
.apt-summary .district { color: var(--ivy); font-weight: 600; }
.apt-summary h1 { font-size: clamp(2rem, 4vw, 3rem); }
.apt-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.apt-facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 2rem; padding: .3rem .85rem; font-size: .95rem; }
.apt-available { font-weight: 600; }
.apt-price { font-size: 1.1rem; }
.apt-price strong { font-family: var(--display); font-size: 1.5rem; }
.next-apt { font-size: .95rem; }
.apt-main-photo { margin: 0; }
.apt-main-photo img, .apt-main-photo .flat-photo-missing { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; background: var(--line); }

.apt-body { display: grid; gap: 1rem; }
.apt-body > * { max-width: 46rem; }
.apt-body h2 { margin-top: 1.5rem; }
.apt-body h2:first-child { margin-top: 0; }
.apt-body p { color: var(--ink-soft); }
.apt-body .lede { color: var(--ink); }
.apt-video, .apt-body iframe { width: 100%; max-width: 46rem; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: .5rem; }
.apt-body .gallery { max-width: none; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.gallery a { display: block; border-radius: .4rem; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
@media (prefers-reduced-motion: no-preference) { .gallery img { transition: transform .3s ease; } .gallery a:hover img { transform: scale(1.03); } }

.apt-details-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }
.apt-detail { display: grid; gap: .75rem; }
.apt-detail h2 { font-size: 1.5rem; }
.map-box { background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; padding: 1.25rem; display: grid; gap: .75rem; justify-items: start; }
.map-box p { font-size: .95rem; color: var(--ink-soft); }
.map-box.is-loaded { padding: 0; overflow: hidden; }
.map-box iframe { width: 100%; height: 22rem; border: 0; display: block; }
.floorplans { display: flex; flex-wrap: wrap; gap: .75rem; }
.floorplan-link img { max-width: 16rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--paper); }

.calendar { border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
.calendar caption { text-align: left; font-weight: 600; padding-bottom: .4rem; }
.calendar th { font-size: .8rem; color: var(--ink-soft); font-weight: 600; padding: .2rem 0; }
.calendar td { width: 2.4rem; height: 2.2rem; text-align: center; border-radius: .3rem; font-size: .9rem; padding: 0; }
.calendar td a, .calendar td span { display: grid; place-items: center; width: 100%; height: 100%; color: inherit; text-decoration: none; border-radius: .3rem; }
.calendar td a:hover { outline: 2px solid var(--ink); }
.cal-free { background: #DCEBD8; color: var(--ink); }
.cal-booked { background: #E9D3D0; color: #7A3A33; text-decoration: line-through; }
.cal-key { font-size: .9rem; color: var(--ink-soft); }
.key { display: inline-block; width: .9rem; height: .9rem; border-radius: .2rem; vertical-align: -.1rem; margin-left: .25rem; }
.key-free { background: #DCEBD8; } .key-booked { background: #E9D3D0; }

.apt-book-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); align-items: start; }
.price-card, .enquiry-card, .booking-card { background: var(--stone); border-radius: .5rem; padding: 1.5rem; display: grid; gap: .75rem; border-top: 4px solid var(--danube); }
.price-card h3, .enquiry-card h3, .booking-card h3 { font-size: 1.4rem; }
.price-card p, .enquiry-card p { color: var(--ink-soft); }
.price-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.price-table thead th { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.price-table td { text-align: right; font-weight: 600; }
.price-table thead th:last-child { text-align: right; }
.enquiry-form, .booking-form { display: grid; gap: .5rem; }
.enquiry-form label, .booking-form label { font-size: .95rem; font-weight: 600; display: grid; gap: .3rem; }
.enquiry-form input, .booking-form select {
  font: inherit; padding: .6rem .7rem; border-radius: .35rem; border: 1px solid #A9B1AB; background: var(--paper); color: var(--ink); width: 100%;
}
.enquiry-form label + input { margin-bottom: .4rem; }
.enquiry-form fieldset, .booking-form fieldset { border: 0; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; }
.enquiry-form legend, .booking-form legend { font-weight: 600; margin-bottom: .3rem; padding: 0; }
.enquiry-form .btn, .booking-card .btn { justify-self: start; margin-top: .5rem; cursor: pointer; font: inherit; font-weight: 600; }
.date-selects { display: flex; flex-wrap: wrap; gap: .35rem; }
.date-selects select { flex: 1 1 4.5rem; width: auto; }
.date-selects select[name="month"] { flex: 2 1 8.5rem; }
.people-selects { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.cost-list { margin: .5rem 0 0; display: grid; gap: 0; }
.cost-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.cost-list dt { color: var(--ink-soft); }
.cost-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cost-list .cost-main dt, .cost-list .cost-main dd { color: var(--ink); font-weight: 700; }
.booking-warning { background: #FBE9E7; border-left: 4px solid #B3412F; padding: .6rem .8rem; border-radius: .3rem; color: var(--ink); }
.small-note { font-size: .85rem; color: var(--ink-soft); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(14, 22, 27, .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: .75rem; padding: 3.5rem 3.5rem 2rem; box-sizing: border-box; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; }
.lightbox figcaption { color: var(--stone); font-size: .95rem; text-align: center; }
.lightbox button { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 2.75rem; height: 2.75rem; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }

/* ---------- Search and district pages (search_properties2027.pl) ---------- */
.search-panel { margin: 0 0 2.5rem; }
.search-panel h2 { font-size: 1.4rem; color: var(--stone); }
.search-panel .name-search { grid-template-columns: 1fr auto; border-top: 1px solid rgba(236,238,233,.2); padding-top: 1rem; }
.search-panel input[type=text] { font: inherit; padding: .6rem .7rem; border-radius: .35rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.results-head { align-items: center; }
.results-head p { color: var(--ink-soft); margin-top: .35rem; }
.filter-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-links a { border: 1.5px solid var(--ink); border-radius: 2rem; padding: .35rem .9rem; text-decoration: none; color: var(--ink); font-size: .9rem; white-space: nowrap; }
.filter-links a:hover { background: var(--ink); color: var(--stone); }
.flat-available { font-size: .9rem; font-weight: 600; color: var(--ink); }
.widen { margin-top: 2rem; }
.widen ul { margin: .5rem 0 0; padding-left: 1.25rem; display: grid; gap: .35rem; }

/* ---------- Availability page (availability2027.pl) ---------- */
.page-intro .district { color: var(--ivy); font-weight: 600; }
.page-intro .cal-key { margin-top: .25rem; }
.cal-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); justify-items: start; }

/* ---------- Admin pages (cgi-bin/control) ----------
   Scoped to .admin so nothing here touches the public site. These rules give
   the older admin page markup (tables, forms, .button, <p class="clear">)
   a tidy look without rewriting each admin script. */
.admin { background: var(--paper); }
.admin-head { background: var(--ink); border-bottom: 0; }
.admin-head .brand img { height: 2.75rem; background: var(--paper); border-radius: .3rem; padding: .2rem .4rem; }
.admin-head .site-nav a { color: var(--stone); }
.admin-head .site-nav a:hover { color: var(--tram); }
.admin-badge { background: var(--tram); color: var(--ink); font-weight: 700; font-size: .8rem; border-radius: 2rem; padding: .2rem .7rem; margin-right: auto; }
.admin-head .brand { margin-right: 0; }
.admin-main { padding: 2rem 0 3rem; }
.admin-content { line-height: 1.55; }
.admin-content::after { content: ""; display: block; clear: both; }
.admin-content h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 1.5rem 0 1rem; }
.admin-content h2 { font-size: 1.5rem; margin: 1.5rem 0 .75rem; }
.admin-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.admin-content > h1:first-child, .admin-content > h2:first-child { margin-top: 0; }
.admin-content p { margin: 0 0 .75rem; }
.admin-content p a img, .admin-content a img[height] { vertical-align: middle; margin-right: .4rem; }
.admin-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.admin-content ul, .admin-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.admin-content img { max-width: 100%; display: inline-block; }
.admin-content .clear { clear: both; margin: 0; }
.admin-content .left { float: left; margin: 0 .75rem .5rem 0; }
.admin-content .right { float: right; margin: 0 0 .5rem .75rem; }
.admin-content table { border-collapse: collapse; margin: 0 0 1.25rem; max-width: 100%; display: block; overflow-x: auto; font-size: .95rem; }
.admin-content th, .admin-content td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.admin-content th { background: var(--stone); font-weight: 600; }
.admin-content tr:nth-child(even) td { background: #F7F8F5; }
.admin-content td p { margin: 0; }
.admin-content input[type=text], .admin-content input[type=email], .admin-content input[type=password],
.admin-content input[type=number], .admin-content input[type=date], .admin-content input:not([type]),
.admin-content select, .admin-content textarea, .admin-content .select {
  font: inherit; font-size: .95rem; padding: .45rem .6rem; border: 1px solid #A9B1AB; border-radius: .3rem; background: var(--paper); color: var(--ink); max-width: 100%;
}
.admin-content textarea { width: 100%; min-height: 8rem; }
.admin-content input[type=submit], .admin-content input[type=button], .admin-content button, .admin-content .button {
  font: inherit; font-weight: 600; font-size: .95rem; padding: .5rem 1.1rem; border-radius: 2rem; border: 2px solid var(--ink);
  background: var(--ink); color: var(--stone); cursor: pointer; display: inline-block; text-decoration: none;
}
.admin-content input[type=submit]:hover, .admin-content button:hover, .admin-content .button:hover { background: var(--danube); border-color: var(--danube); color: var(--paper); }
.admin-content :focus-visible { outline: 3px solid var(--tram); outline-offset: 2px; }
.admin-foot { background: var(--stone); border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: .9rem; color: var(--ink-soft); }
.admin-foot p { margin: .25rem 0; }