@font-face{
    font-family: "Tajawal";
    src: url("../font/Tajawal-Regular.ttf") format("truetype");
}

:root{
    --white: #fff;
    --black: #000;
    --transformBG: #fffaf6;
    --border: rgba(0, 0, 0, 0.2);
    --primary: #811810;
    --primaryHover: rgb(129, 24, 16, 0.75);
    --secondery: #e0c96e;
    --seconderyHover: rgb(224, 201, 110, 0.75);
    --lightGrey: #f8f8f8;
}

body[data-theme="grey"]{
}

body[data-theme="dark"]{
}

*,
*:before,
*:after{
    font-family: "Tajawal", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "footer";
    gap: 7px;
    direction: ltr;
    background-color: #fff;
}

body .socialfixed{
    position: fixed;
    bottom: -100px;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

body .socialfixed a{
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 22px;
    transition: 0.3s ease;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

body .socialfixed i{
    display: flex;
    justify-content: center;
    align-items: center;
}

body .socialfixed i{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ألوان حسب كل شبكة */
body .socialfixed a.facebook{
    background: #1877f2;
}
body .socialfixed a.instagram{
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}
body .socialfixed a.whatsapp{
    background: #25d366;
}
body .socialfixed a.tiktok{
    background: #000000;
}

/* hover */
body .socialfixed a:hover{
    filter: brightness(1.1);
    transform: scale(1.08);
}

/************************ HEADER ************************/
body header{
    grid-area: header;
    display: grid;
    grid-template-rows: auto auto;
    margin: 0;
    padding: 0;
}
body header .contact{
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    background-image: url(../images/wallpaper/header.png);
    padding: 10px 8%;
}
body header .contact p{
    width: 300px;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    margin: 0;
    animation: scroll 8s linear infinite;
}
@keyframes scroll{
    0%{ text-indent: 300px; }
    100%{ text-indent: -100%; }
}
body header .contact .boxes{
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}
body header .contact .boxes .box{
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
body header .contact .boxes .box i{
    display: grid;
    align-items: center;
}
body header .contact .boxes .box a{
    color: var(--white);
    text-decoration: none;
    transition: 0.46s;
}
body header .contact .boxes .box a:hover{
    color: var(--white);
    text-decoration: underline;
    transition: 0.46s;
}
body header .contact .connect{
    border-radius: 8px;
    border: 1px solid var(--white);
    width: 160px;
    height: 45px;
    transition: 0.46s;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
body header .contact .connect:hover{
    background: var(--border);
    transition: 0.46s;
    cursor: pointer;
}
body header .galerie{
    display: grid;
    grid-template-columns: 180px auto 160px;
    height: auto;
    padding: 10px 8%;
    min-height: 90px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
body header .galerie figure{
    height: auto;
    display: grid;
    align-items: center;
}
body header .galerie figure img{
    height: auto;
    width: 180px;
}

body header .galerie .categories{
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    align-items: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

body header .galerie .categories .categorie{
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    font-size: 15px;
    color: #333;
}

body header .galerie .categories .categorie:hover{
    color: var(--primaryHover);
}
body header .galerie .categories .categorie p{
    cursor: pointer;
}
body header .galerie .categories .categorie i{
    font-size: 12px;
    margin-top: 2px;
}

body header .galerie .categories .categorie .dropdown{
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    min-width: 230px;
    flex-direction: column;
    padding: 12px 0;
    z-index: 4;
    animation: fadeIn 0.25s ease;
    max-height: 500px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body header .galerie .categories .categorie .dropdown::-webkit-scrollbar{
    width: 0;
    height: 0;
}
body header .galerie .categories .categorie .dropdown .title{
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    display: inline-block;
    margin-left: 10px;
}

body header .galerie .categories .categorie .dropdown .item{
    padding: 10px 18px;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

body header .galerie .categories .categorie .dropdown .item:hover{
    background: var(--primaryHover);
    color: var(--white);
}

body header .galerie .categories .categorie:hover > .dropdown{
    display: flex !important;
}

body header .galerie .categories .categorie .dropdownGrid{
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    padding: 15px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    width: max-content;
    max-width: 70vw;
    animation: fadeIn 0.25s ease;
    box-sizing: border-box;
    max-height: 500px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body header .galerie .categories .categorie .dropdownGrid::-webkit-scrollbar{
    width: 0;
    height: 0;
}
body header .galerie .categories .categorie .dropdownGrid .title{
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    display: inline-block;
}

body header .galerie .categories .categorie .dropdownGrid .item{
    padding: 8px 10px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.25s ease;
}

body header .galerie .categories .categorie .dropdownGrid .item:hover{
    transform: translateX(3px);
}

body header .galerie .categories .categorie:hover > .dropdownGrid{
    display: grid !important;
}

body header .galerie .categories .categorie .dropdownGrid .item:hover{
    transform: translateX(3px);
}

body header .galerie .categories .categorie:hover > .dropdownGrid{
    display: grid !important;
}

@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(8px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

body header .galerie .functions{
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 15px;
}

body header .galerie .functions .pc{
    transition: 0.46s;
    width: 140px;
    height: 55px;
    display: grid;
    justify-items: center;
    align-content: center;
}
body header .galerie .functions .pc:hover{
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
    transition: 0.46s;
}
body header .galerie .functions .phone{
    display: none;
}
body header .galerie .functions .discovery{
    color: var(--black);
    cursor: pointer;
    transition: 0.46s ease;
    text-align: center;
    border-radius: 8px;
    width: 160px;
    height: 45px;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
body header .galerie .functions a{
    text-decoration: none;
    color: var(--black);
    font-size: 20px;
}
body header .galerie .functions .discovery i{
    display: grid;
    justify-items: center;
    align-content: center;
    font-size: 24px;
}

/************************ MAIN ************************/
body main{
    grid-area: main;
    height: auto;
    margin: 10px 0px 25px 0px;
    display: grid;
    justify-content: center;
    padding: 10px 8%;
}

body main .hotels{
    display: grid;
    gap: 20px;
}

body main .hotels figure img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center center;
}

body main .hotels h2{
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

body main .hotels .filters{
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 10px;
    margin: 10px 0 18px;
}
body main .hotels .filters select,
body main .hotels .filters button{
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    font-size: 16px;
}
body main .hotels .filters button{
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
body main .hotels .empty-hint{
  text-align:center;
  color: var(--muted);
  margin: 14px 0 6px;
}

body main .hotels .hotels-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}



body main .hotels .hotel-card{
    background:#fff;
    border:#fff;
    overflow:hidden;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    box-shadow:0 2px 8px rgba(0,0,0,.10);
    transition:transform .25s ease, box-shadow .25s ease;
    height:100%;
    border-radius: 10px;
}

body main .hotels .hotel-card:hover{
  transform:translateY(-1px);
  box-shadow:0 2px 8px rgba(0,0,0,.40);
}

body main .hotels .hotel-card__media{
  position:relative;
  height:215px;
  overflow:hidden;
}

body main .hotels .hotel-card__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

body main .hotels .badge-discount{
  position:absolute;
  right:12px;
  bottom:12px;
  background:#ff5a3d;
  color:#fff;
  font-weight:700;
  border-radius:50px;
  padding:8px 10px;
  font-size:13px;
  line-height:1;
}

body main .hotels .hotel-card__body{
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 auto;
}

body main .hotels .hotel-card__title{
  font-size:22px;
  color:#111;
  margin:0;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

body main .hotels .hotel-card__name{
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
  flex:1 1 auto;
}

body main .hotels .stars{
  display:inline-flex;
  gap:2px;
  vertical-align:middle;
  flex:0 0 auto;
  min-width:max-content;
}

body main .hotels .star{
  font-size:20px;
  line-height:1;
  display:inline-block;
  color:#ddd;
}

body main .hotels .star.full{ color:#f5c518; }

body main .hotels .star.half{
  background:linear-gradient(90deg,#f5c518 50%,#ddd 50%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}

body main .hotels .star.empty{ color:#ddd; }

body main .hotels .hotel-card__place{
  color:#666;
  margin:0;
}

body main .hotels .hotel-card__perk{
  color:#1c8f3c;
  margin:2px 0 0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
}

body main .hotels .hotel-card__footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

body main .hotels .hotel-card__price small{
  display:block;
  color:#666;
  font-size:12px;
  margin-bottom:2px;
}

body main .hotels .price-line{
  display:flex;
  align-items:baseline;
  gap:4px;
}

body main .hotels .price-line strong{
  font-size:22px;
  color:#111;
}

body main .hotels .price-line .cur{
  font-size:12px;
  color:#111;
  font-weight:700;
}

body main .hotels .hotel-card__cta{
  border:0;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  font-size:13px;
  border-radius:8px;
  padding:10px 14px;
  white-space:nowrap;
  transition:opacity .15s ease, transform .1s ease;
}

body main .hotels .hotel-card__cta:hover{ opacity:.92; }
body main .hotels .hotel-card__cta:active{ transform:translateY(1px); }

/* تسوية الارتفاع عبر الأعمدة (اختر واحدًا حسب تخطيطك) */

/* لو عندك Bootstrap .row/.col */
body main .hotels .row > [class*="col"]{ display:flex; }
body main .hotels .row > [class*="col"] > .hotel-card{ flex:1 1 auto; }

/* أو لو تستخدم شبكة مخصّصة */
body main .hotels .grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
body main .hotels .grid > *{ display:flex; }
body main .hotels .grid > * > .hotel-card{ flex:1 1 auto; }


body main .hotels .hotels-actions{
    margin-top: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
}
body main .hotels .hotels-actions .more-btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:8px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  transition:opacity .15s ease, transform .1s ease;
}

body main .hotels .hotels-actions .more-btn:hover{
  opacity:.92;
}

body main .hotels .hotels-actions .more-btn:active{
  transform:translateY(1px);
}




/************************ FOOTER ************************/
body footer{
    grid-area: footer;
    background:#f8f9fb;
    color:var(--text);
    padding:12px 8%;
}

body footer .section-title{
    text-align:center;
    font-size:22px;
    margin:6px 0 16px;
    font-weight:800;
}


body footer .g-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:16px;
}
body footer .g-item{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:10px;
    padding:14px;
    text-align:center;
}
body footer .g-icn{
    display:inline-flex;
    width:40px;height:40px;
    align-items:center;justify-content:center;
    border-radius:10px;
    background:rgba(0,0,0,.04);
    font-size:20px;margin-bottom:8px;
}
body footer .g-item h4{ margin:6px 0 4px; font-size:15px; font-weight:800; }
body footer .g-item p{ margin:0; color:var(--muted); font-size:13px; }

body footer .brandbar{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:18px;
    align-items:flex-start;
    padding:16px 0 6px;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
    margin-bottom:18px;
}

body footer .brand .brand-logo{
    font-size:26px;
    font-weight:900;
    color:var(--primary);
    margin-bottom:6px;
}
body footer .brand p{ color:var(--muted); margin:0; }

body footer .socials{
    display: grid;
    justify-content: end;
}
body footer .socials .s-title{ font-size:14px; margin-bottom:6px; }
body footer .socials .s-row{ display:flex; gap:8px; }
body footer .socials .s-row a{
    width:36px;height:36px;border-radius:50%;display:inline-flex;
    align-items:center;justify-content:center;background:#fff;
    border:1px solid var(--border); text-decoration:none; color:#111; font-weight:800;
}
body footer .socials .s-icn{ display:flex; align-items: center; }
body footer .socials .s-icn i{ display:flex; align-items: center; }

body footer .socials .s-icn[aria-label="Facebook"] i{ color:#1877F2; }
body footer .socials .s-icn[aria-label="WhatsApp"] i{ color:#25D366; }

body footer .socials .s-icn[aria-label="Instagram"] i{
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip:text; background-clip:text; color:transparent;
}
body footer .socials .s-icn[aria-label="TikTok"] i{
    color:#000;
    text-shadow:
        0 0 6px rgba(105,201,208,.35),
        0 0 6px rgba(238,29,82,.25);
}

body footer .linkcols{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin:18px 0;
}
body footer .linkcols .col h4{
    position:relative; margin:0 0 12px; font-weight:800; font-size:16px; padding-bottom:6px;
}
body footer .linkcols .col h4:after{
    content:""; position:absolute; left:0; bottom:0; width:56px; height:4px;
    background:var(--accent); border-radius:8px;
}
body footer .linkcols ul{ list-style:none; padding:0; margin:0; }
body footer .linkcols li{ margin:8px 0; }
body footer .linkcols a{
    color:var(--muted); text-decoration:none; transition:.2s ease;
}
body footer .linkcols a:hover{ color:var(--text); margin-left:5px; }

body footer .legalbar{
    background-image: url(../images/wallpaper/footer.png);
    color:var(--white);
    margin:0 -8%;
    padding:26px 8% 18px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
body footer .legalbar .lb-row{
    display:grid; gap:20px; grid-template-columns:1fr 1fr;
    align-items:start;
}
body footer .legalbar h3{ margin:0 0 10px; font-size:18px; font-weight:800; }
body footer .legalbar ul{ list-style:none; padding:0; margin:0; }
body footer .legalbar li{ margin:8px 0; }
body footer .legalbar a{ color:#d7d7d7; text-decoration:none; transition:.2s ease; }
body footer .legalbar a:hover{ color:#fff; }

body footer .legalbar p{ color:#d7d7d7; margin:6px 0; line-height:1.6; }
body footer .legalbar strong{ color:#fff; }

body footer .legalbar .lb-copy{
    grid-column:1 / -1; text-align:right; color:#b8b8b8; margin-top:6px;
}


@media (max-width: 1224px){
    /************************ MAIN ************************/
    body main .splide img{
        height: 450px;
    }
    body main .hotels .hotels-grid{ grid-template-columns: repeat(3, 1fr); }
    
    body main .hotels .filters{ grid-template-columns: 1fr 1fr; }
    body footer .legalbar .lb-row{ grid-template-columns:1fr; }
    body footer .legalbar .lb-copy{ text-align:left; }
    body footer .brandbar{ grid-template-columns:1fr; }
    body footer .linkcols{ grid-template-columns:repeat(2,1fr);}
    body footer .g-grid{ grid-template-columns:repeat(3,1fr);}
}

@media (max-width: 768px){
    /************************ HEADER ************************/
    body header{
        grid-area: header;
        position: fixed;
        margin: 0px;
        padding: 0px;
        grid-template-rows: auto auto;
        align-items: center;
        min-height: 80px;
        width: 100%;
        background-color: var(--white);
        z-index: 3;
    }
    body header .contact{
        display: none;
    }
    body header .galerie{
        margin: 0px;
        padding: 0px;
        display: grid;
        align-items: center;
        grid-template-columns: auto auto;
        height: 80px;
        background-color: var(--white);
    }
    body header .galerie figure{
        z-index: 4;
        margin-left: 7px;
        display: grid;
        align-items: center;
        background-color: var(--white);
        height: 100%;
    }
    body header .galerie figure img{
        height: auto;
        width: 140px;
    }
    body header .galerie .categories{
        display: grid;
        position: absolute;
        background-color: var(--white);
        z-index: 3;
        width: 100%;
        right: 0;
        top: -1000px;
        transition: top 0.46s ease;
        justify-content: start;
        gap: 0px;
    }
    body header .galerie .categories .categorie{
        cursor: default;
        width: 100%;
        height: 55px;
        margin-left: 7px;
    }
    body header .galerie .categories .categorie:hover > .dropdown{
        display: none !important;
    }
    body header .galerie .categories .categorie.active > .dropdown{
        display: flex !important;
    }
    body header .galerie .categories .categorie:hover > .dropdownGrid{
        display: none !important;
    }
    body header .galerie .categories .categorie.active > .dropdownGrid{
        display: grid !important;
    }
    body header .galerie .functions{
        gap: 10px;
        z-index: 4;
        margin-right: 7px;
    }
    body header .galerie .functions .discovery{
        display: grid;
        font-size: 20px;
        height: 50px;
        width: 50px;
        justify-content: center;
        align-items: center;
    }
    body header .galerie .functions .discovery p{
        display: none;
    }
    body header .galerie .functions .discovery i{
        font-size: 20px;
        color: var(--black);
        transition: 0.46s;
    }
    body header .galerie .functions .discovery i:active{
        color: var(--primary);
        transition: 0.46s;
    }
    body header .galerie .functions .pc{
        display: none;
    }
    body header .galerie .functions .phone{
        display: grid;
        font-size: 20px;
        height: 50px;
        width: 50px;
        justify-content: center;
        align-items: center;
    }
    body header .galerie .functions .phone i{
        display: grid;
        justify-content: center;
        align-items: center;
        color: var(--black);
        transition: 0.46s;
    }
    body header .galerie .functions .phone i:active{
        color: var(--primary);
        transition: 0.46s;
    }
    /************************ MAIN ************************/
    body main{
        grid-area: main;
        height: auto;
        margin: 90px 10px 20px 10px;
        overflow: hidden;
        padding: 0px;
    }
    
    body main .hotels .hotels-grid{ grid-template-columns: 1fr; }
    body main .hotels .filters{ grid-template-columns: 1fr; }
    /************************ FOOTER ************************/
    body footer .linkcols{ grid-template-columns:1fr;}
    body footer .g-grid{ grid-template-columns:repeat(2,1fr);}
}