/* Interzonga MOBILE-CARDS-14 — production, 2026-09-23.
   Adapt the approved MOBILE-CARD-1B presentation to the existing live
   category/search card markup. No generated sample records are installed.
   Only screen widths below 700px. All rules are scoped to actual listing
   cards inside .ic3-results; ad units, header, logo and other pages are not
   restyled. Keep the existing desktop/tablet and print presentations.
*/
@media screen and (max-width: 699px) {
  .ic3 .ic3-results > .ic3-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ic3 .ic3-results .ic3-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-width: 0;
  }

  /* Square left-hand frame; contain preserves the whole listing photo. */
  .ic3 .ic3-results .ic3-card > .ic3-photo {
    display: block;
    flex: 0 0 40%;
    width: 40%;
    max-width: 40%;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    align-self: flex-start;
  }
  .ic3 .ic3-results .ic3-card > .ic3-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .ic3 .ic3-results .ic3-card .ic3-photo-empty {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
  }
  .ic3 .ic3-results .ic3-card .ic3-badges {
    inset: 6px 6px auto 6px;
    gap: 4px;
  }
  .ic3 .ic3-results .ic3-card .ic3-badge {
    max-width: 100%;
    padding: 3px 5px;
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .ic3 .ic3-results .ic3-card > .ic3-card-body {
    flex: 1 1 60%;
    min-width: 0;
    padding: 12px;
    overflow-wrap: anywhere;
  }

  /* Match the approved visual sequence without replacing the renderer:
     category, title, price/location, specifications, seller, views, actions.
     The existing photo/title/detail/contact hrefs and their DOM order stay
     unchanged; no fake links or CSS-generated listing information. */
  .ic3 .ic3-results .ic3-card .ic3-tag {
    order: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #356e71;
    font-size: 12px;
    line-height: 1.3;
  }
  .ic3 .ic3-results .ic3-card h3 {
    order: 1;
    margin: 5px 0;
    color: #0f6264;
    font-size: 17px;
    line-height: 1.25;
  }
  .ic3 .ic3-results .ic3-card h3 a {
    color: #0f6264;
  }
  .ic3 .ic3-results .ic3-card .ic3-location-price {
    order: 2;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    min-width: 0;
  }
  .ic3 .ic3-results .ic3-card .ic3-price {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.3;
    text-align: left;
    color: #263b40;
  }
  .ic3 .ic3-results .ic3-card .ic3-location {
    color: #66787c;
    font-size: 13px;
    line-height: 1.3;
  }
  .ic3 .ic3-results .ic3-card .ic3-specs {
    order: 3;
    margin: 6px 0 0;
    color: #66787c;
    font-size: 13px;
    line-height: 1.3;
  }
  .ic3 .ic3-results .ic3-card .ic3-business {
    order: 4;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.3;
  }
  /* The full description and listing reference remain on photos.cgi.
     Their desktop/tablet summaries and underlying HTML are unchanged. */
  .ic3 .ic3-results .ic3-card .ic3-description {
    display: none;
  }
  .ic3 .ic3-results .ic3-card .ic3-card-meta {
    order: 5;
    display: block;
    margin: 6px 0 0;
    color: #66787c;
    font-size: 13px;
    line-height: 1.3;
  }
  .ic3 .ic3-results .ic3-card .ic3-card-meta > span:nth-child(2) {
    display: none;
  }
  .ic3 .ic3-results .ic3-card .ic3-card-actions {
    order: 6;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
  }
  .ic3 .ic3-results .ic3-card .ic3-details {
    display: inline-block;
    padding: 0;
    color: #356e71;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
  }
  .ic3 .ic3-results .ic3-card .ic3-phone {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.3;
  }
}
