/* Beranda */
:root {
  --primary: #5a704a;
  --primary-light: #7db64a;
  --primary-dark: #4a6533;
  --secondary: #d6e86a;
  --text-dark: #2d3436;
  --text-medium: #636e72;
  --text-light: #b2bec3;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary);
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary-light);
}

.user-icon {
  position: relative;
  color: var(--text-dark);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.user-icon:hover {
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 3rem;
  right: 0;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  min-width: 200px;
  z-index: 999;
  overflow: hidden;
}

.dropdown-text {
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-medium);
  background-color: var(--bg-light);
  cursor: default;
}

.dropdown-menu a {
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Hero Section Improvements */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("image/bonna.jpg") no-repeat center center;
  background-size: cover;
  padding: 120px 0 180px;
  color: white;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(90, 112, 74, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto 50px;
  animation: slideUp 0.8s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Booking Form Improvements */
.booking-form {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  box-shadow: var(--shadow);
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-group {
  flex: 1 1 200px;
  min-width: 0;
}

.booking-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.booking-group input,
.booking-group select {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-sm);
  padding: 12px 15px;
  font-size: 1rem;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
}

.booking-group input:focus,
.booking-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 112, 74, 0.2);
}

.booking-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.booking-button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 14px 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  flex: 0 0 auto;
  width: 100%;
  max-width: 220px;
}

.booking-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.booking-button:disabled {
  background-color: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Main Content Improvements */
.main-content {
  padding: 80px 0;
  background: var(--bg-white);
}

.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1 1 500px;
  max-width: 600px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 15px;
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.about-text p {
  margin: 1.2rem 0;
  color: var(--text-medium);
  line-height: 1.7;
}

.about-text p strong {
  color: var(--primary-dark);
}

.about-image {
  flex: 1 1 450px;
  max-width: 550px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Facilities Section Improvements */
.facilities {
  padding: 50px 0;
  background: var(--bg-light);
  text-align: center;
}

.facilities h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.facilities-subtitle {
  color: var(--text-medium);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.facility-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 0 40px;
}

.facility-item {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-align: center;
}

.facility-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.facility-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-item:hover .facility-image img {
  transform: scale(1.1);
}

.facility-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(90, 112, 74, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.facility-overlay i {
  color: white;
  font-size: 2.5rem;
}

.facility-item:hover .facility-overlay {
  opacity: 1;
}

.facility-item h3 {
  font-size: 1.3rem;
  margin: 20px 0 10px;
  color: var(--primary-dark);
}

.facility-item p {
  color: var(--text-medium);
  padding: 0 20px 25px;
  font-size: 0.95rem;
}

/* Rooms Section */
.rooms-section {
  padding: 50px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.rooms-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.rooms-subtitle {
  color: var(--text-medium);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.page-link {
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid #ddd;
  color: var(--primary);
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: #f1f1f1;
}

.page-link.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Room Cards for Index Page */
.room-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin: 0 40px;
}

.room-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.room-header {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 1rem 1.5rem;
  text-align: center;
}

.room-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.room-image:hover {
  opacity: 0.9;
}

.room-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.room-features {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px dashed #e0e0e0;
  border-bottom: 1px dashed #e0e0e0;
}

.feature {
  text-align: center;
  flex: 1;
}

.feature-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.facilities-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.facilities-title i {
  color: var(--primary-light);
}

.facilities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.facility {
  background: rgba(90, 112, 74, 0.1);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.facility i {
  color: var(--primary-light);
  font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .room-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .room-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Loading Animation */
.loading {
  text-align: center;
  padding: 2rem;
  font-style: italic;
  color: #777;
  grid-column: 1/-1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading::after {
  content: "⚙️";
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

/* Footer Styles */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 4rem 5% 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-about {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 0.3rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-contact-item i {
  margin-top: 0.2rem;
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
  }

  .about-text h2,
  .facilities h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 1.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Responsive Breakpoints */

/* Tablet and smaller */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .booking-form {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-button {
    max-width: none;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .about-text,
  .about-image {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .hero {
    padding: 80px 0 120px;
  }

  .hero-content {
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .booking-form {
    padding: 20px;
  }

  .booking-group {
    flex: 1 1 100%;
  }

  .booking-button {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .about-text {
    padding: 0 15px;
  }

  .about-text h2 {
    font-size: 1.75rem;
  }

  .about-image img {
    height: auto;
  }
}
