/* --------------------------
  Responsive tweaks for Locations page
  Append to assets/css/piyaro-locations.css
---------------------------*/

/* Small tablet and below: make table rows easier to read */
@media (max-width: 920px) {
  .loc-table th { font-size: 13px; }
  .loc-table td { font-size: 14px; }
  .map-btn { padding: 7px 10px; font-size: 13px; }
}

/* Mobile: transform each table row into stacked card-like blocks */
@media (max-width: 720px) {
  /* keep header visible but reduce padding */
  .loc-table thead th { padding: 8px 10px; font-size: 13px; }

  /* Make each row a block so cells stack vertically */
  .loc-table tbody tr {
    display: block;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20,15,8,0.04);
    overflow: hidden;
    border: 1px solid rgba(184,122,18,0.04);
  }

  /* stack cells */
  .loc-table tbody tr td {
    display: block;
    width: 100%;
    padding: 12px;
    border-bottom: none;
  }

  /* visually separate name / address / button */
  .loc-table tbody tr td:first-child { border-bottom: 1px solid rgba(0,0,0,0.04); }
  .loc-table tbody tr td:nth-child(2) { border-bottom: 1px solid rgba(0,0,0,0.03); }

  /* make the directions button full width for easy tapping */
  .loc-table .map-btn {
    display: block !important;
    width: calc(100% - 24px);
    margin: 10px auto 0;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Very small phones: tighten spacing */
@media (max-width: 420px) {
  .loc-title { font-size: 20px; }
  .loc-sub { font-size: 13px; }
  .loc-table thead th { font-size: 12px; padding: 8px; }
  .loc-table tbody tr td { padding: 10px; font-size: 14px; }
  .map-btn { font-size: 13px; padding: 8px 10px; }
}

/* Accessibility: ensure focus visible on mobile */
.map-btn:focus {
  outline: 3px solid rgba(184,122,18,0.18);
  outline-offset: 3px;
}

/* Optional: ensure long addresses wrap nicely */
.loc-table td div { word-break: break-word; }
