/*!
Theme Name: APlus Guard Child
Theme URI: https://www.linkedin.com/in/garrypannu/
Description: APlus Guard Theme
Author: Garry Pannu
Author URI: https://www.linkedin.com/in/garrypannu/
Template: aplusguard
Version: 1.0.0
Text Domain: aplusguard
*/


/* Properties Page */
/* General Styles for the Properties Listing */
.properties-listing {
    margin: 50px 0;
}

.properties-listing h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

.property-search-form {
    text-align: center;
    margin-bottom: 20px;
}

.property-search-form input {
    padding: 10px;
    font-size: 16px;
    width: 60%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.property-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.property-table th, .property-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.property-table th {
    background-color: #f9f9f9;
}

.property-table td a {
    color: #0073aa;
    text-decoration: none;
}

.property-table .property-details-row {
    display: none;
}

.property-details {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #f9f9f9;
}

.property-details img {
    max-width: 200px;
    margin-right: 20px;
    border-radius: 8px;
}

.property-info h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.property-info p {
    margin: 10px 0;
}

.learn-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.learn-more-btn:hover {
    background-color: #005e8a;
}

/* Pagination Styles */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination .page-numbers {
    padding: 10px 15px;
    border: 1px solid #ddd;
    margin: 0 5px;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
}

.pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border: none;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container for the map */
.map-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Map styling */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Styling for the floating box */
.column-left {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    min-width: 370px;
    max-width: 370px;
    height: auto;
}

/*** New Custom Style ****/

select#aplusguard_num_days {
    color: #222;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    padding: 9.5px 16px !important;
    padding-right: 50px !important;
    width: 164px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url(/wp-content/uploads/2024/08/select-arrow.svg) !important;
    background-size: 24px;
    background-position: center right 15px;
}

.total-alerts_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14.5px;
    margin-top: 14.5px;
}

.total-alerts_left p {
    color: #222;
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

.total-alerts_right span {
    color: #222;
    font-size: 20px;
    font-weight: 600;
    line-height: 30.06px;
}

.reports-sec {
    padding: 70px 55px;
    background: #FAFAFA;
}

.reports-col {
    border-radius: 24px;
    background: #FFF;
    width: calc(50% - 20px);
    padding: 24px;
}

.reports-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.reports-col-title h4 {
    color: #222;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 25.92px;
}

.reports-col-title {
    margin-bottom: 24px;
}

select#aplusguard_crime_categories {
    border-radius: 16px;
    border: 1px solid #BDBDBD;
    background: #FFF;
    padding: 10px 40px 10px 10px;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url(/wp-content/uploads/2024/08/select-arrow.svg) !important;
    background-size: 24px;
    background-position: center right 15px;
    background-repeat: no-repeat;
}

.clear-records {
    text-align: right;
    margin-top: 8px;
}

span#clear-records-btn {
    color: #3E83F6;
    font-size: 16px;
    font-weight: 600;
    line-height: 26.72px;
    display: inline-block;
    cursor: pointer;
}

span#clear-records-btn img {
    vertical-align: middle;
    display: inline-block;
}

.alert-details {
    border-top: 1px solid #E1E1E1;
    margin-top: 16px;
    padding-top: 16px;
}
.hidden {
     display:none;
}

.alert-details_top h4 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 30.06px;
}

.alert-details_item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 8px;
}

.alert-details_title p {
    margin: 0;
    color: #222;
    font-size: 16px;
    font-weight: 300;
    line-height: 26.72px;
}

.alert-details_info p {
    color: #222;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.72px;
    margin: 0;
}

.alert-details_title {
    width: 33%;
}

.alert-details_info {
    width: 64%;
}

.alert-details_top {
    margin-bottom: 8px;
}

.aplusguard_main_floating {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
}
  
.close-tab {
    position: absolute;
    width: 40px;
    top: 20px;
    right: 20px;
}
  
.close-tab img {
    display: block;
    vertical-align: middle;
    cursor: pointer;
}
  
.open-tab {
    text-align: right;
}

.open-tab img {
    vertical-align: middle;
    display: inline-block;
    cursor: pointer;
}
  
.open-tab {
  display: none; /* Initially hidden */
}

.aplusguard_main_floating {
  display: block; /* Initially shown */
}

/* Optional: Add styles to ensure smooth transition */
.aplusguard_main_floating,
.open-tab {
  transition: opacity 0.3s ease;
} 
  
/*** New Custom Style Ends ****/

/* Styling for new sections */
.copy-text-section {
    padding: 20px;
    background-color: #FAFAFA;
    border: 1px solid #E1E1E1;
    margin: 20px 0;
    border-radius: 10px;
}

.crime-list-section {
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #E1E1E1;
    margin: 20px 0;
    border-radius: 10px;
}

.crime-list-section ul {
    list-style-type: none;
    padding: 0;
}

.crime-list-section ul li {
    padding: 10px;
    border-bottom: 1px solid #E1E1E1;
    display: flex;
    justify-content: space-between;
}

.crime-list-section ul li:last-child {
    border-bottom: none;
}

/* Header styles for the list */
.list-header {
    font-weight: bold;
    background-color: #f5f5f5; /* Light grey background for the header */
    padding: 10px;
    border-bottom: 2px solid #E1E1E1; /* Slightly thicker border to separate the header */
    display: flex;
    justify-content: space-between;
}

.pagination-controls {
    text-align: center;
    margin-top: 10px;
}

.pagination-controls button {
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.pagination-controls button:hover {
    background-color: #0056b3;
}

.pagination-controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* Styling for the form inside the floating box */
#aplusguard_form {
    display: flex;
    flex-direction: column;
}

/* Style the inputs and button */
#aplusguard_form input,
#aplusguard_form select,
#aplusguard_form button {
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #ddd;
}

/* Button styling */
#aplusguard_form button {
    background-color: #007BFF;
    color: #fff;
    cursor: pointer;
    border: none;
}

#aplusguard_form button:hover {
    background-color: #0056b3;
}

/* Styling for the crime breakdown */
.crime-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 0px;
    list-style: none;
    padding: 0;
}

.crime-breakdown li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
    border-radius: 16px;
    background: #FAFAFA;
    transition: all .3s ease-in-out;
}

.crime-breakdown li:hover {
    background-color: #DCE7FD;
}

.crime-breakdown li:last-child {
    border-right: none; /* No border on the last item */
    padding-right: 0;
}

.crime-breakdown li h4 {
    color: #222;
    font-size: 14px;
    font-weight: 300;
    max-width: 80px;
}

.crime-breakdown li span {
    color: #222;
    font-size: 20px;
    font-weight: 600;
    line-height: 33px;
}

.crime-breakdown li:hover {
    background-color: #DCE7FD;
}

/* Loader styling */
#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure the loader is on top */
}

.spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.row {
    display : inline-flex;
    width:100%;
    margin:15px;
}
.col-md-6 {
    width:50%;
    padding:15px;
}
.search-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}

#aplusguard_address {
    width: 100%;
    padding-left: 40px !important;
    height: 40px;
    box-sizing: border-box;
    font-size: 16px;
    padding: 9.5px 16px !important;
    padding-left: 42px !important;
    border: 1px solid #BDBDBD !important;
    color: #222;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 167%;
    min-width: 370px;
    max-width: 370px;
}

.search-icon {
    position: absolute;
    left: 15px; /* Position the icon 15px from the left edge of the container */
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #aaa;
    pointer-events: none; /* Prevent interaction with the icon */
}
#crimeChart1 {
    max-width: 100%; /* Responsive width */
    height: 300px; /* Fixed height */
    margin: 20px 0; /* Some margin around the chart */
}
#crimeChart2 {
    max-width: 100%; /* Responsive width */
    height: 300px; /* Fixed height */
    margin: 20px 0; /* Some margin around the chart */
}

.chartjs-render-monitor {
    background-color: #f5f5f5; /* Light grey background for the chart */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
list-item-active {
    background-color: #DCE7FD !important;
}

/*********** Responsive code ***************/

/************** ipad ***************/

@media (max-width: 1200px) {
  
  .map-container {
      height: 800px;
  }

  
}


@media (max-width: 990px) {
  
  .reports-sec {
      padding: 60px 20px;
      background: #FAFAFA;
  }
  
  .reports-col {
      width: calc(50% - 10px);
  }
  
}

/************** ipad nd tab ***************/
@media only screen and (min-width:768px) and (max-width: 1024px) {}

/************** iphone roatate***************/
@media (max-width: 767px) {

    .map-container {
        height: 780px;
    }

    div#map {
        height: 780px;
    }

    .column-left {
      min-width: 450px;
      max-width: 450px;
      height: auto;
    }

    .reports-col {
        width: 100%;
        padding: 24px;
        margin-bottom: 40px;
    }

        .reports-col:last-child {
            margin-bottom: 0;
        }

  

}

/************** iphone ***************/
@media (max-width: 479px) {


    .reports-sec {
        padding: 40px 10px;
        background: #FAFAFA;
    }
    
    

    .reports-col {
        width: 100%;
        padding: 24px 10px 24px 10px;
        margin-bottom: 40px;
    }

        .reports-col:last-child {
            margin-bottom: 0;
        }

  #aplusguard_address {
      min-width: 100%;
      max-width: 100%;
  }
  

  .column-left {
      min-width: calc(100% - 40px);
      max-width: calc(100% - 40px);
      left: 0;
      margin: 0px 20px;
  }
  
  /* Add necessary CSS rules to handle visibility */
@media only screen and (max-width: 768px) {
    .aplusguard_main_floating {
        display: none; /* Initially hidden in mobile */
    }
    #closeTabid {
        display: none; /* Close tab hidden initially */
    }
    #openTabid {
        display: block; /* Open tab shown initially */
    }
}

  
}