:root {
  --primary-gold: #c9a961;
  --dark-brown: #3e2723;
  --warm-beige: #f5f0e8;
  --sage-green: #8a9a78;
  --terracotta: #c86240;
  --soft-cream: #fdfbf7;
  --accent-teal: #4a7c7e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  background: var(--soft-cream);
  color: var(--dark-brown);
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background:
    linear-gradient(rgba(62, 39, 35, 0.4), rgba(62, 39, 35, 0.6)),
    url("img/about-section/our_cottages_welcome_bg.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-decoration {
  width: 120px;
  height: 2px;
  background: var(--primary-gold);
  margin: 0 auto;
  position: relative;
}

.hero-decoration::before,
.hero-decoration::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-gold);
  border-radius: 50%;
  top: -2px;
}

.hero-decoration::before {
  left: -10px;
}

.hero-decoration::after {
  right: -10px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content */
.cottages-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 30px;
}

.section-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}

/* Room Cards */
.rooms-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.room-card {
  display: grid;
  grid-template-columns: 45% 55%;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(62, 39, 35, 0.1);
  transition: all 0.5s ease;
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.room-card:nth-child(1) {
  animation-delay: 0.1s;
}
.room-card:nth-child(2) {
  animation-delay: 0.2s;
}
.room-card:nth-child(3) {
  animation-delay: 0.3s;
}
.room-card:nth-child(4) {
  animation-delay: 0.4s;
}
.room-card:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(62, 39, 35, 0.15);
}

.room-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.room-card:hover .room-image img {
  transform: scale(1.1);
}

.room-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.room-card:hover .room-image::after {
  opacity: 1;
}

.room-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.room-details::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--primary-gold);
  transition: height 0.5s ease;
}

.room-card:hover .room-details::before {
  height: 100%;
}

.room-details h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.room-details h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--terracotta);
}

.room-details p {
  font-size: 0.9rem;
  color: #5d4037;
  line-height: 1.8;
  font-weight: 300;
}

/* Booking Sidebar */
.bisharabooking-sidebar {
  position: sticky;
  top: 30px;
  background: white;
  padding: 45px;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(62, 39, 35, 0.12);
  animation: slideInRight 0.8s ease-out 0.3s backwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.booking-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: var(--dark-brown);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.booking-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-gold);
}

/* Alert Styles */
.custom-alert {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-alert.success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

.custom-alert.error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #f44336;
}

.custom-alert .icon {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Form Styles */
.cottagebooking-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cottagedate-range-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.cottagedate-range-wrapper input {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0d5c7;
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Raleway", sans-serif;
  transition: all 0.3s ease;
  background: var(--warm-beige);
}

.cottagedate-range-wrapper input:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: white;
}

.date-separator {
  font-weight: 500;
  color: var(--dark-brown);
  padding: 0 5px;
}

.guest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

select,
input[type="email"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0d5c7;
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Raleway", sans-serif;
  background: var(--warm-beige);
  color: var(--dark-brown);
  transition: all 0.3s ease;
  cursor: pointer;
}

select:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: white;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%233E2723' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-gold), #b8935a);
  color: white;
  border: none;
  padding: 16px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 169, 97, 0.5);
  background: linear-gradient(135deg, #b8935a, var(--primary-gold));
}

.submit-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .section-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .bisharabooking-sidebar {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .room-card {
    grid-template-columns: 1fr;
  }

  .room-image {
    height: 250px;
  }

  .room-details {
    padding: 30px 25px;
  }

  .room-details h2 {
    font-size: 1.6rem;
  }

  .bisharabooking-sidebar {
    padding: 30px 25px;
  }

  .booking-title {
    font-size: 1.8rem;
  }

  .cottagedate-range-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .date-separator {
    text-align: center;
  }
}

/* Decorative Elements */
.floating-accent {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}

.accent-1 {
  background: var(--primary-gold);
  top: 10%;
  right: -200px;
  animation: floatSlow 25s infinite ease-in-out;
}

.accent-2 {
  background: var(--sage-green);
  bottom: 10%;
  left: -200px;
  animation: floatSlow 30s infinite ease-in-out reverse;
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(40px, -40px) rotate(5deg);
  }
}
