* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --bg: #fffaf5;
  --surface: #fff;
  --primary: #e84f5b;
  --primary-dark: #ca3845;
  --text: #24232a;
  --muted: #72717b;
  --border: #eee8e2;
  --shadow: 0 18px 50px rgba(47, 32, 29, 0.08);
}

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

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

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

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(232, 79, 91, 0.5);
  outline-offset: 3px;
}

.page-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), #fb9464);
  box-shadow: 0 8px 22px rgba(232, 79, 91, 0.22);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-name {
  font-size: 1.03rem;
  font-weight: 700;
}

.brand-wrap small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 30px);
}

.nav-links a {
  color: #55545c;
  font-size: 0.91rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 700;
}

.nav-btn,
.primary-btn,
.success-btn,
.search-btn,
.room-book-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(232, 79, 91, 0.17);
  color: #fff;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nav-btn {
  padding: 0 18px;
  font-size: 0.88rem;
}

.language-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease;
}

.language-toggle:hover {
  border-color: var(--primary);
  background: #fff3ef;
}

.language-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.nav-btn:hover,
.primary-btn:hover,
.success-btn:hover,
.search-btn:hover,
.room-book-btn:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
  box-shadow: 0 11px 22px rgba(232, 79, 91, 0.23);
}

main {
  max-width: 1160px;
  margin: 0 auto;
}

.role-choice-section {
  padding: 34px 0 0;
}

.role-page-heading {
  margin: 38px 0 26px;
}

.role-page-heading h1 {
  margin-top: 7px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.role-page-heading > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-home-link {
  display: inline-flex;
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 600;
}

.page-home-link:hover {
  text-decoration: underline;
}

.role-choice-heading {
  margin-bottom: 18px;
}

.role-choice-heading h2 {
  margin-top: 10px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.role-choice-heading > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.role-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.role-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(47, 32, 29, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.renter-role {
  border-top: 3px solid var(--primary);
}

.owner-role {
  border-top: 3px solid #27845c;
}

.role-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 14px;
  background: #fff0eb;
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 600;
}

.owner-role .role-icon {
  background: #edf8f1;
  color: #27845c;
}

.role-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.role-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.role-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 600;
}

.owner-role .role-link {
  color: #216b42;
}

.role-link:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(30px, 6vw, 76px);
  padding: clamp(38px, 7vw, 78px) 0 28px;
}

.hero-copy h1 {
  max-width: 650px;
  margin-top: 18px;
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.hero-copy > p {
  max-width: 560px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff0eb;
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.accent {
  background: #fff0eb;
}

.search-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 4px;
  margin-top: 27px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-bar > div {
  min-width: 0;
  padding: 7px 12px;
}

.search-bar > div + div {
  border-left: 1px solid var(--border);
}

.search-bar label {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
}

.search-bar input,
.search-bar select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
}

.search-bar input:focus,
.search-bar select:focus {
  outline: 0;
}

.search-btn {
  min-height: 46px;
  gap: 7px;
  padding: 0 15px;
  white-space: nowrap;
  font-size: 0.82rem;
}

.search-btn span {
  font-size: 1.4rem;
  line-height: 1;
}

.rating-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  margin-top: 22px;
}

.rating-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
}

.rating-row strong {
  font-size: 0.98rem;
}

.rating-row span {
  color: var(--muted);
  font-size: 0.71rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.visual-card {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: 430px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 27px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  color: white;
}

.hero-image,
.hero-image-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-image-shade {
  background: linear-gradient(180deg, rgba(16, 17, 19, 0.03) 25%, rgba(16, 17, 19, 0.74) 100%);
}

.feature-card-content {
  position: relative;
}

.pill {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.19);
  font-size: 0.73rem;
  backdrop-filter: blur(8px);
}

.visual-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
}

.visual-card p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 15px;
}

.price-row strong {
  font-size: 1.45rem;
}

.price-row span {
  font-size: 0.85rem;
}

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

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.feature-box > span {
  font-size: 1.35rem;
}

.feature-box h4 {
  font-size: 0.95rem;
}

.feature-box p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.6;
}

.rooms-section {
  margin-top: 64px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.results-message {
  min-height: 1px;
  margin: -9px 0 14px;
  color: var(--muted);
  font-size: 0.87rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}

.room-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(47, 32, 29, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.room-visual {
  height: 205px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.room-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bathroom-photo {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.bathroom-photo img {
  width: 82px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
}

.upload-preview {
  display: block;
  width: min(100%, 280px);
  max-height: 170px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  object-fit: cover;
}

.form-group .field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.visual-one {
  background-image: url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=900&q=85');
}

.visual-two {
  background-image: url('https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=900&q=85');
}

.visual-three {
  background-image: url('https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=900&q=85');
}

.room-body {
  padding: 18px;
}

.room-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.room-top h3 {
  font-size: 1.04rem;
  font-weight: 600;
}

.room-top > span {
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.room-top small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
}

.room-body p {
  min-height: 48px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.room-location {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdfb;
  font-size: 0.78rem;
}

.room-location strong {
  color: var(--text);
  font-size: 0.8rem;
}

.room-location > span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.room-location-link {
  width: fit-content;
  margin-top: 3px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 600;
}

.room-location-link:hover {
  text-decoration: underline;
}

.room-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  list-style: none;
}

.room-body li {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff3ef;
  color: #a64642;
  font-size: 0.71rem;
}

.room-book-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  box-shadow: none;
  font-size: 0.84rem;
}

.booking-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 20px;
  margin-top: 60px;
}

.host-section {
  margin-top: 54px;
}

.host-panel .section-head {
  margin-bottom: 18px;
}

.host-panel .booking-intro {
  margin-top: 0;
}

.privacy-note {
  margin: -9px 0 22px;
  padding: 12px 14px;
  border: 1px solid #f0d6b3;
  border-radius: 12px;
  background: #fff8eb;
  color: #76531f;
  font-size: 0.8rem;
  line-height: 1.65;
}

.host-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.owner-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.owner-auth-form {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffdfb;
}

.owner-auth-form h3,
.owner-bookings > h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
}

.owner-auth-form .form-group {
  margin-bottom: 12px;
}

.owner-auth-form .form-group label {
  font-size: 0.8rem;
}

.owner-auth-form .form-group input {
  min-height: 43px;
  font-size: 0.85rem;
}

.text-btn {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.text-btn:hover {
  text-decoration: underline;
}

.owner-bookings {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffdfb;
}

.owner-booking-card {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow-wrap: anywhere;
}

.owner-booking-card h4 {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.owner-booking-card p {
  color: var(--muted);
  font-size: 0.79rem;
}

.host-panel fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
}

.host-panel fieldset legend {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.host-panel fieldset:disabled {
  opacity: 0.55;
}

.host-description {
  grid-column: 1 / -1;
}

.form-group textarea {
  display: block;
  width: 100%;
  min-height: 90px;
  resize: vertical;
  padding: 10px 13px;
  border: 1px solid #e7e1dc;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.form-group textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(232, 79, 91, 0.11);
}

.card-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(47, 32, 29, 0.045);
}

.booking-intro {
  margin-top: -9px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.87rem;
  font-weight: 600;
}

.field-hint {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #e7e1dc;
  border-radius: 12px;
  background: #fff;
  font-size: 0.92rem;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(232, 79, 91, 0.11);
}

.block-btn {
  width: 100%;
  min-height: 49px;
}

.primary-btn,
.success-btn {
  font-size: 0.9rem;
}

.success-btn {
  background: #27845c;
  box-shadow: 0 8px 18px rgba(39, 132, 92, 0.16);
}

.success-btn:hover {
  background: #1e6f4c;
  box-shadow: 0 11px 22px rgba(39, 132, 92, 0.22);
}

.payment-box {
  padding: 19px;
  border: 1px solid #f2e7e1;
  border-radius: 17px;
  background: #fffaf7;
}

.meta-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.payment-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.alert-message {
  margin-top: 17px;
  padding: 12px 14px;
  border: 1px solid #b9e6cd;
  border-radius: 12px;
  background: #effaf3;
  color: #216b42;
  font-size: 0.87rem;
  line-height: 1.65;
}

.alert-message.error {
  border-color: #f1c3c5;
  background: #fff3f3;
  color: #9b3037;
}

.hidden {
  display: none;
}

[hidden] {
  display: none !important;
}

.footer {
  padding: 32px 10px 5px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 900px) {
  .role-choice-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr 0.85fr;
    gap: 24px;
  }

  .visual-card {
    min-height: 370px;
  }

  .search-bar {
    grid-template-columns: 1fr 1fr;
  }

  .search-btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 30px, 560px);
    padding-top: 12px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
  }

  .nav-links {
    grid-area: 3 / 1 / 4 / 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 6px 0 9px;
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    font-size: 0.76rem;
  }

  .nav-btn {
    grid-area: 2 / 2;
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .language-toggle {
    grid-area: 1 / 2;
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .brand-wrap {
    grid-area: 1 / 1;
    min-width: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 35px;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  .hero-visual {
    justify-content: stretch;
  }

  .visual-card {
    min-height: 310px;
  }

  .feature-strip,
  .room-grid,
  .booking-section {
    grid-template-columns: 1fr;
  }

  .host-section {
    margin-top: 45px;
  }

  .feature-strip {
    gap: 10px;
  }

  .feature-box {
    padding: 15px;
  }

  .rooms-section,
  .booking-section {
    margin-top: 45px;
  }

  .room-visual {
    height: 220px;
  }

  .host-form-grid {
    grid-template-columns: 1fr;
  }

  .owner-auth-grid {
    grid-template-columns: 1fr;
  }

  .host-description {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .search-bar {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 8px 12px 12px;
  }

  .search-bar > div,
  .search-bar > div + div,
  .search-btn {
    margin-top: 7px;
  }

  .rating-row {
    gap: 7px;
  }

  .rating-row div {
    padding: 10px 8px;
  }

  .rating-row strong {
    font-size: 0.84rem;
  }

  .rating-row span {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
