/* 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;
}

.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: space-between;
    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;
    gap: 6px;
    padding: 10px 20px;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pub-view-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    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;
}

/* Book a View Button */
.contact-btn-book {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Red Hat Display', sans-serif;
}

.contact-btn-book:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    color: #fff;
}

/* Booking Modal Overlay */
.booking-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
}

.booking-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.booking-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    padding: 36px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.booking-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.booking-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.booking-header {
    text-align: center;
    margin-bottom: 20px;
}

.booking-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.booking-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.booking-header p {
    color: #64748b;
    font-size: 0.85rem;
}

.booking-property-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.booking-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.booking-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.booking-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 0.9rem;
    color: #0f172a;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.booking-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.booking-field input::placeholder {
    color: #cbd5e1;
}

.booking-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.booking-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.booking-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.booking-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success State */
.booking-success-content {
    text-align: center;
    padding: 20px 0;
}

.booking-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    animation: scaleIn 0.4s ease;
}

.booking-success-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.booking-success-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    50% { transform: scale(1.15); }
    to { transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@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;
    }

    .booking-modal {
        width: 95%;
        padding: 24px;
    }

    .booking-form-row {
        grid-template-columns: 1fr;
    }
}