/**
 * Venue archive and taxonomy styles.
 *
 * @package Pornomondo
 */

:root {
    --pm-venue-primary: #E91E63;
    --pm-venue-secondary: #9C27B0;
}

.pm-venue-hero {
    position: relative;
    padding: 80px 0;
    border-radius: 0;
    margin-bottom: 40px;
    background: var(--pm-venue-hero-bg) center/cover no-repeat;
    color: #fff;
    text-align: center;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.pm-venue-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.75), rgba(15, 15, 25, 0.9));
    z-index: 1;
}

.pm-venue-hero-content {
    position: relative;
    z-index: 2;
}

.pm-venue-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.pm-venue-search-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    overflow: visible !important;
}

.pm-search-field-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 5px;
    overflow: visible !important;
}

.pm-search-field-wrap:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.pm-search-field-wrap .dashicons {
    position: absolute;
    left: 20px;
    color: var(--pm-venue-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
    z-index: 5;
    pointer-events: none;
}

.pm-venue-search-input {
    flex: 1;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 15px 15px 15px 50px !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    outline: none !important;
    box-shadow: none !important;
}

.pm-venue-search-input::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
    opacity: 1 !important;
}

.pm-venue-search-btn {
    background: var(--pm-venue-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 35px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.pm-venue-search-btn:hover {
    background: #fff;
    color: var(--pm-venue-primary);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(233,30,99,0.4);
}

@keyframes pm-spin {
    to { transform: rotate(360deg); }
}

.pm-venue-loading-overlay {
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
}

.pm-venue-ajax-content-wrapper {
    transition: opacity 0.3s ease;
}

.pm-venue-ajax-content-wrapper.loading {
    opacity: 0.4;
}

.pm-venue-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.pm-venue-sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.pm-venue-sort-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.pm-venue-filter-dropdown {
    position: relative;
    width: 100%;
}

.pm-venue-filter-trigger {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    color: #252936;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.96rem;
    line-height: 1.25;
    text-align: left;
}

.pm-venue-filter-trigger-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pm-venue-filter-trigger .dashicons {
    flex: 0 0 auto;
    color: #252936;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pm-venue-filter-dropdown.is-disabled .pm-venue-filter-trigger {
    color: #94a3b8;
    cursor: not-allowed;
    background: #f8fafc;
}

.pm-venue-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(30, 30, 38, 0.14);
}

.pm-venue-filter-dropdown.is-open .pm-venue-filter-menu {
    display: grid;
    gap: 4px;
}

.pm-venue-filter-option {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #252936;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pm-venue-filter-option:hover {
    background: rgba(233, 30, 99, 0.08);
    color: var(--pm-venue-primary);
}

.pm-venue-filter-option > span:first-child {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pm-venue-option-count {
    flex: 0 0 auto;
    color: #94a3b8;
    background: #f5f5f5;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.pm-venue-filter-option.is-hidden {
    display: none;
}

.pm-venue-filter-checklist {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.pm-venue-filter-checklist li {
    list-style: none !important;
    margin-bottom: 10px;
}

.pm-venue-region-checklist {
    padding-left: 10px;
}

.pm-venue-filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    transition: color 0.2s ease;
}

.pm-venue-filter-label:hover {
    color: var(--pm-venue-primary);
}

.pm-venue-filter-label input {
    margin-right: 10px;
    cursor: pointer;
}

.pm-venue-filter-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: #999;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 20px;
}

.pm-venue-archive-layout {
    --pm-sidebar-width: 280px;
}

.pm-venue-archive-layout .pm-venue-sidebar {
    gap: 14px;
}

.pm-posts-grid-venues {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.pm-venue-region-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 15px 0 10px;
    text-transform: uppercase;
}

.pm-venue-region-group {
    margin-bottom: 15px;
}

.pm-venue-locations-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.pm-venue-results-toolbar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.pm-venue-toolbar-main {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pm-venue-active-filters {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pm-venue-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    max-width: 280px;
    padding: 5px 8px 5px 10px;
    border: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.08);
    color: var(--pm-venue-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.pm-venue-filter-chip span:first-child {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pm-venue-filter-chip .dashicons {
    flex: 0 0 auto;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.pm-reset-filters {
    flex: 0 0 auto;
    color: var(--pm-venue-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.pm-reset-filters.is-hidden {
    display: none;
}

#pm-venue-grid-container {
    position: relative;
    min-height: 400px;
}

.pm-venue-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
}

.pm-venue-loading-spinner {
    border: 4px solid rgba(233,30,99,0.2);
    border-top: 4px solid var(--pm-venue-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: pm-spin 0.8s linear infinite;
}

.pm-venue-pagination-wrapper {
    margin-top: 40px;
}

.pm-venue-empty-state {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pm-venue-empty-icon {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.pm-venue-empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
}

.pm-venue-empty-state p {
    color: #777;
    margin-bottom: 20px;
}

.pm-venue-empty-reset {
    background: var(--pm-venue-primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .pm-venue-search-form {
        flex-direction: column;
        border-radius: 24px;
        padding: 15px;
        gap: 12px;
    }

    .pm-search-field-wrap:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 12px;
    }

    .pm-venue-search-btn {
        width: 100%;
        padding: 14px 0;
    }

    .pm-venue-results-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pm-reset-filters {
        align-self: flex-start;
    }
}

@media (min-width: 992px) {
    .pm-venue-archive-layout {
        grid-template-columns: 280px minmax(0, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    .pm-venue-archive-layout .pm-posts-grid-venues {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
