/* Mykonos Apart Hotel — "Пісок і море" design. */
:root {
  --ivory: #f7f3ec;
  --sand: #efe8dc;
  --line: #e6dfd2;
  --line-2: #dcd3c3;
  --ink: #1e2a2b;
  --text: #3e4849;
  --muted: #5d6566;
  --sea: #0e5e63;
  --sea-dark: #0a4347;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 300 16px/1.6 var(--sans); }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--sea); }
a:hover { color: var(--sea-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--sea); font-weight: 500; }
.h2 { font: 400 clamp(36px, 4vw, 56px)/1.1 var(--serif); }
.h2-s { font: 400 clamp(32px, 3.4vw, 46px)/1.15 var(--serif); }
.link-line { align-self: flex-start; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.btn-line { display: inline-flex; align-items: center; min-height: 46px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; border: 1px solid currentColor; color: var(--ink); padding: 0 26px; background: none; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* hero + header */
.hero { position: relative; height: min(820px, 100svh); min-height: 560px; overflow: hidden; color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(14, 30, 32, 0.38); }
.top { position: relative; z-index: 3; }
.top .wrap { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.logo:hover { color: #fff; }
.logo b { font: 500 30px/1.1 var(--serif); letter-spacing: 0.32em; }
.logo small { font-size: 11px; letter-spacing: 0.38em; text-transform: uppercase; margin-top: 4px; }
.menu { display: flex; align-items: center; gap: 28px; font-size: 14px; letter-spacing: 0.08em; }
.menu a { color: #fff; text-decoration: none; }
.menu a:hover { color: #cfe5e3; }
.menu .menu-extra { display: none; }
.top-right { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.top-right a { color: #fff; text-decoration: none; white-space: nowrap; }
.lang { display: flex; gap: 8px; font-size: 12px; letter-spacing: 0.16em; }
.lang a { opacity: 0.7; }
.lang a[aria-current] { opacity: 1; border-bottom: 1px solid #fff; }
.btn-book { color: var(--ink) !important; background: #fff; padding: 12px 22px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 500; }
.btn-book:hover { background: var(--sand); }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.burger i { display: block; width: 24px; height: 1.5px; background: #fff; transition: transform 0.25s, opacity 0.25s; }
.menu-open .burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.hero-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: 150px; text-align: center; padding: 0 24px; }
.hero-text p { margin-bottom: 18px; font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase; }
.hero-text h1 { margin: 0 auto; max-width: 980px; font: 400 clamp(40px, 6vw, 84px)/1.04 var(--serif); }

/* booking bar */
.booking { position: relative; z-index: 4; max-width: 1120px; margin: -64px auto 0; padding: 0 24px; }
.booking .bar { background: #fff; box-shadow: 0 18px 40px rgba(30, 42, 43, 0.12); display: flex; flex-wrap: wrap; }
.booking label { flex: 1 1 200px; padding: 22px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.booking label:nth-child(3) { flex-basis: 160px; border-right: 0; }
.booking input, .booking select { border: 0; font: 300 17px/1.4 var(--sans); color: var(--ink); background: transparent; padding: 0; min-width: 0; width: 100%; }
.booking button { flex: 1 1 220px; min-height: 76px; border: 0; background: var(--sea); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.booking button:hover { background: var(--sea-dark); }

/* section menu */
.subnav { position: sticky; top: 0; z-index: 10; background: var(--ivory); margin-top: 56px; }
.subnav .wrap { display: flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--line-2); }
.subnav .name { font: 500 20px/1 var(--serif); white-space: nowrap; margin-right: 12px; }
.subnav .links { display: flex; gap: 36px; overflow-x: auto; scrollbar-width: none; }
.subnav .links::-webkit-scrollbar { display: none; }
.subnav a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; padding: 18px 0 16px; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); border-color: var(--ink); }

/* about */
.about { padding: 110px 24px 40px; text-align: center; }
.about p { max-width: 720px; margin: 24px auto 0; font-size: 18px; color: var(--text); }
.stories { padding: 40px 24px 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; }
.stories article { display: flex; flex-direction: column; gap: 22px; }
.stories img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stories h3 { font: 500 30px/1.2 var(--serif); }
.stories p { color: var(--text); }

/* rooms */
.rooms { background: var(--sand); padding: 110px 0; }
.rooms-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.rooms-head .eyebrow { margin-bottom: 12px; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.room { background: #fff; display: flex; flex-direction: column; }
.room .ph { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; }
.room .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s; }
.room .ph:hover img { transform: scale(1.04); }
.room .ph span { position: absolute; right: 14px; bottom: 14px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 10px; }
.room .tx { padding: 30px 30px 34px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.room h3 { font: 500 28px/1.2 var(--serif); }
.room .meta { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.room .bed { color: var(--text); font-size: 15px; }
.room .act { display: flex; gap: 24px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.room .act button, .room .act a { background: none; border: 0; padding: 0; min-height: 44px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
.room .act button { color: var(--ink); }
.room .act a { font-weight: 500; display: inline-flex; align-items: center; }

/* amenities */
.amen { padding: 110px 24px; }
.amen h2 { text-align: center; margin-bottom: 56px; }
.amen ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 40px 24px; text-align: center; font-size: 15px; }
.amen li { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.amen svg { width: 36px; height: 36px; fill: none; stroke: var(--sea); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* location */
.loc { background: var(--sea); color: #fff; }
.loc .split { display: flex; flex-wrap: wrap; }
.loc .split > img { flex: 1 1 520px; min-width: 0; width: 100%; min-height: 560px; object-fit: cover; }
.loc .tx { flex: 1 1 420px; min-width: 0; padding: 96px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.loc .eyebrow { color: #cfe5e3; }
.loc .lead { font-size: 17px; color: #e4f0ef; }
.loc address { font-style: normal; font-size: 17px; border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 22px; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.loc address small { font-size: 14px; color: #cfe5e3; }
.loc .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.loc .btn-line { color: #fff; }
.loc .btn-line:hover { background: #fff; color: var(--sea); }
.map { height: 440px; background: #dfe9e8; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.25); }

/* gallery */
.gallery { padding: 110px 24px; }
.gallery h2 { text-align: center; margin-bottom: 48px; }
/* Columns, so portrait and landscape photos both keep their proportions. */
.g-grid { columns: 4 240px; column-gap: 16px; }
.g-grid button { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; overflow: hidden; break-inside: avoid; }
.g-grid img { width: 100%; height: auto; transition: transform 1s; }
.g-grid button:hover img { transform: scale(1.04); }

/* footer */
.foot { background: var(--ink); color: #e9e4da; }
.foot .cols { padding-top: 88px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
.foot .col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot .label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: #b8b2a6; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #cfe5e3; }
.foot .logo b { color: #fff; }
.foot .bottom { padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: #b8b2a6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* dialogs */
dialog { border: 0; padding: 0; max-width: min(1040px, calc(100vw - 32px)); width: 100%; max-height: calc(100svh - 32px); background: #fff; color: var(--ink); }
dialog::backdrop { background: rgba(20, 28, 29, 0.72); }
.x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 46px; height: 46px; border: 0; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; }
.x svg, .nav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.rd { display: grid; grid-template-columns: 1.25fr 1fr; }
/* The room photos are 800×500 at best: show them at their own proportions so they are never enlarged. */
.rd .pics { background: var(--sand); display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.rd .frame { position: relative; }
.rd .frame img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 8px; }
.thumbs button { padding: 0; border: 0; background: none; opacity: 0.6; transition: opacity 0.2s; outline-offset: 2px; }
.thumbs button:hover, .thumbs button[aria-current] { opacity: 1; }
.thumbs button[aria-current] { outline: 2px solid var(--sea); }
.thumbs img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.ctl { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; background: var(--ink); color: #fff; }
.nav-btn { width: 46px; height: 46px; border: 0; background: none; color: inherit; display: grid; place-items: center; }
.ctl span { font-size: 12px; letter-spacing: 0.16em; min-width: 48px; text-align: center; }
.rd .tx { padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.rd h3 { font: 500 36px/1.1 var(--serif); }
.rd ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 15px; }
.rd ul li { padding-left: 18px; position: relative; }
.rd ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--sea); }
.rd .note { font-size: 14px; color: var(--muted); }
.rd .go { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn-solid { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; background: var(--sea); color: #fff !important; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.btn-solid:hover { background: var(--sea-dark); }
.viewer { background: #111; max-width: min(1200px, calc(100vw - 32px)); }
.viewer img { width: 100%; max-height: calc(100svh - 100px); object-fit: contain; }
.viewer .ctl { position: static; justify-content: center; background: #111; }

/* tablet and phone */
@media (max-width: 1020px) {
  .burger { display: flex; }
  .top-right .tel, .top-right .lang { display: none; }
  .menu { position: fixed; inset: 0; z-index: -1; background: var(--sea); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 96px 32px 40px; font: 400 34px/1.2 var(--serif); letter-spacing: 0; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
  .menu-open .menu { opacity: 1; visibility: visible; }
  .menu .menu-extra { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; font: 300 16px/1.5 var(--sans); }
  .menu .menu-extra .lang { font-size: 14px; margin-top: 8px; }
  .menu-open .top { position: fixed; inset: 0 0 auto; z-index: 50; }
  .rd { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { padding-top: 18px; gap: 10px; }
  .logo b { font-size: 24px; }
  .logo small { font-size: 9px; }
  .btn-book { padding: 10px 14px; font-size: 11px; }
  .hero { min-height: 520px; height: 88svh; }
  .hero-text { bottom: 96px; padding: 0 16px; }
  .hero-text p { font-size: 11px; letter-spacing: 0.3em; }
  .booking { margin-top: -48px; padding: 0 16px; }
  .booking label { flex-basis: 50%; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .booking label:nth-child(2) { border-right: 0; }
  .booking label:nth-child(3) { flex-basis: 100%; }
  .booking button { min-height: 58px; }
  .subnav { margin-top: 36px; }
  .subnav .name { display: none; }
  .subnav .links { gap: 26px; }
  .about { padding: 72px 16px 24px; }
  .stories { padding: 24px 16px 80px; }
  .rooms, .amen, .gallery { padding-top: 80px; padding-bottom: 80px; }
  .amen, .gallery { padding-left: 16px; padding-right: 16px; }
  .room .tx { padding: 24px 22px 26px; }
  .loc .split > img { min-height: 300px; }
  .loc .tx { padding: 64px 16px; }
  .map { height: 320px; }
  .g-grid { columns: 2; column-gap: 8px; }
  .g-grid button { margin-bottom: 8px; }
  .rd .tx { padding: 28px 20px; }
  .rd h3 { font-size: 30px; }
  .foot .cols { padding-top: 64px; }
}
