/* tourism.css */

/* تأثير الظل عند المرور على العنصر */
.container.container-custom.py-4.p {
    padding-top: 0px !important;
}
/* ارتفاع موحد للصور */
#tourismCarousel {
  max-height: 500px;
  overflow: hidden;
}

#tourismCarousel .carousel-inner {
  height: 100%;
}

#tourismCarousel .carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* تغطي الصورة المساحة بالكامل بدون تشويه */
}

/* تحسين ظهور النصوص */
#tourismCarousel .carousel-caption {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
 #tourismCarousel .carousel-img {
    width: 100%;
    height: 175px;
    object-fit: fill;
}
  #tourismCarousel .carousel-caption h1 {
    font-size: 1.5rem;
  }
  #tourismCarousel .carousel-caption p {
    font-size: 1rem;
  }
}

.hover-shadow:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

/* أيقونات التصنيفات */
.category-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

/* سطر الأعمال Travel Agencies */
/* سطر الأعمال Travel Agencies */
.travel-agencies-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* بطاقة Desktop */
.business-card {
    flex: 1 1 calc(25% - 1rem);
    min-width: 250px;
}

/* Responsive للهواتف */
@media (max-width: 774px) {
    .travel-agencies-row {
        flex-wrap: nowrap;
        overflow-x: auto; /* يسمح بالتمرير باللمس */
        -webkit-overflow-scrolling: touch; /* تمرير سلس على iOS */
        padding: 0.5rem 0;
        scrollbar-width: none; /* Firefox */
    }
    .travel-agencies-row::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    .business-card {
        flex: 0 0 80%; /* كل بطاقة 80% من عرض الشاشة */
        max-width: 80%;
    }
}

/* زر More */
.btn-more {
    margin-top: 0.5rem;
}

/* ---------- Category Item ---------- */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333333;
    font-size: 0.8rem;
}

/* ---------- Hover Effect ---------- */
.category-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #007bff; /* يمكنك تغيير اللون حسب التصميم */
}

/* ---------- Icon Styling ---------- */
.category-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover img {
    transform: scale(1.1);
}

/* ---------- Text Styling ---------- */
.category-item span {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}
.row.row-cols-3.row-cols-sm-3.row-cols-md-4.row-cols-lg-6.g-3 {
    padding-top: 1.3rem;
}
/* ---------- Responsive Adjustments ---------- */
@media (max-width: 576px) {
    .category-item span {
        font-size: 0.85rem;
    }
    .category-item img {
        width: 35px;
        height: 35px;
    }
}

@media (min-width: 1200px) {
    .category-item span {
        font-size: 1rem;
    }
}
