/* ==========================================
   BIZMATCH CSS - KEY GLOBAL PROJECTS
   Design System: Red (#B71C1C) + Navy (#021738)
   ========================================== */

/* RESET & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #555555;
    background: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: #021738;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__top {
    padding: 20px 0;
    border-bottom: 1px solid #ecf0f3;
}

.header__toparea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h3 {
    font-size: 24px;
    color: #021738;
    margin: 0;
}

.logo h3 span {
    color: #B71C1C;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav ul li a {
    color: #021738;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: #B71C1C;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #B71C1C;
    transition: width 0.3s ease;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    background: linear-gradient(135deg, #021738 0%, #0a2d5c 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header__content h6 {
    color: #B71C1C;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.page-header__content h1 {
    color: #ffffff;
    font-size: 42px;
    margin-bottom: 20px;
}

.page-header__content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   LISTINGS SECTION
   ========================================== */
.listings-section {
    padding: 60px 0 80px;
    background: #F8F9FA;
}

.listings-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ==========================================
   FILTERS SIDEBAR
   ========================================== */
.filters-sidebar {
    position: sticky;
    top: 100px;
}

.filters-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filters-card h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #021738;
    padding-bottom: 15px;
    border-bottom: 2px solid #B71C1C;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #021738;
    margin-bottom: 12px;
    font-size: 15px;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #021738;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: #B71C1C;
}

.filter-select:focus {
    outline: none;
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: #555555;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #021738;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #B71C1C;
}

.btn-reset {
    width: 100%;
    padding: 12px 20px;
    background: #F8F9FA;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #021738;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-reset:hover {
    background: #B71C1C;
    border-color: #B71C1C;
    color: #ffffff;
}

/* ==========================================
   LISTINGS AREA
   ========================================== */
.listings-area {
    width: 100%;
}

.listings-topbar {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.results-count {
    font-size: 16px;
    color: #555555;
}

.results-count span {
    font-weight: 700;
    color: #B71C1C;
    font-size: 20px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-controls label {
    font-weight: 600;
    color: #021738;
    font-size: 15px;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #021738;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.sort-select:hover {
    border-color: #B71C1C;
}

.sort-select:focus {
    outline: none;
    border-color: #B71C1C;
}

/* ==========================================
   LISTINGS GRID
   ========================================== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.listing-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.listing-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.listing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-card:hover .listing-card__image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: #B71C1C;
    color: #ffffff;
}

.badge-hot {
    background: #ff9800;
    color: #ffffff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.listing-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.listing-card__header h3 {
    font-size: 20px;
    color: #021738;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.tag {
    background: #F8F9FA;
    color: #B71C1C;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.listing-card__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.listing-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.listing-card__meta i {
    color: #B71C1C;
    font-size: 13px;
}

.listing-card__description {
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.listing-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.price {
    font-size: 26px;
    font-weight: 700;
    color: #B71C1C;
}

.btn-primary {
    background: #B71C1C;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #8B1515;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #021738;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #B71C1C;
    color: #B71C1C;
}

.pagination-btn.active {
    background: #B71C1C;
    border-color: #B71C1C;
    color: #ffffff;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================
   MODAL
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 23, 56, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #F8F9FA;
    border: none;
    border-radius: 50%;
    color: #021738;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #B71C1C;
    color: #ffffff;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header i {
    font-size: 48px;
    color: #B71C1C;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #021738;
}

.modal-header p {
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
}

.interest-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #021738;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #021738;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: #B71C1C;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: #8B1515;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.3);
}

.form-note {
    margin-top: 20px;
    padding: 15px;
    background: #F8F9FA;
    border-radius: 8px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-note i {
    color: #B71C1C;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #021738;
    color: #ffffff;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-section h4 span {
    color: #B71C1C;
}

.footer-section h5 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-section p i {
    color: #B71C1C;
    margin-right: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #B71C1C;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .listings-wrapper {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header__content h1 {
        font-size: 32px;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .listings-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .page-header__content h1 {
        font-size: 28px;
    }

    .listing-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary {
        width: 100%;
    }
}
