/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

/* Header Styles */
.desktop-header {
    display: none;
}

.mobile-header {
    display: block;
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.location {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.mobile-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #333;
}

/* Hero Section */
.hero {
    padding: 0;
    background: none;
}




.carousel-slide {
    display: none;
    height: 100%;
   
    transition: opacity 0.5s ease-in-out;
    border-radius: 16px;
  }
  
  .carousel-slide.active {
    display: block;
  }
  


/* Categories - Desktop (Hidden on Mobile) */
.categories-desktop {
    display: none;
}

/* Categories - Mobile */
.categories-mobile {
    padding: 30px 0;
    background-color: white;
}

.circle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
}

.circle-icon {
    width: 60px;
    height: 60px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #1976d2;
    font-size: 1.5rem;
}

.circle-item span {
    font-size: 0.8rem;
    color: #555;
}

/* Nearby Attractions */
.nearby {
    padding: 30px 0 80px;
    background-color: #f5f5f5;
}

.attraction-container {
    display: grid;
    gap: 20px;
}

.attraction-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.location {
    color: #757575;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.location i {
    margin-right: 5px;
    color: #1976d2;
}

.description {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.price {
    font-weight: 600;
    color: #1976d2;
}

/* Tambahan styling agar mobile lebih elegan */
body {
    padding-bottom: 30px; /* beri jarak bawah agar tidak terlalu mentok */
}

.categories-mobile {
    padding: 40px 0 20px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 600;
}

.search-box input {
    font-size: 1rem;
    padding: 8px 10px;
}

.btn-search {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 25px;
}

.circle-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
}

.attraction-card {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-content h3 {
    font-weight: 600;
    font-size: 1.1rem;
}

.berita-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .berita-card {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    flex-direction: row;
  }
  
  .berita-card:hover {
    transform: translateY(-5px);
  }
  
  .berita-image {
    width: 40%;
    height: 120px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
  }
  
  .berita-content {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }
  
  .berita-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
  }
  
  .berita-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
  }
  
  /* Grid berubah di tablet & desktop */
  @media (min-width: 768px) {
    .berita-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .berita-card {
      flex-direction: column;
    }
  
    .berita-image {
      width: 100%;
      height: 180px;
    }
  
    .berita-content {
      padding: 15px;
    }
  }
  
  @media (min-width: 992px) {
    .berita-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  
  /* semualayanan */
  @media (max-width: 767px) {
    .attraction-card {
        flex-direction: row;
        align-items: center;
        height: auto;
    }

    .card-image {
        width: 40%;
        height: 100px;
    }

    .card-content {
        width: 60%;
        padding: 10px;
    }

    .card-content h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .description, .location, .price {
        font-size: 0.8rem;
    }
}

.categories-all {
    padding: 40px 0;
    background-color: #fff;
  }
  
  .categories-all h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #1976d2;
  }
  
  .circle-grid.three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
  }
  
  .circle-item {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
  }
  
  .circle-item:hover {
    transform: translateY(-3px);
  }
  
  .circle-icon {
    width: 70px;
    height: 70px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  
  .circle-item span {
    font-size: 0.85rem;
    color: #555;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .circle-grid.three-cols {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .circle-icon {
      width: 60px;
      height: 60px;
      font-size: 1.3rem;
    }
  
    .circle-item span {
      font-size: 0.8rem;
    }
  }
  


/* Tiga kolom untuk kategori mobile */
.circle-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.circle-item {
  text-align: center;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.circle-item:hover {
  transform: translateY(-3px);
}

.circle-item span {
  font-size: 0.8rem;
  color: #555;
  margin-top: 5px;
}





/* Desktop Styles */
@media (min-width: 768px) {
    .mobile-header, .categories-mobile, .mobile-nav {
        display: block;
        
    }


    .desktop-header {
        display: block;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
    }
    
    .desktop-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1976d2;
    }
    
    nav ul {
        display: flex;
        list-style: none;
        gap: 25px;
    }
    
    nav a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
    }
    
    nav a.active {
        color: #1976d2;
        font-weight: 600;
    }
    
    .user-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .btn-login {
        background-color: #1976d2;
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 4px;
        font-weight: 500;
        cursor: pointer;
    }
    
    /* Hero Desktop */
    
    
    .hero h1 {
        font-size: 2.5rem;
        max-width: 600px;
    }
    
    .search-box {
        max-width: 600px;
    }
    
    /* Categories Desktop */
    .categories-desktop {
        display: block;
        padding: 60px 0;
        background-color: white;
    }
    
    .category-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-top: 30px;
    }
    
    .category-card {
        background-color: #f5f5f5;
        border-radius: 12px;
        padding: 30px;
        text-align: center;
        transition: transform 0.3s ease;
    }
    
    .category-card:hover {
        transform: translateY(-5px);
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
        background-color: #e3f2fd;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        color: #1976d2;
        font-size: 2rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .category-card p {
        color: #666;
        margin-bottom: 20px;
    }
    
    .btn-more {
        display: inline-flex;
        align-items: center;
        color: #1976d2;
        font-weight: 500;
    }
    
    .btn-more i {
        margin-left: 5px;
        transition: transform 0.3s ease;
    }
    
    .btn-more:hover i {
        transform: translateX(3px);
    }
    
    /* Nearby Desktop */
    .nearby {
        padding: 60px 0;
    }
    
    .attraction-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .attraction-card {
        display: flex;
        height: 200px;
    }
    
    .card-image {
        width: 40%;
        height: auto;
    }
    
    .card-content {
        width: 60%;
        padding: 25px;
    }
}