@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap");

:root {
  --cream: #f5f0e6;
  --paper: #fbf8f1;
  --ink: #263027;
  --moss: #52634c;
  --terracotta: #a65f3d;
  --line: rgba(38, 48, 39, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Lato", Arial, sans-serif; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.nav-shell { position: fixed; inset: 0 0 auto; z-index: 30; background: rgba(251, 248, 241, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 1.05rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: 18px; align-items: center; font-size: .86rem; }
.lang { height: 36px; display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { display: grid; place-items: center; padding: 0 9px; border-radius: 999px; font-size: .72rem; }
.lang a:hover, .lang a:focus-visible, .lang a.active { color: #fff; background: var(--moss); }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 13px 21px; border: 1px solid var(--moss); background: var(--moss); color: #fff; font-weight: 700; font-size: .86rem; cursor: pointer; }
.button.ghost { background: transparent; color: var(--moss); }
.button.nav-contact { min-width: 96px; height: 36px; padding: 0 15px; border-color: var(--line); background: transparent; color: var(--ink); font-size: .78rem; transition: .2s ease; }
.button.nav-contact:hover, .button.nav-contact:focus-visible { background: var(--moss); border-color: var(--moss); color: #fff; }

.hero { min-height: 760px; padding: 154px 0 82px; display: grid; align-items: center; position: relative; overflow: hidden; background: #f1f0e8; }
.hero-left-photo, .hero-right-photo { position: absolute; inset: 0 auto 0 0; width: 54%; z-index: 0; background-size: cover; background-position: center; }
.hero-right-photo { inset: 0 0 0 auto; width: 46%; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -90px; bottom: -160px; border: 1px solid rgba(38, 48, 39, .15); border-radius: 48% 52% 58% 42%; transform: rotate(-14deg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.hero-intro { transform: translateY(-56px); }
.hero h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); font-weight: 300; line-height: .94; margin: 0 0 24px; letter-spacing: -.045em; text-align: center; text-transform: none; }
.hero-copy { max-width: 720px; font-size: 1.35rem; line-height: 1.65; text-align: center; transform: translateY(36px); }
.hero-card { min-height: 480px; border-radius: 180px 180px 24px 24px; background: rgba(255, 255, 255, .3); background-size: cover; background-position: center; border: 1px solid rgba(38, 48, 39, .18); box-shadow: 0 25px 80px rgba(30, 39, 30, .12); padding: 48px 48px 24px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; position: relative; transform: translateX(68px); }
.hero-card strong { font-size: 1.35rem; font-weight: 400; line-height: 1.65; position: absolute; top: 57%; left: 48px; right: 48px; color: #fff; text-shadow: 0 2px 12px rgba(20, 28, 21, .55); }
.hero-card p { line-height: 1.6; color: #fff; margin-bottom: 0; text-shadow: 0 2px 10px rgba(20, 28, 21, .55); }

.section { padding: 106px 0; }
.section.alt { background: var(--cream); }
#rooms { border-top: 1px solid rgba(255, 255, 255, .34); padding-top: 48px; background: var(--moss); color: #fff; }
#rooms .lead { color: rgba(255, 255, 255, .78); }
#life { padding-top: 48px; background: var(--paper); }
#around { border-top: 1px solid var(--line); padding-top: 48px; }
#contact { border-top: 1px solid var(--line); padding-top: 48px; }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 45px; }
.section h2, .contact h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 300; line-height: 1; margin: 0; letter-spacing: -.035em; }
.lead { max-width: 620px; line-height: 1.75; color: #536055; }

.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.room-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.room-gallery { height: 310px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 3px; background: #fff; }
.room-image { min-height: 0; background: linear-gradient(145deg, #aab09e, #687460); background-size: cover; background-position: center; display: flex; align-items: end; padding: 12px; color: #fff; }
.photo-zoom { width: 100%; margin: 0; appearance: none; border: 0; border-radius: 0; font: inherit; cursor: zoom-in; position: relative; transition: filter .2s ease; }
.photo-zoom:hover { filter: brightness(1.08); }
.photo-zoom:focus-visible { outline: 3px solid var(--terracotta); outline-offset: -4px; }
.room-image-1 { grid-row: 1 / 4; padding: 24px; }
.room-image[data-tone="warm"] { background-color: #7c6551; }
.room-image[data-tone="clay"] { background-color: #675b4c; }
.room-image[data-tone="olive"] { background-color: #455346; }
.room-image span { font-size: .8rem; font-style: italic; opacity: .85; }
.room-body { padding: 28px; }
.room-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.room-title h3 { font-size: 2rem; font-weight: 400; margin: 0; }
.room-title b { color: var(--terracotta); }
.room-body p { line-height: 1.65; color: #59645a; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: .72rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
#life .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.feature-gallery { height: 180px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: -18px -18px 24px; }
#life .feature-gallery { height: 280px; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); }
#life .feature-photo:first-child { grid-row: 1 / 3; }
.feature-photo { background: linear-gradient(145deg, #98a28f, #65715f); background-size: cover; background-position: center; display: flex; align-items: end; padding: 12px; color: #fff; }
.feature-photo:nth-child(2) { background-color: #8e7b68; }
.feature-photo:nth-child(3) { background-color: #6e7e72; }
.feature-photo span { font-size: .75rem; opacity: .85; }
.feature .num { color: var(--terracotta); font-size: 1.1rem; font-style: italic; }
.feature h3 { font-size: 1.5rem; font-weight: 400; margin: 16px 0 12px; }
.feature p { line-height: 1.65; color: #5b665d; margin: 0; }
.inline-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--terracotta); text-underline-offset: 3px; }
.inline-link:hover { color: var(--terracotta); }

.contact { background: var(--moss); color: #fff; border-radius: 28px; padding: 60px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px 50px; align-items: center; }
.contact p { color: rgba(255, 255, 255, .76); line-height: 1.7; }
.contact-map { min-width: 0; }
.contact-map iframe { display: block; width: 100%; min-height: 285px; border: 0; border-radius: 20px; filter: saturate(.78); }
.contact-map > a { display: inline-block; margin-top: 12px; padding-bottom: 5px; border-bottom: 1px solid rgba(255, 255, 255, .45); font-size: .82rem; }
.contact-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-content: center; }
.contact-list a { border-bottom: 1px solid rgba(255, 255, 255, .28); padding: 13px 0; }
.footer { padding: 42px 0; border-top: 1px solid var(--line); font-size: .78rem; color: #657067; }
.footer-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

body.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; gap: 18px; padding: 34px; background: rgba(18, 22, 18, .94); }
.lightbox figure { width: 100%; max-width: 1400px; height: calc(100vh - 68px); margin: 0; display: grid; place-items: center; justify-self: center; position: relative; }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 18px 70px rgba(0, 0, 0, .42); }
.lightbox figcaption { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .48); color: #fff; font-size: .78rem; white-space: nowrap; }
.lightbox button { appearance: none; border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.lightbox-arrow { width: 56px; height: 56px; font-size: 2.2rem; line-height: 1; }
.lightbox-close { position: absolute; top: 22px; right: 22px; z-index: 2; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }

.admin-page { min-height: 100vh; background: var(--cream); padding: 50px 0; }
.admin-shell { width: min(960px, calc(100% - 32px)); margin: auto; }
.admin-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin-top: 20px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .75rem; font-weight: 700; color: #667068; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: #fbfaf6; }
.field textarea { min-height: 92px; resize: vertical; }
.field-help { color: #727c74; font-size: .72rem; line-height: 1.45; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-photo-slot { display: grid; gap: 8px; }
.admin-photo { width: 100%; height: 160px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.admin-photo-empty { height: 120px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 14px; color: #6a756c; background: #f6f3eb; }
.admin-actions { position: sticky; bottom: 12px; display: flex; gap: 12px; margin-top: 22px; align-items: center; flex-wrap: wrap; padding: 14px; border-radius: 18px; background: rgba(251, 248, 241, .95); box-shadow: 0 10px 30px rgba(38, 48, 39, .12); }
.notice { padding: 13px 16px; border-radius: 12px; background: #e9efe6; color: #40513f; font-size: .84rem; }
.notice.error { background: #f8e7e2; color: #7b3d2c; }
.error-text { color: #9a3f2b; font-weight: 700; }
.admin-actions button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 850px) {
  .nav-links > a:not(.button) { display: none; }
  .hero-grid, .contact { grid-template-columns: 1fr; }
  .contact-list { grid-column: auto; grid-template-columns: 1fr; gap: 8px; }
  .hero-left-photo { width: 100%; height: 56%; bottom: auto; }
  .hero-right-photo { width: 100%; height: 44%; top: auto; }
  .hero-intro, .hero-card { transform: none; }
  .hero-card { min-height: 370px; border-radius: 110px 110px 20px 20px; }
  .room-grid, .feature-grid, #life .feature-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 26px, 1160px); }
  .nav { min-height: 68px; }
  .brand { font-size: .82rem; letter-spacing: .08em; }
  .nav-links { gap: 8px; }
  .nav-links .button { display: none; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 3.45rem; }
  .hero-copy { font-size: 1.05rem; }
  .hero-card, .contact { padding: 30px; }
  .section { padding: 76px 0; }
  #life .feature-gallery { height: 240px; }
  .admin-grid, .admin-photo-grid { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 6px; padding: 18px 8px; }
  .lightbox figure { height: calc(100vh - 36px); }
  .lightbox-arrow { width: 42px; height: 42px; font-size: 1.8rem; }
  .lightbox-close { top: 12px; right: 12px; }
}
