:root {
  --primary-color: #17a2b8;
  --primary-color-rgb: 23, 162, 184; /* RGB values for primary color */
  --secondary-color: #f8f9fa;
  --accent-color: #ff6b6b;
  --accent-color-rgb: 255, 107, 107; /* RGB values for accent color */
  --dark-color: #343a40;
  --light-color: #f8f9fa;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7f9;
  padding-top: 70px; /* Account for the fixed navbar */
}

.container h2 {
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  font-weight: 700;
}

.container h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  padding: 15px 0;
  transition: all 0.3s ease;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  animation: navbarSlideDown 0.5s ease-out forwards;
}

.navbar.scrolled {
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.brand-content {
  display: flex;
  align-items: center;
}

.navbar-brand {
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1.2px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
  color: var(--primary-color);
}

.navbar-brand .accent {
  color: var(--accent-color);
  font-weight: 900;
}

.navbar-logo {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid rgba(var(--accent-color-rgb), 0.6);
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.navbar-logo::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.5), rgba(255,255,255,0) 70%);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: rotate(15deg);
  border-color: var(--accent-color);
}

.navbar-brand:hover .navbar-logo::before {
  top: -30%;
  left: -30%;
  transition-duration: 1s;
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/jakarta-banner.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 150px 0;
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 20px auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.search-box {
  max-width: 600px;
  margin: 0 auto;
}

.card {
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.07);
  height: 100%; /* Make all cards the same height */
  position: relative;
  background: #fff;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0), 0 5px 15px rgba(0, 0, 0, 0);
  transition: box-shadow 0.5s ease;
  z-index: -1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.08);
}

.card:hover::before {
  box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.1),
    0 15px 20px rgba(var(--primary-color-rgb), 0.08);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.5s ease-out;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.card:hover .card-img-top {
  transform: scale(1.08);
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: var(--dark-color);
  line-height: 1.4;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover .card-title {
  color: var(--primary-color);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), #ffffff);
}

#destinations {
  padding-top: 30px;
  padding-bottom: 50px;
}

/* Removed shimmer animation since we're using local images */

.card-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(var(--accent-color-rgb), 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(var(--accent-color-rgb), 0.3);
  z-index: 2;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover .card-category {
  transform: translateY(-3px);
  background-color: rgba(var(--accent-color-rgb), 1);
}

.card-price {
  color: var(--accent-color);
  font-weight: 700;
  background-color: rgba(var(--accent-color-rgb), 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.card:hover .card-price {
  background-color: rgba(var(--accent-color-rgb), 0.2);
}

.card-rating {
  color: #ffc107;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.card-rating i {
  margin-right: 4px;
  font-size: 0.9rem;
}

.card-text {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(var(--primary-color-rgb), 0.4);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 600;
}

.category-filters {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
  gap: 8px;
}

.category-filters::-webkit-scrollbar {
  height: 4px;
}

.category-filters::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
}

.category-btn {
  margin-right: 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  padding: 20px 25px;
  background: linear-gradient(
    to right,
    rgba(var(--primary-color-rgb), 0.05),
    rgba(var(--accent-color-rgb), 0.05)
  );
}

.modal-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.modal-body {
  padding: 0;
}

.place-details-container {
  position: relative;
}

.place-image-container {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.place-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.place-image:hover {
  transform: scale(1.03);
}

.place-info-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}

.place-details-content {
  padding: 25px;
}

.place-details-section {
  margin-bottom: 20px;
}

.place-attribute {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 10px;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 500;
}

.place-attribute i {
  margin-right: 8px;
  color: var(--primary-color);
}

.place-description {
  line-height: 1.7;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.recommendations-section {
  background-color: rgba(var(--primary-color-rgb), 0.05);
  padding: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.recommendation-title {
  position: relative;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--dark-color);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

.recommendation-title i {
  margin-right: 10px;
  color: var(--accent-color);
}

.recommendation-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: var(--accent-color);
}

#recommendations .card {
  transform: scale(0.98);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

#recommendations .card:hover {
  transform: translateY(-5px) scale(0.98);
}

#recommendations .card-body {
  padding: 1rem;
}

#recommendations .card-img-top {
  height: 130px;
}

#map {
  height: 350px;
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 4px solid white;
}

.map-container {
  position: relative;
  margin-top: 30px;
}

.map-container::before {
  /* content: "Location"; */
  position: absolute;
  top: -12px;
  left: 20px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  flex-direction: column;
}

.loading-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.25rem;
  color: var(--primary-color);
}

.loading-spinner::after {
  content: "Loading data...";
  margin-top: 15px;
  color: #666;
  font-size: 0.9rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

footer {
  background-color: var(--dark-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  color: white;
  padding: 60px 0 40px;
  margin-top: 80px;
  box-shadow: inset 0 6px 12px -6px rgba(0, 0, 0, 0.5);
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
}

.footer-logo-container {
  margin-bottom: 20px;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.footer-title {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  margin: 30px auto;
  width: 80%;
  position: relative;
  overflow: hidden;
}

.footer-divider:after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    var(--accent-color),
    rgba(255, 255, 255, 0)
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.social-links {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(var(--accent-color-rgb), 0.3);
  animation: socialIconPulse 1.5s infinite;
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a:hover i {
  transform: scale(1.2);
}

.social-links a i {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.source-code-link {
  margin-top: 10px;
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.source-code-link a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.source-code-link a:hover {
  background: rgba(var(--accent-color-rgb), 0.2);
  color: white;
  transform: translateY(-2px);
}

.source-code-link i {
  color: var(--accent-color);
}

@keyframes pulse {
  0% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(-3px);
  }
}

@keyframes socialIconPulse {
  0% {
    box-shadow: 0 6px 12px rgba(var(--accent-color-rgb), 0.3);
  }
  50% {
    box-shadow: 0 8px 15px rgba(var(--accent-color-rgb), 0.5);
  }
  100% {
    box-shadow: 0 6px 12px rgba(var(--accent-color-rgb), 0.3);
  }
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.navbar-nav {
  margin-left: 20px;
}

.nav-item {
  position: relative;
  margin: 0 8px;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 600;
  padding: 10px 15px !important;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-right: 2px solid var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg) scale(0);
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(var(--primary-color-rgb), 0.08);
  transform: translateY(-2px);
  padding-right: 25px !important;
}

.nav-link:hover::after {
  transform: translateY(-50%) rotate(-45deg) scale(1);
  opacity: 1;
}

.nav-link.active {
  color: var(--accent-color);
  background-color: rgba(var(--accent-color-rgb), 0.1);
  font-weight: 700;
}

.nav-icon {
  margin-right: 6px;
  font-size: 0.9rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
  transform: scale(1.2);
}

/* Custom hamburger button */
.custom-toggler {
  border: none;
  padding: 5px;
  border-radius: 8px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.custom-toggler:focus {
  box-shadow: none;
  outline: none;
}

.hamburger-icon {
  width: 30px;
  height: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.custom-toggler:hover {
  background-color: rgba(var(--primary-color-rgb), 0.08);
}

.custom-toggler:hover .hamburger-icon span:nth-child(1) {
  width: 70%;
  background-color: var(--accent-color);
}

.custom-toggler:hover .hamburger-icon span:nth-child(2) {
  width: 85%;
  background-color: var(--accent-color);
}

/* Animation for the hamburger icon when the menu is expanded */
.custom-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 6px);
  width: 100%;
  background-color: var(--accent-color);
}

.custom-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.custom-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  width: 100%;
  background-color: var(--accent-color);
}

/* Mobile navbar styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 10px;
    max-height: 80vh;
    overflow-y: auto;
    transform-origin: top;
    animation: navbarDropdown 0.3s ease forwards;
  }

  .navbar-nav {
    margin-left: 0;
  }
  
  .nav-item {
    margin: 5px 0;
  }

  .nav-link {
    border-left: 3px solid transparent;
    border-radius: 6px;
    padding-left: 15px !important;
    transition: all 0.2s ease;
  }
  
  .nav-link:hover, .nav-link:focus {
    border-left-color: var(--accent-color);
    transform: none;
    background-color: rgba(var(--primary-color-rgb), 0.05);
  }
}

@keyframes navbarDropdown {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scroll-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar.scrolled .scroll-progress-container {
  opacity: 1;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  position: absolute;
  transition: width 0.1s ease;
}

@keyframes navbarSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}