:root {
  --background: #ffffff;
  --surface: #ffffff;
  --black: #0b0b0b;
  --blue: #334a9f;
  --blue-dark: #283c85;
  --green: #1f9d55;
  --text: #0b0b0b;
  --muted: #5d6470;
  --border: rgba(11, 11, 11, 0.13);
  --soft-background: #f7f7f5;
  --shadow: 0 14px 35px rgba(11, 11, 11, 0.08);
  --radius-large: 22px;
  --radius-medium: 14px;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-weight: 400;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.header-container {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  max-width: 1720px;
  margin: 0 auto;
  padding: 20px 5%;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.partnership {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 14px;
}

.partnership strong {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  letter-spacing: 0.04em;
}

/* Main layout */

.page-container {
  max-width: 1500px;
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 45px 5% 80px;
}

.booking-step {
  animation: fade-in 0.3s ease;
}

.booking-step:not(.active) {
  display: none;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Progress */

.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 65px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #98a2b3;
  font-size: 13px;
}

.progress-step.active {
  color: var(--text);
  font-weight: 700;
}

.progress-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: #98a2b3;
  font-size: 12px;
}

.progress-step.active .progress-number {
  border-color: var(--black);
  background: var(--black);
  color: white;
}

.progress-step.completed .progress-number {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.progress-line {
  width: 75px;
  height: 1px;
  margin: 0 12px;
  background: #d0d5dd;
}

/* Introduction */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: end;
  gap: 70px;
}

.intro h1 {
  max-width: 950px;
  margin-bottom: 0;
  font-size: clamp(54px, 7vw, 110px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.intro-description {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}

/* Filters */

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 4px;
  margin-top: 55px;
  padding: 8px;
  border-radius: var(--radius-medium);
  background: var(--blue);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 10px;
  outline: none;
  background: white;
  color: var(--text);
}

.filter-panel input {
  padding: 0 20px;
}

.filter-panel select {
  padding: 0 16px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 74, 159, 0.2);
}

/* Results */

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
}

.results-heading h2 {
  margin-bottom: 0;
  font-size: 32px;
}

.results-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

/* Location cards */

.location-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(11, 11, 11, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.location-image {
  position: relative;
  display: flex;
  min-height: 225px;
  align-items: flex-end;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.23),
      transparent 35%
    ),
    linear-gradient(135deg, #121212, #343434);
  color: white;
}

.location-image.no-image {
  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.35),
      transparent 35%
    ),
    linear-gradient(135deg, #dfe7ff, #b9c9ff 48%, #a8baf4);
}

.location-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.location-image.no-image img {
  display: none;
}

.location-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.86),
    rgba(0, 0, 0, 0.03)
  );
}

.location-image.no-image::after {
  background: linear-gradient(
    to top,
    rgba(16, 27, 70, 0.82),
    rgba(16, 27, 70, 0.18)
  );
}

.location-image-content {
  position: relative;
  z-index: 2;
}

.location-region {
  display: inline-block;
  margin-bottom: 50px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 11px;
}

.location-image h3 {
  margin-bottom: 5px;
  font-size: 29px;
}

.location-image p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.location-content {
  padding: 24px;
}

.location-description {
  min-height: 48px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.location-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.location-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft-background);
  color: #475467;
  font-size: 11px;
}

/* Buttons */

.primary-button,
.secondary-button {
  min-height: 47px;
  padding: 11px 23px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.primary-button {
  border: 0;
  background: var(--blue);
  color: white;
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.secondary-button {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
}

.secondary-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.full-button {
  width: 100%;
}

.back-button {
  margin-bottom: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.back-button:hover {
  color: var(--blue);
}

/* Empty state */

.empty-message {
  margin-top: 22px;
  padding: 60px 20px;
  border: 1px dashed #b9c0cc;
  border-radius: var(--radius-medium);
  text-align: center;
}

.empty-message h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.empty-message p {
  color: var(--muted);
}

/* Details form */

.details-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.selected-summary,
.form-panel,
.review-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.selected-summary {
  position: sticky;
  top: 135px;
  overflow: hidden;
}

.summary-image {
  position: relative;
  min-height: 195px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 35%
    ),
    linear-gradient(135deg, #111111, #3a3a3a);
  color: white;
}

.summary-image.has-image {
  background: transparent;
}

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

.summary-image.has-image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.08)
  );
}

.summary-image .location-region,
.summary-image h2 {
  position: relative;
  z-index: 2;
}

.summary-image h2 {
  margin-top: 75px;
  margin-bottom: 0;
  font-size: 30px;
}

.summary-content {
  padding: 24px;
}

.summary-content h3 {
  font-size: 25px;
}

.summary-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.summary-address {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.form-panel {
  padding: 38px;
}

.form-panel h1,
.review-panel > h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 5vw, 65px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
  margin-bottom: 29px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
}

.form-group label span {
  color: var(--muted);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  outline: none;
  background: white;
  color: var(--text);
}

.form-group input,
.form-group select {
  height: 49px;
  padding: 0 13px;
}

.form-group textarea {
  min-height: 125px;
  padding: 13px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 74, 159, 0.14);
}

/* Review */

.review-panel {
  max-width: 950px;
  margin: 0 auto;
  padding: 42px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 36px;
}

.review-grid h2 {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.review-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.07);
  font-size: 14px;
}

.review-row span:first-child {
  color: var(--muted);
}

.review-row span:last-child {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.next-step-notice {
  margin: 32px 0 23px;
  padding: 21px;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: var(--soft-background);
  color: var(--muted);
  font-size: 14px;
}

.next-step-notice strong {
  color: var(--text);
}

.next-step-notice p {
  margin: 5px 0 0;
}

/* Success page */

.success-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.success-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 70px 20px;
}

.success-card {
  width: 100%;
  max-width: 700px;
  padding: 55px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 29px;
  place-items: center;
  border-radius: 50%;
  background: rgba(51, 74, 159, 0.11);
  color: var(--blue);
  font-size: 38px;
  font-weight: 700;
}

.success-card h1 {
  margin-bottom: 21px;
  font-size: clamp(44px, 6vw, 65px);
  line-height: 1.05;
}

.success-message {
  max-width: 550px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.success-notice {
  margin: 31px 0;
  padding: 25px;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-medium);
  background: var(--soft-background);
  text-align: left;
}

.success-notice h2 {
  margin-bottom: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.success-notice ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.success-notice li {
  padding: 5px 0;
}

.success-button {
  display: inline-block;
  color: white;
  text-decoration: none;
}

/* Footer */

.site-footer {
  padding: 29px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.site-footer p {
  margin-bottom: 0;
}

/* Responsive */

@media (max-width: 1050px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .intro-description {
    max-width: 650px;
  }

  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-layout {
    grid-template-columns: 1fr;
  }

  .selected-summary {
    position: static;
  }
}

@media (max-width: 700px) {
  .header-container {
    min-height: 88px;
    padding: 16px 18px;
  }

  .brand-logo {
    width: 135px;
  }

  .partnership span {
    display: none;
  }

  .page-container {
    padding: 30px 18px 60px;
  }

  .progress {
    margin-bottom: 45px;
  }

  .progress-step > span:last-child {
    display: none;
  }

  .progress-line {
    width: 38px;
  }

  .intro h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  .filter-panel,
  .location-grid,
  .form-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: auto;
  }

  .location-image {
    min-height: 205px;
  }

  .form-panel,
  .review-panel {
    padding: 27px 20px;
  }

  .review-row {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .success-card {
    padding: 40px 22px;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

