/* Public Properties Page Styles – Matching Gieden Website Design */

/* Header override for Properties pages */
#main-header.header,
#main-header.header.scrolled {
    background: rgb(23, 32, 51) !important;
}


.properties-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 160px 0 40px;
    margin-top: -100px;
    text-align: center;
}

.properties-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.properties-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.properties-hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.properties-filters {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.properties-filters select,
.properties-filters input {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    color: #334155;
    outline: none;
}

.properties-filters select:focus,
.properties-filters input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Property Grid */
.public-property-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}

.pub-property-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.pub-property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.pub-card-image {
    height: 220px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-card-image .pub-type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #f1f5f9;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.pub-card-image .pub-featured {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pub-card-image .pub-no-image {
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pub-card-body {
    padding: 24px;
    text-align: center;
}

.pub-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.pub-card-title a {
    color: inherit;
    text-decoration: none;
}

.pub-card-title a:hover {
    color: #2563eb;
}

.pub-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
}

.pub-card-location i {
    width: 14px;
    height: 14px;
}

.pub-card-details {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pub-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #475569;
}

.pub-detail i {
    width: 15px;
    height: 15px;
    color: #2563eb;
}

.pub-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.pub-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2563eb;
}

.pub-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
}

.pub-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    width: auto;
    min-width: 180px;
}

.pub-view-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* Detail Page */
.property-detail-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 40px 0;
    color: #f1f5f9;
}

.property-detail-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.property-detail-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.property-detail-hero .location {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.detail-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
}

.detail-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.detail-card p {
    color: #475569;
    line-height: 1.8;
}

.detail-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}

.detail-info-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.detail-info-value {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-feature-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #475569;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.detail-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.detail-gallery img:hover {
    transform: scale(1.03);
}

.detail-price-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f1f5f9;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
}

.detail-price-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 4px;
}

.detail-price-card .price-label {
    color: #94a3b8;
    font-size: 0.85rem;
}

.detail-contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.detail-contact-card h3 {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 10px;
}

.contact-btn-primary {
    background: #2563eb;
    color: #fff;
}

.contact-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.contact-btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #0f172a;
}

.contact-btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.related-properties {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.related-properties h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
}

.pub-empty-state {
    text-align: center;
    padding: 80px 24px;
    color: #64748b;
}

.pub-empty-state h3 {
    font-size: 1.3rem;
    color: #334155;
    margin-bottom: 8px;
}

/* Apply Now Button */
.contact-btn-apply {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Red Hat Display', sans-serif;
    text-decoration: none;
}

.contact-btn-apply:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    color: #fff;
}

/* Property prefill badge on application form */
.property-prefill-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e40af;
}

.property-prefill-badge i {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

.property-prefill-badge .prefill-label {
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 768px) {
    .properties-hero h1 {
        font-size: 1.8rem;
    }

    .public-property-grid {
        grid-template-columns: 1fr;
    }

    .property-detail-content {
        grid-template-columns: 1fr;
    }
}