/*
 Theme Name:   My Listing Child
 Theme URI:    http://mylisting.27collective.net/my-city/
 Description:  MyListing Child Theme
 Author:       27collective
 Author URI:   https://27collective.net/
 Template:     my-listing
 Version:      1.1
 License:      GNU General Public License v2 or later
 Text Domain:  my-listing-child
*/

/* --- SHOP LAYOUT FIXES --- */
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px 18px !important;
}

body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product {
    width: auto !important;
    margin: 0 !important;
}

body.woocommerce-shop .products .product,
body.post-type-archive-product .products .product {
    padding-bottom: 6px !important;
}

body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering {
    margin: 0 0 10px !important;
}

/* GLOBAL FIX: Remove red circle/shadow and keep only the black pin */
.mapboxgl-marker .marker-icon {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

/* Ensure the default black SVG pin is visible and centered */
.mapboxgl-marker svg {
    display: block !important;
    margin: 0 auto !important;
}

/* Hide category icons on display markers ONLY — excludes the listing form pin */
.mapboxgl-marker .marker-icon img:not(.cts-marker-pin),
.mapboxgl-marker .marker-icon i:not(.cts-marker-pin),
.mapboxgl-marker .marker-icon .icon-content:not(.cts-marker-pin) {
    display: none !important;
}


/* Only apply the 2/3 map split to the Garage Sale page (replace 123 with your Page ID) */
.page-id-125 .finder-container .finder-listings {
    width: 33.3% !important;
    flex: 0 0 33.3% !important;
}

.page-id-125 .finder-container .finder-map {
    width: 66.6% !important;
    flex: 0 0 66.6% !important;
}

.marker-container .marker-img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

