/*
Theme Name: iTrust Theme
Description: Custom theme for Leb Guide
Author: Samer
Version: 1.0
*/

/* RESET & VARIABLES */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #c3b092; 
    --primary-light: #e5dac7;
    --primary-dark: #9a8668;
    --bg-light: #eef2ef; 
    --text-main: #333;
    --text-muted: #777;
    --white: #fff;
    --border-color: #ddd;
    --success: #78a57e; 
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: #f9f9f9;
    line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; }

/* HEADER */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
.header-container {
    display: flex; justify-content: space-between; align-items: center; height: 70px;
}
.logo { font-size: 24px; font-weight: bold; color: var(--primary-dark); }
.main-nav a { margin: 0 15px; font-weight: 500; transition: color 0.3s; }
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.search-bar {
    display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 20px; padding: 5px 15px;
}
.search-bar input { border: none; outline: none; padding: 5px; }
.search-bar button { background: none; border: none; cursor: pointer; color: var(--text-muted); }
.login-btn { font-weight: bold; }

/* HERO SECTION (Cover & Logo) */
.page-container { background: #c7ebff73; padding-bottom: 50px; }
.hero-section {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    background: linear-gradient(90deg, rgb(255 157 178), rgb(152 149 255) 50%, rgb(228 228 255));
}
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}
.profile-logo-container {
    position: absolute;
    bottom: -60px; 
    left: 50%;
    transform: translateX(-50%);
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 5px solid #dbdc35;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    background: #dbdc35;
}
.profile-logo { width: 100%; height: 100%; object-fit: cover; }

/* TITLE BAR */
.title-bar {
    background: linear-gradient(90deg, rgb(255 157 178), rgb(152 149 255) 50%, rgb(228 228 255));
    padding: 70px 20px 20px; 
    text-align: center;
    position: relative;
}
.title-container {
    max-width: 1200px; margin: 0 auto; position: relative;
}
.place-title { color: #ffffff; font-size: 28px; font-weight: normal; margin-bottom: 15px; }

/* SOCIAL ICONS GRID (Square Colored Boxes) */
.social-icons-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.social-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 4px; /* Box 7rafo shway sghire mdawra, eza baddak qasiye a3mela 0 */
    color: #fff !important;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.social-icon-box:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Alwan l Icons */
.bg-twitter { background-color: #E72370; }
.bg-facebook { background-color: #38C6FA; }
.bg-tiktok { background-color: #000000; } /* Fixed */
.bg-youtube { background-color: #ff0000; }
.bg-instagram { background-color: #ED1B68; }
.bg-whatsapp { background-color: #00ff0f; }
.bg-phone { background-color: #001dff; }
.bg-maps { background-color: #EA4335; }
.bg-website { background-color: #4A90E2; }
.bg-share { background-color: #13033a; } 

.share-icon {
    position: absolute; right: 20px; top: 30px;
    font-size: 18px; cursor: pointer; color: #03b306;
}

/* INFO & DESCRIPTION BAR */
.info-action-bar {
    display: flex; justify-content: center; align-items: center;
    padding: 30px 15px; border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.slogan-text {
    max-width: 800px; margin: 0 auto; font-style: italic; color: var(--text-muted); font-size: 16px; line-height: 1.5;
}
.slogan-text i { color: var(--primary); font-size: 12px; vertical-align: top; margin: 0 5px; }

/* GALLERY */
.gallery-section { padding: 40px 15px; }
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px;
}
.gallery-grid img {
    width: 100%; height: 200px; object-fit: cover; border-radius: 8px; transition: transform 0.3s; cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* REVIEW SECTION */
.review-section { padding: 40px 15px; }
.review-box {
    background-color: var(--bg-light);
    border-radius: 10px; padding: 30px; max-width: 800px; margin: 0 auto;
}
.review-title {
    font-size: 22px; margin-bottom: 25px; color: var(--text-main); font-weight: normal;
    border-bottom: 2px solid var(--primary-dark); display: inline-block; padding-bottom: 5px;
}
.form-row { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.input-group {
    flex: 1; min-width: 200px; display: flex; align-items: center; background: var(--white);
    border-radius: 5px; padding: 10px 15px; border: 1px solid transparent; transition: border 0.3s;
}
.input-group:focus-within { border-color: var(--primary); }
.input-group i, .input-group .flag-icon { color: var(--text-muted); margin-right: 10px; font-size: 18px; }
.input-group input, .input-group select {
    border: none; outline: none; width: 100%; font-size: 16px; background: transparent; color: var(--text-main);
}
.input-group.full-width { flex: 100%; }
.form-note { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; text-align: center; }

/* RATING GRID */
.rating-grid { background: var(--white); border-radius: 5px; padding: 20px; margin-bottom: 20px; }
.rating-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.rating-row:last-child { border-bottom: none; }
.rating-label { width: 140px; font-size: 15px; color: var(--text-muted); }

.stars-header, .faces { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.stars-header div { color: #ccc; font-size: 12px; cursor: pointer; }
.stars-header div i { font-size: 24px; margin-bottom: 5px; }
.stars-header div:hover i, .stars-header div:hover span { color: var(--primary-dark); }

.faces i { font-size: 24px; color: #ccc; cursor: pointer; transition: color 0.2s, transform 0.2s; }
.faces i:hover { color: var(--primary-dark); transform: scale(1.2); }

.comment-area textarea {
    width: 100%; padding: 15px; border: none; border-radius: 5px; background: var(--white); font-size: 15px; resize: vertical; outline: none;
}
.comment-area textarea:focus { box-shadow: 0 0 0 1px var(--primary); }

.submit-btn {
    width: 100%; padding: 15px; background-color: var(--success); color: var(--white); border: none;
    border-radius: 5px; font-size: 18px; cursor: pointer; transition: background 0.3s;
}
.submit-btn:hover { background-color: #658f6b; }

/* MAP SECTION */
.map-section { padding: 40px 15px; text-align: center; }
.map-title { font-size: 24px; margin-bottom: 20px; font-weight: normal; color: var(--text-main); }
.map-container { border-radius: 10px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }

/* FOOTER */
.main-footer { background: #13033a; color: #ffffff; padding: 0px 0 20px; }
.footer-content {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 30px;
}
.footer-logo-menu { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-logo-menu .logo { color: var(--primary-light); }
.footer-nav a { margin-right: 15px; font-size: 14px; color: #ffffff; transition: color 0.3s; }
.footer-nav a:hover { color: var(--primary-dark); }

/* --- FOOTER SOCIAL ICONS HORIZONTAL FIX --- */
.footer-social-top { 
    display: flex !important; 
    flex-direction: row !important; /* Btjborhon 3a sater wa7ad */
    flex-wrap: nowrap !important;
    align-items: center !important; 
    justify-content: flex-end !important;
    gap: 15px !important; 
}

.footer-social-top a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    color: #13033a !important;
    font-size: 18px !important;
    text-decoration: none !important;
}

.footer-social-top .move-top-btn {
    background-color: #ffffff !important; /* Btrajje3 l mrabba3 l aswad lal UP */
}

.copyright { text-align: center; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; font-size: 13px; color: #ffffff; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-container { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
    .hero-section { height: 300px; }
    .profile-logo-container { width: 140px; height: 140px; bottom: -50px; }
    .title-bar { padding-top: 60px; }
    .info-action-bar { flex-direction: column; align-items: center; text-align: center; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-logo-menu { justify-content: center; }
    .rating-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rating-label { width: 100%; border-bottom: 1px dashed #eee; padding-bottom: 5px; }
    .faces, .stars-header { width: 100%; justify-content: space-between; }
}

/* --- SWIPER GALLERY STYLES (FIXED) --- */
.myGallerySwiper {
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 50px !important; /* Space for pagination dots */
    width: 100%;
}
.myGallerySwiper .swiper-wrapper {
    align-items: center; /* Center images vertically */
}
.myGallerySwiper .swiper-slide {
    display: flex;
    justify-content: center;
    background: transparent; /* Remove background */
}
.myGallerySwiper .swiper-slide img {
    width: 100%;
    height: 300px !important; /* Fixed height for uniformity */
    object-fit: cover !important; /* Ensures images fill the box without stretching */
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.myGallerySwiper .swiper-slide img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Customizing Arrows */
.myGallerySwiper .swiper-button-next, 
.myGallerySwiper .swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.myGallerySwiper .swiper-button-next:after, 
.myGallerySwiper .swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
}
.myGallerySwiper .swiper-button-next:hover, 
.myGallerySwiper .swiper-button-prev:hover {
    background-color: var(--primary-dark);
    color: #fff !important;
}

/* Customizing Pagination Dots */
.myGallerySwiper .swiper-pagination-bullet {
    background-color: var(--text-muted) !important;
    opacity: 0.5;
}
.myGallerySwiper .swiper-pagination-bullet-active {
    background-color: var(--primary-dark) !important;
    opacity: 1;
    transform: scale(1.2);
}

/* =========================================
   HOME PAGE STYLES
========================================= */
.home-page-container {
    background-color: #f5f8fa;
    padding-bottom: 50px;
}

/* Hero Section (Blue Background) */
.home-hero-section {
    background-color: #d1edff; /* Lawn l azra2 l fate7 */
    border-radius: 0 0 30px 30px;
    padding: 40px 15px 50px;
    margin-bottom: 40px;
}
.home-search-wrapper {
    max-width: 600px;
    margin: 0 auto 30px;
}
.home-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.home-search-form i {
    color: var(--text-main);
    font-size: 18px;
    margin-right: 15px;
}
.home-search-form input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
}
.home-section-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-main);
}
.text-center { text-align: center; }

/* Categories Horizontal Slider */
.home-categories-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none; /* Firefox */
}
.home-categories-slider::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.home-cat-card {
    text-align: center;
    flex-shrink: 0;
    width: 120px;
    text-decoration: none;
    color: var(--text-main);
}
.cat-img-box {
    width: 120px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.cat-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #fff;
    color: #333;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}
.home-cat-card p {
    font-size: 13px;
    font-weight: 500;
}

/* Places Horizontal Slider (Cards) */
.home-places-section {
    margin-bottom: 50px;
}
/* Horizontal Slider Fix */
.places-horizontal-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Btejber kel l cards w View All ykuno 7ad ba3d */
    align-items: center;
    gap: 20px;
    padding: 10px 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.places-horizontal-slider::-webkit-scrollbar { display: none; }

/* Kermal l View All tdalla e5de nafs l 7ajem wl chakel */
.home-place-card {
    width: 220px;
    height: 250px; /* Jebarnahon kelon ykuno nafs l toul */
    flex-shrink: 0 !important; /* Btemna3 l card tez8ar eza l shashe sghire */
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid #eaeaea;
    transition: transform 0.2s ease;
}
.view-all-card {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-cover {
    height: 140px;
    background-size: cover;
    background-position: center;
}
.hp-logo-wrapper {
    margin-top: -30px; /* Btrfa3 l logo la foq l cover */
}
.hp-logo-wrapper img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hp-info {
    padding: 10px 15px 20px;
}
.hp-info h3 {
    font-size: 15px;
    margin: 5px 0;
    color: var(--text-main);
}
.hp-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* View All Button Card */
.view-all-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #8fc9ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}
.view-all-circle i {
    font-size: 24px;
    margin-bottom: 5px;
    color: #4A90E2;
}
.view-all-circle:hover {
    background: #e0f0ff;
}

/* Pagination Styles */
.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: var(--white);
    color: var(--primary-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.pagination-wrapper .page-numbers:hover {
    background: var(--bg-light);
}
.pagination-wrapper .page-numbers.current {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

/* 5 Cards per row layout for Category Results Grid */
.places-grid-layout {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 3al desktop */
    gap: 20px;
}

/* Responsive lal Grid */
@media (max-width: 1200px) {
    .places-grid-layout { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .places-grid-layout { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
    .places-grid-layout { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 450px) {
    .places-grid-layout { grid-template-columns: repeat(1, 1fr); }
}

/* Zabbat 7ajm l card bel grid la tkoon mratabe */
.places-grid-layout .home-place-card {
    width: 100% !important;
    height: auto !important;
}