.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;
}



 

.apartments-section {
    padding: 60px 20px;
    background: #fffefe;
}

.apartments-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;            
    justify-content: center;    
    gap: 20px;                  
}

.apartment-card {
    width: 350px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s;
}

.apartment-card:hover {
    transform: translateY(-5px);
}

/* IMAGE */
.apartment-image-wrapper {
    position: relative;
    padding: 13px;
     border-radius: 8px;
}

.apartment-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* BADGES */
.badge-type {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #619bf8;
    color: white;
    padding: 5px 12px;
    font-size: 10px;
    border-radius: 8px;
}

.badge-date {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.2);
    color: white;
    padding: 4px 8px;
    font-size: 8px;
    border-radius: 8px;
}

.image-counter {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0,0,0,0.2);
    color: white;
    font-size: 8px;
    padding: 3px 8px;
    border-radius: 6px;
}

/* CONTENT */
.apartment-content {
    padding: 12px;
}

/* USER + PRICE */
.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -40px;
    margin-left: 13px;
}

.user-info {
    display: flex;
    align-items: center;
    z-index: 10;
}

.name{
    height: 55px;
    display: flex;
    justify-content: end;
    flex-direction: column;
}

.user-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid white;
    margin-right: 7px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

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

.user-username {
    font-size: 8px;
    color: gray;
    margin-top: -2px;
}

/* Div container */
.price {
    font-weight: 700;
    display: flex; 
    align-items: flex-end;
    flex-direction: row;
    gap: 5px;  
    margin: 0px 15px;
    height: 60px;
}
 
.price p:first-child {
    font-size: 18px; 
    color: #000000;  
}
 
.price p:last-child {
    font-size: 14px; 
    font-weight: 500;
    color: rgb(27, 27, 27);  
    align-self: flex-end;  
}
 
.info1{
display:flex;
flex-direction:row; 
align-items: center;
}

.info1 img{
    width: 10px;
    height: 10px;
    margin-right: 3px;
}
/* INFO GRID */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.info-grid label {
    font-size: 12px;
    color: #619bf8; 
    padding-top: 1px;
}

.info-grid > div:nth-child(2),
.info-grid > div:nth-child(4) {
    margin-left: 40px;
}

.info-grid > div:nth-child(1),
.info-grid > div:nth-child(3) {
    margin-left: 10px;
}

.info-grid p {
    font-size: 14px;
    font-weight: 600;
    margin-top: 3px;
}

/* BUTTON */
.action-section {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.phone-btn {
    color: #3b82f6; 
    text-decoration: none;
}
 
/* SLIDER */
.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
     border-radius: 8px 8px 8px 0px;
    height: 220px;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slides img {
    width: 100%;        
    height: 100%;        
    object-fit: cover;  
    flex-shrink: 0;      
}
/* Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    color: white;
    border: none;
    padding: 20px 5px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 12px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
}

/* PHONE BUTTON */
.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #619bf8; 
    text-decoration: none;
    transition: 0.3s;
}

.phone-btn:hover {
    opacity: 0.8;
}

.phone-icon {
    width: 18px;
    height: 18px;
}


.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.fullscreen-modal .modal-slider {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.fullscreen-modal .modal-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.fullscreen-modal .modal-slides img {
    width: 100%;
    height: 80vh;
    object-fit: contain;
    flex-shrink: 0;
}

.fullscreen-modal .prev,
.fullscreen-modal .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 20px 5px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 10px;
}
 
 

.fullscreen-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.fullscreen-modal .modal-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    font-size: 16px;
}


/* 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;
    }
}