/* ==========================================================================
   Vikran Fishing, booking page
   Palette and header/footer look measured from the live vikranfishing.no
   archive (site/css/commonStyles.css, header.css, footer.css, typography.css):
   text #373939, accent blue #267aba, white, footer grey #A7A7A7 on #373939.
   ========================================================================== */

:root {
  --text: #373939;
  --blue: #267aba;
  --blue-dark: #1c5c8c;
  --blue-tint: #eaf3fa;
  --white: #ffffff;
  --footer-bg: #373939;
  --footer-grey: #a7a7a7;
  --border: #e1e6ea;
  --error: #b3261e;

  --font-head: 'Exo 2', Verdana, Geneva, sans-serif;
  --font-body: Verdana, Geneva, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .6em;
}

.section-title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  text-align: center;
  margin-bottom: 1.4rem;
}

.section-title--onlight { color: var(--white); }

.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section--tint { background: var(--blue-tint); }

/* ---------- header ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  min-width: 0;
}

.header__logo img { height: 28px; width: auto; flex: none; }

.header__tagline {
  font-family: var(--font-head);
  font-size: .82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: flex;
  gap: .4rem;
}

.lang-switch a {
  display: inline-block;
  padding: .25rem .55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.lang-switch a.is-active,
.lang-switch a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.header__back {
  font-size: .85rem;
  text-decoration: none;
  color: var(--blue);
  white-space: nowrap;
}
.header__back:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 76, 106, .55), rgba(31, 44, 55, .72));
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(3.5rem, 10vw, 6rem);
  padding-bottom: clamp(3.5rem, 10vw, 6rem);
  text-align: center;
}

.hero__title {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin: 0;
  max-width: 820px;
  margin-inline: auto;
}

/* ---------- apartments ---------- */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .apartments-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .apartments-grid { grid-template-columns: 1fr; }
}

.apartment-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.apartment-card img { aspect-ratio: 900 / 510; object-fit: cover; }

.apartment-card__body { padding: 1rem 1.1rem 1.2rem; }

.apartment-card__body h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: var(--blue-dark);
}

.apartment-card__body p {
  font-size: .88rem;
  line-height: 1.5;
  margin: 0;
}

.price-block {
  text-align: center;
  padding: 1.4rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-block__line {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 .4rem;
}

.price-block__note {
  font-size: .82rem;
  color: #6b6d6d;
  margin: 0;
}

/* ---------- boats and extras ---------- */
.boats-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 800px) {
  .boats-layout { grid-template-columns: 1fr; }
  .boats-layout__media { order: -1; }
}

.boats-layout__media img {
  border-radius: var(--radius);
  aspect-ratio: 900 / 612;
  object-fit: cover;
}

.boats-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  border-top: 1px solid var(--border);
}

.boats-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}

.boats-list li span:first-child { color: var(--text); }
.boats-list li span:last-child { color: var(--blue-dark); font-weight: 700; white-space: nowrap; }

.boats-sentence {
  font-size: .9rem;
  color: #565858;
  margin: 0;
}

/* ---------- booking ---------- */
.season-note {
  text-align: center;
  font-size: .9rem;
  color: #565858;
  margin: 0 0 1.6rem;
}

.stay-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: center;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 160px;
}

.field--guests { min-width: 100px; }

.field label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field select {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .55rem .6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--white);
}

.btn {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: 6px;
  padding: .65rem 1.4rem;
  cursor: pointer;
}

.btn:hover { background: var(--blue-dark); }

.open-calendar-wrap {
  text-align: center;
  margin: 0 0 .8rem;
}

.form-msg {
  text-align: center;
  min-height: 1.2em;
  color: var(--error);
  font-size: .88rem;
  margin: 0 0 1rem;
}

.winter-notice {
  background: var(--blue-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  text-align: center;
  font-size: .92rem;
  margin: 0 0 1.5rem;
}

.iframe-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f7f9fb;
}

.iframe-wrap.is-active {
  min-height: 900px;
  border: 1px solid var(--border);
}

.iframe-wrap iframe {
  width: 100%;
  height: 900px;
  border: 0;
  display: block;
}

.fallback-link-wrap {
  text-align: center;
  font-size: .85rem;
  margin-top: .8rem;
}

/* ---------- contacts ---------- */
.contacts {
  position: relative;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.contacts__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.contacts::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(38, 57, 68, .72);
  z-index: 1;
}

.contacts .wrap { position: relative; z-index: 2; }

.contacts__list {
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contacts__list a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.contacts__list a:hover { text-decoration: underline; }

.contacts__address {
  margin: 0;
  color: #e6e9eb;
  font-size: .9rem;
}

/* ---------- footer ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-grey);
  padding: 1.4rem 0;
}

.footer p { margin: 0; font-size: .85rem; text-align: center; }
.footer a { color: var(--footer-grey); }
.footer a:hover { color: var(--white); }
