/* The Leányfalu villa: an estate among old trees, so its page is forest green, cream and brass, with the
   C header and footer around it. Newsreader for the statements, Commissioner for the text, 6 px corners.
   The photos are 1000 px wide: no slot shows one wider than that, the hero keeps its photo in a frame. */
.birtok { --forest: #22332A; --forest-2: #2D4236; --cream: #FBF8F1; --linen: #EFE9DC; --brass: #B89C63; --leaf: #24322A; --moss: #57614F; background: var(--cream); color: var(--leaf); }
.b-rule { display: block; width: 64px; height: 1px; background: var(--brass); }
.birtok h1, .birtok h2 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.008em; }
.b-chapter__no { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 22px; line-height: 1; color: var(--moss); margin-bottom: 14px; }

/* ---------- hero ---------- */
.b-hero { background: radial-gradient(70% 90% at 78% 40%, var(--forest-2) 0%, var(--forest) 68%); color: var(--cream); overflow: hidden; }
.b-hero__grid { min-height: calc(100dvh - 76px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.b-hero__text { display: flex; flex-direction: column; gap: 26px; }
.b-hero__place { font-weight: 500; font-size: 16px; letter-spacing: .03em; color: var(--brass); }
.b-hero__title { font-size: clamp(40px, 4.9vw, 74px); line-height: 1.06; }
.b-hero__lead { max-width: 46ch; font-size: 19px; line-height: 1.7; color: #E4DED0; }
.b-hero__price { display: flex; align-items: baseline; gap: 14px; padding-top: 4px; }
.b-hero__price span { font-size: 15px; font-weight: 500; letter-spacing: .04em; color: #CFC8B8; }
.b-hero__price b { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.b-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.b-hero__photo { margin: 0; justify-self: end; width: min(100%, 640px); padding-right: 18px; }
.b-hero__key { position: relative; }
.b-hero__keyline { position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--brass); border-radius: var(--radius); }
.b-hero__frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--forest-2); }
.b-hero__frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* ---------- facts ---------- */
.b-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 72px; padding-bottom: 72px; }
.b-facts div { padding: 0 24px; border-left: 1px solid rgb(36 50 42 / .18); display: flex; flex-direction: column; gap: 10px; }
.b-facts div:first-child { padding-left: 0; border-left: 0; }
.b-facts b { font-family: var(--font-display); font-weight: 300; font-size: 46px; line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums; }
.b-facts span { font-weight: 500; font-size: 15px; line-height: 1.4; color: var(--moss); }

/* ---------- intro ---------- */
.b-intro { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 72px; align-items: end; padding-top: 48px; padding-bottom: 120px; }
.b-intro__lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.36; }
.b-intro p + p { font-size: 18px; line-height: 1.7; color: var(--moss); }

/* ---------- photos ---------- */
.b-photo { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.b-photo .g-open { display: block; padding: 0; border: 0; background: var(--linen); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.b-photo img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.b-photo:hover img { transform: scale(1.03); }
.b-photo figcaption { font-size: 14px; line-height: 1.45; color: var(--moss); }

/* ---------- ground floor: text, then the rooms in a row that scroll pans ---------- */
.b-chapter--pan { background: var(--linen); overflow: hidden; }
.b-pan__pin { min-height: calc(100dvh - 76px); display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 72px 0; }
.b-chapter__head { width: 100%; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 72px; align-items: end; }
.b-chapter__head h2, .b-wellness h2, .b-levels h2, .b-garden h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; }
.b-chapter__text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; font-size: 17px; line-height: 1.7; }
.b-pan__track { display: flex; align-items: flex-start; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.b-pan__track .b-photo { flex: none; }
.b-pan__track .b-photo img { height: min(46dvh, 440px); width: auto; }
.b-pan__track .b-photo figcaption { width: 0; min-width: 100%; }

/* ---------- wellness ---------- */
.b-wellness { background: var(--forest); color: var(--cream); }
.b-wellness__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; padding-top: 120px; padding-bottom: 128px; align-items: start; }
.b-wellness__text { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; align-self: center; }
.b-wellness__text p:last-child { font-size: 18px; line-height: 1.7; color: #E4DED0; }
.b-wellness .b-chapter__no { color: var(--brass); margin-bottom: 0; }
.b-wellness .b-photo figcaption { color: #CFC8B8; }
.b-wellness .b-photo .g-open { background: var(--forest-2); }
.b-wellness .b-photo--wide { grid-column: 5 / span 8; }
.b-wellness .b-photo:not(.b-photo--wide) { grid-column: span 4; }

/* ---------- upper floor and basement ---------- */
.b-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; padding-top: 120px; padding-bottom: 120px; }
.b-levels article { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid rgb(36 50 42 / .2); }
.b-levels p:last-child { font-size: 18px; line-height: 1.7; color: var(--moss); max-width: 52ch; }
.b-levels .b-chapter__no { margin-bottom: 0; }

/* ---------- the garden ---------- */
.b-garden { background: var(--linen); }
.b-garden__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; padding-top: 120px; padding-bottom: 136px; align-items: start; }
.b-garden__text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 18px; padding-right: 24px; }
.b-garden__text p:not(.b-chapter__no) { font-size: 18px; line-height: 1.7; }
.b-garden .b-chapter__no { margin-bottom: 0; }
.b-garden .b-photo--a { grid-column: 6 / span 7; }
.b-garden .b-photo--b { grid-column: 2 / span 6; margin-top: -40px; }
.b-garden .b-photo--c { grid-column: 8 / span 5; margin-top: 56px; }

/* ---------- closing ---------- */
.b-closing { background: var(--forest); color: var(--cream); }
.b-closing .wrap { display: flex; flex-direction: column; gap: 30px; padding-top: 128px; padding-bottom: 128px; }
.b-closing__text { max-width: 30em; font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.4; }
.b-closing__sign { font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--brass); }

@media (max-width: 1080px) {
  .b-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 52px; min-height: 0; padding-top: 56px; padding-bottom: 80px; }
  .b-hero__photo { justify-self: start; width: min(100%, 640px); }
  .b-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .b-facts div:nth-child(4) { padding-left: 0; border-left: 0; }
  .b-intro, .b-chapter__head, .b-levels { grid-template-columns: minmax(0, 1fr); }
  .b-chapter__text { grid-template-columns: minmax(0, 1fr); }
  .b-wellness__text, .b-garden__text { grid-column: 1 / -1; padding-right: 0; }
  .b-wellness .b-photo--wide, .b-garden .b-photo--a { grid-column: 1 / -1; }
  .b-wellness .b-photo:not(.b-photo--wide) { grid-column: span 6; }
  .b-garden .b-photo--b, .b-garden .b-photo--c { grid-column: span 6; margin-top: 0; }
}
@media (max-width: 760px) {
  .b-hero__grid { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .b-hero__title { font-size: clamp(34px, 9.4vw, 44px); }
  .b-hero__lead { font-size: 17px; }
  .b-hero__ctas .btn { width: 100%; }
  .b-hero__photo { padding-right: 14px; }
  .b-hero__keyline { inset: 14px -14px -14px 14px; }
  .b-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 40px; padding-bottom: 40px; gap: 24px 16px; }
  .b-facts div { padding: 16px 0 0; border-left: 0; border-top: 1px solid rgb(36 50 42 / .18); }
  .b-facts div:last-child { grid-column: 1 / -1; }
  .b-facts b { font-size: 32px; }
  .b-intro { padding-top: 24px; padding-bottom: 64px; }
  .b-pan__pin { min-height: 0; padding: 56px 0; gap: 28px; }
  .b-pan__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 0 16px 8px; }
  .b-pan__track .b-photo { scroll-snap-align: start; }
  .b-pan__track .b-photo img { height: 230px; }
  .b-wellness__grid, .b-garden__grid { padding-top: 64px; padding-bottom: 72px; gap: 20px 12px; }
  .b-wellness .b-photo:not(.b-photo--wide), .b-garden .b-photo--b, .b-garden .b-photo--c { grid-column: 1 / -1; }
  .b-levels { padding-top: 64px; padding-bottom: 64px; gap: 36px; }
  .b-closing .wrap { padding-top: 72px; padding-bottom: 72px; }
}
