.match-hero{
    background:#fffefe;
    padding:80px 20px;
    text-align:center;
}

.match-container h1{
    font-size:40px;
    color:#4f8fef;
    font-weight:600;
    margin-bottom:30px;
}

.match-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
}

.match-hero .btn-outline{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 22px;
    border:1px solid #4f8fef;
    background:transparent;
    color:#4f8fef;
    border-radius:6px;
    font-weight:500;
    cursor:pointer;
    transition:0.3s;
}

.btn-outline:hover{
      border:1px solid #f1f1f1;
}

.match-hero .btn-outlinee{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 22px;
    border:1px solid #4f8fef;
    background:#4f8fef;
    color:#4f8fef;
    border-radius:6px;
    font-weight:500;
    cursor:pointer;
    transition:0.3s;
}

.btn-outlinee:hover{
      border:1px solid #f1f1f1;
}

.btn-icon{
    width:16px;
    height:16px;
}




.posts-section{
padding:40px 20px;
background:#fffefe;
}

.posts-container{
max-width:1200px;
margin:auto;

display:grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap:25px;
}

/* Card */

.post-card{
background:white;
border-radius:14px;
padding:18px;
border-left:4px solid #4f8fef;
border-right:4px solid #4f8fef;
width: 100%;
max-width: 330px;
height: auto;
display: flex;
flex-direction: column;
box-shadow:0 5px 18px rgba(0,0,0,0.08);
transition:.2s;
}

.post-card:hover{
transform:translateY(-7px);
}

/* Header */

.div2{
    display: flex;
    flex-direction: row;
}

.post-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:10px;
}

.user{
display:flex;
align-items:center;
gap:10px;
}

.avatar{
width:45px;
height:45px;
border-radius:50%;
}

.name{
font-weight:600;
font-size:14px;
}

.username{
font-size:8px;
color:#8a8a8a;
margin-top: -2px;
}

.date{
font-size:10px;
color:#9ca3af;
}

/* Tags */

.post-tags{
display:flex;
gap:5px;
margin:5px 0;
margin-right: 5px;
}

.tag{
padding:3px 4px;
border-radius:6px;
font-size:9px;
font-weight:500;
}

.status{
background:#60a5fa;
color:white;
}

.price{
background:#0284c7;
color:white;
}

/* Grid info */

.post-grid{
display:flex;
flex-direction: column; 
/* padding: 5px; */
}

.info{
display:flex;
flex-direction:column;
width: 140px;
margin: 4px 0px;
}

.info1{
display:flex;
flex-direction:row; 
align-items: center;
 
}

.info1 img{
    width: 10px;
    height: 10px;
    margin-right: 3px;
}

.label{
font-size:11px;
color:#60a5fa;
/* font-weight:600; */
}

.value{
font-size:13px;
font-weight:600;
}

/* Neighborhood */

.neighborhood{
margin-top:10px;
}

.neighborhood p{
font-size:13px;
margin-top:3px;
}

/* Actions */

 
@media (max-width: 768px) {

  .posts-container{
    grid-template-columns: 1fr;
    justify-items: center; /* 🔥 kjo e qet card-in në qendër */
  }

  .post-card{
    max-width: 95%; /* ose 100% */
  }
 
   

 
 
}
/* MODAL */
/* DOWNLOAD MODAL SPECIFIC */
.download-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.download-modal.show {
    display: flex;
}

.download-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease;
}

.download-modal-content h2 {
    margin-bottom: 25px;
    font-size: 22px;
}

.download-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-modal-btn {
    padding: 14px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    display: block;
    width: 90%;
}

/* iOS */
.download-modal-btn.ios {
    background: black;
    color: white;
}

.download-modal-btn.ios:hover {
    opacity: 0.85;
}

/* Android */
.download-modal-btn.android {
    background: #34A853;
    color: white;
}

.download-modal-btn.android:hover {
    opacity: 0.85;
}

/* Close button */
.download-close-btn {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 26px;
    cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
 


/* MODAL PREMIUM */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}


/* ===================== */
/* SCROLLABLE MODAL       */
/* ===================== */

.modal-content {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    text-align: left;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease;
    font-family: 'Poppins', sans-serif;

    /* Shtimi për scroll */
    max-height: 90vh;   /* 90% e lartësisë së viewport-it */
    overflow-y: auto;   /* aktivizon scroll vertikal */
    -webkit-overflow-scrolling: touch; /* smooth scroll në iOS */
}

/* Dropdown më i bukur */
.modal-content select {
    width: 100%;
    padding: 12px 16px;            /* më shumë padding për komoditet */
    border-radius: 12px;           /* bëhet rounded */
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #1e293b;
    background-color: #f9fafb;     /* ngjyrë e lehtë për contrast */
    appearance: none;              /* largon default arrow browser */
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.modal-content input,
.modal-content select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box; /* bën që padding të mos e tejkalojë container-in */
}
/* Arrow custom */
.modal-content select::after {
    content: "▼";                  /* arrow custom */
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 10px;
    color: #4f8fef;
}

/* Focus efekt më modern */
.modal-content select:focus {
    border-color: #4f8fef;
    box-shadow: 0 0 0 3px rgba(79,143,239,0.2);
    outline: none;
}

/* Hover efekt */
.modal-content select:hover {
    border-color: #4f8fef;
}

/* Opsionet */
.modal-content select option {
    padding: 10px;
    background: white;
    color: #1e293b;
}

/* Optional: për pak padding në bottom kur scrollon */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

/* Titulli */
.modal-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #1E40AF;
    text-align: center;
}

/* Form labels */
.modal-content label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1E40AF;
    margin-top: 15px;
    margin-bottom: 6px;
}

/* Inputs dhe selects */
/* Dropdown & input focus/hover */
.modal-content select,
.modal-content input[type="number"],
.modal-content input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #1e293b;
    transition: 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content select:focus,
.modal-content input[type="number"]:focus,
.modal-content input[type="date"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* Filter button */
.modal-content .modal-btn {
    background: #4f8fef;      /* blu i fuqishëm */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 25px;
    width: 100%;
    padding: 12px 0;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.modal-content .modal-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Close button */
.close-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

/* Responsive mobile improvements */
@media (max-width: 500px) {
    .modal-content {
        padding: 25px 20px;
        border-radius: 16px;
    }
    .modal-content h2 {
        font-size: 20px;
    }
    .modal-content .modal-btn {
        font-size: 15px;
    }
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

 