/* General & Archive Page Styles */
.page-header {
    background: #002349;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
}
.page-title {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}
.property-filters-container, .property-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Filters */
.res-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
    margin-bottom: 30px;
}
.res-filters .filter-group {
    flex: 1 1 200px;
}
.res-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.res-filters select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.res-filters .submit-group {
    display: flex;
    align-items: flex-end;
}
.res-filters button {
    width: 100%;
    padding: 12px;
    background-color: #002349;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.res-filters button:hover {
    background-color: #003366;
}

/* Property Grid */
.res-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.property-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.property-card a {
    text-decoration: none;
    color: inherit;
}
.property-thumbnail {
    position: relative;
}
.property-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.property-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #002349;
    color: white;
    padding: 5px 10px;
    font-size: 0.8em;
    border-radius: 4px;
}
.property-details {
    padding: 20px;
    background: #f9f9f9;
}
.property-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #e67e22;
}
.property-location {
    font-weight: bold;
    margin-bottom: 15px;
}
.property-icons, .property-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}
.property-meta {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
.property-meta span, .property-icons span { text-align: center; }
.property-meta span { text-align: left; }

/* Single Property Page */
.property-single .entry-header { margin-bottom: 2em; }
.property-single .back-button {
    display: inline-block;
    padding: 8px 15px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 1em;
}
.property-single .title-price-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #002349;
    padding-bottom: 10px;
}
.property-single .entry-title { margin: 0; }
.property-single .price { font-size: 1.5em; text-align: right; line-height: 1.2; }
.property-gallery-content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 2em;
}
.property-gallery { flex: 1; }
.property-main-content { flex: 1; }
.property-gallery .main-image img { width: 100%; border-radius: 8px; }
.thumbnail-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumbnail-strip .thumbnail-image img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; }

.property-section { margin-bottom: 2em; }
.property-section h2 {
    font-size: 1.2em;
    font-weight: bold;
    color: #002349;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.details-summary .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
}
.details-summary .details-grid div {
    display: flex;
    flex-direction: column;
}
.details-summary .details-grid strong {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}
.details-summary .details-grid span {
    font-weight: bold;
}
.map-container iframe {
    border-radius: 8px;
}
@media (max-width: 768px) {
    .property-gallery-content-wrapper { flex-direction: column; }
    .res-filters { flex-direction: column; }
}