/* DAPPER Tours — Frontend Styles */

/* ── Wrapper ─────────────────────────────────────────────── */
.dapper-tours-wrap {
  width: 100%;
  margin: 2em 0;
  box-sizing: border-box;
}

.dt-section-title {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 0 1em;
  color: #1a1a1a;
  line-height: 1.3;
}

/* ── Grid ────────────────────────────────────────────────── */
.dt-grid {
  display: grid;
  gap: 1.25em;
  /* Column count is set by scoped inline <style> per instance */
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1023px) {
  .dt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  .dt-grid { grid-template-columns: 1fr; }
}

/* ── Card ────────────────────────────────────────────────── */
.dt-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
}

/* ── Thumbnail ───────────────────────────────────────────── */
.dt-card__thumb-link {
  display: block;
  text-decoration: none;
}

.dt-card__thumb {
  width: 100%;
  /* Aspect ratio via padding trick — 56.25% = 16:9 */
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  background-color: #e8edf2;
  position: relative;
}

.dt-card__thumb--placeholder {
  background-image: none;
}

.dt-card__thumb--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #dce3ea 0%, #c5cfd8 100%);
}

/* ── Body ────────────────────────────────────────────────── */
.dt-card__body {
  padding: 1em 1.1em 1.1em;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5em;
}

.dt-card__title {
  margin: 0;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.4;
}

.dt-card__title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.15s;
}

.dt-card__title a:hover {
  color: #0073aa;
}

.dt-card__excerpt {
  margin: 0;
  font-size: 0.84em;
  color: #666;
  line-height: 1.55;
  flex: 1;
}

/* ── Footer (price + button) ─────────────────────────────── */
.dt-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: auto;
  padding-top: 0.75em;
  border-top: 1px solid #f0f0f0;
}

/* ── Price ───────────────────────────────────────────────── */
.dt-card__price {
  font-size: 1em;
  font-weight: 700;
  color: #c0392b;
  line-height: 1.2;
}

.dt-card__price .woocommerce-Price-currencySymbol {
  font-size: 0.8em;
  vertical-align: super;
}

.dt-card__price del {
  color: #aaa;
  font-weight: 400;
  font-size: 0.85em;
  margin-right: 0.25em;
}

.dt-card__price ins {
  text-decoration: none;
}

/* ── CTA Button ──────────────────────────────────────────── */
.dt-card__btn {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  font-size: 0.8em;
  font-weight: 600;
  padding: 0.45em 1em;
  border-radius: 5px;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.12s ease;
  line-height: 1.4;
}

.dt-card__btn:hover {
  background: #005177;
  color: #fff;
  transform: scale(1.03);
}

/* ── Narrow card (1-col on mobile) adjustments ───────────── */
@media (max-width: 599px) {
  .dt-card__body {
    padding: 0.85em 0.9em 0.9em;
  }
  .dt-card__title {
    font-size: 0.95em;
  }
}
