:root {
  --dark: #1e1e1e;
  --accent: #2f7a6d;
  --accent-dark: #245f55;
  --gold: #e8b04b;
  --text: #333;
  --muted: #6b6b6b;
  --light: #f6f4f2;
  --line: #e6e1dc;
  --wa: #25d366;
  --wa-soft: #63cf72;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; margin: 0 0 .5em; line-height: 1.2; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo i { font-size: 1.7rem; color: var(--gold); }
.logo span {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 1.3rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.logo small { font-size: .62rem; font-weight: 500; letter-spacing: .28em; color: #bdbdbd; margin-top: 4px; }

.nav { display: flex; gap: 38px; }
.nav a {
  color: #fff; text-decoration: none; font-size: 1.05rem; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 8px;
}

/* ---------- hero ---------- */
.hero {
  min-height: min(calc(100vh - 76px), 760px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 80px 20px;
  background:
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)),
    url("../images/sala-mese.jpg") center / cover no-repeat;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; margin-bottom: .3em; }
.hero__sub { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 300; margin: 0 0 1.6rem; }
.hero__rating { color: var(--gold); font-family: "Montserrat", sans-serif; font-weight: 600; margin: 0 0 1.6rem; letter-spacing: .03em; }
.hero__phone {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 300; color: #fff; text-decoration: none;
}
.hero__phone i { font-size: .8em; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; border: 2px solid var(--accent);
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section--light { background: var(--light); }

.title { text-align: center; margin-bottom: 56px; }
.title h2 {
  color: var(--accent); text-transform: uppercase; font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.9rem); letter-spacing: .01em; margin: 0;
}
.title h2::after {
  content: ""; display: block; width: 72px; height: 3px; background: var(--accent);
  margin: 22px auto 0;
}
.title p { color: var(--muted); margin: 20px auto 0; max-width: 620px; font-size: 1.08rem; }

/* about */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.about img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 14px 40px rgba(0, 0, 0, .12); }
.about .lead { font-size: 1.25rem; color: var(--dark); font-weight: 600; line-height: 1.55; }
.hosts { font-style: italic; color: var(--accent); font-weight: 600; }

/* features */
.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 56px 24px; text-align: center;
}
.features li { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.features i { font-size: 3rem; color: var(--dark); }
.features span { font-size: 1.12rem; line-height: 1.4; }

/* rooms */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.room {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08); transition: transform .25s, box-shadow .25s;
}
.room:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room__body { padding: 20px 22px 24px; }
.room h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: .4em; }
.room p { margin: 0; font-size: .95rem; color: var(--muted); }
.room__view { color: var(--accent) !important; font-weight: 600; margin-bottom: 6px !important; }
.room i { width: 18px; }
.center-note { text-align: center; margin: 44px 0 0; color: var(--muted); }
.center-note a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 12px;
}
.gallery a { overflow: hidden; border-radius: 8px; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s;
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a:hover::after { opacity: 1; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.reviews blockquote {
  margin: 0; background: var(--light); border-radius: var(--radius); padding: 32px 30px;
  display: flex; flex-direction: column;
}
.stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 3px; }
.reviews p { margin: 0 0 18px; flex: 1; font-style: italic; }
.reviews cite { font-style: normal; font-weight: 700; color: var(--dark); font-family: "Montserrat", sans-serif; }
.reviews cite span { font-weight: 400; color: var(--muted); font-family: "Open Sans", sans-serif; font-size: .9rem; }

/* booking */
.booking { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: start; }
.booking > * { min-width: 0; }
.form {
  background: #fff; border-radius: 16px; padding: 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .07);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--dark); font-size: .98rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--dark);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; width: 100%; min-height: 52px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a85; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .invalid { border-color: #c0392b; }
.form__error { grid-column: 1 / -1; margin: 0; color: #c0392b; font-weight: 600; font-size: .95rem; }
.form__error:empty { display: none; }
.btn-wa {
  grid-column: 1 / -1; margin-top: 8px;
  border: 0; cursor: pointer; font: inherit; font-size: 1.1rem; font-weight: 600;
  background: var(--wa-soft); color: #fff; border-radius: 999px; padding: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s;
}
.btn-wa i { font-size: 1.35rem; }
.btn-wa:hover { background: #4fc15f; }

.rules { background: var(--dark); color: #ddd; border-radius: 16px; padding: 34px 30px; }
.rules h3 { color: #fff; font-size: 1.3rem; margin-bottom: 1.2em; }
.rules ul { list-style: none; padding: 0; margin: 0 0 28px; }
.rules li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; line-height: 1.5; }
.rules li i { color: var(--gold); font-size: 1.1rem; width: 22px; margin-top: 3px; text-align: center; }
.rules strong { display: block; color: #fff; }
.rules__call {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font-size: 1.5rem; font-weight: 300;
}

/* location */
.location { display: grid; grid-template-columns: .9fr 1.3fr; gap: 40px; align-items: stretch; }
.location > * { min-width: 0; }
.distances { list-style: none; padding: 0; margin: 0; }
.distances li {
  display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.distances li i { color: var(--accent); width: 22px; text-align: center; }
.distances li span { margin-left: auto; color: var(--muted); font-weight: 600; }
.distances__link { border: 0 !important; padding-top: 24px !important; }
.distances__link a { color: var(--accent); font-weight: 700; text-decoration: none; }
.location__map iframe {
  width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); background: var(--line);
}

/* footer */
.foot { background: var(--dark); color: #cfcfcf; padding: 50px 0 0; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 40px; }
.foot__contact { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.foot__contact a, .foot__contact span { color: #fff; text-decoration: none; }
.foot__contact i { color: var(--gold); margin-right: 6px; }
.foot__contact a:hover { color: var(--gold); }
.foot__copy { border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; padding: 18px 20px 90px; font-size: .9rem; color: #8f8f8f; }

/* floating buttons */
.float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: flex; flex-direction: column; gap: 12px;
}
.float__btn {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: 1.45rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.float__btn:hover { transform: scale(1.07); }
.float__btn--wa { background: var(--wa); font-size: 1.8rem; }
.float__btn--tel { background: var(--accent); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 15, 15, .94);
  display: flex; align-items: center; justify-content: center; padding: 40px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 1.7rem;
  cursor: pointer; padding: 12px;
}
.lightbox__close { top: 12px; right: 16px; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1050px) {
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; gap: 0; padding: 8px 0 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 20px; }
  .nav a::after { display: none; }

  .about, .booking, .location { grid-template-columns: 1fr; gap: 36px; }
  .about img { aspect-ratio: 4 / 3; }
  .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery .wide { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .title { margin-bottom: 40px; }
  .logo span { font-size: 1.05rem; }
  .logo i { font-size: 1.4rem; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .features i { font-size: 2.4rem; }
  .features span { font-size: 1rem; }
  .rooms { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; gap: 16px 14px; }
  .field input, .field select { padding: 12px; }
  .rules { padding: 28px 22px; }
  .location__map iframe { min-height: 300px; }
  .lightbox { padding: 20px 10px; }
  .lightbox__nav { bottom: 10px; top: auto; }
}

/* ---------- câmpuri de dată (fix Safari iOS) ---------- */
.field--date { position: relative; }
.field input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; min-width: 0; max-width: 100%;
  text-align: left; line-height: 1.3;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }

@supports (-webkit-touch-callout: none) {
  .field--date::after {
    content: "\f133"; font-family: "Font Awesome 6 Free"; font-weight: 400;
    position: absolute; right: 16px; bottom: 15px; color: var(--dark); pointer-events: none;
  }
  .field--date:has(input:invalid)::before {
    content: "zz.ll.aaaa"; position: absolute; left: 14px; bottom: 14px;
    color: #8a8a85; pointer-events: none;
  }
}

@media (max-width: 640px) {
  .form > .field:nth-child(-n+2) { grid-column: 1 / -1; }
  .float { right: 14px; bottom: 14px; gap: 10px; }
  .float__btn { width: 50px; height: 50px; font-size: 1.25rem; }
  .float__btn--wa { font-size: 1.55rem; }
}
