/* ============================================================
    VECTIS RENTALS — VEHICLE SINGLE (PRO + Responsive)
    - Solo clases .vectis-*
    - Tipografía: inherit
    - Compatible con tu shortcode VehicleSingleShortcode
    ============================================================ */

:root {
  --vectis-text: #111827;
  --vectis-muted: #6b7280;

  --vectis-border: #e5e7eb;
  --vectis-soft: #f3f4f6;
  --vectis-soft-2: #f9fafb;

  --vectis-dark: #111827;

  --vectis-radius: 22px;
  --vectis-radius-sm: 14px;

  --vectis-shadow: 0 14px 44px rgba(17, 24, 39, 0.1);
  --vectis-shadow-sm: 0 10px 30px rgba(17, 24, 39, 0.06);

  --vectis-ring: 0 0 0 4px rgba(17, 24, 39, 0.1);
}

/* Scope */
.vectis-single-wrap,
.vectis-single-wrap * {
  font-family: inherit;
  box-sizing: border-box;
}

.vectis-single-wrap {
  width: 100%;
  max-width: var(--vectis-single-maxw, 1100px);
  margin: 0 auto;
  padding: 0 14px 18px;
  color: var(--vectis-text);
}

/* ------------------------------------------------------------
    Back link
    ------------------------------------------------------------ */
.vectis-single-back {
  margin: 12px 0 14px;
}

.vectis-back-link {
  text-decoration: none;
  font-weight: 950;
  color: var(--vectis-text);

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--vectis-border);
  background: #fff;

  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease,
    border-color 0.15s ease;
}

.vectis-back-link:hover {
  background: var(--vectis-soft-2);
  box-shadow: var(--vectis-shadow-sm);
}

.vectis-back-link:active {
  transform: translateY(1px);
}

.vectis-back-link:focus-visible {
  outline: none;
  box-shadow: var(--vectis-ring);
}

/* ------------------------------------------------------------
    Layout
    ------------------------------------------------------------ */
.vectis-single-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: start;
}

/* Mejor mobile */
@media (max-width: 980px) {
  .vectis-single-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
    Media (imagen)
    ------------------------------------------------------------ */
.vectis-single-media {
  border-radius: var(--vectis-radius);
  overflow: hidden;

  border: 1px solid var(--vectis-border);
  background: linear-gradient(180deg, var(--vectis-soft), #eef2f7);

  box-shadow: var(--vectis-shadow);
}

.vectis-single-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .vectis-single-img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .vectis-single-img {
    height: 260px;
  }
}

.vectis-single-no-photo {
  height: 320px;
  display: grid;
  place-items: center;

  color: var(--vectis-muted);
  font-weight: 950;
  font-size: 13px;
}

/* ------------------------------------------------------------
    Description
    ------------------------------------------------------------ */
.vectis-desc {
  margin-top: 14px;
  padding: 14px 16px;

  border-radius: 18px;
  border: 1px solid var(--vectis-border);
  background: #fff;
  box-shadow: var(--vectis-shadow-sm);

  line-height: 1.7;
  color: var(--vectis-text);
  opacity: 0.96;

  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------
    Right card
    ------------------------------------------------------------ */
.vectis-single-card {
  border: 1px solid var(--vectis-border);
  border-radius: var(--vectis-radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--vectis-shadow);

  /* sticky pro */
  position: sticky;
  top: 18px;
  align-self: start;
}

@media (max-width: 980px) {
  .vectis-single-card {
    position: static;
  }
}

.vectis-single-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.02em;
}

@media (max-width: 480px) {
  .vectis-single-title {
    font-size: 24px;
  }
}

.vectis-single-specs {
  margin-bottom: 12px;
  color: var(--vectis-muted);
  font-weight: 800;
  line-height: 1.5;
  font-size: 13px;
}

.vectis-single-price {
  font-size: 22px;
  font-weight: 950;
  margin: 10px 0 16px;

  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--vectis-border);
  background: var(--vectis-soft-2);
}

@media (max-width: 480px) {
  .vectis-single-price {
    font-size: 20px;
  }
}

/* ------------------------------------------------------------
    Actions
    ------------------------------------------------------------ */
.vectis-single-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .vectis-single-actions > a,
  .vectis-single-actions > button {
    flex: 1 1 auto;
  }
}

/* Buttons */
.vectis-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 14px;
  border-radius: var(--vectis-radius-sm);
  border: 1px solid var(--vectis-border);

  background: #fff;
  color: var(--vectis-text);

  font-weight: 950;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.05s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.vectis-btn:hover {
  background: var(--vectis-soft-2);
  box-shadow: var(--vectis-shadow-sm);
}

.vectis-btn:active {
  transform: translateY(1px);
}

.vectis-btn:focus-visible {
  outline: none;
  box-shadow: var(--vectis-ring);
}

.vectis-btn-primary {
  background: var(--vectis-dark);
  border-color: var(--vectis-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

.vectis-btn-primary:hover {
  opacity: 0.96;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.22);
}

/* ------------------------------------------------------------
    Notes / tips
    ------------------------------------------------------------ */
.vectis-single-note {
  opacity: 0.9;
  font-size: 13px;
  font-weight: 800;
  color: var(--vectis-text);

  padding: 10px 12px;
  border-radius: 14px;

  border: 1px dashed var(--vectis-border);
  background: var(--vectis-soft-2);

  flex: 1 1 100%;
}

.vectis-single-tip {
  margin-top: 12px;
  opacity: 0.9;

  font-size: 12px;
  line-height: 1.55;
  color: var(--vectis-text);

  padding: 10px 12px;
  border-radius: 14px;

  border: 1px solid var(--vectis-border);
  background: #fff;
}

.vectis-single-tip code,
.vectis-single-note code {
  font-family: inherit;
  background: var(--vectis-soft);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--vectis-border);
  font-size: 12px;
}

/* ------------------------------------------------------------
    Pequeños detalles pro
    ------------------------------------------------------------ */
.vectis-single-card hr {
  border: none;
  border-top: 1px solid var(--vectis-border);
  margin: 12px 0;
}
