/* Kebab Vans: directory cards styles. */

.kebabvans-search-results {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px
}

/* 1.9.86: every Van-list shortcode honours its desktop columns setting. */
        .kebabvans-directory[data-columns="1"] > .kebabvans-shortcode-results {
    grid-template-columns: repeat(1,minmax(0,1fr))
}

.kebabvans-directory[data-columns="2"] > .kebabvans-shortcode-results {
    grid-template-columns: repeat(2,minmax(0,1fr))
}

.kebabvans-directory[data-columns="3"] > .kebabvans-shortcode-results {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.kebabvans-directory[data-columns="4"] > .kebabvans-shortcode-results {
    grid-template-columns: repeat(4,minmax(0,1fr))
}

.kebabvans-directory[data-columns="5"] > .kebabvans-shortcode-results {
    grid-template-columns: repeat(5,minmax(0,1fr))
}

.kebabvans-directory[data-columns="6"] > .kebabvans-shortcode-results {
    grid-template-columns: repeat(6,minmax(0,1fr))
}

.kebabvans-directory > .kebabvans-shortcode-results {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box
}

.kebabvans-directory > .kebabvans-shortcode-results > .kebabvans-search-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box
}

.kebabvans-search-card {
    overflow: hidden;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.04)
}

.kebabvans-search-card.kebabvans-search-card-owner-managed {
    border: 3px solid #e30613;
    background: #fff5f5
}

.kebabvans-search-card-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #eee
}

.kebabvans-search-card-body {
    min-width: 0;
    padding: 18px;
    box-sizing: border-box
}

.kebabvans-search-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.2
}

.kebabvans-search-card h3 a {
    text-decoration: none;
    color: inherit
}

.kebabvans-van-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap
}

.kebabvans-van-badges-card {
    margin: 0 0 10px
}

.kebabvans-van-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    background: #f6f6f6;
    color: #222;
    font-size: .78rem;
    line-height: 1.15;
    font-weight: 800;
    white-space: normal
}

.kebabvans-van-badge-popular,.kebabvans-van-badge-local-favourite {
    background: #fff1e8;
    border-color: #f0b181;
    color: #7a2e00
}

.kebabvans-van-badge-community-favourite {
    background: #fff8d8;
    border-color: #e5c85b;
    color: #5e4b00
}

.kebabvans-van-badge-owner-managed,.kebabvans-van-badge-owner-responds {
    background: #fff0f1;
    border-color: #e9a6aa;
    color: #8d0b15
}

.kebabvans-van-badge-recently-active {
    background: #eef7ef;
    border-color: #b8d9bc;
    color: #235c2b
}

.kebabvans-search-card p {
    margin: 6px 0
}

.kebabvans-search-town {
    font-weight: 700
}

.kebabvans-search-distance {
    font-weight: 750
}

.kebabvans-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap
}

.kebabvans-search-view {
    display: inline-flex;
    margin-top: 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: #222;
    color: #fff!important;
    text-decoration: none;
    font-weight: 700
}

.kebabvans-card-contact-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap
}

.kebabvans-card-contact-icon {
    display: inline-flex!important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #222;
    color: #fff!important;
    text-decoration: none!important;
    transition: opacity .2s ease,transform .2s ease
}

.kebabvans-card-contact-icon:hover,.kebabvans-card-contact-icon:focus {
    opacity: .82;
    transform: translateY(-1px)
}

.kebabvans-card-contact-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px
}

.kebabvans-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px
}

.kebabvans-name-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 26px 20px;
    background: linear-gradient(145deg,#fffaf2 0%,#f5eee3 100%);
    color: #1f1f1f;
    text-align: center;
    isolation: isolate
}

.kebabvans-name-placeholder::before, .kebabvans-name-placeholder::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: #ef7d1a;
    transform: translateY(-50%);
    z-index: 1
}

.kebabvans-name-placeholder::before {
    left: 18px
}

.kebabvans-name-placeholder::after {
    right: 18px
}

.kebabvans-name-placeholder-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(72px,9vw,118px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.08em;
    color: rgba(60,45,30,.075);
    user-select: none;
    z-index: 0
}

.kebabvans-name-placeholder-title {
    position: relative;
    z-index: 2;
    max-width: 78%;
    font-size: clamp(20px,2.1vw,30px);
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 900;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255,255,255,.75)
}

.kebabvans-name-placeholder-mark {
    position: absolute;
    top: 13px;
    left: 50%;
    z-index: 2;
    width: 15px;
    height: 30px;
    transform: translateX(-50%)
}

.kebabvans-name-placeholder-mark::before {
    content: "";
    position: absolute;
    left: 7px;
    top: -4px;
    width: 2px;
    height: 35px;
    border-radius: 2px;
    background: #4b1a0e
}

.kebabvans-name-placeholder-mark i, .kebabvans-name-placeholder-mark b {
    position: absolute;
    left: 2px;
    width: 11px;
    height: 6px;
    border-radius: 50%;
    background: #ef7d1a;
    border: 1px solid #5b2312;
    transform: rotate(8deg)
}

.kebabvans-name-placeholder-mark i:first-child {
    top: 4px
}

.kebabvans-name-placeholder-mark b {
    top: 11px;
    background: #a94717
}

.kebabvans-name-placeholder-mark i:last-child {
    top: 18px
}

.kebabvans-card-content {
    padding: 16px
}

.kebabvans-card-content h3 {
    margin: 0 0 8px
}

.kebabvans-card-categories {
    font-size: .9em;
    margin-bottom: 8px
}

.kebabvans-card-excerpt {
    font-size: .95em
}

.kebabvans-category-list ul,.kebabvans-category-tree ul {
    margin: 0;
    padding-left: 1.25em
}

.kebabvans-category-list li,.kebabvans-category-tree li {
    margin: .35em 0
}

.kebabvans-count {
    opacity: .7
}

.kebabvans-home-town-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px
}

.kebabvans-home-town-card {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 18px;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    background: #fff;
    color: #222!important;
    text-decoration: none!important;
    box-shadow: 0 5px 18px rgba(0,0,0,.035);
    transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease
}

.kebabvans-home-town-card:hover {
    transform: translateY(-2px);
    border-color: #ef7d1a;
    box-shadow: 0 8px 22px rgba(0,0,0,.07)
}

.kebabvans-home-town-name {
    font-size: 1.15rem;
    font-weight: 850;
    line-height: 1.2
}

.kebabvans-home-town-area {
    font-size: .9rem;
    color: #666
}

.kebabvans-home-town-count {
    margin-top: auto;
    padding-top: 10px;
    font-size: .9rem;
    font-weight: 800;
    color: #9a4b09
}

.kebabvans-home-directory-link {
    margin: 18px 0 0;
    text-align: center
}

.kebabvans-home-directory-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #222;
    color: #fff!important;
    text-decoration: none!important;
    font-weight: 800
}

.kebabvans-home-country-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px
}

.kebabvans-home-country-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    background: #fff;
    color: #222!important;
    text-decoration: none!important;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
    transition: transform .15s ease,border-color .15s ease
}

.kebabvans-home-country-card:hover {
    transform: translateY(-2px);
    border-color: #ef7d1a
}

.kebabvans-home-country-card>strong {
    font-size: 1.55rem;
    line-height: 1.15
}

.kebabvans-home-country-description {
    color: #555;
    line-height: 1.55
}

.kebabvans-home-country-count {
    font-size: .9rem;
    font-weight: 800;
    color: #9a4b09
}

.kebabvans-home-country-action {
    margin-top: auto;
    font-weight: 850
}

@media (max-width:850px) {
    .kebabvans-directory > .kebabvans-shortcode-results {
        grid-template-columns: repeat(2,minmax(0,1fr))!important
    }
    .kebabvans-home-town-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
    .kebabvans-home-country-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:700px) {
    .kebabvans-directory > .kebabvans-shortcode-results {
        grid-template-columns: 1fr!important;
        gap: 14px
    }
    .kebabvans-directory .kebabvans-search-card {
        width: 100%;
        max-width: 100%
    }
    .kebabvans-directory .kebabvans-card-actions {
        align-items: stretch
    }
    .kebabvans-directory .kebabvans-search-view {
        justify-content: center
    }
    .kebabvans-directory .kebabvans-card-contact-icons {
        margin-left: 0
    }
    .kebabvans-name-placeholder-title {
        font-size: 25px
    }
    .kebabvans-name-placeholder-initials {
        font-size: 92px
    }
    .kebabvans-home-town-grid {
        grid-template-columns: 1fr
    }
    .kebabvans-home-country-card {
        min-height: 0;
        padding: 20px
    }
}
