/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #fff;
  color: #111;
  line-height: 1.6;
}

/* Header */
header {
  background: #111;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 40px;
  height: 40px;
}

nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #e53935;
}

/* Hero Banner */
.hero-banner {
  padding: 40px 0;
  background-color: #fff;
}

/* Slider */
.slider-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.slider {
  width: 60vw;
  height: 70vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  display: none;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.slide img:hover {
  transform: scale(1.05);
}

/* Dot Indicators Below Slider */
.dots-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #e53935;
}

/* Trending Section */
.trending {
  padding: 2rem;
  text-align: center;
}

.trending-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.place-card {
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.place-card:hover {
  transform: scale(1.03);
}

.place-card img {
  width: 100%;
  height: auto;
  display: block;
}

.place-card h3 {
  background: #e53935;
  color: #fff;
  padding: 0.5rem;
}

/* Categories */
.categories {
  padding: 2rem;
  text-align: center;
}

.category-buttons button {
  background: #e53935;
  color: #fff;
  border: none;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.category-buttons button:hover {
  background: #c62828;
}

/* Videos */
.videos {
  padding: 2rem;
  text-align: center;
}

.video-thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.video-thumbnails a {
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-thumbnails a:hover {
  transform: scale(1.03);
}

.video-thumbnails img {
  width: 100%;
  height: auto;
  display: block;
}

/* About */
.about {
  padding: 2rem;
  text-align: center;
}

.about p {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 1rem;
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

footer a {
  color: #e53935;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .slider {
    width: 90vw;
    height: 50vh;
  }

  .trending-grid,
  .video-thumbnails {
    flex-direction: column;
    align-items: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
  }

  nav a {
    margin: 0.5rem;
  }
}

/* Stats Section */

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-box img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.8rem;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2));
}

.stat-box h3 {
  font-size: 1.8rem;
  color: #111;
}

.stat-box p {
  font-size: 1rem;
  color: #444;
}


/* icons design */
.stats {
  padding: 50px 20px;
  background: #f9f9f9;
  text-align: center;
}

.stats h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.stat-box {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-box .icon {
  margin-bottom: 15px;
}

.stat-box .counter {
  font-size: 2rem;
  color: #333;
  margin: 0;
}

.stat-box p {
  color: #777;
  font-size: 1rem;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.channel-overview {
  padding: 40px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 160px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card .icon {
  margin-bottom: 10px;
}

.stat-card .count {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease-in-out;
}

.stat-card p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #666;
}


/* card align */

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Adjust width of stat-card to fit more per row on desktop */
.stat-card {
  flex: 1 1 180px; /* Allows the card to shrink/grow as needed */
  max-width: 200px;
}

/* end card align */


/* --- 2. Main Layout Containers (from your design) --- */
/* Wrapper to center everything on the page */
.map-wrapper {
  
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  padding: 20px;
  box-sizing: border-box;
  
}

/* Container with the background and the SVG map */
.map-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 900px; /* Max size for the map area */
  max-height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background image behind the SVG */
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
  z-index: 1;
 
}

/* SVG map container */
.svg-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2; /* Ensures the SVG is on top of the background */
}

/* --- 3. SVG and Map Element Styling --- */

/* This targets your main SVG element */
.svg-container svg {
  width: 100%;
  height: 100%;
}

/* Style for the districts (using the .district class we added) */
.district {
  fill: rgba(200, 220, 200, 0.6); /* Semi-transparent green/grey */
  stroke: #ffffff;
  stroke-width: 0.75px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Hover effect for districts */
.district:hover {
  fill: rgba(255, 255, 255, 0.8); /* Bright white on hover */
}


/* --- 4. Interactive Pin Styling --- */
.pin image {
  transition: transform 0.2s ease, filter 0.2s ease;
  transform-origin: center;
  cursor: pointer;
}

.pin:hover image {
  transform: scale(1.03);
  filter: drop-shadow(0 0 4px rgba(255, 51, 102, 0.6));
}
/* --- 5. Tooltip Styling (Cleaned up) --- */
#tooltip {
  position: absolute;
  display: none; /* We use JS to switch between none and block */
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none; /* Lets mouse events pass through to the map */
  white-space: nowrap;
  z-index: 1000; /* Ensures it's on top of everything */
}
.map-wrapper {
  position: relative; /* This is important! */
}

/* Style for the districts (using the .district class we added) */
.district {
  fill: rgb(167, 144, 144); /* Solid red color for the map */
  stroke: #fffbfb;
  stroke-width: 0.75px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Hover effect for districts */
.district:hover {
  fill: #fff !important; /* White on hover */
  stroke: #222;
  stroke-width: 1.5px;
  transition: fill 0.2s;
}



/* Carosual section */
/* --- Styles for Most Popular Destinations 3D Carousel Section --- */

/* Hero Section Styles for integration */

.hero-section {
    width: 100%; /* Changed from 100vw to 100% to fit parent */
    min-height: 700px; /* Use min-height instead of 100vh for scrollable pages */
    padding: 80px 0; /* Add padding for spacing above and below */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically within its own height */
    align-items: center;
    position: relative;
    overflow: hidden; /* Ensure content and background are clipped within this section */
    background: linear-gradient(120deg, #f5f7fa 0%, #c3cfe2 100%);
    /* You may adjust this gradient or remove it if your background image covers it */
}

/* Hero Background Styles: Ensure the image path is correct relative to your main site's CSS */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6);
    z-index: -1;
}

/* Section Title Styles */
.section-title {
    color: #000000;
    font-size: 2.8em;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Carousel Container Styles */
.carousel-container {
    width: 90%;
    max-width: 1200px;
    height: 400px; /* Height of the visible carousel area */
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Hide items outside the main view */
}

/* Carousel Inner Styles */
.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}

/* Carousel Item Styles */
.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 250px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(60, 60, 60, 0.18);
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.6s ease,
                box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0; /* Initially hidden until positioned by JS */
    pointer-events: none;
}

/* Specific transforms for different positions (set by JS data-position) */
.carousel-item[data-position="0"] { /* Active item */
    transform: translate(-50%, -50%) scale(1.1) rotateY(0deg) translateZ(100px);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    pointer-events: auto;
}

.carousel-item[data-position="-1"] { /* Left item (just before active) */
    transform: translate(-50%, -50%) translateX(-250px) rotateY(20deg) scale(0.9) translateZ(-50px);
    opacity: 0.8;
    z-index: 9;
    pointer-events: auto;
}

.carousel-item[data-position="1"] { /* Right item (just after active) */
    transform: translate(-50%, -50%) translateX(250px) rotateY(-20deg) scale(0.9) translateZ(-50px);
    opacity: 0.8;
    z-index: 9;
    pointer-events: auto;
}

.carousel-item[data-position="-2"] { /* Further left */
    transform: translate(-50%, -50%) translateX(-450px) rotateY(35deg) scale(0.7) translateZ(-150px);
    opacity: 0.5;
    z-index: 8;
    pointer-events: auto;
}

.carousel-item[data-position="2"] { /* Further right */
    transform: translate(-50%, -50%) translateX(450px) rotateY(-35deg) scale(0.7) translateZ(-150px);
    opacity: 0.5;
    z-index: 8;
    pointer-events: auto;
}

.carousel-item[data-position="-3"] { /* Even further left (the 3rd visible item) */
    transform: translate(-50%, -50%) translateX(-600px) rotateY(45deg) scale(0.5) translateZ(-200px);
    opacity: 0.2;
    z-index: 7;
    pointer-events: auto;
}

.carousel-item[data-position="3"] { /* Even further right (the 3rd visible item) */
    transform: translate(-50%, -50%) translateX(600px) rotateY(-45deg) scale(0.5) translateZ(-200px);
    opacity: 0.2;
    z-index: 7;
    pointer-events: auto;
}

/* Hide items beyond the 3rd position on each side */
.carousel-item[data-position="-4"],
.carousel-item[data-position="4"] {
    transform: translate(-50%, -50%) scale(0.1) translateZ(-500px);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Styles for the image inside each carousel item */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Styles for the text overlay at the bottom of the card */
.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 20px 15px 15px;
    box-sizing: border-box;
    z-index: 2;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    text-align: left;
}

.place-name {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}

.district-name {
    font-size: 0.9em;
    font-weight: 400;
    opacity: 0.8;
}

/* Navigation Arrows Styles */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 15px 20px;
    font-size: 2em;
    color: #333;
    cursor: pointer;
    z-index: 100;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

.nav-arrow.left {
    left: 20px;
}

.nav-arrow.right {
    right: 20px;
}

/* Responsive Adjustments (Media Queries) */
@media (max-width: 1024px) {
    .carousel-item[data-position="-1"] {
        transform: translate(-50%, -50%) translateX(-180px) rotateY(20deg) scale(0.85) translateZ(-50px);
    }
    .carousel-item[data-position="1"] {
        transform: translate(-50%, -50%) translateX(180px) rotateY(-20deg) scale(0.85) translateZ(-50px);
    }
    .carousel-item[data-position="-2"] {
        transform: translate(-50%, -50%) translateX(-340px) rotateY(35deg) scale(0.65) translateZ(-150px);
    }
    .carousel-item[data-position="2"] {
        transform: translate(-50%, -50%) translateX(340px) rotateY(-35deg) scale(0.65) translateZ(-150px);
    }
    .carousel-item[data-position="-3"] {
        transform: translate(-50%, -50%) translateX(-480px) rotateY(45deg) scale(0.45) translateZ(-200px);
    }
    .carousel-item[data-position="3"] {
        transform: translate(-50%, -50%) translateX(480px) rotateY(-45deg) scale(0.45) translateZ(-200px);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .carousel-container {
        width: 100%;
        height: 350px;
        padding: 0;
    }

    .carousel-item {
        width: 250px;
        height: 200px;
    }

    .carousel-item[data-position="0"] {
        transform: translate(-50%, -50%) scale(1.05) rotateY(0deg) translateZ(80px);
    }
    .carousel-item[data-position="-1"] {
        transform: translate(-50%, -50%) translateX(-160px) rotateY(25deg) scale(0.8) translateZ(-40px);
    }
    .carousel-item[data-position="1"] {
        transform: translate(-50%, -50%) translateX(160px) rotateY(-25deg) scale(0.8) translateZ(-40px);
    }
    /* Hide the 3rd item on mobile for cleaner view, keep 2 on each side */
    .carousel-item[data-position="-2"],
    .carousel-item[data-position="2"],
    .carousel-item[data-position="-3"],
    .carousel-item[data-position="3"] {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.1) translateZ(-500px);
    }

    .nav-arrow {
        padding: 10px 15px;
        font-size: 1.5em;
    }
    .place-name {
        font-size: 1.2em;
    }
    .district-name {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5em;
        margin-bottom: 30px;
    }
    .carousel-item {
        width: 200px;
        height: 180px;
    }
    .nav-arrow {
        display: none;
    }
}
/* Carosual section */