@media (min-width: 781px) {

  .searchTableArea {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 40px;
    font-size: 16px;
  }

  .searchTableArea h2 {
    margin-left: 20px;
    margin-bottom: 12px;
    font-size: 22px;
    color: #222;
  }

  .search-table {
    width: 98%;
    margin: auto;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
  }

  .search-table th {
    padding: 10px 12px;
    background-color: #f5f5f5;
    color: #444;
    text-align: left;
    border-bottom: 2px double #c4c4c4;
    font-size: 16px;
    font-weight: 600;
  }

  .search-table th:nth-child(1),
  .search-table td:nth-child(1) { width: 12%; }

  .search-table th:nth-child(2),
  .search-table td:nth-child(2) { width: 13%; }

  .search-table th:nth-child(3),
  .search-table td:nth-child(3) { width: 12%; }

  .search-table th:nth-child(4),
  .search-table td:nth-child(4) { width: 38%; }

  .search-table th:nth-child(5),
  .search-table td:nth-child(5) { width: 11%; }

  .search-table th:nth-child(6),
  .search-table td:nth-child(6) { width: 15%; }

  .search-table tr {
    transition: background 0.18s ease, color 0.18s ease;
    cursor: pointer;
  }

  .search-table tr:hover {
    background-color: #e4e4e4;
    color: #0c2fbd;
  }

  .search-table td {
    padding: 12px 10px;
    border-bottom: 2px dashed #d0d0d0;
    vertical-align: top;
    font-size: 15px;
    color: #222;
  }

  .search-cellImage {
    padding: 10px;
    height: 110px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .table-thumb {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fafafa;
  }

  /* The Rating Wrapper */
  .search-table-rating-block {
    margin-top: 6px; /* Space between title and rating */
    display: block;  /* Forces it to be on its own line */
  }

  /* The Badge reset */
  .search-table-rating-block .search-rating-badge {
    position: relative; /* CRITICAL: Breaks the absolute float from cards */
    bottom: auto;       
    left: auto;         
    display: inline-flex;
    align-items: center;
    box-shadow: none;   
    padding: 2px 6px;   
    font-size: 13px;    /* Slightly smaller looks better in tables */
  }
  .search-cellName {
    padding-right: 10px;
  }

  .search-cellDescription {
    font-size: 15px;
    line-height: 1.35;
    color: #444;
    padding-right: 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .search-cellPrice {
    font-size: 15px;
    font-weight: 700;
    color: #0b4e0b;
        word-break: break-word;
    overflow-wrap: anywhere;
  }

  .search-noResults {
    margin: 25px 20px;
    font-size: 18px;
    color: #555;
    font-style: italic;
  }
}

@media (max-width: 780px) {
    .searchTableArea {
        width: 100%;
        margin-top: 15px;
        margin-bottom: 20px;
        padding: 0;
    }

    .search-table {
        display: table;
        width: 100% !important;
        margin: 0;
        table-layout: fixed; /* Prevents table from widening beyond screen */
        border-collapse: collapse;
        background-color: #fff;
    }

    /* --- Headers --- */
    .search-table th {
        padding: 8px 4px;
        background-color: #f5f5f5;
        color: #444;
        text-align: left;
        border-bottom: 2px solid #ddd;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .search-table td { 
        padding: 10px 4px;
        vertical-align: top;
        border-bottom: 1px solid #eee;
        word-wrap: break-word; /* Allows long words to break */
        overflow: visible;     /* Ensures city data is not hidden */
    }

    /* --- Column Widths --- */
    .col-main { width: 30%; } /* Just the image */
    .col-info { width: 45%; } /* Title, Name, Description */
    .col-meta { width: 25%; text-align: right; } /* City, Price, Date */

    /* --- Column 1: Image --- */
    .table-thumb {
        width: 100%;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #eee;
        display: block;
    }

    .search-table-rating-block {
        display: block;
        width: 100%;
    }
    /* The badge itself */
    .search-table-rating-block .search-rating-badge {
        position: relative !important; /* Resets the absolute position from cards */
        bottom: auto !important;
        left: auto !important;
        /* Plane Alignment Fix */
        display: inline-flex;
        align-items: center;      /* Vertically centers rating and count */
        justify-content: center;
        gap: 3px;                 /* Horizontal space between 9 and (1) */
        line-height: 1;           /* Removes extra vertical space */
        font-size: 11px;
        padding: 2px 6px;
        box-shadow: none;
        border-radius: 4px;
        color: white !important;
    }
    /* The review count inside the badge */
    .search-table-rating-block .rating-count {
        font-size: 10px;
        line-height: 1;           /* Keeps it on the same plane as the number */
        display: inline-block;
    }

    .search-cellName {
        font-size: 11px;
        font-weight: 600;
        color: #333;
        margin-bottom: 2px;
        display: block;
    }

    .search-cellDescription {
        font-size: 10px;
        line-height: 1.3;
        color: #666;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* --- Column 3: Meta Data (City, Price, Date) --- */
.col-meta {
        width: 25%;
        text-align: right; /* Aligns all text inside to the right */
        vertical-align: top;
        padding-right: 5px; /* Tiny bit of breathing room from the edge */
    }

    .search-cellCity {
        font-size: 11px;
        color: #444;
        display: block; /* Forces it onto its own line */
        margin-bottom: 4px;
        word-wrap: break-word;
        line-height: 1.2;
    }

    .search-cellPrice {
        font-size: 13px;
        font-weight: 700;
        color: #0b4e0b;
        display: block; /* Forces it onto its own line */
        margin-bottom: 4px;
    }

    .search-cellDate {
        font-size: 10px;
        color: #999;
        display: block; /* Forces it onto its own line */
    }

    /* No Results styling */
    .search-noResults {
        margin: 20px 10px;
        font-size: 16px;
        color: #777;
        text-align: center;
        width: 100%;
    }
}