/* Main Theme Styles for Hill Partridge Cottage */

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

html, body, #root {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2d2d2d;
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Preloader */
#preloder {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 999999;
  background: #fff;
}

.loader {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
  border-radius: 60px;
  animation: loader 0.8s linear infinite;
}

@keyframes loader {
  0% { transform: rotate(0deg); border: 4px solid #8FC7A1; border-left-color: transparent; }
  50% { transform: rotate(180deg); border: 4px solid #D87C5A; border-left-color: transparent; }
  100% { transform: rotate(360deg); border: 4px solid #8FC7A1; border-left-color: transparent; }
}

/* Header */
.header-section {
  padding: 15px 0;
  background: #8FC7A1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo img {
  max-height: 60px;
  margin-left: 200px;
}

.main-menu {
  display: flex;
  align-items: center;
  margin-left: -200px;
}

.menu-wrapper {
  margin-right: 200px;
}

.main-menu ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-menu a {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 15px;
  border-radius: 4px;
}

.main-menu a:hover,
.main-menu a.active {
  background: rgba(255,255,255,0.2);
}

/* Sections */
.spad {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: #2d2d2d;
  margin-bottom: 15px;
  font-weight: 600;
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-section {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/img/breadcrumb-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.breadcrumb-text h2 {
  font-size: 48px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 700;
}

.breadcrumb-option {
  font-size: 16px;
}

.breadcrumb-option a {
  color: #fff;
  margin: 0 8px;
}

.breadcrumb-option a:hover {
  color: #8FC7A1;
}

.breadcrumb-option span {
  color: #fff;
  margin: 0 8px;
}

.breadcrumb-option i {
  margin-right: 5px;
}

/* Buttons */
.primary-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #D87C5A;
  color: #fff !important;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
}

.primary-btn:hover {
  background: #c46a48;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(216, 124, 90, 0.3);
}

/* Forms */
.form-control {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #8FC7A1;
  box-shadow: 0 0 0 3px rgba(143, 199, 161, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d2d2d;
}

/* Room Items */
.room-item {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.room-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

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

.room-text {
  padding: 25px;
}

.room-text h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #2d2d2d;
}

.room-text .room-price {
  font-size: 24px;
  color: #D87C5A;
  font-weight: 600;
  margin-bottom: 15px;
}

.room-text .room-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.room-text .room-features li {
  background: #f5f5f5;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
}

/* Blog/News Items */
.blog-item {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.blog-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-item h3 {
  font-size: 20px;
  padding: 20px 20px 0;
  margin-bottom: 10px;
}

.blog-item p {
  padding: 0 20px 20px;
  color: #666;
}

/* Testimonials */
.testimonial-item {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  text-align: center;
}

.testimonial-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2d2d2d;
}

.testimonial-item p {
  color: #666;
  font-style: italic;
}

/* Contact Section */
.contact-section {
  padding: 60px 0;
}

.contact-text {
  margin-bottom: 30px;
}

.contact-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-text p {
  color: #666;
  margin-bottom: 15px;
}

.contact-form {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 8px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

/* About Section */
.about-text {
  padding: 30px 0;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Footer */
.footer-section {
  background: #2d2d2d;
  color: #ccc;
  padding: 60px 0 20px;
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.footer-item {
  margin-bottom: 30px;
}

.footer-item h4,
.footer-item h5 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-logo img {
  max-height: 50px;
  margin-bottom: 20px;
}

.footer-item ul li {
  margin-bottom: 12px;
  color: #ccc;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-item ul li img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.footer-item a {
  color: #ccc;
}

.footer-item a:hover {
  color: #8FC7A1;
}

.copyright {
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 30px;
}

.copyright ul {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.copyright a {
  color: #ccc;
  font-size: 14px;
}

.copyright a:hover {
  color: #8FC7A1;
}

/* Hero/Banner Section */
.hero-section,
.hero-area {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 150px 0 300px;
  text-align: center;
  color: #fff;
  position: relative;
  margin-bottom: 0;
}

.hero-section h1 {
  font-size: 56px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Search Filter / Check Availability Section */
.search-filter {
  position: relative;
  margin-top: -250px;
  margin-bottom: 50px;
  z-index: 10;
}

.check-form {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

.check-form h4 {
  grid-column: 1 / -1;
  font-size: 24px;
  margin-bottom: 10px;
  color: #2d2d2d;
}

/* All input labels */
.check-form p {
  font-weight: 500;
  margin-bottom: 8px;
  color: #2d2d2d;
}

/* Datepicker */
.check-form .datepicker {
  position: relative;
}

.check-form .datepicker input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.check-form .datepicker input::placeholder,
.check-form .datepicker input[value="dd / mm / yyyy"] {
  opacity: 0.5;
}

.check-form .datepicker img {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Guest count */
.check-form .guest-count {
  display: flex;
  gap: 15px;
}

.check-form .single-quantity {
  flex: 1;
}

.check-form .pro-qty {
  border: 1px solid #ddd;
  border-radius: 4px;
}

.check-form .pro-qty input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  text-align: center;
  font-size: 14px;
}

/* Accommodation selector */
.check-form .suit-select option[value=""] {
  color: rgba(0, 0, 0, 0.5);
}

.check-form .nice-select.open {
  border-color: #8FC7A1 !important;
}

/* Submit button */
.check-form button[type="submit"] {
  background: #D87C5A;
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  align-self: end;
}

.check-form button[type="submit"]:hover {
  background: #c46a48;
  transform: translateY(-2px);
}

.check-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .hero-section,
  .hero-area {
    padding: 100px 0 220px;
  }
  
  .search-filter {
    margin-top: -200px;
  }
  
  .check-form {
    padding: 25px;
    grid-template-columns: 1fr;
  }
  
  .check-form .room-quantity {
    flex-direction: column;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-white {
  color: #fff !important;
}

.mb-30 {
  margin-bottom: 30px !important;
}

.mt-30 {
  margin-top: 30px !important;
}

.mb-50 {
  margin-bottom: 50px !important;
}

.small {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
  .main-menu {
    display: none;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .breadcrumb-text h2 {
    font-size: 36px;
  }
  
  .hero-section h1 {
    font-size: 36px;
  }
  
  .footer-section .copyright ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .spad {
    padding: 50px 0;
  }
  
  .room-item img {
    height: 200px;
  }
  
  .contact-form {
    padding: 25px;
  }
}
