/* ======================================
   Trinidad & Tobago Beach House
   Main Stylesheet - Tropical Beach Theme
   ====================================== */

/* ======= CSS Variables ======= */
:root {
  /* Primary Colors - Caribbean Theme */
  --primary-color: #0d6e6e;        /* Deep teal (Caribbean Sea) */
  --primary-dark: #094d4d;
  --primary-light: #1a9e9e;
  --secondary-color: #f4a261;      /* Sandy orange (sunset) */
  --accent-color: #e76f51;         /* Coral accent */

  /* Neutral Colors */
  --text-dark: #2d3436;
  --text-light: #636e72;
  --bg-light: #f8f9fa;
  --bg-cream: #faf3e8;
  --white: #ffffff;

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ======= Base Styles ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

/* Image Placeholder (Replace with actual images) */
.img-placeholder {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

.img-placeholder::after {
  content: attr(data-placeholder);
  opacity: 0.8;
}

.img-placeholder.square {
  aspect-ratio: 1;
  min-height: auto;
}

/* Section Styling */
.section-padding {
  padding: var(--section-padding);
}

.section-header {
  margin-bottom: 50px;
}

.section-header h3 {
  color: var(--secondary-color);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.section-header h2 {
  font-size: 42px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

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

/* ======= Header/Navigation ======= */
.header {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
  padding: 10px 0;
  background: var(--white);
}

.header .logo span {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.navbar a {
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.navbar a:hover,
.navbar a.active {
  color: var(--primary-color);
}

.navbar .dropdown ul {
  display: none;
  position: absolute;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  flex-direction: column;
  min-width: 200px;
  z-index: 100;
}

.navbar .dropdown:hover ul {
  display: flex;
}

.navbar .dropdown ul li a {
  padding: 8px 20px;
  display: block;
}

.navbar .btn-book {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 10px 25px !important;
  border-radius: 25px;
  margin-left: 10px;
}

.navbar .btn-book:hover {
  background: var(--primary-dark);
}

.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-dark);
}

/* ======= Hero Section ======= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Replace with actual beach image */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero h2 {
  font-size: 28px;
  color: var(--secondary-color);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary-custom {
  background: var(--secondary-color);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 500;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary-custom {
  background: transparent;
  color: var(--white);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 500;
  border: 2px solid var(--white);
  display: inline-block;
}

.btn-secondary-custom:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* ======= Booking Widget ======= */
.booking-widget {
  background: var(--white);
  padding: 30px 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-top: -50px;
  border-radius: 10px 10px 0 0;
}

.booking-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 5px;
  display: block;
}

.booking-form .form-control,
.booking-form .form-select {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
}

.btn-book-now {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-book-now:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* ======= About Preview Section ======= */
.about-preview .about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-content {
  padding-left: 30px;
}

.about-content h3 {
  color: var(--secondary-color);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.about-list li {
  padding: 8px 0;
  color: var(--text-dark);
}

.about-list i {
  color: var(--primary-color);
  margin-right: 10px;
}

.btn-learn-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 2px solid var(--primary-color);
}

.btn-learn-more:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ======= Rooms Preview Section ======= */
.room-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

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

.room-img {
  position: relative;
  overflow: hidden;
}

.room-img .img-placeholder {
  border-radius: 0;
  min-height: 200px;
}

.room-price {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.room-info {
  padding: 25px;
}

.room-info h4 {
  font-size: 22px;
  margin-bottom: 10px;
}

.room-info p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.room-features {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.room-features li {
  font-size: 13px;
  color: var(--text-light);
}

.room-features i {
  color: var(--primary-color);
  margin-right: 5px;
}

.btn-room-details {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 14px;
}

.btn-room-details:hover {
  color: var(--primary-dark);
}

/* ======= Features Section ======= */
.feature-box {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 32px;
  color: var(--white);
}

.feature-box h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-box p {
  color: var(--text-light);
  font-size: 14px;
}

/* ======= Gallery Preview Section ======= */
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item .img-placeholder {
  min-height: 200px;
  border-radius: 0;
}

/* ======= Testimonials Section ======= */
.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.testimonial-card .stars {
  color: #ffc107;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.guest-info strong {
  display: block;
  color: var(--text-dark);
}

.guest-info span {
  font-size: 13px;
  color: var(--text-light);
}

/* ======= CTA Section ======= */
.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.cta h2 {
  font-size: 42px;
  margin-bottom: 15px;
}

.cta p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.btn-cta {
  background: var(--secondary-color);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 500;
  display: inline-block;
}

.btn-cta:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* ======= View All Buttons ======= */
.btn-view-all {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 500;
}

.btn-view-all:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* ======= Footer ======= */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
}

.footer h4 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 20px;
}

.footer h5 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer p {
  font-size: 14px;
  line-height: 1.8;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-contact i {
  color: var(--secondary-color);
  margin-right: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-bottom a:hover {
  color: var(--secondary-color);
}

/* ======= Back to Top Button ======= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 999;
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.back-to-top.active {
  display: flex;
}

/* ======= Animations ======= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ======= Page Header (for inner pages) ======= */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 150px 0 80px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.page-header .breadcrumb {
  justify-content: center;
  margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.page-header .breadcrumb-item.active {
  color: var(--secondary-color);
}

/* ======= Responsive Styles ======= */
@media (max-width: 991px) {
  .navbar ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar .dropdown ul {
    position: static;
    box-shadow: none;
    padding-left: 20px;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .about-content {
    padding-left: 0;
    margin-top: 30px;
  }

  .booking-widget {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .cta h2 {
    font-size: 28px;
  }

  .footer {
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 10px;
  }
}
