/* ==========================================================================
   Choose Your Travel Style Section (#packages)
   Responsive 6-Card Discovery Grid with Instant Category Filter
   ========================================================================== */

#packages.travel-styles-section {
  position: relative;
  padding: 4rem 1rem 4.5rem;
  background: var(--bg-surface, #f9f8f5);
  overflow: hidden;
  scroll-margin-top: 75px;
}

.dark-theme #packages.travel-styles-section {
  background: #0d151c;
}

/* Header: Title, Description, and Header Actions */
.styles-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.styles-heading {
  max-width: 760px;
  text-align: left;
}

.styles-heading .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold, #c59b48);
  margin-bottom: 0.45rem;
}

.styles-heading h2 {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(1.95rem, 3.2vw, 2.55rem);
  font-weight: 700;
  color: var(--brand-ink, #172621);
  margin: 0 0 0.55rem;
  line-height: 1.22;
}

.dark-theme .styles-heading h2 {
  color: #f9f8f5;
}

.styles-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted, #4a5568);
  margin: 0;
  line-height: 1.6;
}

.dark-theme .styles-subtitle {
  color: #a0aec0;
}

/* Header Actions */
.styles-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.styles-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: var(--brand-accent, #b9935a);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.dark-theme .styles-count-badge {
  background: #141f2e;
  border-color: #233147;
  color: #2dd4bf;
}

.styles-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-gold, #c59b48);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.styles-view-all:hover {
  color: #b3893a;
  transform: translateX(3px);
}

/* ==========================================================================
   Category Filter Tabs ("Choose / Filter" Pill Bar)
   ========================================================================== */

.styles-tabs-wrapper {
  margin-bottom: 2rem;
  width: 100%;
}

.styles-tabs-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.25rem 0.65rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.styles-tabs-track::-webkit-scrollbar {
  display: none;
}

.style-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  font-family: inherit;
  flex-shrink: 0;
}

.dark-theme .style-tab {
  background: #141f2e;
  border-color: #233147;
  color: #cbd5e1;
}

.style-tab i {
  color: var(--brand-accent, #b9935a);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.dark-theme .style-tab i {
  color: #2dd4bf;
}

.style-tab:hover {
  border-color: var(--brand-accent, #b9935a);
  color: var(--brand-accent, #b9935a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(185, 147, 90, 0.15);
}

.dark-theme .style-tab:hover {
  border-color: #2dd4bf;
  color: #2dd4bf;
}

.style-tab.active {
  background: var(--brand-accent, #b9935a);
  border-color: var(--brand-accent, #b9935a);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(185, 147, 90, 0.32);
}

.dark-theme .style-tab.active {
  background: #14b8a6;
  border-color: #14b8a6;
  color: #042f2c;
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
}

.style-tab.active i {
  color: #ffffff;
}

.dark-theme .style-tab.active i {
  color: #042f2c;
}

/* ==========================================================================
   Responsive 6-Card Travel Styles Grid
   ========================================================================== */

.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
}

.style-grid-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e7eaf0;
  box-shadow:
    0 4px 20px -2px rgba(15, 23, 42, 0.06),
    0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-grid-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 28px -4px rgba(15, 23, 42, 0.12),
    0 4px 10px -2px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.dark-theme .style-grid-card {
  background: #141f2e;
  border-color: #233147;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Media Header */
.style-grid-card .style-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  min-height: 220px;
  overflow: hidden;
  background: #0b192c;
}

.style-grid-card .style-media-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.style-grid-card .style-img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-grid-card:hover .style-img {
  transform: scale(1.05);
}

/* Exact image framing per travel style */
.style-grid-card[data-category="family"] .style-img { object-position: center 60% !important; }
.style-grid-card[data-category="couple"] .style-img { object-position: center 48% !important; }
.style-grid-card[data-category="group"] .style-img { object-position: center 42% !important; }
.style-grid-card[data-category="friends"] .style-img { object-position: center 58% !important; }
.style-grid-card[data-category="offbeat"] .style-img { object-position: center center !important; }
.style-grid-card[data-category="activity"] .style-img { object-position: center 48% !important; }

/* Category Pill Badges */
.style-grid-card .style-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.02em;
  pointer-events: none;
}

.badge-family { color: #ea580c; }
.badge-couple { color: #be185d; }
.badge-group { color: #2563eb; }
.badge-friends { color: #059669; }
.badge-offbeat { color: #7c3aed; }
.badge-activity { color: #d97706; }

/* Duration Badge */
.style-duration-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

/* Card Body */
.style-grid-card .style-card-body {
  padding: 1.4rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  box-sizing: border-box;
}

.style-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-teal, #007670);
  margin-bottom: 0.35rem;
}

.dark-theme .style-meta-tag {
  color: #2dd4bf;
}

.style-grid-card .style-title {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: 1.18rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.35rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.style-grid-card .style-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.style-grid-card .style-title a:hover {
  color: var(--brand-teal, #007670);
}

.dark-theme .style-grid-card .style-title {
  color: #f9fafb;
}

.style-grid-card .style-route {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 0.9rem;
  line-height: 1.4;
  font-weight: 500;
}

.dark-theme .style-grid-card .style-route {
  color: #94a3b8;
}

/* Highlights List */
.style-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.dark-theme .style-highlights {
  border-top-color: #233147;
}

.style-highlights .hl-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.35;
}

.dark-theme .style-highlights .hl-item {
  color: #cbd5e1;
}

.style-highlights .hl-item i {
  color: #008779;
  font-size: 0.74rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.dark-theme .style-highlights .hl-item i {
  color: #14b8a6;
}

/* Bottom Bar */
.style-grid-card .style-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.dark-theme .style-grid-card .style-card-bottom {
  border-top-color: #1e293b;
}

.style-grid-card .style-pricing-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.style-grid-card .pricing-start-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.dark-theme .style-grid-card .pricing-start-text {
  color: #94a3b8;
}

.style-grid-card .pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.style-grid-card .currency {
  font-size: 1.32rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dark-theme .style-grid-card .currency {
  color: #f9fafb;
}

.style-grid-card .unit {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.dark-theme .style-grid-card .unit {
  color: #9ca3af;
}

/* Action Buttons */
.style-grid-card .style-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  width: 100%;
}

.style-grid-card .btn-style-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.dark-theme .style-grid-card .btn-style-explore {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

.style-grid-card .btn-style-explore:hover {
  border-color: var(--brand-teal, #007670);
  color: var(--brand-teal, #007670);
  background: #f8fafc;
}

.dark-theme .style-grid-card .btn-style-explore:hover {
  border-color: #2dd4bf;
  color: #2dd4bf;
  background: #0f172a;
}

.style-grid-card .btn-style-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.24);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.style-grid-card .btn-style-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.36);
}

/* Filter animations */
.style-grid-card.is-hidden {
  display: none !important;
}

.style-grid-card.fade-in-card {
  animation: cardFadeIn 0.35s ease forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Trust Features Strip
   ========================================================================== */

.styles-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color, #e8e4dc);
}

.dark-theme .styles-trust-strip {
  border-color: #233147;
}

.styles-trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.styles-trust-item .trust-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(197, 155, 72, 0.12);
  color: var(--brand-gold, #c59b48);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.styles-trust-item .trust-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-ink, #172621);
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.dark-theme .styles-trust-item .trust-text h4 {
  color: #f9f8f5;
}

.styles-trust-item .trust-text p {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.4;
}

.dark-theme .styles-trust-item .trust-text p {
  color: #94a3b8;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media screen and (max-width: 1080px) {
  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 860px) {
  .styles-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .styles-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .styles-trust-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media screen and (max-width: 640px) {
  #packages.travel-styles-section {
    padding: 2.5rem 0.65rem 3rem;
  }
  .styles-header-wrap {
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
  }
  .styles-heading h2 {
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
  }
  .styles-subtitle {
    font-size: 0.86rem;
    line-height: 1.55;
  }
  .styles-tabs-wrapper {
    margin-bottom: 1.25rem;
  }
  .style-tab {
    padding: 0.52rem 0.95rem;
    font-size: 0.82rem;
    gap: 0.45rem;
  }
  .styles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .style-grid-card {
    border-radius: 16px;
  }
  .style-grid-card .style-card-media {
    height: 195px;
    min-height: 195px;
  }
  .style-grid-card .style-card-body {
    padding: 1.15rem 1rem 1.15rem;
  }
  .style-grid-card .style-title {
    font-size: 1.15rem;
  }
  .style-highlights {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }
  .style-highlights .hl-item {
    font-size: 0.78rem;
  }
  .style-grid-card .currency {
    font-size: 1.25rem;
  }
  .style-grid-card .style-actions {
    gap: 0.4rem;
  }
  .style-grid-card .btn-style-explore,
  .style-grid-card .btn-style-whatsapp {
    padding: 0.5rem 0.75rem;
    font-size: 0.76rem;
  }
  .styles-trust-strip {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}
