/* Modern Coastal Minimalism Styles */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #f5f5f0;
  --accent-color: #2c3e50;
  --text-color: #333333;
  --light-text: #777777;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Lato', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--light-text);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  margin-bottom: 80px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--white);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: 1px solid var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--white);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary-color);
}

/* Search Bar */
.search-bar {
  background: var(--white);
  padding: 30px;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 80px;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-text);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
}

/* Featured Properties */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
}

.section-title p {
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.property-card {
  background: var(--white);
  transition: transform 0.3s ease;
}

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

.property-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-details {
  padding: 25px 0;
}

.property-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.property-location {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.property-info {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-color);
}

.property-price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.property-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--light-text);
  font-family: var(--font-sans);
}

/* Detail Page */
.property-hero {
  height: 60vh;
  position: relative;
  margin-top: 80px;
}

.property-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 60px;
  margin-bottom: 100px;
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-sidebar {
  position: sticky;
  top: 100px;
  background: var(--secondary-color);
  padding: 40px;
  height: fit-content;
}

/* Calendar */
.calendar {
  background: var(--white);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 10px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: var(--light-text);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.day:hover:not(.empty):not(.past):not(.blocked) {
  background: var(--secondary-color);
}

.day.past, .day.blocked {
  color: #ccc;
  cursor: not-allowed;
  text-decoration: line-through;
}

.day.selected-start, .day.selected-end {
  background: var(--primary-color);
  color: var(--white);
}

.day.in-range {
  background: #e0e0e0;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: #aaa;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.copyright {
  text-align: center;
  color: #777;
  padding-top: 40px;
  border-top: 1px solid #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .property-content {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    position: static;
    margin-top: 40px;
  }
}
