/* === GLOBAL STYLES === */
/* Estilos comuns usados em todo o site */

:root {
  /* === CORES PRINCIPAIS === */
  --primary-color: #e91e63;
  --secondary-color: #4caf50;
  --warning-color: #ef6c00;
  
  /* === CORES DE TEXTO === */
  --text-primary: #333;
  --text-light: #ddd;
  --text-white: #fff;
  --text-muted: #666;
  
  /* === CORES DE BACKGROUND === */
  --bg-white: #fff;
  --bg-light: #f8f9fa;
  --bg-dark: rgba(0, 0, 0, 0.4);
  --bg-overlay: rgba(255, 255, 255, 0.95);
  
  /* === CORES DE BORDER/SHADOW === */
  --border-light: #ddd;
  --shadow-light: rgba(0,0,0,0.08);
  --shadow-medium: rgba(0,0,0,0.1);
  --shadow-strong: rgba(0,0,0,0.15);
  
  /* === TIPOGRAFIA === */
  /* System Font Stack - Usa a fonte nativa do sistema operativo para melhor performance e legibilidade */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", 
                 Roboto, Helvetica, Arial, sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  
  /* === ESPAÇAMENTOS === */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* === BORDER RADIUS === */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-circle: 50%;
  
  /* === Z-INDEX LAYERS === */
  --z-header: 20;
  --z-dropdown: 100;
  --z-modal: 200;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-white);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

/* Tour Card Image Utility */
.c-tour-card__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  min-height: 250px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Garantir que o container da imagem tenha altura total */
.col-md-5.position-relative {
  min-height: 250px;
}

/* Cards tour com altura uniforme */
.tour-card {
  height: 100%;
  overflow: hidden;
}

.tour-card .row {
  height: 100%;
}

/* Data attribute support for background images */
[data-bg-image] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Breadcrumb/Menu de Navegação Horizontal (Category Path)
   Used in: category pages via render_category_path() function
   Generated HTML: <div id="horizontal_menu">...</div>
   ========================================================================== */

#horizontal_menu {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#horizontal_menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: normal;
  transition: all 0.3s ease;
}

#horizontal_menu a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

#horizontal_menu i.bi-house-fill {
  color: var(--text-muted);
  margin-right: 0.25rem;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

#horizontal_menu a:first-child:hover i.bi-house-fill {
  color: var(--primary-color);
}

/* ==========================================================================
   BOOKING SIDEBAR WIDGET
   Used in: includes/main/booking_sidebar.php
   ========================================================================== */

/* 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;
}

.widget-body {
  padding: 1.5rem;
}

/* 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;
}

.features-grid .feature-text a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.features-grid .feature-text a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.feature-text-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.feature-text-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* 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;
}

/* 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;
}

/* 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;
}

/* Weather Widget Styles */
.weather-scale-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

#weatherFrame {
  width: 460px;
  height: 590px;
  border: 0;
  display: block;
  transform-origin: top left;
}

.weather-credit {
  font-size: 12px;
  text-align: right;
  margin-top: 4px;
  opacity: 0.7;
}

.weather-credit a {
  color: var(--primary-color);
  text-decoration: none;
}

.weather-credit a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FILTERS SECTION
   Used in: includes/main/filters.php
   ========================================================================== */

#tours-filters {
  background: #f4f4f4;
  padding: 1rem 0;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   HERO PARTNER LOGOS
   Used in: includes/homepage/hero.php - Above social icons
   ========================================================================== */

.partner-logos-hero {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  z-index: 10;
}

.partner-logo-hero {
  height: 120px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  border: 1px solid white;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.partner-logo-hero:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* ==========================================================================
   HERO BUTTON STYLES
   Match the filters button style
   ========================================================================== */

#homepage-hero .btn-outline-primary {
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-width: 2px;
  font-size: 1.75rem;
}

#homepage-hero .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);
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .klook-booking-widget {
    position: static;
    margin-bottom: 24px;
  }
  
  /* Hide filters in mobile view */
  #tours-filters {
    display: none;
  }
  
  /* Hero partner logos responsive */
  .partner-logos-hero {
    bottom: 20px;
    left: 10px;
    right: auto;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: flex-start;
  }
  
  .partner-logo-hero {
    height: 85px;
  }
  
  /* Center social icons in mobile */
  #homepage-hero .social-icons-wrapper {
    left: 50% !important;
    right: auto !important;
    bottom: 140px !important;
    transform: translateX(-50%);
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 95%;
    gap: 10px;
  }
  
  #homepage-hero .social-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  
  /* Hero typography mobile */
  .hero-title {
    font-size: 2.6rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.5rem !important;
  }
  
  /* Hero button mobile - bigger and more spacing */
  #homepage-hero .btn-outline-primary {
    padding: 0.75rem 1.8rem !important;
    font-size: 1rem !important;
    margin-top: 2rem !important;
  }
}


