/* 
Theme Name: CarRentalPro
Description: Main styles for CarRentalPro theme
*/

/* ======================
   Variables
====================== */
:root {
  --primary: #c19a6b;
  --primary-dark: #a57a5a;
  --secondary: #2c3e50;
  --light: #f8f5f2;
  --dark: #2c3e50;
  --success: #27ae60;
  --danger: #e74c3c;
  --gray: #95a5a6;
  --gray-light: #f5f5f5;
  --font-main: "Poppins", sans-serif;
  --font-alt: "Playfair Display", serif;
}

/* ======================
   Reset & Base
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark);
  background-color: #fff;
  overflow-x: hidden;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  //padding: 0 20px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-alt);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
p {
  margin-bottom: 1rem;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--primary-dark);
}

/* ======================
   Header
====================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /*background: #fff;*/
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /*height: 80px;*/
  transition: all 0.3s ease;
}

.admin-bar .site-header {
  /*top: 32px;*/
}
.site-header.scrolled {
  background: #031121f0;
}

.site-header.scrolled .main-navigation ul li a {
  color: white;
}

/* All non-home pages (always colored) */
body:not(.home) .site-header .main-navigation ul li a {
  color: #2c3e50;
}

/* Ensure header inner is centered 90% */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* start items from left, we'll push nav */
  width: 90%;
  /*margin: 20px auto;*/ /* center the 90% block */
  /*padding: 1rem 0;*/
  box-sizing: border-box;
}

/* Make branding keep its natural size on the left */
.site-branding {
  flex: 0 0 auto;
}

/* Logo & Branding */
.site-branding {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-logo {
  margin-right: 15px;
}

.site-logo img {
  height: auto;
  display: block;
  max-width: 150px !important;
}

.site-title-wrapper {
  display: inline-block;
}

.site-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #996515;
  line-height: 1.2;
}

.site-description {
  font-size: 14px;
  margin: 5px 0 0 0;
  color: #666;
  line-height: 1.3;
}

.site-title-wrapper a {
  text-decoration: none;
}

/* Force navigation to the far right inside the .header-inner */
.main-navigation {
  order: 99; /* place nav after the rest in visual order */
  margin-left: auto; /* pushes it to the right edge of the flex row */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0; /* remove any internal padding */
}

/* Nav list styling */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

/* Links */
.main-navigation ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

/* header actions (if present) should appear before nav */
.header-actions {
  flex: 0 0 auto;
  order: 50; /* before nav's order:99 */
}

/* Optional: keep .container default padding from interfering */
.container.header-inner {
  padding-left: 0;
  padding-right: 0;
}

.main-navigation ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: #ff6347;
}

.main-navigation ul ul li a:hover {
  background: #f7f7f7;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
}

.cart-icon {
  position: relative;
  margin-right: 1.5rem;
  font-size: 1.2rem;
  color: var(--dark);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  flex: 0 0 auto;
  margin-left: auto; /* spacing from logo */
}

.mobile-menu-btn i {
  font-size: 24px;
  color: #c9a74d;
}

.mobile-menu-btn.active i::before {
  content: "\f00d";
}

/* Mobile Navigation */
.mobile-navigation {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-navigation.active {
  right: 0;
}

.mobile-navigation ul {
  list-style: none;
  margin: 0;
  padding: 80px 20px 20px;
}

.mobile-navigation li {
  border-bottom: 1px solid #eee;
}

.mobile-navigation a {
  display: block;
  padding: 15px 0;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.mobile-navigation .mobile-submenu-toggle {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-navigation .sub-menu {
  display: none;
  padding-left: 20px;
}

.mobile-navigation .submenu-open .sub-menu {
  display: block;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Site Content */
/* Apply only to non-home pages */
body:not(.home) .site-content {
  padding-top: 100px;
  //min-height: calc(100vh - 100px);
}

/* ======================
   Hero Section
====================== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80")
      no-repeat center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 80px 20px 150px; /* Added bottom padding for stats */
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

.btn {
  display: inline-block;
  //padding: 0.8rem 2rem;
  background-color: var(--primary, #c9a74d); /* Fallback color */
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--primary-dark, #b8943c); /* Fallback color */
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary, #c9a74d); /* Fallback color */
  color: var(--primary, #c9a74d); /* Fallback color */
}

.btn-outline:hover {
  background-color: var(--primary, #c9a74d); /* Fallback color */
  color: #fff;
}

/* Hero Stats */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px 0;
  color: #fff;
  z-index: 2;
}

.hero-stats .stats-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #c9a74d;
}

.hero-stats p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-stats .col-6 {
    margin-bottom: 15px;
  }

  .hero-stats .stats-number {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero p {
    font-size: 1rem;
  }
}

/* ======================
   Sections (About, Menu, Team, etc.)
====================== */
section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  //margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  color: #1a4f8b;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 992px) {
  .section-title h2 {
    font-size: 1.8rem;
  }
}

.team-section {
  background-color: var(--light);
}

/* car Section */
.car-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.car-filter {
  padding: 0.5rem 1.5rem;
  margin: 0.5rem;
  border: 1px solid var(--primary);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary);
  background: transparent;
}

.car-filter.active,
.car-filter:hover {
  background-color: var(--primary);
  color: #fff;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.car-type {
  background-color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.car-type:hover {
  transform: translateY(-5px);
}

.car-type-image {
  height: 200px;
  overflow: hidden;
}

.car-type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-type:hover .car-type-image img {
  transform: scale(1.1);
}

.car-type-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.car-type-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.price {
  color: var(--primary);
  font-weight: 700;
}

/* Team Section */
.team {
  background-color: var(--gray-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 5px;
  font-weight: 600;
  color: #1a4f8b;
}

.team-role {
  font-size: 0.95rem;
  color: #777;
}

/* Testimonials Slider Styles */
.testimonials-section {
  position: relative;
}

.testimonials-slider {
  position: relative;
  margin: 0 auto;
  max-width: 800px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonials-slider.slick-initialized {
  opacity: 1;
}

.testimonial-slide {
  padding: 0 15px;
  outline: none;
}

.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
  margin: 20px 0;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: #555;
  font-size: 18px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-author img {
  width: 160px;
  height: 160px;
  border-radius: 20%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.testimonial-author h4 {
  margin: 0 0 5px;
  font-size: 18px;
  color: #333;
}

.testimonial-author span {
  color: #777;
  font-size: 14px;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.testimonial-prev,
.testimonial-next {
  background: #333;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: #555;
}

/* Slick slider adjustments */
.slick-initialized .slick-slide {
  display: flex;
  justify-content: center;
}

/* Ensure slides are visible before initialization */
.testimonials-slider:not(.slick-initialized) .testimonial-slide {
  display: none;
}

.testimonials-slider:not(.slick-initialized) .testimonial-slide:first-child {
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px;
  }

  .testimonial-content p {
    font-size: 16px;
  }

  .testimonial-author img {
    width: 160px;
    height: 160px;
  }
}

/* Reservation Section */
.reservation {
  position: relative;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("https://secure.local/wp-content/themes/carrentalpro-theme/assets/images/placeholder-reservation.jpg")
      no-repeat center center / cover;
  background-attachment: fixed;
}

.reservation .section-title h2 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
}

.reservation .section-title p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 30px;
}

#reservation_guests {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #2c3e50d1;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #444;
}

.booking-form .btn {
  background: #c19a6b;
  border: none;
  padding: 14px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s ease;
  display: inline-block;
  width: 150px;
}

.booking-form .btn:hover {
  background: #a57a5a;
}

/* Reservation Messages */
#booking-message {
  margin: 1rem auto 2rem auto;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  max-width: 600px;
}

#booking-message.success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

#booking-message.error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
}

/* Loyalty Program */
.loyalty-program {
  margin: 30px 0;
}

.loyalty-points-balance {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.loyalty-points-balance .points {
  font-size: 48px;
  font-weight: bold;
  color: #e74c3c;
}

.loyalty-rewards .rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.reward-item {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.reward-cost {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
  margin: 10px 0;
}

.points-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.points-history-table th,
.points-history-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.points-history-table th {
  background-color: #f8f9fa;
  cursor: pointer;
}

.loyalty-notification {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  color: white;
}

.loyalty-success {
  background-color: #2ecc71;
}

.loyalty-error {
  background-color: #e74c3c;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
  margin: 20px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-filter {
  margin-bottom: 20px;
  text-align: center;
}

.gallery-filter button {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 15px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.gallery-filter button.active,
.gallery-filter button:hover {
  background-color: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

/* Lightbox Styles */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  z-index: 10001;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  top: -20px;
  right: -20px;
}

.lightbox-prev {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================
   Footer Styles
   ========================= */
.site-footer {
  color: #fff;
  padding: 50px 20px;
  background-color: var(--dark);
  font-family: Arial, sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.footer-column {
  flex: 1 1 25%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.footer-column p,
.footer-column li,
.footer-column a {
  color: #ddd;
  font-size: 0.95em;
}

.footer-column a:hover {
  color: #f39c12;
  text-decoration: none;
}

/* Social links */
.footer-column .social-links a {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2em;
  color: #fff;
  transition: color 0.3s ease;
}

.footer-column .social-links a:hover {
  color: #f39c12;
}

/* Opening hours */
.opening-hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opening-hours li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Footer menu */
.footer-column .footer-navigation {
  margin-top: 15px;
}

.footer-column .footer-navigation .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column .footer-navigation .footer-menu li a {
  color: #ddd;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.footer-column .footer-navigation .footer-menu li a:hover {
  color: #f39c12;
}

/* Newsletter form */
.footer-column form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column form input {
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
  width: 100%;
}

.footer-column form button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background-color: #f39c12;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-column form button:hover {
  background-color: #e67e22;
}

/* Copyright section */
.copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9em;
  color: #aaa;
}

/* Form Validation */
.field-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.form-control.error {
  border-color: #dc3545;
}

#booking-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
}

#reservation-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#reservation-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   Responsive Styles
====================== */
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 768px) {
  /* Header adjustments */
  .header-inner {
    //padding: 15px 0;
    width: 100%;
    background-color: #031121f0;
  }

  .logo img {
    height: 100px;
  }

  .logo span {
    font-size: 1.5rem;
  }

  .cart-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
  }

  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block;
  }

  /* Hide desktop navigation */
  .main-navigation {
    display: none;
  }

  /* Site content */
  .site-content {
    /*padding-top: 80px;*/
  }

  /* Site branding */
  .site-branding {
    //flex-direction: column;
    //align-items: flex-start;
    padding-left: 10px;
  }

  .site-logo {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .site-logo img {
    max-width: 150px !important;
  }

  .site-title {
    font-size: 20px;
  }

  .site-branding:not(.has-logo) .site-title {
    font-size: 24px;
  }

  /* Footer */
  .footer-column {
    flex: 1 1 100%;
  }

  .footer-column .footer-navigation .footer-menu {
    flex-direction: column;
    gap: 6px;
  }

  .footer-column .social-links a {
    margin-right: 8px;
    font-size: 1.1em;
  }

  /* Reservation form */
  .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-form .form-group.full {
    grid-column: span 1;
  }

  /* car Item Actions */
  .car-type-image {
    position: relative;
    overflow: hidden;
  }

  .car-type-action {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .vegetarian {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .add-to-booking {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #c9a74d;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .add-to-booking:hover {
    background: #b8943c;
    transform: scale(1.1);
  }

  .add-to-booking i {
    font-size: 14px;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .car-type-action {
      bottom: 5px;
      right: 5px;
    }

    .vegetarian {
      font-size: 10px;
      padding: 3px 6px;
    }

    .add-to-booking {
      width: 28px;
      height: 28px;
    }

    .add-to-booking i {
      font-size: 12px;
    }
  }

  /* Loyalty rewards */
  .loyalty-rewards .rewards-grid {
    grid-template-columns: 1fr;
  }

  /* Lightbox */
  .lightbox-close,
  .lightbox-nav {
    width: 30px;
    height: 30px;
  }

  .lightbox-close {
    top: -15px;
    right: -15px;
  }

  .lightbox-prev {
    left: -15px;
  }

  .lightbox-next {
    right: -15px;
  }
}

.slick-list {
  background-color: var(--light);
}

/* Gallery notice */
.gallery-notice {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid var(--primary);
}

.gallery-notice p {
  margin: 0;
  color: #666;
  font-style: italic;
}

/* Gallery Control Styles */
.gallery-container {
  margin-bottom: 15px;
}

.gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.gallery-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 3px;
  cursor: move;
}

.gallery-preview img:hover {
  border-color: #0073aa;
}

.gallery-container .button {
  margin-right: 5px;
}

#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 50px;
  background: #c19a6b;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: none; /* hidden by default */
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0.9;
}

#scrollToTop.show {
  display: block; /* show when .show is added by JS */
}

@media (max-width: 768px) {
  #scrollToTop {
    right: 20px;
  }
}

/* Google Reviews */

.google-reviews {
  max-width: 800px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  padding: 0 10px;
}
.google-review-summary {
  text-align: center;
  background: #f9f9f9;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.google-review {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.google-review:hover {
  transform: translateY(-3px);
}
.google-review p strong {
  color: #222;
  font-size: 16px;
}
.google-review small {
  color: #888;
  font-size: 12px;
}
.google-review-summary h3,
.google-review p {
  margin: 5px 0;
  font-size: 16px;
  color: #444;
  cursor: default;
}
.star {
  font-size: 16px;
  display: inline-block;
  position: relative;
  color: #ccc;
}
.star.filled {
  color: #ffb400;
}
.star.empty {
  color: #ccc;
}
.star.half {
  color: #ccc;
  position: relative;
}
.star.half::before {
  content: "★";
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #ffb400;
}
.star:hover {
  transform: scale(1.3);
  color: #ffb400;
  transition: transform 0.2s, color 0.2s;
}
.hidden-review {
  display: none;
}
@media screen and (max-width: 600px) {
  .google-review-summary h3 {
    font-size: 14px;
  }
  .google-review-summary p {
    font-size: 13px;
  }
  .google-review p strong {
    font-size: 14px;
  }
  .google-review p,
  .google-review small {
    font-size: 13px;
  }
  .google-review {
    padding: 12px 15px;
  }
  .star {
    font-size: 14px;
  }
}
#load-more-reviews {
  padding: 8px 15px;
  cursor: pointer;
  border: 1px solid #0073aa;
  background: #0073aa;
  color: #fff;
  border-radius: 6px;
}
#load-more-reviews:hover {
  background: #005f80;
  border-color: #005f80;
}

/* WhatsApp Chat */
/* WhatsApp floating button */
.whatsapp-float {
  position: fixed !important; /* ensures fixed above everything */
  bottom: 20px !important;
  left: 20px !important;
  width: 55px !important;
  height: 55px !important;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 99999; /* above footer and other elements */
  cursor: pointer;
  overflow: hidden; /* prevent image overflow */
}
.whatsapp-float img {
  width: 28px;
  height: 28px;
  object-fit: contain; /* ensures proper fit */
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
.whatsapp-float.bounce {
  animation: bounce 1.5s ease;
}

.whatsapp-tooltip {
  position: fixed !important;
  bottom: 85px !important;
  left: 20px !important;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.whatsapp-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .whatsapp-tooltip {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Route Page */
/* Main container */
.route-page {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  font-family: "Arial", sans-serif;
  line-height: 1.7;
  color: #333;
}

/* Route Title & Intro */
.route-intro h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.route-description h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #0d4d99;
}

.route-description p {
  font-size: 1.05em;
  margin-bottom: 20px;
}

section.route-intro,
section.route-hotspots {
  padding: 0;
}

/* Route Gallery */
.route-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.route-gallery img {
  flex: 1 1 calc(25% - 15px);
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Hotspots Section */
.route-hotspots h2 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 25px;
  color: #0d4d99;
}

/* Grid of hotspots */
.hotspots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* Individual hotspot card */
.hotspot {
  flex: 1 1 45%;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Hotspot image */
.hotspot img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Hotspot headings & text */
.hotspot h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1a1a1a;
}

.hotspot div ul {
  padding-left: 20px;
}

.hotspot div li {
  margin-bottom: 12px;
  font-size: 1em;
  color: #555;
}

/* Responsive for mobile */
@media screen and (max-width: 992px) {
  .route-gallery img {
    flex: 1 1 calc(50% - 15px);
  }
  .hotspot {
    flex: 1 1 100%;
  }
}

@media screen and (max-width: 600px) {
  .route-page {
    padding: 15px;
  }
  .route-description h3 {
    font-size: 1.3em;
  }
  .route-description p,
  .hotspot div li {
    font-size: 0.95em;
  }
}
