/* ==========================================================================
   Somerset West Taxi Tours — Elevated fleet & tour card styles
   Used by the [swtt_fleet_grid] and [swtt_tours_grid] shortcodes so the
   same real, dynamic booking data renders in the polished card design
   introduced on the homepage — instead of the older plain inline-styled
   boxes. Reads the theme's --swtt-* custom properties where available and
   falls back to matching literal colors so the cards still look right if
   this plugin is ever run under a different theme.
   ========================================================================== */

.swtt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.swtt-veh-card,
.swtt-tour-card {
  background: #fff;
  border: 1px solid var(--swtt-border, rgba(26, 26, 26, 0.1));
  border-radius: var(--swtt-radius-lg, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(20, 24, 26, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swtt-veh-card:hover,
.swtt-tour-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 24, 26, 0.09);
}

.swtt-card-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: var(--swtt-cream-surface, #EFEAE0);
}

.swtt-veh-body,
.swtt-tour-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.swtt-card-cat {
  color: var(--swtt-primary, #33493B);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.swtt-veh-body h3,
.swtt-tour-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  margin: 8px 0 6px;
  color: #1A1A1A;
}

.swtt-card-desc {
  color: #666;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.swtt-veh-specs {
  display: flex;
  gap: 14px;
  margin: 2px 0 14px;
}

.swtt-veh-specs span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #555;
}

.swtt-veh-specs svg,
.swtt-card-dur svg {
  width: 15px;
  height: 15px;
  stroke: var(--swtt-primary, #33493B);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.swtt-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.swtt-card-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--swtt-primary, #33493B);
  line-height: 1.1;
}

.swtt-card-price small {
  font-size: 11.5px;
  font-weight: 600;
  color: #777;
}

.swtt-card-deposit {
  color: #2e7d32;
  display: block;
  font-size: 11.5px;
  margin: 4px 0 14px;
}

.swtt-card-dur {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #777;
}

.swtt-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 10px;
}

.swtt-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--swtt-radius-sm, 8px);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

.swtt-card-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.swtt-card-btn-solid {
  background: var(--swtt-primary, #33493B);
  color: #fff;
}

.swtt-card-btn-solid:hover { background: var(--swtt-primary-hover, #223229); color: #fff; }

.swtt-card-btn-wa {
  background: #25D366;
  color: #fff;
}

.swtt-card-btn-wa:hover { background: #1fb959; color: #fff; }

@media (max-width: 400px) {
  .swtt-card-btn {
    padding: 10px 10px;
    font-size: 12px;
  }
}

.swtt-view-all-wrap {
  text-align: center;
  margin-top: 32px;
}

.swtt-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--swtt-primary, #33493B);
  color: var(--swtt-primary, #33493B);
  padding: 12px 28px;
  border-radius: var(--swtt-radius-md, 10px);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.swtt-view-all svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.swtt-view-all:hover { background: var(--swtt-primary, #33493B); color: #fff; }

.swtt-card-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  color: #1A1A1A;
}
