@import url('fonts.css');

:root {
  --primary: #ff3b59;
  --primary-hover: #e02845;
  --secondary: #28bcae;
  --text-main: #333333;
  --text-muted: #666666;
  --text-light: #888888;
  --bg-main: #ffffff;
  --bg-alt: #fbfbfb;
  --bg-card: #ffffff;
  --border-color: #e6e6e6;
  --header-bg: #ffffff;
  --footer-bg: #333333;
  --font-base: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-condensed: 'Roboto Condensed', sans-serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 9999px;
  --container-max: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== HEADER & NAVIGATION ==================== */
.site-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-base);
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  line-height: 1.2;
}

.brand-tagline {
  font-family: var(--font-condensed);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}

.nav-item a {
  font-size: 14px;
  font-weight: 500;
  color: #444444;
  position: relative;
  padding: 6px 0;
  display: inline-block;
  white-space: nowrap;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

.nav-item.active a {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 59, 89, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center center;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-family: var(--font-condensed);
  font-size: 22px;
  margin-bottom: 28px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  font-weight: 400;
}

/* Hero Quick Booking Bar */
.booking-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-main);
  max-width: 760px;
  margin: 0 auto;
}

.booking-field {
  flex: 1;
  text-align: left;
}

.booking-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.booking-field input,
.booking-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  font-family: var(--font-base);
  outline: none;
}

/* ==================== CONTENT SECTIONS ==================== */
.section {
  padding: 60px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-condensed);
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px auto;
}

/* Two-column layout */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.content-grid-2.reverse {
  direction: rtl;
}
.content-grid-2.reverse > * {
  direction: ltr;
}

.content-text p {
  margin-bottom: 16px;
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.7;
}

.content-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

/* Highlights Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 59, 89, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111111;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== OVERVIEW & DETAILS ==================== */
.overview-header {
  background-color: var(--bg-alt);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

.property-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.sleeping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.sleeping-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #ffffff;
}

.sleeping-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sleeping-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.amenities-group {
  margin-bottom: 32px;
}

.amenities-category-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 20px;
  list-style: none;
}

.amenities-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444444;
}

.amenities-list li svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* ==================== GALLERY GRID ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: #eee;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ==================== RATES TABLE ==================== */
.rates-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
}

.rates-table th,
.rates-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.rates-table th {
  background-color: #f7f7f7;
  font-weight: 700;
  font-size: 14px;
  color: #222222;
}

.rates-table tr:last-child td {
  border-bottom: none;
}

.rates-table .price-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.policy-box {
  background: #fdfaf6;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 30px;
}

.policy-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111111;
}

.policy-box p {
  font-size: 14px;
  color: #555555;
  margin-bottom: 8px;
}

/* ==================== REVIEWS GRID ==================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #f5a623;
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111111;
}

.review-body {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.review-author strong {
  color: #222222;
}

/* ==================== CONTACT & FORMS ==================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}

.host-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.host-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.host-name {
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 4px;
}

.host-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.host-contact-info {
  list-style: none;
  text-align: left;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.host-contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #444444;
}

.form-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fafafa;
}

.form-control:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 59, 89, 0.12);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.alert-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.alert-error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* ==================== MAP SECTION ==================== */
.map-frame-wrap {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background-color: var(--footer-bg);
  color: #dddddd;
  padding: 48px 0 24px 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: var(--font-condensed);
  color: #aaaaaa;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cccccc;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #444444;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #888888;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 20px;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item a {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
  }

  .mobile-toggle {
    display: block;
  }

  .content-grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .booking-bar {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }
}

/* Let booking fields fit narrow screens without expanding the grid. */
.contact-layout > *, .form-row > * { min-width: 0; }
.form-control { min-width: 0; max-width: 100%; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .host-contact-info a { overflow-wrap: anywhere; }
}
