/* =====================================
   PRODUCT SEARCH SHORTCODE
   ===================================== */

.wcfp-search-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #1b4251; /* Dark background */
    border-radius: 8px;
}
.wcfp-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end!important;
    padding:20px!important;
}
.wcfp-search-form-container{
    width:100%;
}
.wcfp-search-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 18px;
    color: #ffffff;
    text-align: left;
}
.wcfp-search-form .wcfp-form-group {
    flex-grow: 1;
}
.wcfp-search-form .wcfp-form-group.commodity {
    flex-basis: 300px;
}
.wcfp-search-form .wcfp-form-group.territory {
    flex-basis: 200px;
}
.wcfp-search-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background: #ffffff; /* White background */
    height: 42px; 
    box-sizing: border-box; 
}
.wcfp-search-form .wcfp-search-button {
    background-color: #efa131;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    height: 42px; 
    box-sizing: border-box; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}
.wcfp-search-results {
    /* border-top: 5px solid #eda129; */
    margin-top: 30px;
    background: #527586;
    padding: 20px 0;
    padding-top:0;
}
.wcfp-search-results-numbers-container{
    background-color:#395d6d;
}
.wcfp-search-results-numbers{
    max-width:1050px;
    margin:auto;
}
.wcfp-search-results h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fffffd; /* White-ish text */
    margin-bottom: 0;
    padding-top: 25px;
    text-align: left;
    line-height: 40px;
}
.wcfp-search-results .wcfp-results-count {
    font-size: 14px;
    color: #ffffff; /* White text */
    margin-bottom: 0;
    text-align:center;
}
.wcfp-project-list {
    max-width:1050px;
    list-style: none;
    padding: 0;
    margin: auto;
    margin-top: 60px;
    margin-bottom: 50px;
}
.wcfp-project-item {
    background-color: #e5eaeb; /* Default list BG color */
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 0; /* No border radius */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.wcfp-project-item h3{
    transition: font-size 0.3s ease;
}
.wcfp-project-item:hover h3{
    font-size: 19px !important;
}
.wcfp-project-item-title {
    font-size: 18px !important;
    font-weight: 600;
    color: #1d3f4a;
    margin: 0;
    flex-grow: 1;
    margin:0!important;
    text-align: left;
}
.wcfp-project-item-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.wcfp-project-item-links a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 50px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}
.wcfp-project-item-links a:hover {
    opacity: 0.85;
}
.wcfp-project-item-links .wcfp-btn-website {
    background-color: #557385; /* Default Website button color */
}
.wcfp-project-item-links .wcfp-btn-pdf {
    background-color: #efa131; /* Default PDF button color */
}
.wcfp-project-item-links a::after {
    content: url('https://investnorthof60.ca/wp-content/uploads/2025/10/slider-icon-right-white.svg');
    display: inline-block;
    width: 12px; /* optional */
    height: 27px; /* optional */
    margin-left: 8px; /* space between text and icon */
    vertical-align: middle;
    font-weight: bold;
}
div#wcfp-list-results-count {
    position: relative;
    top: -35px;
    text-align:right;
}

@media (max-width: 480px) {
    div#wcfp-list-results-count {
    text-align:center;
            padding-bottom: 30px;
}
}

@media (max-width: 1100px) {
.wcfp-project-list{
    padding-left:15px;
    padding-right:15px;
}
}

@media (max-width: 480px) {
  .wcfp-project-item-links a {
    padding: 0 10px;
    font-size: 12px;
  }
  div#wcfp-list-results-count {
    position: block;
    top: 0;
  }

  .wcfp-search-results h2 {
    text-align: center;
  }
}


/* =====================================
   Map Shortcode Styles (v2.3)
   ===================================== */

/* Container */
.wcfp-map-container {
    background-color: transparent; /* Match image background */
    padding: 20px;
    border-radius: 8px;
    color: #fff; /* Default text color for map area */
}

/* Map Filter Form Adjustments */
.wcfp-map-container .wcfp-search-form {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #547484; /* Separator line */
    align-items: center; /* Vertically align items better */
}
.wcfp-map-container .wcfp-search-form label {
    color: #ffffff; /* White labels */
}
.wcfp-map-container .wcfp-search-form button {
     height: 42px; /* Ensure button height matches selects */
}
.wcfp-map-container .wcfp-search-form .wcfp-form-group.commodity label {
    font-weight: bold; /* Make main label bold */
}

/* Zoom Controls */
.wcfp-map-zoom-controls {
    margin-left: 10px; /* Space from filter button */
}
.wcfp-map-zoom-controls button {
    background-color: white;
    color: #527586;
    padding: 0;
    width: 42px; /* Match button height */
    height: 42px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    line-height: 40px; /* Center text vertically */
    border:0;
}
.wcfp-map-zoom-controls button:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}
.wcfp-map-zoom-controls button:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.wcfp-map-zoom-controls button:hover {
    background-color: #6a8aa0;
}

/* Map Legend */
.wcfp-map-legend {
    margin-bottom: 20px;
}
.wcfp-map-legend .legend-item {
    display: inline-flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center icon and text */
    margin: 0 15px;
    font-size: 14px;
    color: #ffffff;
}
.wcfp-map-legend .legend-item img {
    width: 40px!important; /* Adjust icon size in legend */
    height: auto;
    margin-right: 8px;
    vertical-align: middle; /* Helps alignment */
    margin-bottom: 0 !important;
}

/* Map Canvas */
#wcfp-map-canvas {
    border-radius: 6px; /* Slightly rounded corners for the map */
    overflow: hidden; /* Ensures map tiles respect border-radius */
}

/* Info Window Styling */
.wcfp-map-infowindow {
    color: #2c4e5b; /* Text color */
    max-width: 300px; /* Prevent it getting too wide */
    padding:15px;
}
.wcfp-map-infowindow h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c4e5b;
}
.wcfp-map-infowindow h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: normal;
    color: #547484; /* Lighter color for company */
}
.wcfp-map-infowindow p {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 15px;
}
.wcfp-map-infowindow .wcfp-project-item-links {
    /* Uses existing button styles via CSS variables */
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.wcfp-map-infowindow .wcfp-project-item-links a {
    /* Uses existing button styles via CSS variables */
     padding: 6px 12px;
     font-size: 0.9em;
}

/* Google Maps attribution/logo - make less obtrusive on dark background */
.gm-style-cc, .gmnoprint a, .gmnoprint span, .gm-style-cc a, .gm-style-cc span {
    color: #99aabb !important; /* Lighter text for attribution */
    font-size: 10px;
}

@media (max-width: 980px) {
.wcfp-map-legend .legend-item img {
    width: 25px !important;
}
.wcfp-map-container {
    padding: 0;
}

.wcfp-map-legend .legend-item {
    margin: 0 2px;
    font-size: 11px;
}
}