:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --highlight-color: #e94560;
  --dark-text: #2c3e50;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../resources/standard-villa-1.jpg") center/cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: inline-block;
  background: var(--highlight-color);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.hero-cta:hover {
  background: #ff2045;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
  color: white;
}

/* Main Content */
.main-content {
  background: white;
  margin-top: -30px;
  border-radius: 30px 30px 0 0;
  position: relative;
  z-index: 3;
  padding: 60px 0;
}

/* Room Info */
.room-info {
  text-align: center;
  margin-bottom: 60px;
}

.room-info h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.room-description {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Image Gallery */
.gallery {
  margin-bottom: 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 15px;
  margin-bottom: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Amenities Section */

.amenities {
  margin-bottom: 60px;
  padding: 40px 0;
}

.amenities h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: clamp(30px, 5vw, 60px);
  text-align: center;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: clamp(15px, 3vw, 30px);
  max-width: 100%;
  margin: 0 auto;
  justify-items: center;
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  max-width: 140px;
}

.amenity-bubble {
  width: clamp(50px, 8vw, 60px);
  height: clamp(50px, 8vw, 60px);
  background: linear-gradient(135deg, var(--highlight-color), #5dade2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
  flex-shrink: 0;
}

.amenity-bubble:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

.amenity-icon {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: white;
}

.amenity-label {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
}

/* Arrow Tooltip */
.tooltip-arrow {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.tooltip-arrow::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--text-dark);
}

.amenity-item:hover .tooltip-arrow {
  opacity: 1;
  visibility: visible;
}

/* Rates Section */
.rates {
  background: var(--bg-light);
  /* padding: 80px 0; */
  /* margin: 0 -20px; */
}

.rates h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 90%;
  margin: 0 auto;
}

.rate-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.rate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #16213e6c;
}

.rate-season {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--highlight-color);
  margin-bottom: 10px;
}

.rate-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--highlight-color);
  margin-bottom: 5px;
}

.rate-period {
  color: var(--text-light);
  margin-bottom: 15px;
}

.rate-dates {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.rate-btn {
  background: #16213e9c;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  width: 100%;
}

.rate-btn:hover {
  background: #16213ec9;
  transform: translateY(-2px);
}

/* Booking Section */
.booking {
  background: white;
  padding: 80px 0;
}

.booking h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
}

.booking-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-btn, .book-btn{
  background: var(--highlight-color);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  margin-top: 20px;
}

.submit-btn:hover {
  background: #fa2045;
  transform: translateY(-2px);
}

/* Success Message */
.success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #27ae60;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateX(400px);
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
}

.success-message.show {
  transform: translateX(0);
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 250px);
  }

  .gallery-item:first-child {
    grid-row: span 1;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 15px;
  }

  .amenity-icon {
    font-size: 1.5rem;
  }

  .amenity-label {
    font-size: 0.8rem;
  }

  .rates-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .booking-form {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .room-info h2 {
    font-size: 2rem;
  }

  .amenities h3,
  .rates h3,
  .booking h3 {
    font-size: 1.5rem;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }

  .rates {
    padding: 60px 0;
  }

  .booking {
    padding: 60px 0;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .amenities {
    margin-bottom: 40px;
    padding: 30px 0;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    max-width: 100%;
  }

  .amenity-item {
    max-width: 120px;
    padding: 8px;
  }

  .amenity-bubble {
    margin-bottom: 10px;
  }

  .tooltip-arrow {
    font-size: 0.75rem;
    padding: 6px 8px;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .amenities {
    margin-bottom: 30px;
    padding: 20px 0;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
  }

  .amenity-item {
    max-width: 100px;
    padding: 5px;
  }

  .amenity-bubble {
    margin-bottom: 8px;
  }

  .tooltip-arrow {
    display: none; /* Hide tooltips on very small screens */
  }
}

@media (max-width: 320px) {
  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
  }

  .amenity-item {
    max-width: 80px;
  }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 35px;
    max-width: 1200px;
  }
}

/* Orientation specific */
@media (max-width: 768px) and (orientation: landscape) {
  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .amenity-bubble {
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.4);
  }
}
