/* Custom refinements for Liberated Ankit */

/* Card hover and micro-interactions */
.wp-site-blocks > header,
.wp-block-template-part:has(header),
header.wp-block-template-part {
  margin-bottom: 0 !important;
}

.wp-site-blocks > .wp-block-cover:first-of-type,
.wp-block-cover.alignfull:first-child {
  margin-top: 0 !important;
}

.la-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--wp--preset--color--border, #E5E7EB);
  border-radius: var(--wp--custom--radius--md, 8px);
  overflow: hidden;
  background: var(--wp--preset--color--surface, #ffffff);
}

.la-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
}

/* Badge styling for trek difficulty & categories */
.la-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--wp--custom--radius--full, 9999px);
  background-color: var(--wp--preset--color--badge-bg, #FEF3C7);
  color: var(--wp--preset--color--primary-hover, #B45309);
}

/* Timeline & Itinerary style */
.la-timeline {
  border-left: 2px solid var(--wp--preset--color--primary, #D97706);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.la-timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.la-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary, #D97706);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--wp--preset--color--primary, #D97706);
}

/* Budget breakdown table styling */
.la-budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.la-budget-table th,
.la-budget-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--wp--preset--color--border, #E5E7EB);
  text-align: left;
}

.la-budget-table th {
  background-color: rgba(0, 0, 0, 0.02);
  font-weight: 700;
}

.la-budget-table tr:last-child td {
  font-weight: 700;
  border-bottom: 2px solid var(--wp--preset--color--contrast, #111827);
}

/* Creator Hero Aspect & overlay */
.la-hero-wrapper {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* Smooth zoom for gallery thumbnails */
.wp-block-gallery .wp-block-image img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--wp--custom--radius--sm, 4px);
}

.wp-block-gallery .wp-block-image:hover img {
  transform: scale(1.02);
}
