/* Agencies page styles — extracted from style.css */
.agencies-page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 79px 20px 48px
}

.agencies-hero {
    background: linear-gradient(135deg, #f7f8fa 0%, #eef6f6 100%);
    border-radius: 16px;
    text-align: center;
    padding: 32px 24px 28px;
    margin-bottom: 24px
}

.agencies-hero h1 {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.5px
}

.agencies-subtitle {
    font-size: 15px;
    color: #777;
    margin: 0 0 24px
}

.agencies-search-wrap {
    position: relative;
    max-width: 680px;
    margin: 0 auto
}

.agencies-search-bar {
    max-width: 680px;
    margin: 0 auto
}

.agencies-search-fields {
    display: flex;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, box-shadow .2s
}

.agencies-search-fields:focus-within {
    border-color: #48bf53;
    box-shadow: 0 0 0 3px rgba(0, 132, 137, 0.12)
}

.agencies-search-city {
    position: relative;
    flex: 0 0 210px;
    border-right: 1px solid #eee
}

.agencies-search-city select {
    width: 100%;
    height: 48px;
    padding: 0 32px 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    line-height: 48px
}

.agencies-search-city select:hover,
.agencies-search-city select:focus {
    border: none !important;
    box-shadow: none !important
}

.agencies-search-city::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    pointer-events: none
}

.agencies-search-name {
    flex: 1;
    position: relative
}

.agencies-search-name>svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #999;
    pointer-events: none
}

.agencies-search-name input {
    width: 100%;
    height: 48px;
    padding: 0 38px 0 38px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    outline: none;
    background: transparent;
    box-sizing: border-box
}

.agencies-search-name input:hover,
.agencies-search-name input:focus {
    border: none !important;
    box-shadow: none !important
}

.agencies-search-btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 24px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    gap: 6px
}

.agencies-search-btn:hover {
    background: #333
}

.agencies-search-btn svg {
    width: 16px;
    height: 16px
}

.agencies-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    background: #e8e8e8;
    border-radius: 50%;
    z-index: 2;
    line-height: 0
}

.agencies-search-clear svg {
    display: block
}

.agencies-search-clear:hover {
    background: #ddd;
    color: #333
}

.agencies-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
    z-index: 10
}

.agencies-autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4
}

.agencies-autocomplete-item:last-child {
    border-bottom: none
}

.agencies-autocomplete-item:hover {
    background: #f5f5f5
}

.agencies-autocomplete-item .ac-city {
    color: #999;
    font-size: 13px;
    margin-left: 8px
}

.agencies-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 680px;
    margin: 18px auto 0
}

.agencies-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    background: #fff;
    transition: all .2s;
    white-space: nowrap;
    cursor: pointer
}

.agencies-filter-pill:hover {
    border-color: #48bf53;
    color: #48bf53;
    text-decoration: none
}

.agencies-filter-pill.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff
}

.agencies-filter-pill.active:hover {
    background: #333;
    border-color: #333
}

.agencies-filter-reset {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    margin-left: 4px;
    transition: color .2s
}

.agencies-filter-reset:hover {
    color: #48bf53;
    text-decoration: underline
}

.agencies-results-count {
    font-size: 14px;
    color: #777;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px
}

.agencies-results-count strong {
    color: #1a1a1a;
    font-weight: 700
}

.agencies-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 32px 0 24px
}

.agencies-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: all .2s
}

.agencies-page-link:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    text-decoration: none
}

.agencies-page-link.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    font-weight: 700
}

.agencies-page-link.disabled {
    opacity: .4;
    pointer-events: none
}

.agencies-page-dots {
    min-width: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
    line-height: 38px
}

.agencies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px
}

.agency-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 18px;
    transition: box-shadow .2s ease, transform .15s ease;
    text-decoration: none;
    color: inherit
}

.agency-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px)
}

.agency-card-logo-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center
}

.agency-card-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee
}

.agency-card-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700
}

.agency-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column
}

.agency-card-top {
    margin-bottom: 4px
}

.agency-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
    line-height: 1.3
}

.agency-card-name a {
    color: inherit;
    text-decoration: none
}

.agency-card-name a:hover {
    color: #48bf53
}

.agency-card-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #48bf53;
    background: #e6f4f4;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap
}

.agency-card-city {
    font-size: 13px;
    color: #777;
    margin: 0 0 8px
}

.agency-card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 8px
}

.agency-card-stat {
    display: flex;
    flex-direction: column
}

.agency-card-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2
}

.agency-card-stat-value.has-ads {
    color: #1a1a1a
}

.agency-card-stat-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .3px
}

.agency-card-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.agency-card-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto
}

.agency-card-contact {
    font-size: 13px;
    color: #777;
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.agency-card-contact a {
    color: #777;
    text-decoration: none
}

.agency-card-contact a:hover {
    color: #48bf53
}

.agency-card-contact svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0
}

.agency-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 7px 16px;
    border: 1.5px solid #1a1a1a;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap
}

.agency-card-btn:hover {
    background: #1a1a1a;
    color: #fff;
    text-decoration: none
}

.agency-card-btn svg {
    width: 14px;
    height: 14px
}

.agencies-cta-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-radius: 16px;
    text-align: center;
    padding: 40px 24px;
    margin-bottom: 32px
}

.agencies-cta-banner h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px
}

.agencies-cta-banner p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto
}

.agencies-cta-banner .btn-register {
    display: inline-block;
    padding: 12px 32px;
    background: #fff;
    color: #48bf53;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s
}

.agencies-cta-banner .btn-register:hover {
    background: #f0fafa;
    text-decoration: none;
    color: #3da847
}

.agencies-no-results {
    display: none;
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 15px
}

.agencies-footer-text {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-top: 32px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto
}

.agency-card-unclaimed {
    border: 1.5px dashed #ccc;
    background: #fafafa
}

.agency-card-unclaimed:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px)
}

.agency-card-unclaimed .agency-card-logo-placeholder {
    background: linear-gradient(135deg, #a0aab0 0%, #c4cdd3 100%);
    font-size: 28px
}

.agency-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px
}

.agency-card-meta-item {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px
}

.agency-card-meta-item strong {
    font-weight: 600;
    color: #555
}

.agency-card-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 8px 18px;
    background: #48bf53;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap
}

.agency-card-claim-btn:hover {
    background: #3da847;
    color: #fff;
    text-decoration: none
}

.agency-card-claim-btn svg {
    width: 14px;
    height: 14px
}

@media (max-width:600px) {
    .agencies-page-wrapper {
            padding: 61px 14px 32px
        }
    .agencies-hero {
            padding: 24px 16px 20px;
            border-radius: 12px
        }
    .agencies-hero h1 {
            font-size: 24px
        }
    .agencies-search-fields {
            flex-direction: column;
            border-radius: 10px
        }
    .agencies-search-city {
            flex: none;
            border-right: none;
            border-bottom: 1px solid #eee
        }
    .agencies-search-city select {
            height: 44px
        }
    .agencies-search-name input {
            height: 44px
        }
    .agencies-search-btn {
            height: 44px;
            justify-content: center;
            border-radius: 0 0 8px 8px
        }
    .agencies-filters {
            gap: 6px
        }
    .agencies-filter-pill {
            padding: 6px 12px;
            font-size: 12px
        }
    .agencies-grid {
            grid-template-columns: 1fr
        }
    .agency-card {
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 20px 16px
        }
    .agency-card-stats {
            justify-content: center
        }
    .agency-card-bottom {
            justify-content: center
        }
    .agency-card-btn {
            margin-left: 0
        }
    .agency-card-claim-btn {
            margin-left: 0
        }
    .agencies-cta-banner {
            padding: 28px 16px;
            border-radius: 12px
        }
    .agencies-cta-banner h2 {
            font-size: 20px
        }
    .agencies-pagination {
            gap: 2px
        }
    .agencies-page-link {
            min-width: 34px;
            height: 34px;
            font-size: 13px
        }
}

@media (max-width:768px) {
    .agencies-page-wrapper {
            padding: 69px 16px 40px
        }
    .agencies-hero {
            padding: 28px 20px 24px
        }
    .agencies-hero h1 {
            font-size: 28px
        }
    .agencies-grid {
            gap: 16px
        }
    .agencies-search-city {
            flex: 0 0 170px
        }
}
