/*
Theme Name: Lochness Theme
Author: Antigravity
Description: Custom theme for Lochnessbus
Version: 1.0
*/
:root {
    --color-primary: #2C5F2D;
    /* Deep Forest Green */
    --color-primary-dark: #1F441F;
    --color-secondary: #97BC62;
    /* Moss Green */
    --color-accent: #D4A373;
    /* Earthy Sand/Gold */
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-background: #F9FAFB;
    --color-white: #FFFFFF;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--color-white);
    transition: background-color 0.3s, color 0.3s;
}

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

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: 0.3s;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    color: var(--color-white);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: var(--color-white);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Tours Section */
.tours-section {
    padding: 6rem 0;
    background-color: var(--color-background);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-primary-dark);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tour-card {
    background: var(--color-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.card-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.btn-text {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
}

.info-item {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--color-background);
    padding: 2rem;
    border-radius: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Responsive Tour Layout and Widget Toggles */
.bokun-mobile-button {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-secondary {
        text-align: center;
    }

    .btn-primary {
        text-align: center;
    }

    .tour-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .tour-sidebar {
        display: none !important;
    }

    .bokun-desktop-widget {
        display: none !important;
    }

    .bokun-mobile-button {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff;
        padding: 15px;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }

    /* Add padding to body to prevent button from covering content */
    body {
        padding-bottom: 80px;
    }
}

/* Category Page Specific Styles */
.tours-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    /* Increased gap for better spacing */
    margin-bottom: 3rem;
}

.tour-card-item {
    background: var(--color-white);
    border-radius: 1rem;
    /* Slightly more rounded */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tour-card-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.tour-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card-image {
    height: 350px;
    /* Bigger image area */
    background-size: cover;
    background-position: center;
    width: 100%;
}

.tour-card-content {
    padding: 2rem;
    /* Increased padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tour-card-content h3 {
    font-size: 1.75rem;
    /* Larger title */
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tour-card-meta {
    margin-top: auto;
    display: flex;
    gap: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.meta-price,
.meta-duration,
.meta-cancelation {
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Responsive adjustments for category grid */
@media (max-width: 1024px) {
    .tours-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tours-grid-3col {
        grid-template-columns: 1fr;
    }

    .tour-card-image {
        height: 250px;
    }
}

/* Recolocar carrito Bokun en mobile */
@media (max-width: 768px) {
    .single-tour .bokun-widgets-cart-wrapper {
        bottom: 75px !important;
    }

    .footer-illustration {
        display: none;
    }
}

/* Footer Illustration */
.footer-illustration {
    width: 100%;
    line-height: 0;
    margin-top: 0;
    /* Align with previous section */
}

.footer-illustration img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.acf-label {
    color: var(--color-primary);
    font-weight: 600;
    margin-right: 4px;
}

/* Tour Rating Styles */
.tour-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

.tour-rating .stars {
    color: #fbbf24;
    /* Gold */
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-value {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Prevent text truncation */
.tour-card-content h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Tour boxes */

.tour-box-container {
  a.tour-box-link {
    text-decoration: none;
  }
}

.tour-box-container .tour-box {
  background: var(--color-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin-bottom: 45px;
  padding: 30px;
  cursor: pointer;

  .top-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 30px;

    .details-column {
      position: relative;

      .price-section {
        position: absolute;
        bottom: 0;
        right: 0;
        text-align: right;
      }

      .tour-price {
        font-size: 1.5rem;
        text-align: right;
        color: var(--color-primary);
        font-weight: bold;
      }
    }
  }

  .tour-photo img {
    width: 100%;
  }

  .tour-rating {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  h3 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem 16px;
    line-height: 1.3;
  }

  &:hover {
    transform: translateY(-5px);
  }

  .bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    margin-top: 15px;

    .bottom-meta {
      display: flex;
      gap: 30px;

      img {
        width: 24px;
      }

      div {
        display: flex;
        align-items: center;
        gap: 10px;
      }
    }

    .view-details {
      position: absolute;
      right: 0;
    }
  }
}

@media (max-width: 480px) {
  .tour-box-container .tour-box {
    .tour-description {
      display: flex;
    }

    .top-row {
      display: unset;

      & .details-column {
        .price-section {
          position: unset;
          text-align: center;
          margin-top: 15px;
        }

        .tour-price {
          text-align: center;
        }
      }
    }

    & .bottom-row {
      display: flex;
      justify-content: center;

      .view-details {
        display: none;
      }
    }
  }
}
