/*
 * 10-90 Property Plugin Custom Styles
 * Leveraging Uncode/Bootstrap structure.
 */

/* ====================================
 * 1. Search Widget Styles
 * ==================================== */
.tnpp-search-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 20px 0; /* Add some margin around the form */
}

.tnpp-search-tabs {
    margin-bottom: 15px;
    display: flex; /* Ensure buttons are side-by-side */
}

.tnpp-tab-btn {
    border: 1px solid #00c6d7; /* Highlight color */
    color: #00c6d7;
    background: #fff;
    padding: 10px 20px;
    margin-right: -1px; /* Overlap borders */
    border-radius: 0;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.tnpp-tab-btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.tnpp-tab-btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.tnpp-tab-btn.active,
.tnpp-tab-btn:hover {
    background: #00c6d7; /* Primary color */
    color: #fff;
}

.tnpp-search-field-group {
    position: relative;
    padding: 5px; /* Spacing between fields */
}

.tnpp-search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #aaa;
}

.tnpp-search-field-group .form-control {
    padding-left: 40px; /* Make space for the icon */
    height: 50px; /* Uniform height */
}

.tnpp-search-btn-wrap {
    padding: 5px;
}

.tnpp-search-btn {
    height: 50px;
    background: #00c6d7; /* Primary color */
    border: none;
    font-weight: bold;
}

.tnpp-advanced-toggle-wrap {
    padding: 5px;
}

.tnpp-advanced-toggle {
    width: 100%;
    height: 50px;
    font-weight: bold;
}

/* ====================================
 * 2. Property Card Styles
 * ==================================== */

.tnpp-property-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    height: 100%; /* Important for equal height in grid */
}

.tnpp-property-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tnpp-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.tnpp-card-image {
    width: 100%;
    height: 250px; /* Fixed height for image uniformity */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tnpp-property-card:hover .tnpp-card-image {
    transform: scale(1.05);
}

.tnpp-card-type {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    background-color: #f7a113; /* Secondary color for badge */
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
}

.tnpp-card-body {
    padding: 20px;
}

.tnpp-card-title a {
    font-size: 1.25rem;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.tnpp-card-title a:hover {
    color: #00c6d7;
}

.tnpp-card-location {
    font-size: 0.9rem;
    color: #777;
}

.tnpp-card-features {
    padding-left: 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.tnpp-card-features li {
    margin-right: 10px;
    color: #555;
}

.tnpp-card-features i {
    color: #00c6d7;
    margin-right: 5px;
}