/* assets/css/rto-location.css */
/* ---- Layout Containers ---- */
.rto-loc-outer {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .rto-loc-outer {
    padding-left: 23px;
    padding-right: 23px;
  }
  body .rto-loc-card {
    min-height: 158px;
  }
}

.rto-loc-inner {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* ---- Keep existing wrap/grid styling ---- */
.rto-loc-wrap {
  display: block;
}

/* Wrapper & grid (keep stable sizes to avoid CLS) */
.rto-loc-wrap { max-width: 980px; margin: 0 auto; }
.rto-loc-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
  min-height: 210px; /* keeps space while loading */
}
@media (min-width: 768px) {
  .rto-loc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Card shell */
.rto-loc-card {
  border-top: 1px solid var(--dark-grey-accent);
  display: flex;
  min-height: 200px; /* stable height for 4 rows */
  background: transparent; /* parent page bg shows, border-top acts as rule */
  min-width: 0; /* prevent min-content “skinny” columns */
}
.rto-loc-card-body { padding: 24px 22px; width: 100%; }

/* Typography blocks (Roboto only, 700/400) */
.rto-loc-datebig {
  font-family: var(--gp-font--roboto);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4em;
  color: var(--white);
  margin-bottom: 6px;
}
.rto-loc-label {
  font-family: var(--gp-font--roboto);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4em;
  color: var(--red);
  margin-bottom: 8px;
}
.rto-loc-code {
  font-family: var(--gp-font--roboto);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45em;
  color: var(--grey-text);
  margin-bottom: 2px;
}
.rto-loc-name {
  font-family: var(--gp-font--roboto);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45em;
  color: var(--grey-text);
}

/* Loading status line */
.rto-loc-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
}
.rto-loc-status .loading-spinner {
  color: var(--grey-text);
  animation: rto-spin 1s linear infinite;
}
.rto-loc-status-text {
  font-family: var(--gp-font--roboto);
  font-weight: 400;
  color: var(--grey-text);
}
@keyframes rto-spin { to { transform: rotate(360deg); } }

/* Skeleton placeholders (3 cards from PHP keep layout stable) */
.skeleton .rto-loc-card-body { padding: 24px 22px; }
.skeleton-row {
  height: 18px;
  border-radius: 6px;
  background: var(--dark-grey);
  border: 1px solid var(--dark-grey-accent);
  margin: 10px 0;
}

/* Message */
.rto-loc-msg {
  margin-top: 10px;
  font-family: var(--gp-font--roboto);
  font-weight: 400;
  color: var(--grey-text);
  text-align: center;
}
