/*
.custom-data-wrapper {
    position: relative;
    width: 100%;
}

.custom-data-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    background-color: white;
    cursor: text;
}

.custom-data {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-data .option {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    color: #444;
}

.custom-data .option:hover {
    background-color: #f0f0f0;
}*/

/* Lawyers Listing Styles */
.lawyers-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.main-content {
    flex: 3;
    min-width: 280px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

.sidebar-box {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
}

.sidebar-box h3 {
    font-size: 1.2rem;
    color: #0a2b44;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
    display: inline-block;
}

.practice-list,
.states-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-list li,
.states-list li {
    margin-bottom: 10px;
}

.practice-list a,
.states-list a {
    text-decoration: none;
    color: #5a6874;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    padding: 6px 0;
}

.practice-list a:hover,
.states-list a:hover {
    color: #ff6b35;
}

.practice-count,
.state-count {
    background: #f0f4fe;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: #0d58c7;
}

.view-all-link {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

/* Location Suggestion Banner */
.location-suggestion {
    background: #e8f4fd;
    border-left: 4px solid #0d58c7;
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.location-suggestion-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.location-suggestion-btn {
    background: #0d58c7;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.location-suggestion-btn:hover {
    background: #0e4280;
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #0d58c7 0%, #0e4280 100%);
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.search-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.search-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.search-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper .custom-data-input {
    padding-right: 35px !important;
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    display: none;
    padding: 0 5px;
    z-index: 10;
}

.clear-btn:hover {
    color: #333;
}

.custom-data-input {
    width: 100%;
    padding: 12px 35px 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    background-color: white;
    cursor: text;
    box-sizing: border-box;
}

.search-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

.search-btn {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 22px;
}

.search-btn:hover {
    background-color: #e55a2b;
}

/* Sort Bar */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}



 .card {
      max-width: 1100px;
      width: 100%;
      background: #ffffff;
      border-radius: 12px;
   /*   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);*/
      display: flex;
      flex-wrap: wrap;
      padding: 24px 28px;
      gap: 28px;
     margin-bottom: 30px;
      transition: all 0.2s ease;
     box-shadow: 0 2px 6px 0 rgba(19,19,19,.12),0 1px 2px 0 rgba(19,19,19,.08);
    }


    .left {
      flex: 2.5;
      min-width: 220px;
      position: relative;
    }


    .left::after {
      content: "";
      position: absolute;
      top: 20px;
      bottom: 20px;
      right: -14px;
      width: 1px;
      background: #e2e8f0;
      border-radius: 2px;
    }


    .right {
      flex: 1.2;
      min-width: 210px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }


.top {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}


.image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}


.image-wrapper img {
    width: 150px;
    height: 170px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #ecf3fa;
}


.top-meta {
    display: flex;
    align-items: left;
    gap: 10px;
    flex-wrap: wrap; 
    justify-content: left;
}

.listing-type-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: fit-content;
}


.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    color: #f5b342;
    margin: 0; 
    padding-left: 0; 
}
    .rating span:first-child {
      font-weight: 700;
      font-size: 14px;
      color: #1e293b;
    }

    .rating span:last-child {
      font-size: 13px;
      color: #5b6e8c;
      font-weight: 500;
    }

    .info {
      flex: 1;
    }

    .name {
      font-size: 26px;
      font-weight: 700;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }

    .name a {
      text-decoration: none;
      color: #0d58c7;
      transition: color 0.2s;
    }

    .name a:hover {
      text-decoration: underline;
    }

    .badge {
      display: inline-flex;
      align-items: center;
    }


    .meta, .address {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: #2c3e50;
      margin-top: 8px;
      font-weight: 500;
    }

    .address svg, .meta svg {
      flex-shrink: 0;
      opacity: 0.75;
    }

    .tags {
      margin-top: 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tags span {
      background: #eff3f8;
      padding: 5px 12px;
      border-radius: 40px;
      font-size: 12px;
      font-weight: 500;
      color: #1f3a5f;
    }

   
    .desc {
      margin-top: 18px;
      font-size: 14px;
      line-height: 1.45;
      color: #334155;
      border-left: 2px solid #e2e8f0;
      padding-left: 14px;
    }

  
    .phone-row, .address-row {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 15px;
      font-weight: 500;
      color: #1e293b;
      background: #f9fbfe;
      padding: 12px 16px;
      border-radius: 18px;
      border: 1px solid #eef2f9;
      transition: background 0.2s;
    }

    .phone-number {
      font-weight: 700;
      color: #166534;
      letter-spacing: 0.2px;
    }

    .full-address {
      font-size: 14px;
      line-height: 1.4;
      color: #1f2f44;
    }


    .button-group {
      display: flex;
      flex-direction: row;
      gap: 10px;
      margin-top: 4px;
      flex-wrap: wrap;
    }

    .btn {
      padding: 8px 12px;
      border-radius: 40px;
      font-size: 14px;
      font-weight: 600;
      text-align: center;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
      background: none;
      flex: 1;
      min-width: 100px;
    }

    .btn-primary {
      background: #0d58c7;
      color: white;
      box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .btn-primary:hover {
      background: #0842a0;
    }

    .btn-outline {
      border: 1px solid #0d58c7;
      background: transparent;
      color: #0d58c7;
    }

    .btn-outline:hover {
      background: #eef3fe;
    }

    /* MOBILE BADGE (hidden on desktop) */
.mobile-badge {
    display: none;
}

/* MOBILE STATS */
.mobile-stats {
    display: none;
}

/* ================= MOBILE ================= */
@media (max-width: 780px) {

    .card {
        padding: 0 0 20px 0;
        gap:0;
    }
    .top{
        gap:10px;
    }
    .image-wrapper {
        width: 100%;
        position: relative;
    }

    .image-wrapper img {
        width: 100%;
        height: 250px;
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .mobile-badge {
        display: inline-block;
        position: absolute;
        top: 10px;
        left: 10px;
        background: indianred;
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        padding: 5px 10px;
        border-radius: 20px;
        z-index: 2;
        column-gap: 30px;
    }

  
    .listing-type-badge {
        display: none;
    }
    
    .name {
        font-size: 20px;
    }
    .rating{
        display: none;
    }

    .meta svg {
        display: none;
    }

    .meta {
        justify-content:left;
        font-size: 14px;
        color: #333;
    }
    .mobile-stats {
        display: flex;
        justify-content: space-between;
        margin-top: 12px;
        padding: 12px 0px;
 
        border-radius: 10px;
    }

    .stat {
        text-align:left;
        flex: 1;
        
        
    }

    .stat strong {
        display: block;
        font-size: 16px;
        font-weight: 700;
        color: #333;
    }

    .stat span {
        font-size: 14px;
        color: #686868;
        font-weight: 400;
    }

    .address,
    .phone-row,
    .address-row {
        display: none !important;
    }

    /* BETTER SPACING */
    .info {
        padding: 10px 14px;
    }

    .tags {
        justify-content: left;
    }
    .desc{
        display: none;
    }
    .button-group {
        padding: 0 14px;
    }
    .btn{
        border-radius: 6px;
        font-size: 15px;
    }
}

    /*@media (max-width: 480px) {


      .top img {
        width: 230px;
        height: 250px;
          object-fit: cover;
      }

      .name {
        font-size: 20px;
      }

      .rating {
        font-size: 14px;
        gap: 4px;
      }

      .btn {
        padding: 7px 8px;
        font-size: 12px;
      }

      .phone-row, .address-row {
        padding: 8px 12px;
      }

      .full-address {
        font-size: 12px;
      }
    }


    @media (max-width: 680px) {
      .button-group {
        gap: 8px;
      }
    }*/

/* Lawyer Grid */
/*.lawyer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}*/

/*

.card {
    width: 700px;
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.top {
    display: flex;
}

.top img {
    width: 120px;
    height: 140px;
    border-radius: 6px;
    margin-right: 20px;
    object-fit: cover;
}

.info {
    flex: 1;
}

.name {
    font-size: 22px;
    font-weight: bold;
}

.badge {
    background: #ffcc00;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 8px;
}

.address {
    font-size: 14px;
    color: #444;
    margin: 5px 0;
}

.rating {
    color: #f5a623;
    font-size: 14px;
}

.meta {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.desc {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
}

.tags span {
    display: inline-block;
    background: #f1f3f6;
    padding: 5px 10px;
    margin: 4px 4px 0 0;
    border-radius: 6px;
    font-size: 12px;
}


.bottom {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact {
    font-size: 14px;
    color: #444;
}


.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-call {
    background: #28a745;
    color: #fff;
}

.btn-outline {
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-fav {
    border: 1px solid #ddd;
    color: #e63946;
    width: 45px;
    text-align: center;
    padding: 8px 0;
}

@media (max-width: 768px) {

    .card {
        width: auto;
        margin: 10px;
        padding: 15px;
        border-radius: 6px;
    }

    .top {
        gap: 12px;
    }

    .top img {
        width: 70px;
        height: 80px;
        margin-right: 0;
    }

    .name {
        font-size: 16px;
    }

    .badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .address {
        font-size: 12px;
        margin: 2px 0;
    }

    .rating {
        font-size: 12px;
    }

    .meta {
        font-size: 12px;
    }


    .desc {
        font-size: 13px;
        margin-top: 10px;
    }

    .tags span {
        font-size: 10px;
        padding: 3px 6px;
    }

    .bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .contact {
        font-size: 13px;
    }

    .actions {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .btn {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 13px;
    }

    .btn-fav {
        flex: 0 0 45px;
    }
}*/
/*

.lawyer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #f0f0f0;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.card-content {
    padding: 15px;
}

.lawyer-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.lawyer-practice-areas {
    font-size: 12px;
    color: #0d58c7;
    margin-bottom: 8px;
    line-height: 1.4;
}

.lawyer-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lawyer-experience {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}*/

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #0d58c7;
    color: white;
    border-color: #0d58c7;
}

.pagination .active {
    background: #0d58c7;
    color: white;
    border-color: #0d58c7;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border-radius: 12px;
}

.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d58c7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .lawyers-wrapper {
        flex-direction: column;
    }

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        padding: 12px;
        margin-top: 0;
    }

    .lawyer-grid {
        grid-template-columns: 1fr;
    }
}
