@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Beach-inspired Colors */
  --ocean-blue: #2c5f7d;
  --ocean-light: #3a7ca5;
  --sand: #d4a574;
  --sand-light: #e8d5c4;
  --white: #ffffff;
  --off-white: #fafafa;
  --text-dark: #2d2d2d;
  --text-muted: #6b6b6b;
  --border-light: #e5e5e5;

  /* Legacy support */
  --primary: #2c5f7d;
  --primary-hover: #234a5f;
  --secondary: #d4a574;
  --background: #ffffff;
  --foreground: #2d2d2d;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --surface: #fafafa;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Radius - Rounded for beach */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --card-radius: 12px;
  --image-radius: 12px;

  /* Alignment */
  --heading-align: center;

  /* Accent color for borders/underlines - none for beach */
  --accent-border-color: transparent;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;
  --font-mono: monospace;
}

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

body {
  color: var(--text-dark);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  text-align: center;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--ocean-blue);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--sand);
  color: white;
}

.btn-secondary:hover {
  background: #c9995f;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--ocean-blue);
  background: transparent;
  color: var(--ocean-blue);
}

.btn-outline:hover {
  background: var(--ocean-blue);
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--spacing-md);
}

.hero h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.section {
  padding: var(--spacing-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--ocean-blue);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-lg);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--sand);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--ocean-blue);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Room Cards */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.room-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.room-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.room-content {
  padding: var(--spacing-lg);
}

.room-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--ocean-blue);
}

.room-card .location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.room-card .rooms-count {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--ocean-light) 100%);
  color: white;
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.site-header {
  background: white;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--ocean-blue);
  font-weight: 700;
  text-decoration: none;
}

.owner-login-link {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.owner-login-link:hover {
  opacity: 1;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Mobile Navigation */
.hamburger-button {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--ocean-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-line.open:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-line.open:nth-child(2) {
  opacity: 0;
}

.hamburger-line.open:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--foreground);
  font-size: 1.1rem;
}

.mobile-nav a:hover {
  color: var(--ocean-blue);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Breadcrumbs */
.breadcrumbs {
  display: block;
}

/* Responsive Styles */
@media (max-width: 767px) {
  .hamburger-button {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .mobile-nav-overlay {
    display: block;
  }

  .site-logo {
    font-size: 1.5rem;
  }

  .breadcrumbs {
    display: none;
  }
}

/* Airbnb Link Button */
.airbnb-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #FF5A5F;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(255, 90, 95, 0.2);
}

.airbnb-link-button:hover {
  background: #FF3B40;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 90, 95, 0.3);
}

/* Admin Layout Styles */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-nav {
  width: 250px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.admin-nav a {
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  color: var(--foreground);
}

.admin-nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.admin-content {
  flex: 1;
  padding: var(--spacing-xl);
}

.user-info {
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

/* Room Detail Grid */
.room-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .room-detail-grid {
    grid-template-columns: 1fr 400px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }
}