@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #fce0e3;
  --pink-footer: #fdccd5;
  --pink-soft: #ffd2e9;
  --red: #ff0000;
  --ink: #000000;
  --ink-muted: #1b1819;
  --white: #ffffff;
  --header-h: 105px;
  --content: 1016px;
  --header-content: 1024px;
  --btn-radius: 8px;
  --img-radius: 16px;
  --gap: 8px;
  --site-margin: 8px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ----- Header ----- */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--white);
  position: relative;
  z-index: 40;
}

.header-inner {
  width: 100%;
  max-width: var(--header-content);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: start;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0;
  white-space: nowrap;
}

.nav-desktop a:hover { opacity: 0.7; }
.nav-desktop a.is-active { font-weight: 500; }

.logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 57px;
  height: 57px;
}

.logo-link img {
  width: 57px;
  height: 57px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 11px;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.14px;
  text-transform: none;
  border: 0;
  border-radius: var(--btn-radius);
  padding: 0 16px;
  height: 40px;
  min-width: 64px;
  line-height: 1;
}

.btn-book:hover { filter: brightness(0.95); }

.btn-search,
.btn-menu,
.btn-close {
  background: none;
  border: 0;
  padding: 0;
  width: 24px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.btn-close { color: var(--ink); }

.btn-menu { color: var(--red); display: none; }

.btn-search svg,
.btn-menu svg,
.btn-close svg { display: block; }

/* Search panel */
.search-panel {
  display: none;
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: min(1024px, calc(100% - 48px));
  height: 57px;
  background: var(--white);
  z-index: 50;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.search-panel.is-open { display: flex; }

.search-panel input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  font-family: inherit;
  padding: 8px 4px;
  outline: none;
  background: transparent;
}

.search-results {
  display: none;
  position: absolute;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  width: min(1024px, calc(100% - 48px));
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 50;
  padding: 8px 0;
}

.search-results.is-open { display: block; }

.search-results a,
.search-results p {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
}

.search-results a:hover { background: var(--pink); }

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 60;
  flex-direction: column;
  padding: 20px 24px;
}

.mobile-nav.is-open { display: flex; }

.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-nav a.nav-link {
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid #f3f3f3;
}

.mobile-nav .btn-book { margin-top: 24px; align-self: flex-start; }

/* ----- Banner ----- */
.hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 20px 80px;
  background: var(--white);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.16px;
  text-transform: none;
  border: 0;
  border-radius: var(--btn-radius);
  padding: 0 24px;
  height: 48px;
  min-width: 258px;
  line-height: 1;
}

.btn-hero:hover { filter: brightness(0.97); }

/* ----- Gallery (home) ----- */
.gallery {
  max-width: var(--content);
  margin: 0 auto 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  border-radius: var(--img-radius);
  display: block;
}

/* ----- Policies carousel ----- */
.policies {
  max-width: 1220px;
  margin: 0 auto;
  padding: 90px 0 50px 220px;
  position: relative;
}

@media (max-width: 1440px) {
  .policies { padding-left: max(24px, calc((100vw - 1016px) / 2)); }
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  margin: 0 24px 18px 0;
}

.carousel-nav button {
  background: none;
  border: 0;
  padding: 4px;
  color: var(--ink);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav button:hover { opacity: 0.6; }

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-track figure {
  margin: 0;
  flex: 0 0 640px;
}

.carousel-track img {
  width: 640px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--img-radius);
}

/* ----- Footer ----- */
.site-footer {
  margin-top: auto;
  background: var(--pink-footer);
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px 28px;
  position: relative;
}

.footer-mail {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-mail:hover { opacity: 0.85; }

.footer-rule {
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.18);
  margin: 8px 0 36px;
}

.footer-title {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 12px;
}

.signup {
  display: flex;
  align-items: stretch;
  max-width: 476px;
  height: 48px;
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid #8a8a8a;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: transparent;
  padding: 0 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink-muted);
  outline: none;
}

.signup input[type="email"]::placeholder { color: #8a8a8a; }

.signup button {
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 0 8px 8px 0;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 400;
  height: 48px;
  min-width: 96px;
  white-space: nowrap;
}

.signup button:hover { filter: brightness(0.95); }

.signup-msg {
  margin: 12px 0 0;
  font-size: 14px;
  display: none;
}

.signup-msg.is-on { display: block; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 20px;
  gap: 16px;
}

.footer-note {
  font-size: 12px;
  color: #555;
  max-width: 420px;
  margin: 0;
  line-height: 1.45;
}

.copyright {
  font-size: 14px;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}

/* ----- Mobile ----- */
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .nav-desktop { display: none; }
  .btn-menu { display: inline-flex; }

  .header-inner {
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    max-width: none;
  }

  .logo-link, .logo-link img { width: 40px; height: 40px; }

  /* logo stays visually centered: absolute */
  .logo-link {
    position: absolute;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
  }

  .header-actions { margin-left: auto; }

  .hero { padding: 40px 20px 56px; }
  .btn-hero { width: 100%; min-width: 0; max-width: 350px; }

  .gallery {
    max-width: none;
    padding: 0 12px;
    margin-bottom: 8px;
  }

  .policies {
    padding: 24px 12px 32px;
    max-width: none;
  }

  .carousel-nav { margin: 0 4px 14px 0; }

  .carousel-track figure { flex-basis: 100%; }
  .carousel-track img {
    width: 100%;
    height: auto;
    aspect-ratio: 1366 / 768;
    object-fit: contain;
    background: var(--pink);
  }

  .footer-inner { padding: 48px 24px 32px; text-align: center; }

  .footer-mail {
    position: static;
    margin: 0 auto 20px;
    display: flex;
  }

  .footer-title { text-align: center; }
  .signup { max-width: none; margin: 0 auto; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 28px;
  }
  .footer-note { max-width: 320px; }
}

@media (max-width: 420px) {
  .signup button { padding: 0 16px; min-width: 88px; }
}
