/*==================================================
                GOOGLE FONT
==================================================*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900;1000&display=swap');

/*==================================================
                RESET
==================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Cairo",sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{

    background:#F5F7FA;

    direction:rtl;

    color:#222;

    overflow-x:hidden;

}

a{

    text-decoration:none;

    color:inherit;

}

img{

    max-width:100%;

    display:block;

}

button{

    border:none;

    cursor:pointer;

}

input{

    border:none;

    outline:none;

}

/*==================================================
                CONTAINER
==================================================*/

.container{

    width:95%;

    max-width:1600px;

    margin:auto;

}

/*==================================================
                HEADER
==================================================*/

.header{

    position:fixed;

    top:0;

    right:0;

    width:100%;

    height:85px;

    background:#fff;

    z-index:9999;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:100%;

}

/*==================================================
                LOGO
==================================================*/

.logo{

    display:flex;

    align-items:center;

    gap:15px;

}

.logo img{

    width:60px;

    height:60px;

    border-radius:50%;

}

.logo h2{

    font-size:25px;

    color:#1F8A4D;

    font-weight:800;

}

.logo span{

    color:#777;

    font-size:14px;

}

/*==================================================
                NAVBAR
==================================================*/

nav{

    display:flex;

    gap:35px;

}

nav a{

    font-size:17px;

    font-weight:700;

    transition:.3s;

    position:relative;

}

nav a:hover{

    color:#1F8A4D;

}

nav a.active{

    color:#1F8A4D;

}

nav a.active::after{

    content:"";

    position:absolute;

    bottom:-8px;

    right:0;

    width:100%;

    height:3px;

    background:#1F8A4D;

    border-radius:30px;

}

/*==================================================
                HEADER BUTTONS
==================================================*/

.header-buttons{

    display:flex;

    align-items:center;

    gap:15px;

}

/*==================================================
                LOGIN BUTTON
==================================================*/

.login-btn{

    background:#1F8A4D;

    color:#fff;

    padding:13px 30px;

    border-radius:14px;

    font-size:16px;

    font-weight:700;

    transition:.3s;

}

.login-btn:hover{

    background:#166534;

}

/*==================================================
                SEARCH
==================================================*/

.search-section{

    margin-top:120px;

    margin-bottom:25px;

}

.search-bar{

    display:grid;

    grid-template-columns:220px 1fr;

    gap:18px;

    align-items:center;

}

/*==================================================
                LOCATION BUTTON
==================================================*/

.location-btn{

    height:62px;

    background:#1F8A4D;

    color:#fff;

    border-radius:18px;

    font-size:16px;

    font-weight:700;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    transition:.3s;

}

.location-btn:hover{

    background:#166534;

}

/*==================================================
                SEARCH INPUT
==================================================*/

.search-input{

    background:#fff;

    display:flex;

    align-items:center;

    height:62px;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.search-input input{

    flex:1;

    padding:0 20px;

    font-size:17px;

}

.search-input button{

    width:65px;

    height:62px;

    background:#1F8A4D;

    color:#fff;

    font-size:18px;

}

.search-input button:hover{

    background:#166534;

}

/*==================================================
                SEARCH STATUS MESSAGE
==================================================*/

.search-status{

    margin-top:14px;

    font-size:15px;

    font-weight:600;

    display:none;

}

.search-status.show{

    display:block;

}

.search-status.info{

    color:#1F8A4D;

}

.search-status.error{

    color:#c0392b;

}

/*==================================================
                MAP LAYOUT
==================================================*/

.map-section{

    margin-top:15px;

    margin-bottom:45px;

}

.map-wrapper{

    display:grid;

    grid-template-columns:2fr 520px;

    gap:25px;

    align-items:start;

}

.map-container{

    position:relative;

}

#map{

    width:100%;

    height:760px;

    border-radius:22px;

    overflow:hidden;

    background:#ddd;

}

/*==================================================
                MAP BUTTONS
==================================================*/

.map-top-tools{

    position:absolute;

    top:20px;

    left:20px;

    display:flex;

    gap:15px;

    z-index:999;

}

.map-btn{

    background:#fff;

    padding:14px 22px;

    border-radius:14px;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

    display:flex;

    align-items:center;

    gap:10px;

    font-weight:700;

    transition:.3s;

}

.map-btn:hover{

    transform:translateY(-2px);

}

.map-btn i{

    color:#1F8A4D;

}

/*==================================================
                CATEGORY FILTER DROPDOWN
==================================================*/

.category-filter{

    position:relative;

}

.category-filter .map-btn.active{

    background:#1F8A4D;

    color:#fff;

}

.category-filter .map-btn.active i{

    color:#fff;

}

.category-dropdown{

    display:none;

    position:absolute;

    top:calc(100% + 10px);

    right:0;

    min-width:220px;

    max-height:320px;

    overflow-y:auto;

    background:#fff;

    border-radius:14px;

    box-shadow:0 12px 28px rgba(0,0,0,.16);

    padding:10px;

    z-index:1000;

}

.category-dropdown.show{

    display:block;

}

.category-option{

    width:100%;

    display:flex;

    align-items:center;

    gap:10px;

    padding:10px 12px;

    border-radius:10px;

    background:none;

    text-align:right;

    font-size:14px;

    color:#333;

    transition:.2s;

}

.category-option i{

    color:#1F8A4D;

    width:16px;

}

.category-option:hover{

    background:#f1f7f3;

}

.category-option.active{

    background:#1F8A4D;

    color:#fff;

    font-weight:700;

}

.category-option.active i{

    color:#fff;

}

/*==================================================
                SIDEBAR
==================================================*/

.family-card{

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    display:flex;

    flex-direction:column;

    position:relative;

    min-height:760px;

}

/*==================================================
                DISTANCE BADGE
==================================================*/

.distance{

    position:absolute;

    top:20px;

    right:20px;

    background:#E9F8EE;

    color:#1F8A4D;

    padding:8px 18px;

    border-radius:30px;

    font-size:14px;

    font-weight:700;

    display:flex;

    align-items:center;

    gap:8px;

}

/*==================================================
                CLOSE BUTTON
==================================================*/

.close{

    position:absolute;

    top:18px;

    left:18px;

    width:42px;

    height:42px;

    border-radius:50%;

    background:#fff;

    box-shadow:0 5px 15px rgba(0,0,0,.12);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:18px;

    transition:.3s;

}

.close:hover{

    background:#f2f2f2;

}

/*==================================================
                HEADER
==================================================*/

.family-header{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    padding:70px 25px 25px;

}

.family-header img{

    width:130px;

    height:130px;

    border-radius:50%;

    object-fit:cover;

    border:5px solid #F2F2F2;

    margin-bottom:18px;

}

.family-details{

    text-align:center;

}

.family-details h2{

    font-size:30px;

    font-weight:800;

    color:#222;

    margin-bottom:8px;

}

.family-details p{

    color:#777;

    font-size:16px;

}

/*==================================================
                RATING
==================================================*/

.rating{

    margin-top:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

}

.rating strong{

    font-size:26px;

    color:#222;

}

.rating i{

    color:#FFC107;

}

.rating span{

    color:#777;

    font-size:15px;

}

/*==================================================
                INFORMATION
==================================================*/

.family-info{

    padding:10px 35px 25px;

}

.family-info p{

    display:flex;

    align-items:center;

    gap:14px;

    padding:12px 0;

    border-bottom:1px solid #EFEFEF;

    font-size:16px;

    color:#444;

}

.family-info p:last-child{

    border-bottom:none;

}

.family-info i{

    width:22px;

    text-align:center;

    color:#1F8A4D;

    font-size:18px;

}

/*==================================================
                PRODUCTS
==================================================*/

.products-title{

    padding:0 35px;

    margin-bottom:15px;

    font-size:22px;

    font-weight:800;

}

.products-preview{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

    padding:0 30px;

}

.product{

    transition:.3s;

}

.product:hover{

    transform:translateY(-4px);

}

.product img{

    width:100%;

    height:120px;

    border-radius:15px;

    object-fit:cover;

}

.product span{

    display:block;

    text-align:center;

    margin-top:8px;

    font-size:15px;

    font-weight:700;

}



/*==================================================
                ACTION BUTTONS
==================================================*/

.buttons{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:12px;

    padding:25px 30px;

}

.buttons button{

    height:56px;

    border-radius:14px;

    font-size:15px;

    font-weight:700;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    transition:.3s;

}

.direction{

    background:#1F8A4D;

    color:#fff;

}

.direction:hover{

    background:#166534;

}

.whatsapp{

    background:#25D366;

    color:#fff;

}

.whatsapp:hover{

    background:#20b458;

}

.call{

    background:#fff;

    border:2px solid #1F8A4D;

    color:#1F8A4D;

}

.call:hover{

    background:#1F8A4D;

    color:#fff;

}

/*==================================================
                PROFILE BUTTON
==================================================*/

.profile-btn{

    width:calc(100% - 60px);

    margin:0 auto 30px;

    height:60px;

    border-radius:16px;

    background:#fff;

    border:2px solid #E4E4E4;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:17px;

    font-weight:800;

    transition:.3s;

}

.profile-btn:hover{

    background:#1F8A4D;

    color:#fff;

    border-color:#1F8A4D;

}

/*==================================================
                NEARBY FAMILIES
==================================================*/

.families-section{

    margin:60px 0;

}

.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

.section-header h2{

    font-size:32px;

    font-weight:800;

    color:#222;

}

.section-header a{

    color:#1F8A4D;

    font-size:17px;

    font-weight:700;

}

.section-header a:hover{

    text-decoration:underline;

}

/*==================================================
                GRID
==================================================*/

.families-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

/*==================================================
                CARD
==================================================*/

.family-item{

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.35s;

}

.family-item:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.15);

}

/*==================================================
                IMAGE
==================================================*/

.family-item .image{

    position:relative;

    overflow:hidden;

}

.family-item img{

    width:100%;

    height:220px;

    object-fit:cover;

    transition:.4s;

}

.family-item:hover img{

    transform:scale(1.08);

}

/*==================================================
                DISTANCE
==================================================*/

.distance-badge{

    position:absolute;

    top:15px;

    right:15px;

    background:#1F8A4D;

    color:#fff;

    padding:7px 14px;

    border-radius:25px;

    font-size:13px;

    font-weight:700;

}

/*==================================================
                CONTENT
==================================================*/

.content{

    padding:18px;

}

.content h3{

    font-size:22px;

    font-weight:800;

    margin-bottom:10px;

}

.content p{

    color:#777;

    font-size:15px;

    line-height:1.8;

    margin-bottom:15px;

}

.card-rating{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

}

.card-rating strong{

    font-size:18px;

}

.card-rating i{

    color:#FFC107;

}

.rating-value{

    display:flex;

    align-items:baseline;

    gap:5px;

}

.rating-value .rating-count,
.card-location + .rating-count{

    font-size:12px;

    color:#999;

}

.card-location{

    display:flex;

    align-items:center;

    gap:8px;

    color:#666;

    font-size:15px;

}

.card-location i{

    color:#1F8A4D;

}


/*==================================================
                STATISTICS
==================================================*/

.statistics{

    margin:70px 0;

}

.statistics .container{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.stat-card{

    background:#fff;

    border-radius:22px;

    padding:40px 25px;

    text-align:center;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.35s;

}

.stat-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 45px rgba(0,0,0,.14);

}

.stat-card i{

    font-size:42px;

    color:#1F8A4D;

    margin-bottom:20px;

}

.stat-card h2{

    font-size:38px;

    font-weight:800;

    color:#222;

    margin-bottom:10px;

}

.stat-card span{

    color:#777;

    font-size:17px;

}

/*==================================================
                FOOTER
==================================================*/

footer{

    background:#1F2937;

    color:#fff;

    margin-top:80px;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:50px;

    padding:70px 0;

}

.footer-logo{

    width:70px;

    margin-bottom:20px;

}

.footer-grid h3{

    margin-bottom:20px;

    font-size:22px;

}

.footer-grid p{

    color:#D1D5DB;

    line-height:2;

}

.footer-grid ul{

    list-style:none;

}

.footer-grid ul li{

    margin-bottom:14px;

}

.footer-grid ul li a{

    color:#D1D5DB;

    transition:.3s;

}

.footer-grid ul li a:hover{

    color:#fff;

}

.footer-grid ul li i{

    color:#22C55E;

    width:25px;

}

.copyright{

    text-align:center;

    padding:20px;

    border-top:1px solid rgba(255,255,255,.1);

    color:#D1D5DB;

    font-size:15px;

}

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:1200px){

.map-wrapper{

grid-template-columns:1fr;

}

.family-card{

min-height:auto;

}

.families-grid{

grid-template-columns:repeat(2,1fr);

}

.statistics .container{

grid-template-columns:repeat(2,1fr);

}

.footer-grid{

grid-template-columns:1fr;

}

}

@media(max-width:768px){

.header{

height:auto;

padding:15px 0;

position:relative;

}

.search-section{

margin-top:20px;

}

.header .container{

flex-direction:column;

gap:20px;

}

nav{

flex-wrap:wrap;

justify-content:center;

gap:18px;

}

.search-bar{

grid-template-columns:1fr;

}

.buttons{

grid-template-columns:1fr;

}

.products-preview{

grid-template-columns:repeat(2,1fr);

}

.families-grid{

grid-template-columns:1fr;

}

.statistics .container{

grid-template-columns:1fr;

}

.section-header{

flex-direction:column;

align-items:flex-start;

gap:15px;

}

#map{

height:450px;

}

}




/* SMALL PHONES */

@media(max-width:480px){

.products-preview{

grid-template-columns:1fr;

}

.families-grid{

grid-template-columns:1fr;

}

.statistics .container{

grid-template-columns:1fr;

}

.stat-card i{

font-size:32px;

}

.stat-card h2{

font-size:28px;

}

#map{

height:300px;

}

.logo h2{

font-size:18px;

}

nav{

gap:12px;

font-size:14px;

}

}
