:root {
    /* Remove or comment out the following lines to use default WordPress colors */
    /* --background-color: #ffffff;
    --card-background: #ffffff;
    --text-color: #333333;
    --border-color: #ddd;
    --hover-background: #f5f5f5;
    --secondary-text: #666666; */
}

/* ----------------------Search results layout */
#gvidx-search-results {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    min-height: 300px;
}

/* Map styling */
#map {
    flex: 1;
    flex-basis: 60%;
    min-height: 700px;
    height: 650px;
    width: 100%;
}

/* Property cards styling */
#property-cards {
    flex: 1;
    flex-basis: 40%;
    overflow-y: auto;
    max-height: 700px;
}

/* --------------------- Individual property card styling */

.results {
    font-size: 13px;
    position: relative;
}

.property-card {
    display: flex;
    flex-direction: row;
    border: 1px solid;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    color: var(--text-color);
}

.property-card-image {
    flex: 1;
    flex-basis: 40%;
    max-width: 300px;
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 300px;
}

.property-card-details {
    flex: 2;
    padding: 15px;
}

.property-card h6 {
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.property-card p {
    margin: 0 0 5px 0;
    color: var(--secondary-text);
}


/* Gallery Styles */
.property-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    z-index: 9;
}

.property-gallery img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.property-gallery img:hover {
    transform: scale(3);
}


.property-gallery a {
    display: block;
    text-decoration: none;
}

.property-gallery a:hover {
    opacity: 1.8;
}


/* ------------------------------- Location input container */



.input-location {
    flex: 1;
    min-width: 150px;
}

.input-location input {
    width: 100%;
    border-radius: 100px;
}



/* General input container styles */
.input-container {
    position: relative;
    width: 150px;
    flex: 1;
    border-radius: 100px;
    font-size: 12px;
    box-sizing: border-box;
     
}



.input-container input,
.input-container select {
    width: 100%;
    padding: 0px 15px; /* Match padding with other inputs */
    border: 1px solid var(--border-color);
    border-radius: 100px;
    box-sizing: border-box;
    text-align: right; /* Match text alignment */
    height: 40px; /* Set consistent height */
    line-height: 20px; /* Ensure line-height matches the height */
}

.input-container input[type="text"],
.input-container input[type="text"]:focus {
    display: flex;
    flex-direction: column;
}


.input-container label {
    position: absolute;
    transition: all 0.3s ease;
    pointer-events: none;
    margin-left: 15px;
    top: 50%;
    transform: translateY(-50%);
        align-items: left;
}


.input-container input[type="text"]:focus+label,
.input-container input[type="text"]:valid+label {
    font-size: 12px;
    /*color: #fff;*/
    display: none;
}

.input-container,gvidx-search-form label {
       /* margin-bottom: 10px;*/
        font-size: 12px;
        color: #999;
}

.input-container input {
        border: 1px solid #ccc;
        border-radius: 100px;
}
    
.rounded-corners {
    border-radius: 100px;
}
    
.rounded-corners-5 {
    border-radius: 10px;
}

.search-button {
    margin-bottom: 10px;
}

/* ---------------- filters */
.all-filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 0px;
    z-index: 10;
    
}

label {
    /*margin-right: 5px;*/
}




/* ---------------- Mobile */

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    #gvidx-search-results {
        flex-direction: column;
    }

    #map {
        flex-basis: 100%;
        min-height: 300px;
        max-height: 300px;
    }

    #property-cards {
        flex-basis: 100%;
        max-height: none;
        overflow-y: visible;
    }

    .property-card {
        flex-direction: column;
    }

    .property-card-image {
        flex-basis: 100%;
        max-width: none;
    }

    .property-card-details {
        flex-basis: 100%;
        padding: 10px;
    }

    .input-container {
        width: 100%;
    }
}


/* Ensure all-filters is visible on desktop and hidden on phone by default */




@media (max-width: 768px) {
    .property-gallery img:hover {
        transform: scale(1.05);
        display: block;
        margin: 0 auto;
    }
}

/* Responsive adjustments for the gallery */
@media (max-width: 768px) {
    .property-gallery {
        flex-direction: column;
        gap: 20px; /* Adjust gap between images */
        width: 100%; /* Ensure gallery container is full width */
    }

    .property-gallery img {
        display: block; /* Ensure image behaves as a block element */
        width: 100%; /* Make image full width */
        height: auto; /* Maintain aspect ratio */
        max-width: none; /* Remove max-width constraint */
        max-height: none;
        margin: 0 auto; /* Center the image */
    }
}


/* ----  filters dropdown ----- */


/* Custom select styles */

.filters-custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: left;
    border-radius: 100px;
    box-sizing: border-box;
}

.filters-select-selected {
      position: relative; 
    padding: 8px 15px; /* Reduced padding from 10px to 8px */
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 100px;
    height: 40px; /* Match height with other inputs */
    line-height: 24px; /* Adjusted line-height */
    display: flex;
    align-items: center; /* Center content vertically */
}


.filters-select-items {
    position: absolute;
    background-color: #f5f5f5;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999999;
    color: var(--text-color);
    display: none;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
}


.filters-select-items div {
    color: #999;
    padding: 0px 15px; /* Ensure padding matches */
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

/* ----  categoty dropdown ----- */


/* Custom select styles */

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: left;
    border-radius: 100px;
    box-sizing: border-box;
}

.select-selected {
      position: relative; 
    padding: 8px 15px; /* Reduced padding from 10px to 8px */
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 100px;
    height: 40px; /* Match height with other inputs */
    line-height: 24px; /* Adjusted line-height */
    display: flex;
    align-items: center; /* Center content vertically */
}


.select-items {
    position: absolute;
    background-color: #f5f5f5;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999999;
    color: black;
    display: none;
    box-sizing: border-box;
}


.select-items div {
    color: #999;
    padding: 0px 15px; /* Ensure padding matches */
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

/* Custom checkbox styles */
.custom-checkbox {
    display: flex;
    align-items: center; /* Ensure alignment with text */
    padding-left: 5px;
    border-radius: 100px;
}

.custom-checkbox input {
    margin-top: 0; /* Remove any default top margin */
    margin-right: 8px; /* Margin to the right of the checkbox */
    width: 16px; /* Set checkbox width */
    height: 16px; /* Set checkbox height */
    vertical-align: middle; /* Align checkbox vertically in the middle */
    border-radius: 5px;
    border: 1px solid #ddd;
}



.arrow-icon {
    position: absolute;
    right: 10px; /* Adjust position as needed */
    top: 50%;
    transform: translateY(-50%); /* Default: no rotation for down arrow */
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid black; /* Arrow pointing down by default */
    transition: transform 0.3s ease;
}

.arrow-up {
    transform: translateY(-50%) rotate(180deg); /* Arrow pointing up when select-items is open */
    border-top: 5px solid black; /* Use border-top and rotate for up arrow */
}

/* Hide default dropdown arrow for custom-dropdown class */
.custom-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
}


/* ------------ searching ------*/ 

/* Loading overlay for map */
#map.map-loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

#map.map-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
}

/* Loading styles for property cards only (not the search summary) */
.property-cards-loading .property-card {
    opacity: 0.5;
    pointer-events: none;
}

/* Keep search summary visible during loading */
.search-summary {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Spinner - with increased specificity to override WooCommerce */
.gvidx-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: gvidx-spin 1s linear infinite;
    z-index: 1000;
}

@keyframes gvidx-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ------------ create page ------------ */


/* Create page styling */
.gvidx-create-wrap {

    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.gvidx-create-form {

    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gvidx-create-form h1 {
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.gvidx-create-form .gvidx-full-width,
.gvidx-create-form p {
    margin-bottom: 20px;
}

.gvidx-create-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.gvidx-create-form input[type="text"],
.gvidx-create-form input[type="number"],
.gvidx-create-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.gvidx-create-form #map {
    height: 300px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.gvidx-create-form input[type="submit"] {
    background-color: #ff0101;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.gvidx-create-form input[type="submit"]:hover {
    background-color: #7d0000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gvidx-create-form {
        padding: 20px;
    }
}


/* ------------ details page ------------ */

/* Details page styling */
.gvidx-details-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.gvidx-details-form {
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gvidx-details-form h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.gvidx-details-form p {
    margin-bottom: 20px;
}

.gvidx-details-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.gvidx-details-form input[type="text"],
.gvidx-details-form input[type="number"],
.gvidx-details-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.gvidx-details-form textarea {
    min-height: 100px;
    resize: vertical;
}

.gvidx-details-form input[type="checkbox"] {
    margin-right: 5px;
}

.gvidx-details-form input[type="submit"] {
    background-color: #ff0000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.gvidx-details-form input[type="submit"]:hover {
    background-color: #890a04;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gvidx-details-form {
        padding: 20px;
    }
}



/* ------------ media page ------------ */

.gvidx-drop-areas-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.gvidx-drop-area-wrapper {
    flex: 1;
    margin: 0 10px;
}

.gvidx-drop-area {
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gvidx-drop-area:hover {
    background-color: #f0f0f0;
}

.gvidx-drop-area p {
    margin: 0;
    font-weight: bold;
    color: #777;
}

.gvidx-file-input {
    display: none;
}

#gvidx-media-upload-form select,
#gvidx-media-upload-form button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
}

#gvidx-upload-status {
    text-align: center;
    margin-top: 20px;
}

#gvidx-upload-status .success {
    color: green;
}

#gvidx-upload-status .error {
    color: red;
}

@media (max-width: 768px) {
    .gvidx-drop-areas-container {
        flex-direction: column;
    }

    .gvidx-drop-area-wrapper {
        margin: 10px 0;
    }
}

/* -------------- media page -------------- */

.gvidx-image-container {
    position: relative;
    display: inline-block;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.gvidx-property-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gvidx-image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.gvidx-delete-media,
.gvidx-make-main-image {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.gvidx-make-main-image {
    background-color: #4CAF50;
}

.gvidx-delete-media:hover {
    background-color: #ff1a1a;
}

.gvidx-make-main-image:hover {
    background-color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gvidx-image-container {
        width: calc(50% - 20px);
        margin: 10px;
    }

    .gvidx-property-image {
        width: 100%;
        height: auto;
    }

    .gvidx-image-actions {
        flex-direction: column;
    }

    .gvidx-delete-media,
    .gvidx-make-main-image {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Document table styling */
.gvidx-document-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.gvidx-document-table th,
.gvidx-document-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.gvidx-document-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.gvidx-document-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* New styles for the delete button in the document table */
.gvidx-document-table .gvidx-delete-media {
    position: static; /* Override the absolute positioning */
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    display: inline-block; /* Ensure it's inline with other content */
}

.gvidx-document-table .gvidx-delete-media:hover {
    background-color: #ff1a1a;
}

.gvidx-remove-files {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}

.gvidx-drop-area {
    position: relative;
}

/* Save property heart icon styling */
.save-property-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    min-width: 44px !important; /* Minimum touch target size */
    min-height: 44px !important; /* Minimum touch target size */
    z-index: 1000 !important; /* Ensure it's above other elements */
    -webkit-tap-highlight-color: transparent !important; /* Remove tap highlight on iOS */
}

.save-property-icon i {
    font-size: 24px !important;
    color: #ff4d4d !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important; /* Ensure the icon doesn't interfere with touch events */
}

.save-property-icon i:hover {
    transform: scale(1.1);
}

.save-property-icon i.fas {
    color: #ff0000 !important;
}

/* Container for addtoany and heart */
.social-heart-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin: 10px 0 !important;
    position: relative !important;
    width: 100% !important;
}

.addtoany-wrapper {
    display: flex !important;
    align-items: center !important;
    margin-right: auto !important;
}

/* Update the save-property-icon styling for property cards */
.property-card .save-property-icon {
    position: absolute !important; /* Override static positioning */
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    margin: 0 !important; /* Remove margin */
    touch-action: manipulation !important; /* Optimize for touch */
}

/* Ensure the heart icon is visible */
.property-card .save-property-icon i {
    font-size: 20px !important;
    color: #ff4d4d !important;
    transition: all 0.3s ease;
    display: inline-block !important;
}

/* Specific styling for single post heart icon */
.single-post-heart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    background-color: transparent !important;
    padding: 5px !important;
    position: static !important;
}

.single-post-heart i {
    font-size: 24px !important;
    color: #ff4d4d !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.single-post-heart i:hover {
    transform: scale(1.1);
}

.single-post-heart i.fas {
    color: #ff0000 !important;
}

/* Container for addtoany and heart in single post */
.social-heart-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    margin: 10px 0 !important;
    position: relative !important;
}


/* Save property heart icon styling - both for cards and single post */
.save-property-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.save-property-icon i {
    font-size: 24px !important;
    color: #ff4d4d !important;
    transition: all 0.3s ease !important;
}

.save-property-icon i:hover {
    transform: scale(1.1) !important;
}

.save-property-icon i.fas {
    color: #ff0000 !important;
}

/* Specific styling for single post heart */
.single-post-heart {
    margin-left: auto !important;
    background-color: transparent !important;
    padding: 5px !important;
    position: static !important;
}

/* Property card specific heart positioning */
.property-card .save-property-icon {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    touch-action: manipulation !important; /* Optimize for touch */
}

/* Update the select-selected and filters-select-selected styles */
.select-selected, .filters-select-selected {
    position: relative; 
    padding: 8px 15px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 100px;
    height: 40px !important;
    line-height: 24px;
    display: flex;
    align-items: center;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Add specific styles for admin/backend */
.wp-admin .select-selected,
.wp-admin .filters-select-selected,
.wp-admin .custom-select,
.wp-admin .filters-custom-select {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
    width: 100% !important;
 
}

.wp-admin .custom-select,
.wp-admin .filters-custom-select {
    display: flex;
    align-items: center;
}

/* Ensure custom dropdowns match other input heights */
.custom-dropdown {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
}

/* Fix dropdown positioning */
.select-items,
.filters-select-items {
    position: absolute;

    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999999;
    color: var(--text-color);
    display: none;
    box-sizing: border-box;
    top: 100% !important;
    margin-top: 2px;
}


/* Route summary styling */
.route-summary {
    background: var(--card-background);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.route-summary h2,
.route-summary h3,
.route-summary-container h2,
.route-summary-container h3 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 15px;
}

/* Route metrics styling */
.route-metrics {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-background);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.route-metrics .summary-item {
    margin-bottom: 10px;
    color: var(--text-color);
}

.route-metrics .summary-item strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Route itinerary styling */
.route-itinerary {
    margin-top: 20px;
    background: var(--card-background);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 15px;
}

.route-itinerary h4 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.route-itinerary table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-background);
}

.route-itinerary th,
.route-itinerary td {
    padding: 10px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.route-itinerary th {
    background: var(--hover-background);
    font-weight: 600;
}

.route-itinerary tr:nth-child(even) {
    background: var(--hover-background);
}

/* Error message styling */
.route-summary .error {
    color: #ff4d4d;
    padding: 10px;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

/* Links in route summary */
.route-itinerary a {
    color: var(--link-color, #2196F3);
    text-decoration: none;
}

.route-itinerary a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Map container */
#myroute-map {
    background: transparent !important;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

/* Route summary container */
#myroute-summary {
    margin-top: 20px;
    color: var(--text-color);
}

/* Optimize table for mobile */
@media (max-width: 768px) {
    .route-itinerary {
        padding: 10px;
    }
    
    .route-itinerary table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .route-metrics {
        padding: 10px;
    }
}

.delete-property {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
}

.delete-property:hover {
    transform: scale(1.1) !important;
}

.delete-property i {
    font-size: 16px !important;
}

/* Add these styles to your CSS */
.gvidx-address-autocomplete {
    width: 100%;
    position: relative;
}

.address-suggestions {
    display: none;
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.address-suggestion {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.address-suggestion:hover {
    background-color: #f5f5f5;
}

.address-suggestion:last-child {
    border-bottom: none;
}

/* Upload progress styling */
.upload-type-status {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.upload-type-status h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.progress-container {
    margin-top: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.progress-container p {
    margin: 5px 0;
    font-size: 14px;
}

.progress-container .success {
    color: #4CAF50;
}

.progress-container .error {
    color: #f44336;
}

/* Property card price styling - updated */
.property-card .price,
.property-card h5 {
    font-size: 24px !important;
    font-weight: bold !important;
    color: var(--text-color) !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Admin backend specific price styling - updated */
.wp-admin .property-card .price,
.wp-admin .property-card h5,
.admin-bar .property-card .price,
.admin-bar .property-card h5,
#property-cards .property-card .price,
#property-cards .property-card h5 {
    font-size: 16px !important;  /* Increased size for admin */
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin: 12px 0 !important;
    line-height: 1.4 !important;
    padding: 5px 0 !important;
}

/* Ensure price stands out in admin search results */
.wp-admin #property-cards .property-card .price {
    font-size: 16x !important;
    color: var(--text-color) !important;
    display: block !important;
    margin: 12px 0 !important;
    padding: 5px 0 !important;
}

/* Adjust property card details for better readability in admin */
.wp-admin .property-card-details {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 15px !important;
}

/* Property card price styling - updated */
.property-card .admin-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin: 12px 0 !important;
    line-height: 1.4 !important;
    padding: 5px 0 !important;
    display: block !important;
}

/* Ensure price stands out in admin search results */
.wp-admin .property-card .admin-price {
    font-size: 16px !important;
    color: var(--text-color) !important;
    display: block !important;
    margin: 12px 0 !important;
    padding: 5px 0 !important;
}

/* Additional specificity for admin context */
.wp-admin #property-cards .property-card .admin-price {
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Pre-construction title styling */
.property-card .preconstruction-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin: 12px 0 8px !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* Admin backend specific pre-construction title styling */
.wp-admin .property-card .preconstruction-title,
.admin-bar .property-card .preconstruction-title {
    font-size: 16px !important;
    color: var(--text-color) !important;
    margin: 12px 0 !important;
    padding: 5px 0 !important;
}

/*-- Filters styling --*/
.gvidx-filters {
    display: flex;
    gap: 8px;
    padding: 10px;
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;
}

/* Responsive Search Bar Styles */

/* Default styles for larger screens (desktop) */
#gvidx-search-form {
    display: flex;
    align-items: center;
    z-index: 0;
    flex-wrap: wrap; /* Allow elements to wrap on desktop */
}

.gvidx-search-bar-main {
    display: flex;
    align-items: center;
    flex-grow: 0; /* Prevent main bar from taking available space on desktop */
}

.gvidx-location-input-container {
    flex: 0 1 300px; /* Allow location input to shrink, but grow up to 300px (adjust as needed) */
    min-width: 200px; /* Maintain minimum width */
    max-width: 350px; /* Set a maximum width for desktop */
}

#gvidx-toggle-filters {
    display: none; /* Hide Options button by default on desktop */
}

.gvidx-more-filters {
    display: flex !important; /* Ensure filters are visible on desktop */
    flex-wrap: wrap; /* Allow filters to wrap on desktop */
    flex: 1; /* Allow filters section to grow and take available space */
    align-items: center; /* Vertically align filter items */
    
    padding-bottom: 0px; /* Add some padding for potential scrollbar */
    gap: 3px; /* Restore gap between filter items if needed */
}

.gvidx-more-filters .input-container {
    flex: 1; /* Allow items to grow and shrink */
    min-width: 100px; /* Adjust minimum width as needed */
}

/* Specific adjustments for smaller filter fields if necessary */
.gvidx-more-filters #gvidx_beds_min_container,
.gvidx-more-filters #gvidx_beds_max_container,
.gvidx-more-filters #gvidx_baths_min_container,
.gvidx-more-filters #gvidx_baths_max_container {
    min-width: 75px; /* Adjust minimum width for beds and baths */
}

#gvidx-search-button {
    flex: 0 1 auto; /* Prevent search button from growing */
}

/* Styles for smaller screens (mobile) */
@media (max-width: 768px) { /* Adjust the breakpoint as needed */
    #gvidx-search-form {
        flex-direction: column; /* Stack elements vertically on mobile */
        align-items: stretch; /* Stretch elements to full width */
    }

    .gvidx-search-bar-main {
        display: flex; /* Ensure location and options are in a row */
        flex-direction: row;
        align-items: center;
        width: 100%; /* Make the main bar take full width */
        margin-bottom: 10px; /* Add some space below the main bar */
    }

    .gvidx-location-input-container {
        flex: 1; /* Allow location input to take available space */
        min-width: auto; /* Remove minimum width constraint on mobile */
        margin-right: 10px; /* Add space between input and button */
    }

    #gvidx-toggle-filters {
        display: block; /* Show Options button on mobile */
        flex-shrink: 0; /* Prevent button from shrinking */
        padding: 10px 15px; /* Adjust padding to match input height */
        height: 40px; /* Match height with input fields */
        border: 1px solid #ddd; /* Match border with input fields */
        border-radius: 100px; /* Match border radius */
        background-color: #f9f9f9; /* Optional: add a background color */
        color: #333; /* Optional: adjust text color */
        cursor: pointer;
    }

    .gvidx-more-filters {
        display: none !important; /* Hide filters by default on mobile */
        flex-direction: column; /* Stack filter items vertically */
        width: 100%; /* Make filters take full width when shown */
    }

    .gvidx-more-filters.show-filters {
        display: flex !important; /* Show filters when show-filters class is added by JS */
    }

    #gvidx-search-button {
        width: 100%; /* Make search button take full width on mobile */
        margin-top: 10px; /* Add space above the search button */
    }

    /* Adjust styles for individual filter input containers on mobile if needed */
    .gvidx-more-filters .input-container {
        min-width: 100%; /* Make filter inputs take full width */
        margin-bottom: 10px; /* Add space between filter inputs */
    }

    /* Prevent zoom on focus for input fields */
    .input-container input[type="text"],
    .input-container input[type="number"],
    .input-container select {
        font-size: 16px !important;
    }
}

.filters-wrapper {
    display: flex;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.gvidx-filters .search-input {
    height: 40px; /* Match height with other inputs */
    padding: 8px 15px; /* Match padding with other inputs */
    border-radius: 100px; /* Match border radius */
    min-width: 120px; /* Adjust minimum width if needed */
    font-size: 12px; /* Match font size */
    flex: 0 1 auto; /* Allow flex to determine width based on content and min-width */
    border: 1px solid #ddd; /* Match border style */
    box-sizing: border-box; /* Include padding and border in the element's total width */
    margin-right: 8px; /* Add some space between filter inputs */
}

.gvidx-filters .clear-filters {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    height: 32px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    margin-left: 8px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #666;
    line-height: 32px;
}

.gvidx-filters .clear-filters:hover {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .gvidx-filters {
        flex-direction: column;
    }
    
    .filters-wrapper {
        width: 100%;
    }
    
    .gvidx-filters .search-input {
        flex: 1 1 100%; /* Allow search input to take full width on mobile */
        min-width: 100%; /* Ensure full width on mobile */
        padding: 10px; /* Adjust padding for mobile */
        margin-bottom: 10px; /* Add space below input */
        border-radius: 4px; /* Adjust border radius for mobile if needed */
    }
    
    .gvidx-filters .clear-filters {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }

    /* Adjust styles for individual filter input containers on mobile */
    .gvidx-more-filters .input-container {
        flex-shrink: unset; /* Remove shrink prevention on mobile */
        width: 100%; /* Make filter inputs take full width */
        min-width: 100%; /* Ensure full width on mobile */
        margin-right: 0; /* Remove right margin on mobile */
        margin-bottom: 10px; /* Add space between filter inputs */
    }
}

/* Featured properties grid */
.featured-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.featured-property-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-property-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-property-details {
    padding: 15px;
}

.featured-property-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.featured-property-details .price {
    font-size: 1.3em;
    color: #2c3e50;
    font-weight: bold;
    margin: 10px 0;
}

/* Add these styles */
.multiple-marker-icon {
    background: none;
    border: none;
}

.multiple-listings-marker {
    background-color: #ff4444;
    border-radius: 50%;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.marker-popup {
    max-height: 200px;
    overflow-y: auto;
}

.marker-property {
    margin-bottom: 8px;
}

.marker-property hr {
    margin: 8px 0;
    border-top: 1px solid #ddd;
}

.gvidx-filters {
    position: relative;
}

.gvidx-filters input[type="text"] {
    padding-right: 30px;
}

/* Property Type dropdown styling to match category */
.input-container .custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: left;
    border-radius: 100px;
    box-sizing: border-box;
    padding: 8px 15px;
    border: 1px solid #ddd;
    cursor: pointer;
    height: 40px;
    line-height: 24px;
    display: flex;
    align-items: center;
    color: #999;
}

/* Hide native arrow for custom dropdowns */
.custom-select select.custom-dropdown {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: none !important; /* Added to help hide native arrow */
    padding-right: 30px !important; /* Ensure space for custom arrow */
}

/* Override default select styles (less specific, might be redundant now but kept for safety) */
.input-container select.custom-dropdown {
    color: #999;
    font-size: 12px;
}

/* Also ensure the placeholder option has the same color */
.input-container select.custom-dropdown option {
    color: #999;
}

/* Add custom arrow for property type dropdown */
.input-container .custom-select {
    position: relative;
}

/* Add these styles to make all input fields consistent */
.input-container input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-size: 12px;
    color: #999;
    box-sizing: border-box;
    line-height: 24px;

}

/* Style for labels to be consistent */
.input-container label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

/* Remove any browser default styles */
.input-container input[type="text"]:focus {
    outline: none;
    border-color: #ddd;
}

/* Ensure placeholder text color is consistent */
.input-container input[type="text"]::placeholder {
    color: #999;
}



/* Search summary styling */
#search-summary {
    font-size: 16px;
    line-height: 1.5;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
    color: #333;
}

#search-summary strong {
    font-weight: 600;
    color: #2c3e50;
}

@media (max-width: 768px) {
    #search-summary {
        font-size: 14px;
        padding: 10px;
    }
}



.checkbox-group, .radio-group {
    margin-top: 5px;
}

.checkbox-group label, .radio-group label {
    margin-right: 15px;
    display: inline-block;
}

.checkbox-group input, .radio-group input {
    margin-right: 5px;
}
