/* === IMPORT GLOBAL VARIABLES === */
@import url('global.css');

/* === TOURS PAGE HEADER === */
#tours-page-header {
  position: relative;
  padding: 140px 0 80px 0;
  background-image: url('/website/img/hero-banner.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 35%;
  background-attachment: scroll;
  color: var(--text-white);
  min-height: 220px;
  overflow: hidden;
  /* Teste sem overlay primeiro */
  /* Adicionar fallback para debugging */
  background-color: #667eea; /* Cor de fallback */
}

#tours-page-header .header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Overlay com 30% de preto */
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

#tours-page-header .container {
  position: relative;
  z-index: 2;
}

#tours-page-header .page-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: var(--spacing-md);
}

#tours-page-header .page-subtitle {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

#tours-page-header .breadcrumb {
  background: transparent;
  margin-bottom: 0;
}

#tours-page-header .breadcrumb-item a {
  color: var(--text-white);
  text-decoration: none;
}

#tours-page-header .breadcrumb-item a:hover {
  text-decoration: underline;
}

#tours-page-header .breadcrumb-item.active {
  color: var(--text-white);
  opacity: 0.8;
}

/* === TOURS FILTERS === */
#tours-filters {
  position: relative;
  margin-top: -80px;
  background: #f4f4f4;
  backdrop-filter: blur(15px);
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 18; /* Menor que o header */
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

/* Tours filters quando fica sticky */
#tours-filters.sticky {
  position: fixed;
  top: 70px; /* Mais próximo do header sticky */
  left: 0;
  right: 0;
  width: 100%;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 15px 15px 0 0; /* Manter bordas arredondadas superiores */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 0.8rem 0; /* Padding menor quando sticky */
  z-index: 19; /* Menor que o header (z-index: 20) */
}

/* Placeholder para manter espaço quando filters ficam sticky */
#tours-filters-placeholder {
  height: 0;
  transition: height 0.3s ease;
}

#tours-filters-placeholder.active {
  height: 100px; /* Altura aproximada dos filtros */
}

#tours-filters .container {
  background: transparent;
}

#tours-filters .btn-outline-primary {
  border-radius: 25px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  border-width: 2px;
}

#tours-filters .btn-outline-primary.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

#tours-filters .btn-outline-primary:not(.active) {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

#tours-filters .btn-outline-primary:not(.active):hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

#tours-filters .form-select-sm {
  max-width: 200px;
  border-radius: 25px;
  border: 2px solid var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
}

/* === TOURS PAGE TITLE === */
.titulo {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 0;
  text-align: left;
  position: relative;
}

.titulo::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  margin-top: 1rem;
  border-radius: 2px;
}

/* === TOURS INFO SECTION === */
#tours-info .info-card {
  padding: var(--spacing-lg);
  transition: transform 0.3s ease;
}

/* === TOURS VIEW ONE PAGE === */
.tour-location {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.tour-location .bi-geo-alt-fill {
  color: var(--primary-color) !important;
}

.tour-status .badge {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 25px;
}

/* Tour Gallery */
.tour-gallery {
  position: relative;
}

.main-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.main-tour-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.gallery-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-circle);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.gallery-btn:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: scale(1.1);
}

.thumbnail-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail-image.active,
.thumbnail-image:hover {
  opacity: 1;
  border-color: var(--primary-color);
}

/* Tour Info Cards - Same style as tour cards */
.tour-info-cards .info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-light);
}

.tour-info-cards .info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.tour-info-cards .info-card i {
  font-size: 2rem;
  display: block;
}

.tour-info-cards .info-card h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.tour-info-cards .info-card p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
}

/* Tour Description - Card style */
.tour-description {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-light);
  border: 1px solid var(--border-light);
}

.tour-description h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.description-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Tour Notes - Card style */
.tour-notes {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-light);
  border: 1px solid var(--border-light);
}

.tour-notes h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.notes-list {
  list-style: none;
  padding: 0;
}

.notes-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  line-height: 1.6;
}

.notes-list li:last-child {
  border-bottom: none;
}

.notes-list li:before {
  content: "✓";
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 0.8rem;
}

/* Schedule Details - Card style */
.schedule-details {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-light);
  border: 1px solid var(--border-light);
}

.schedule-details h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.schedule-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.schedule-card h6 {
  color: var(--text-primary);
  font-weight: 600;
}

/* Sidebar Cards - Same style as tour cards */
.sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px var(--shadow-light);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease;
  overflow: hidden;
  padding: 0; /* Remove padding to allow header styling */
}

.sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.sidebar-card h5 {
  background: var(--primary-color);
  color: var(--text-white);
  font-weight: 600;
  margin: 0;
  padding: 1rem 0.5rem;
  font-size: 1.1rem;
}

.sidebar-card > *:not(h5) {
  padding: 0 0.5rem 1.5rem 0.5rem;
}

/* Content wrapper for sidebar cards without direct h5 */
.sidebar-card .map-container,
.sidebar-card .booking-widget-container,
.sidebar-card .benefits-list,
.sidebar-card .contact-info,
.sidebar-card p,
.sidebar-card .btn {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.sidebar-card .map-container,
.sidebar-card .booking-widget-container {
  margin-top: 1rem;
}

/* Map Container */
.map-container {
  margin: 1rem 0.5rem 1.5rem 0.5rem;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 10px;
}

/* Benefits List */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0.5rem 1.5rem 0.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.benefit-item i {
  font-size: 1.2rem;
}

/* Contact Info */
.contact-info {
  margin: 1rem 0.5rem 1rem 0.5rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

#tours-info .info-card:hover {
  transform: translateY(-5px);
}

#tours-info .info-card i {
  margin-bottom: var(--spacing-md);
}

/* === HEADER STYLES === */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-header);
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  font-family: var(--font-family);
  transition: all 0.3s ease;
}

/* Header quando faz scroll - sticky state */
#main-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem var(--spacing-lg);
}

#main-header.scrolled .header-logo {
  max-height: 60px;
  transition: all 0.3s ease;
}

#main-header.scrolled .nav-menu li a {
  font-size: 1rem;
}

#main-header.scrolled .cart-button,
#main-header.scrolled .lang-switcher {
  width: 35px;
  height: 35px;
  font-size: 1rem;
}

#main-header .header-container {
  width: 100%;
  display: flex;
  align-items: center;
}

/* LOGO */
#main-header .header-logo-link {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

#main-header .header-logo-link:hover {
  transform: scale(1.05);
}

#main-header .header-logo {
  max-height: 120px;
}

/* MENU CENTRAL */
#main-header .header-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

#main-header .nav-menu {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
  padding-left: 0;
  margin: 0;
}

#main-header .nav-menu li a {
  color: var(--text-white);
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
}

#main-header .nav-menu li a:hover {
  text-decoration: underline;
  color: var(--text-light);
}

/* NAVIGATION ICONS */
#main-header .nav-icons {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* CARRINHO */
#main-header .cart-wrapper {
  position: relative;
}

#main-header .cart-button {
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius-circle);
  width: 42px;
  height: 42px;
  color: var(--text-white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#main-header .cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: var(--radius-circle);
  font-weight: bold;
}

#main-header .cart-panel {
  position: absolute;
  right: 0;
  top: 48px;
  background: var(--bg-white);
  color: var(--text-primary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px var(--shadow-medium);
  min-width: 200px;
  font-size: 0.9rem;
  z-index: var(--z-dropdown);
}

/* SELECTOR DE IDIOMA */
#main-header .lang-switcher {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-circle);
  width: 42px;
  height: 42px;
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

#main-header .lang-dropdown-wrapper {
  position: relative;
}

#main-header .lang-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px var(--shadow-strong);
  z-index: var(--z-modal);
}

#main-header .lang-dropdown li {
  padding: 0.4rem var(--spacing-md);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1.2;
}

#main-header .lang-dropdown li:hover {
  background: var(--bg-light);
}

/* BURGER BUTTON */
#main-header .burger-button {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
}

/* MOBILE MENU */
#main-header .mobile-nav {
  background: var(--bg-overlay);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: var(--z-dropdown);
  border-bottom: 1px solid var(--border-light);
}

#main-header .mobile-nav .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#main-header .mobile-nav .nav-menu li {
  margin-bottom: var(--spacing-md);
}

#main-header .mobile-nav .nav-menu li a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}

#main-header .mobile-nav .nav-menu li a:hover {
  text-decoration: underline;
}

/* === HERO SECTION === */
#homepage-hero {
  position: relative;
  height: 100vh;
  background-image: url('/website/img/hero-banner.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

#homepage-hero .hero-overlay {
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--radius-md);
  color: var(--text-white);
}

#homepage-hero .hero-title {
  font-size: 9rem;
  font-weight: bold;
  font-family: var(--font-family);
}

#homepage-hero .hero-subtitle {
  font-size: 2rem;
  font-family: var(--font-family);
  margin-top: var(--spacing-md);
}

/* SOCIAL ICONS */
#homepage-hero .social-icons-wrapper {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 11;
}

#homepage-hero .social-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-white);
  font-size: 1.2rem;
  transition: background 0.3s, transform 0.3s;
}

#homepage-hero .social-icon:hover {
  background: var(--bg-white);
  color: var(--text-primary);
  transform: scale(1.1);
}

/* BOTÃO PRIMARY HOVER */
.btn-primary:hover {
  background-color: #dbefdc !important;
  border-color: #dbefdc !important;
  color: var(--text-white) !important;
}

/* === TOURS SECTION === */
#tours-section .tour-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: filter 0.3s ease-in-out;
  height: 100%;
}

#tours-section .tour-card.expired .tour-card-img {
  filter: grayscale(100%);
}

#tours-section .tour-card:hover .tour-card-img {
  filter: none !important;
}

#tours-section .tour-card-img {
  background-size: cover;
  background-position: center;
  height: 100%;
  min-height: 200px;
  width: 100%;
}

/* Utility class for tour card images */
#tours-section .c-tour-card__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  min-height: 250px;
  width: 100%;
  position: relative;
}

/* Ensure cards have equal height */
#tours-section .d-flex {
  align-items: stretch;
}

#tours-section .tour-card .row.g-0 {
  height: 100%;
  min-height: 250px;
}

#tours-section .col-md-5.position-relative,
#tours-section .col-md-7 {
  display: flex;
  flex-direction: column;
}

#tours-section .tour-label {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
  text-align: center;
  z-index: 2;
}

#tours-section .label-top {
  background-color: #e91e63;
  padding: 3px 8px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

#tours-section .label-bottom {
  padding: 3px 8px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

#tours-section .label-expired {
  background-color: #ef6c00;
}

#tours-section .label-available {
  background-color: #4caf50;
}

/* Botões do tours-section com mesmo estilo dos filtros */
#tours-section .btn-outline-primary {
  border-radius: 25px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  border-width: 2px;
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

#tours-section .btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

#tours-section .rating-badge {
  font-size: 0.9rem;
  font-weight: 500;
}

#tours-section .availability-dot {
  height: 8px;
  width: 8px;
  border-radius: var(--radius-circle);
  display: inline-block;
  background: var(--secondary-color);
}

/* === FOOTER === */
#main-footer a {
  color: var(--text-primary);
  text-decoration: none;
}

#main-footer a:hover {
  text-decoration: underline;
}

#main-footer img[alt="Payment Methods"] {
  max-width: 150px !important;
  height: auto !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #homepage-hero .hero-title {
    font-size: 4rem;
  }

  #homepage-hero .hero-subtitle {
    font-size: 2rem;
  }

  #tours-page-header .page-title {
    font-size: 2.5rem;
  }

  #tours-page-header .page-subtitle {
    font-size: 1.1rem;
  }

  #tours-page-header {
    padding: 120px 0 80px 0;
    min-height: 200px;
    background-position: center top;
  }

  #tours-filters {
    margin-top: -60px;
    border-radius: 10px 10px 0 0;
    padding: 1rem 0;
  }

  /* Tours page title responsivo */
  .titulo {
    font-size: 2rem;
    text-align: left;
  }

  /* Tours filters sticky no mobile */
  #tours-filters.sticky {
    top: 60px; /* Header mobile é menor */
    padding: 0.7rem 0;
    border-radius: 10px 10px 0 0; /* Manter bordas arredondadas superiores no mobile */
  }

  #tours-filters-placeholder.active {
    height: 120px; /* Altura maior para acomodar layout vertical */
  }

  #tours-filters .filters-buttons-wrapper {
    width: 100%;
  }

  #tours-filters .sort-wrapper {
    width: 100%;
    text-align: left;
  }

  #tours-filters .sort-wrapper .form-select {
    width: 100% !important;
    max-width: none !important;
    border: 2px solid var(--secondary-color);
  }

  #tours-filters .form-select-sm {
    width: 100% !important;
    max-width: none !important;
    border: 2px solid var(--secondary-color) !important;
  }

  #tours-filters .d-flex {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  #tours-filters .col-md-6 {
    margin-bottom: 0;
  }

  #tours-filters .col-md-6:last-child {
    text-align: left !important;
    margin-top: 0;
  }

  #tours-filters .btn-outline-primary {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin: 0;
    flex: 1;
    min-width: 90px;
  }

  #tours-filters .gap-2 {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.3rem;
  }

  #tours-filters .btn-outline-primary {
    padding: 0.4rem 1rem;
    margin: 0.2rem;
  }

  /* Tours View One - Mobile Responsive */
  .tour-location {
    font-size: 1rem;
  }

  .main-image-container {
    height: 250px;
  }

  .thumbnail-gallery {
    justify-content: center;
  }

  .thumbnail-image {
    width: 60px;
    height: 45px;
  }

  .tour-info-cards .info-card {
    padding: 1rem 0.8rem;
    text-align: center;
  }

  .tour-info-cards .info-card i {
    font-size: 1.5rem;
  }

  .sidebar-card {
    margin-bottom: 1.5rem;
  }

  .related-tour-image {
    height: 150px;
  }
}

@media (max-width: 767.98px) {
  #main-header .header-logo {
    max-height: 80px;
  }

  #main-header.scrolled {
    padding: 0.4rem var(--spacing-md);
  }

  #main-header.scrolled .header-logo {
    max-height: 50px;
  }

  #main-header.scrolled .cart-button,
  #main-header.scrolled .lang-switcher {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  #main-footer .row {
    flex-direction: column;
    text-align: center;
  }

  #main-footer .col-md-4 {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  #main-footer .col-md-4:nth-child(1) { order: 2; }
  #main-footer .col-md-4:nth-child(2) { order: 1; }
  #main-footer .col-md-4:nth-child(3) { order: 3; }

  #main-footer .text-md-end {
    text-align: center !important;
  }

  #main-footer img[alt="Payment Methods"] {
    max-width: 160px !important;
    height: auto !important;
  }
}

/* === MODERN GALLERY STYLES === */

/* Main Gallery Container */
.modern-gallery {
  position: relative;
}

.gallery-main-container {
  position: relative;
  margin-bottom: 1rem;
}

.main-image-wrapper {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.main-image-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.main-image-wrapper:hover .gallery-main-image {
  transform: scale(1.02);
}

/* Image Overlay */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-weight: 500;
}

.main-image-wrapper:hover .image-overlay {
  opacity: 1;
}

.image-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Image Counter */
.image-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Navigation Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.gallery-nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gallery-nav-btn.prev {
  left: 15px;
}

.gallery-nav-btn.next {
  right: 15px;
}

.gallery-nav-btn i {
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* Thumbnails */
.gallery-thumbnails {
  margin-top: 1rem;
}

.thumbnails-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
  scroll-behavior: smooth;
}

.thumbnails-container::-webkit-scrollbar {
  height: 4px;
}

.thumbnails-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === LIGHTBOX STYLES === */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-image-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
  left: -80px;
}

.lightbox-nav.next {
  right: -80px;
}

.lightbox-nav i {
  font-size: 1.5rem;
}

.lightbox-info {
  margin-top: 20px;
  text-align: center;
}

.lightbox-counter {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.lightbox-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lightbox-thumb {
  width: 50px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.lightbox-thumb:hover {
  transform: scale(1.1);
}

.lightbox-thumb.active {
  border-color: var(--primary-color);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .gallery-main-image {
    height: 250px;
  }
  
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .gallery-nav-btn.prev {
    left: 10px;
  }
  
  .gallery-nav-btn.next {
    right: 10px;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 45px;
  }
  
  .lightbox-nav.prev {
    left: 10px;
  }
  
  .lightbox-nav.next {
    right: 10px;
  }
  
  .lightbox-nav {
    width: 50px;
    height: 50px;
  }
  
  .lightbox-image {
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .gallery-main-image {
    height: 200px;
  }
  
  .image-counter {
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

/* === BOOKING WIDGET STYLES === */
.booking-widget-container {
  margin: 1rem 0.5rem 1.5rem 0.5rem;
}

.booking-widget-container iframe {
  width: 100%;
  border: 0;
  border-radius: 10px;
  display: block;
}

/* Additional sidebar card content styling */
.sidebar-card p {
  margin: 1rem 0.5rem;
  line-height: 1.6;
}

.sidebar-card .btn {
  margin: 1rem 0.5rem 1.5rem 0.5rem;
}

/* Botões da sidebar card com mesmo estilo dos filtros */
.sidebar-card .btn-outline-primary {
  border-radius: 25px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  border-width: 2px;
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
  display: block;
  text-align: center;
}

.sidebar-card .btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

/* ============================= */
/* === KLOOK DESIGN STYLES === */
/* ============================= */

.klook-hero {
  background-color: #f8f9fa;
  padding: 0;
}

.klook-breadcrumb {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
}

.klook-breadcrumb a {
  text-decoration: none;
  color: #6c757d;
  font-size: 0.9rem;
}

.klook-breadcrumb a:hover {
  color: var(--primary-color);
}

/* Tags */
.klook-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.klook-tag {
  background: linear-gradient(45deg, var(--primary-color), #ff6b9d);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Title Section */
.klook-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.klook-rating-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.klook-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-number {
  font-weight: 600;
  color: #1a1a1a;
}

.rating-count {
  color: #6c757d;
  font-size: 0.9rem;
}

.klook-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Gallery */
.klook-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.gallery-main {
  position: relative;
  height: 400px;
}

.klook-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  /* Imagem principal: cantos esquerdos arredondados, direitos quadrados */
  border-radius: 8px 0 0 8px !important;
}

.gallery-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.gallery-btn-klook {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-btn-klook:hover {
  background: rgba(0, 0, 0, 0.9);
}

.gallery-thumbs {
  display: grid;
  grid-template-rows: repeat(3, 130px);
  gap: 0.5rem;
  width: 100%;
}

.klook-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

.klook-thumb:hover {
  transform: scale(1.02);
}

.gallery-thumbs > img.klook-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail específicas com cantos seletivos */
.gallery-thumbs img:nth-child(1) {
  border-radius: 0 8px 0 0;
}

.gallery-thumbs img:nth-child(2) {
  border-radius: 0;
}

.gallery-thumbs img:nth-child(3) {
  border-radius: 0 0 8px 0;
}

/* Botão View all ocupa largura total */
.gallery-view-all {
  margin-top: 0.25rem;
}

.gallery-view-all .gallery-btn-klook {
  width: 100%;
}

/* Quick Info */
.klook-quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quick-info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 24px;
  text-align: center;
}

.info-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.info-value {
  font-weight: 600;
  color: #1a1a1a;
}

/* Sections */
.klook-section {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Section titles - h1 (main title) */
.klook-section-title,
h1.klook-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.0rem;
}

/* Section titles - h2 (subtitle) */
h2.klook-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.klook-content p {
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Highlights */
.klook-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.klook-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #4a4a4a;
  line-height: 1.6;
}

.klook-highlights i {
  color: #28a745;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Lists */
.klook-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.klook-list li {
  padding: 0.5rem 0;
  color: #4a4a4a;
  border-bottom: 1px solid #f8f9fa;
}

.klook-list li:last-child {
  border-bottom: none;
}

/* Booking Widget */
.klook-booking-widget {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 100px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.widget-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), #ff6b9d);
  color: white;
  position: relative;
}

.price-section {
  position: relative;
}

.price-original {
  font-size: 1rem;
  text-decoration: line-through;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.price-current {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.currency {
  font-size: 1.2rem;
  font-weight: 600;
}

.amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.per-person {
  font-size: 0.9rem;
  opacity: 0.9;
}

.discount-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b35;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-available {
  background-color: #4caf50;
}

.status-expired {
  background-color: #ef6c00;
}

.widget-body {
  padding: 1.5rem;
}

/* Form Elements */
.klook-label {
  display: block;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.klook-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.klook-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Participants Selector */
.participants-selector {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
}

.participant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.qty-value {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Confirmation Badge */
.confirmation-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #e8f5e8;
  color: #28a745;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Book Button */
.klook-book-btn {
  background: linear-gradient(135deg, var(--primary-color), #ff6b9d);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.klook-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

/* Alternative Booking */
.alternative-booking .divider {
  text-align: center;
  margin: 1rem 0;
  position: relative;
}

.alternative-booking .divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
  z-index: 1;
}

.alternative-booking .divider span {
  background: white;
  padding: 0 1rem;
  color: #6c757d;
  position: relative;
  z-index: 2;
}

/* Booking Features */
.booking-features {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #4a4a4a;
  font-size: 0.9rem;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Contact Card */
.klook-contact-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
}

.klook-contact-card .map-container {
  position: relative;
  z-index: 15;
}

.klook-contact-card .map-placeholder {
  position: relative;
  z-index: 20;
}

.klook-contact-card h6 {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.klook-contact-card p {
  color: #6c757d;
  margin-bottom: 1rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #4a4a4a;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* Related Section */
.klook-related {
  background: #f8f9fa;
}

/* Lightbox */
.klook-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.lightbox-content {
  position: relative;
}

#klookLightboxImage {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.nav-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-counter {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .klook-gallery {
    grid-template-columns: 1fr;
  }
  
  /* thumbs em grelha 3 colunas por baixo da imagem principal */
  .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);    /* 3 colunas iguais */
    grid-auto-rows: 90px;                     /* altura mais baixa para mobile */
    gap: 0.5rem;
  }

  .gallery-thumbs > img.klook-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* botão ocupa a largura toda, vai para a linha seguinte */
  .gallery-view-all {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
  }

  /* opcional: cantos arredondados mais suaves no mobile */
  .gallery-thumbs img:nth-child(1) { border-radius: 8px 0 0 0; }
  .gallery-thumbs img:nth-child(2) { border-radius: 0; }
  .gallery-thumbs img:nth-child(3) { border-radius: 0 8px 0 0; }
  
  .klook-booking-widget {
    position: relative;
    top: auto;
  }
  
  .klook-quick-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  /* em ecrãs muito pequenos, usa auto-fit para evitar overflow */
  .gallery-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    grid-auto-rows: 80px;
  }
}

@media (max-width: 768px) {
  .klook-title {
    font-size: 1.8rem;
  }
  
  .klook-rating-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .klook-quick-info {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .klook-section {
    padding: 1.5rem;
  }
  
  .gallery-main {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .klook-hero .container {
    padding: 0 1rem;
  }
  
  .klook-title {
    font-size: 1.5rem;
  }
  
  .amount {
    font-size: 2rem;
  }
  
  .widget-header,
  .widget-body {
    padding: 1rem;
  }
}

/* === KLOOK-STYLE TOURS LISTING PAGE === */
.klook-tours-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.klook-tours-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.klook-tours-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* Search Bar */
.klook-search-bar {
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 8px;
  display: flex;
  align-items: center;
}

.search-input-wrapper i.bi-search {
  position: absolute;
  left: 24px;
  color: #666;
  font-size: 1.1rem;
}

.klook-search-input {
  border: none;
  outline: none;
  padding: 16px 24px 16px 50px;
  font-size: 1rem;
  flex: 1;
  background: transparent;
  color: #333;
}

.klook-search-input::placeholder {
  color: #999;
}

.klook-search-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.klook-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Quick Categories */
.klook-quick-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.category-label {
  font-weight: 600;
  margin-right: 8px;
}

.klook-category-tag {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 8px 16px;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.klook-category-tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Filters Sidebar */
.klook-filters-sidebar {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 100px;
  margin-bottom: 24px;
}

.filters-title {
  font-weight: bold;
  margin-bottom: 24px;
  color: #333;
  font-size: 1.2rem;
}

.filter-group {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.filter-label {
  font-weight: 600;
  margin-bottom: 16px;
  color: #555;
  font-size: 1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
  transition: color 0.3s ease;
}

.filter-checkbox:hover {
  color: #333;
}

.filter-checkbox input[type="checkbox"] {
  display: none;
}

.filter-checkbox .checkmark {
  width: 18px;
  height: 18px;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
  background-color: #667eea;
  border-color: #667eea;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark:after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.rating-stars {
  margin-left: 8px;
  margin-right: 8px;
}

.rating-stars i {
  color: #ffd700;
  font-size: 0.9rem;
}

/* Price Range Slider */
.price-range {
  margin-top: 16px;
}

.price-inputs {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.price-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  width: 80px;
  font-size: 0.9rem;
  text-align: center;
}

.price-separator {
  margin: 0 12px;
  color: #666;
}

.price-slider {
  position: relative;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin: 20px 0;
}

.slider-track {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #eee;
  border-radius: 3px;
}

.slider-range {
  position: absolute;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
  left: 20%;
  width: 50%;
}

.slider-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border: 3px solid #667eea;
  border-radius: 50%;
  top: -6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-thumb:hover {
  transform: scale(1.1);
}

.slider-thumb-left {
  left: 20%;
  margin-left: -9px;
}

.slider-thumb-right {
  left: 70%;
  margin-left: -9px;
}

.klook-clear-filters {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 16px;
}

.klook-clear-filters:hover {
  background: #667eea;
  color: white;
}

/* Results Header */
.klook-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.results-info h6 {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 1.1rem;
}

.results-info p {
  margin: 0;
  font-size: 0.95rem;
}

.results-count {
  font-weight: 600;
  color: #667eea;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.view-toggle {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
}

.view-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.view-btn.active,
.view-btn:hover {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.klook-sort-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.95rem;
  background: white;
  color: #666;
  cursor: pointer;
  min-width: 180px;
}

/* Tours Grid */
.klook-tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Klook-style Tour Cards */
.klook-tours-grid .col-md-6 {
  margin-bottom: 0;
}

.klook-tours-grid .card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.klook-tours-grid .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.klook-tours-grid .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.klook-tours-grid .card:hover .card-img-top {
  transform: scale(1.05);
}

.klook-tours-grid .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.klook-tours-grid .card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.klook-tours-grid .card-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.klook-tours-grid .tour-meta {
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-top: auto;
}

.klook-tours-grid .tour-meta p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #555;
}

.klook-tours-grid .tour-meta i {
  color: #667eea;
  margin-right: 6px;
}

.klook-tours-grid .btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 12px;
}

.klook-tours-grid .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

/* Tour Status Badge */
.klook-tours-grid .tour-status {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.klook-tours-grid .tour-status.available {
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.klook-tours-grid .tour-status.expired {
  color: #f44336;
  border: 1px solid #f44336;
}

/* Rating Display */
.klook-tours-grid .tour-rating {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.klook-tours-grid .rating-stars {
  color: #ffd700;
  margin-right: 8px;
}

.klook-tours-grid .rating-score {
  font-weight: 600;
  color: #333;
  margin-right: 8px;
}

.klook-tours-grid .rating-count {
  color: #666;
  font-size: 0.85rem;
}

/* Price Display */
.klook-tours-grid .tour-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.klook-tours-grid .price-label {
  color: #666;
  font-size: 0.9rem;
}

.klook-tours-grid .price-amount {
  font-size: 1.3rem;
  font-weight: bold;
  color: #667eea;
}

.klook-tours-grid .price-currency {
  font-size: 1rem;
  color: #666;
}

/* Quick Actions */
.klook-tours-grid .tour-quick-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.klook-tours-grid .card:hover .tour-quick-actions {
  opacity: 1;
}

.klook-tours-grid .quick-action-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.klook-tours-grid .quick-action-btn:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

/* Load More Button */
.klook-load-more-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.klook-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Info Section */
.klook-info-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

.klook-info-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.klook-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.info-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: white;
}

.klook-info-card h5 {
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
  font-size: 1.3rem;
}

.klook-info-card p {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.info-features {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Newsletter Section */
.klook-newsletter {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.newsletter-subtitle {
  font-size: 1.2rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto 24px;
}

.newsletter-input {
  border: none;
  border-radius: 50px 0 0 50px;
  padding: 16px 24px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.newsletter-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 50px 50px 0;
  padding: 16px 24px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.newsletter-disclaimer {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* Responsive adjustments for tours listing */
@media (max-width: 768px) {
  .klook-tours-title {
    font-size: 2rem;
  }
  
  .klook-results-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .results-actions {
    justify-content: space-between;
  }
  
  .klook-filters-sidebar {
    position: static;
    margin-bottom: 24px;
  }
  
  .klook-tours-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-title {
    font-size: 2rem;
  }
}

/* Features Grid Styles */
.features-grid {
  padding: 8px;
}

.features-grid .feature-item {
  padding: 6px 4px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.features-grid .feature-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: white;
}

.features-grid .feature-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: white;
}

.feature-text-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-text-link:hover {
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
}
