/* Daft Properties Shortcodes Styles */

/* Theme Colors */
:root {
    --primary-color: #BCD62C;
    --secondary-color: #13adb7;
    --primary-hover: #a8c42e;
    --secondary-hover: #0f9ba8;
}

/* Map Filter Overlay - Horizontal Layout */
.filter-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.filters-row.horizontal-layout {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-end !important;
    flex-wrap: wrap !important;
}

.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group label {
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
}

.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group.keyword-filter {
    flex: 2 !important;
    min-width: 200px !important;
    margin: 0 !important;
}

.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group.category-filter,
.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group.location-filter {
    flex: 1 !important;
    min-width: 150px !important;
    margin: 0 !important;
}

.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group.search-button {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: flex-end !important;
    margin: 0 !important;
}

.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-input,
.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-select {
    width: 100% !important;
    padding: 8px 16px !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    background: white !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    height: 48px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    color: #333 !important;
}

.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 40px !important;
}

.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-input:focus,
.daft-property-filter-shortcode .filters-row.horizontal-layout .filter-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(188, 214, 44, 0.1) !important;
}

.filter-input::placeholder {
    color: #333;
    font-weight: 500;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 48px;
    min-width: 120px;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 214, 44, 0.3);
}

.search-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .filter-overlay {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        margin: 20px;
        width: calc(100% - 40px);
    }

    .filters-row.horizontal-layout {
        flex-direction: column;
        gap: 16px;
    }

    .daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group.keyword-filter,
    .daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group.category-filter,
    .daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group.location-filter {
        flex: none;
        width: 100%;
        min-width: auto;
    }

    .daft-property-filter-shortcode .filters-row.horizontal-layout .filter-group.search-button {
        flex: none;
        width: 100%;
        margin-top: 0 !important;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Property Image Container */
.property-image-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.property-image-container img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-image-container:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.property-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(19, 173, 183, 0.1) 0%, transparent 50%, rgba(188, 214, 44, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.property-image-container:hover::before {
    opacity: 1;
}

/* Image placeholder when no image is set */
.property-image-container.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
}

.property-image-container.no-image::before {
    content: '📍 Map Image';
    text-align: center;
    padding: 20px;
}

.property-image-container .image-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.property-image-container .image-placeholder p {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
}

.property-image-container .image-placeholder small {
    font-size: 0.9rem;
    color: #6c757d;
    opacity: 0.8;
}

.property-image-container .image-placeholder svg {
    color: #13adb7;
}

/* Hide Google Maps logo and controls */
.property-map-container .gm-style .gm-style-cc,
.property-map-container .gm-style .gm-style-mtc,
.property-map-container .gm-style a[href*="maps.google.com"],
.property-map-container .gm-style a[href*="google.com/maps"],
.property-map-container .gm-style div[title="Toggle fullscreen view"],
.property-map-container .gm-style div[title="Map Data"],
.property-map-container .gm-style div[title="Keyboard shortcuts"],
.property-map-container .gm-style-cc {
    display: none !important;
}

/* Position zoom controls */
.property-map-container .gm-style .gm-bundled-control {
    margin: 10px !important;
}

.property-map-container .gm-style .gm-bundled-control .gm-bundled-control-inner {
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Properties Shortcode Grid Layout */
.property-shortcode {
    display: grid;
    gap: 30px;
    margin: 30px 0;
    padding: 0;
}

.property-shortcode.columns-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 30px auto;
}

.property-shortcode.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.property-shortcode.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.property-shortcode.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-shortcode {
        gap: 20px;
        margin: 20px 0;
    }

    .property-shortcode.columns-2,
    .property-shortcode.columns-3,
    .property-shortcode.columns-4 {
        grid-template-columns: 1fr;
    }

    .daft-property-card .property-image {
        height: 240px;
    }

    .daft-property-card .property-details {
        padding: 20px;
    }

    .daft-property-card .property-meta-row {
        gap: 12px;
    }

    .daft-property-card .meta-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .property-shortcode.columns-3,
    .property-shortcode.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .daft-property-card .property-image {
        height: 260px;
    }
}

@media (min-width: 1200px) {
    .property-shortcode {
        gap: 40px;
    }

    .daft-property-card .property-image {
        height: 300px;
    }
}

/* Modern Property Card Design */
.daft-property-card {
    background: #e8e8e8;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.daft-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Property Image Styling */
.daft-property-card .property-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    border-radius: 20px 20px 0 0;
}

.daft-property-card .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.daft-property-card:hover .property-image img {
    transform: scale(1.08);
}

.daft-property-card .no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 500;
    font-size: 1rem;
}



/* Property Badges */
.daft-property-card .property-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.daft-property-card .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.daft-property-card .badge.property-type {
    background: var(--secondary-color);
    color: white;
}

.daft-property-card .badge.sale-agreed {
    background: var(--secondary-color);
    color: white;
}

/* Property Details Section */
.daft-property-card .property-details {
    padding: 24px;
}

.daft-property-card .property-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

.daft-property-card .property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (max-width: 1024px) {
    .daft-property-card .property-title {
        font-size: 1.4rem;
        line-height: 1.7;
        margin-bottom: 15px;
    }
}

.daft-property-card:hover .property-title a {
    color: var(--secondary-color);
}

/* Location with Icon */
.daft-property-card .property-location {
    margin-bottom: 16px;
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.daft-property-card .property-location svg {
    color: #bdc3c7;
    flex-shrink: 0;
}

/* Property Description */
.daft-property-card .property-excerpt {
    margin-bottom: 20px;
    color: #1f2121;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 3-line excerpt limit */
.daft-property-card .property-excerpt-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em;
    /* 3 lines × 1.5 line-height */
    text-overflow: ellipsis;
}

/* Property Meta Row with Icons */
.daft-property-card .property-meta-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.daft-property-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #7f8c8d;
    padding: 2px 12px;
    border-radius: 0;
    margin: 0;
    border-right: 2px solid #dee2e6;
}

.daft-property-card .meta-item:last-child {
    border-right: 0;
}

.daft-property-card .meta-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.daft-property-card .meta-item span {
    font-weight: 500;
}

/* Property Footer */
.daft-property-card .property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: white;
    border-radius: 20px;
    padding-left: 15px;
    margin-top: auto;
}

.daft-property-card .property-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.daft-property-card .property-price small {
    font-size: 0.8rem;
}

/* Details Button */
.daft-property-card .details-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.daft-property-card .details-button:hover {
    background: var(--secondary-hover);
    transform: translateX(4px);
}

.daft-property-card .details-button svg {
    transition: transform 0.3s ease;
}

.daft-property-card .details-button:hover svg {
    transform: translateX(2px);
}

/* No Results Message */
.daft-shortcode-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 500;
    background: #f8f9fa;
    border-radius: 20px;
    border: 2px dashed #dee2e6;
}

/* Property Filter Shortcode Styles */
.daft-property-filter-shortcode {
    margin: 0 0;
    position: relative;
}

.daft-property-filter-shortcode .map-container-wrapper {
    position: relative;
    width: 100%;
}

.daft-property-filter-shortcode .property-map-container {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.daft-property-filter-shortcode .filter-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .daft-property-filter-shortcode .filter-overlay {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
}

.daft-property-filter-shortcode .filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}

@media (max-width: 768px) {
    .daft-property-filter-shortcode .filters-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .daft-property-filter-shortcode .filter-actions {
        grid-column: 1 / -1;
    }
}

.daft-property-filter-shortcode .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daft-property-filter-shortcode .filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.daft-property-filter-shortcode .filter-group select,
.daft-property-filter-shortcode .filter-group input {
    padding: 8px 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
}

.daft-property-filter-shortcode .filter-group select:focus,
.daft-property-filter-shortcode .filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(188, 214, 44, 0.1);
}

.daft-property-filter-shortcode .filter-actions {
    display: flex;
    gap: 10px;
}

.daft-property-filter-shortcode .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.85rem;
    min-width: 100px;
}

.daft-property-filter-shortcode .btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(188, 214, 44, 0.3);
}

.daft-property-filter-shortcode .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 214, 44, 0.4);
}

.daft-property-filter-shortcode .btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.daft-property-filter-shortcode .btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
}

.gm-style-iw-ch {
    margin: 0 !important;
    padding: 0 !important;
}

button.gm-ui-hover-effect {
    position: absolute !important;
    z-index: 9 !important;
    right: 0 !important;
    border-radius: 50% !important;
    background: white !important;
}