/* NoDig Listings - Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base */
.list-content.listmap-grid {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-top: 105px !important;
}

.list-content.listmap-grid>.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.list-content.listmap-grid>.container-fluid>.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-x: 0 !important;
}

.list-content.listmap-grid>.container-fluid>.row>[class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.listingmaplist-content {
    background: #f8fafc;
    padding: 0 !important;
    height: calc(100vh - 105px);
    overflow: hidden;
}

.listmapgrid-content.listmaplist-content {
    padding: 0 0px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#form_search_listings {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.listings-scroll-area {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 8px;
}

/* Search header */
.search-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 20px 20px 16px;
    margin: 0 -12px;
    border-radius: 0 0 16px 16px;
}

.search-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.search-header h1 .search-header-accent {
    color: #60a5fa;
}

/* Search inputs row */
.search-inputs-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input-group {
    flex: 1;
    position: relative;
    min-height: 42px;
}

.search-input-group .search-field-icon {
    position: absolute;
    left: 12px;
    top: 14px;
    color: #94a3b8;
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
    line-height: 1;
}

.search-input-group input,
.search-input-group .select2-container {
    width: 100% !important;
}

.search-input-group input.search-field {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0 14px 0 36px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.2s;
    outline: none;
}

.search-input-group input.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input-group input.search-field:focus {
    border-color: #60a5fa;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.search-btn {
    height: 42px;
    min-width: 42px;
    border: none;
    border-radius: 10px;
    background: #3b82f6;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #2563eb;
}

/* Filter bar under search */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 12px 20px;
    margin: 0 -12px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
}

.filter-chip:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
}

.filter-chip.active {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
    font-weight: 600;
}

.filter-chip i {
    font-size: 11px;
}

/* Star rating filter */
.star-filter {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.star-filter:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.star-filter.active {
    border-color: #f59e0b;
    background: #fffbeb;
}

.star-filter .star-icon {
    font-size: 13px;
    color: #d1d5db;
    transition: color 0.15s;
    cursor: pointer;
}

.star-filter .star-icon.filled {
    color: #f59e0b;
}

.star-filter .star-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-left: 4px;
}

.star-filter.active .star-label {
    color: #b45309;
}

/* Radius chip with inline slider */
.radius-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    white-space: nowrap;
}

.radius-chip .radius-value {
    color: #2563eb;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

.radius-slider-wrap {
    width: 90px;
    display: flex;
    align-items: center;
}

.radius-slider-wrap input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.radius-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.radius-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Select2 inside search header */
.search-header .select2-container--default .select2-selection--multiple {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    min-height: 42px !important;
    padding: 4px 8px 4px 32px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    font-size: 13px;
}

.search-header .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 2px 8px !important;
}

.search-header .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.6) !important;
}

.search-header .select2-container--default .select2-selection--multiple .select2-search__field {
    color: #fff !important;
}

.search-header .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.search-header .select2-container--default .select2-selection--multiple:focus-within {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
}

/* Hidden ion-rangeslider since we use native range */
.irs {
    display: none !important;
}

/* Result count bar */
.result-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 6px;
    margin: 0 -12px;
}

.result-count-bar #result-count {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: -0.01em;
}

/* Listing cards - COMPACT layout */
.blog-listview {
    padding: 0 8px;
}

.public-listing-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px !important;
    margin-bottom: 6px !important;
    padding: 12px 14px !important;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.public-listing-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background-color: #fafbff !important;
}

.public-listing-card.card-active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Tier borders */
.public-listing-card.card-verified {
    border-left: 3px solid #d4a017;
}

.public-listing-card.card-claimed {
    border-left: 3px solid #3b82f6;
}

.public-listing-card.card-unclaimed {
    border-left: 3px solid #d1d5db;
    opacity: 0.88;
}

.public-listing-card.card-unclaimed:hover {
    opacity: 1;
}

/* Compact card layout */
.card-compact-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.card-avatar-col {
    flex-shrink: 0;
}

.card-content-col {
    flex: 1;
    min-width: 0;
}

.card-badge-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Company logo / initials */
.listing-initials-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.listing-logo {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    border-radius: 10px !important;
    object-fit: cover;
}

/* Card title row */
.card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.card-title-row h6 {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title-row h6 a {
    color: #1e293b !important;
    text-decoration: none !important;
}

.card-title-row h6 a:hover {
    color: #2563eb !important;
}

/* Status pill - compact */
.listing-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.listing-status-pill.pill-verified {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.listing-status-pill.pill-claimed {
    background: #eff6ff;
    color: #1d4ed8;
}

.listing-status-pill.pill-unclaimed {
    background: #f3f4f6;
    color: #6b7280;
}

/* Ratings row - compact */
.card-ratings-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.card-ratings-row .fa-star {
    font-size: 11px;
}

.card-ratings-row .fa-solid.fa-star {
    color: #f59e0b;
}

.card-ratings-row .fa-regular.fa-star {
    color: #d1d5db;
}

.card-ratings-row .rating-text {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.card-ratings-row .google-icon {
    width: 12px;
    height: 12px;
}

/* Service tags - compact inline */
.card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 4px;
}

.card-services .service-tag {
    font-size: 10px;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.card-services .service-tag-more {
    font-size: 10px;
    color: #2563eb;
    background: #eff6ff;
    padding: 1px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Meta row (hours, location) */
.card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.card-meta-row .meta-open {
    color: #16a34a;
    font-weight: 600;
}

.card-meta-row .meta-dot {
    color: #d1d5db;
}

/* Contact row */
.card-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-contact-row a {
    font-size: 11px;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.card-contact-row a:hover {
    color: #2563eb;
}

.card-contact-row a i {
    color: #3b82f6;
    font-size: 11px;
}

.card-contact-row .view-listing-link {
    color: #2563eb;
    font-weight: 600;
}

/* NoDig badge - compact */
.img-nodig-badge {
    width: 48px !important;
    margin: 0 !important;
}

.logo-listing-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Claim badge */
.badge.badge-claim {
    background: #10b981 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    width: auto !important;
    height: auto !important;
}

.badge.badge-claim a {
    color: #fff !important;
}

/* Show more button */
.blog-pagination {
    text-align: center;
    padding: 16px 8px 20px;
}

.a-show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none !important;
}

.a-show-more:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.a-show-more i {
    font-size: 10px;
    transition: transform 0.2s;
}

.a-show-more:hover i {
    transform: translateY(2px);
}

.show-more-count {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

/* Map */
.map-listing {
    border-radius: 0;
    height: calc(100vh - 105px) !important;
    margin-top: 0 !important;
    padding-right: 0 !important;
}

.map-right {
    padding: 0 !important;
    position: relative;
    top: 0 !important;
    background-color: #f1f5f9 !important;
    padding-right: 0 !important;
}

/* Map toggle mobile - styled as filter chip on desktop, full button on mobile */
.filter-bar .map-toggle-btn {
    background: #fff !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    transition: all 0.2s !important;
}

.filter-bar .map-toggle-btn:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

/* Google Maps info window - strip ALL default chrome */
.gm-style .gm-style-iw-c {
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14) !important;
    border: none !important;
    max-width: 300px !important;
    overflow: visible !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
    max-height: none !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar {
    display: none;
}

/* Close button container - must be visible and above content */
.gm-style-iw-chr {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: auto !important;
    height: auto !important;
    z-index: 10 !important;
    display: flex !important;
    overflow: visible !important;
}

/* Close button itself */
.gm-style .gm-ui-hover-effect {
    width: 28px !important;
    height: 28px !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Center the X icon inside the button */
.gm-style .gm-ui-hover-effect>span {
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 14px !important;
    height: 14px !important;
}

.gm-style .gm-ui-hover-effect:hover {
    background: #f1f5f9 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.gm-style .gm-style-iw-tc::after {
    background: #fff !important;
}

/* Popup card */
.iw-popup {
    padding: 16px;
    min-width: 230px;
    max-width: 280px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.iw-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.iw-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.iw-info {
    flex: 1;
    min-width: 0;
}

.iw-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 4px;
}

.iw-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.iw-badge i {
    font-size: 10px;
    color: #d97706;
}

.iw-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.iw-rating .fa-solid.fa-star {
    color: #f59e0b;
    font-size: 13px;
}

.iw-rating .fa-regular.fa-star {
    color: #d1d5db;
    font-size: 13px;
}

.iw-rating span {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    margin-left: 4px;
}

.iw-addr {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
}

.iw-addr i {
    color: #3b82f6;
    font-size: 11px;
    margin-right: 3px;
}

.iw-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.iw-link {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}

.iw-link:hover {
    color: #2563eb;
}

.iw-link i {
    font-size: 11px;
}

.iw-link-primary {
    color: #2563eb;
    font-weight: 600;
}

.iw-link-primary:hover {
    color: #1d4ed8;
}

/* Empty state */
.empty-state-container {
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
}

.empty-state-container .empty-state-icon {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.empty-state-container h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.empty-state-container p {
    font-size: 13px;
    color: #64748b;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.5;
}

.no-results-message {
    text-align: center;
    padding: 32px 20px;
    color: #64748b;
}

.no-results-message i {
    font-size: 28px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 10px;
}

.no-results-message p {
    font-size: 13px;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Skeleton loading */
.skeleton-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 6px;
}

.skeleton-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.skeleton-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-content {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    margin-bottom: 8px;
}

.skeleton-line-title {
    width: 65%;
    height: 14px;
}

.skeleton-line-subtitle {
    width: 45%;
}

.skeleton-line-short {
    width: 30%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Help block */
.help-block {
    display: none !important;
}

/* Spinner */
#pulse-loader .spinner-border {
    color: #3b82f6;
    width: 22px;
    height: 22px;
    border-width: 2px;
}

/* Hide old sorting-div only on the main listing page (which has .search-header) */
.search-header~.sorting-div {
    display: none !important;
}

/* Mobile */
@media screen and (max-width: 992px) {
    .map-right {
        display: none !important;
    }

    .map-right.show-mobile {
        display: block !important;
        position: relative;
        width: 100%;
        height: 350px;
        margin-top: 8px;
    }

    .map-right.show-mobile .map-listing {
        height: 350px !important;
        position: relative !important;
        border-radius: 12px !important;
    }

    .search-header {
        margin: 0 -12px;
        padding: 16px 16px 14px;
    }

    .search-header h1 {
        font-size: 16px;
    }

    .search-inputs-row {
        flex-direction: column;
        gap: 6px;
    }

    .filter-bar {
        padding: 10px 16px;
    }
}

@media screen and (min-width: 993px) {
    .map-toggle-btn {
        display: none;
    }
}

/* Override parent theme card hover */
.blog-listview .card:hover {
    background-color: transparent !important;
}

/* Unclaimed card specific */
.unclaimed-card-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.unclaimed-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #10b981;
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.unclaimed-claim-btn:hover {
    background: #059669;
    color: #fff;
}