/* Cities Section Styling */

#main-place{
    background-color: olive;
}
#cities {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f9f9f9;
  }
  
  #cities h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
  }
  
  #cities h2::after {
    content: "";
    width: 350px;
    height: 4px;
    background: orange;
    display: block;
    margin: 0.5rem auto 1.5rem;
    border-radius: 50%;
    transition: all 0.4s ease-in-out;
  }
  
  #cities p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
  }

  #cities h1{
    font-size: 30px;
    height: 20px;
    display: flex;
    padding-left: 30px;
    font-style: italic;
    text-decoration: underline;
    color: orange;
  }
  
  .city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .top-visit H1{ 
    font-size: 1px;
  }
  
  .city-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s ease-in-out;
  }
  
  .city-card img {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-around;
    
  }
  
 
  
  .city-card:hover {
    transform: scale(3);
    box-shadow: 0 6px 12px rgba(37, 37, 35, 0.466);
  }
  
  .animate[data-animation="fade-in"] {
    transform: scale(0.9999999);
    opacity: 1;
  }
  
  @media (max-width: 768px) {
    #cities h2 {
      font-size: 2rem;
    }
  
    .city-card h3 {
      font-size: 1.2rem;
    }
  }
  

/* Styling for the text-background */
.city-card {
    position: relative; /* Allows positioning of child elements */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.5s ease-in;
}

.city-card img {
    width: 100%; /* Ensures the image width matches the container */
    height: 100%; /* Ensures the image height matches the container */
    object-fit: cover; /* Scales the image to cover the entire container */
    display: block; /* Removes whitespace below the image */
}

.city-card .text-background {
    position: absolute;
    bottom: 0; /* Align at the bottom of the card */
    left: 0; /* Start from the very left */
    width: 100%; /* Span the entire width of the card */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    text-align: center;
    height: 40px; /* Adjust height as needed */
    font-size: 11px;
    box-shadow: 0px -1px 4px rgba(0, 0, 0, 0.1); /* Optional shadow */
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden;    /* Hides overflowing text */
    text-overflow: ellipsis; /* Adds "..." for overflow */
    margin: 0;
    
 
}

.WELCOME {
    height: 60PX; /* Adds bottom padding */
    text-align: center; /* Centers the text horizontally */
    font-size: 1rem;
    color: orange; /* Optional: Adjust text size */
  }
  .WELCOME H1{
    color: rgb(200, 135, 22);
    font-size: 30px;

  }
  

.city-card:hover {
    transform: scale(1.03); /* Subtle hover effect */
    box-shadow: 1 6px 12px rgba(50, 50, 49, 0.785);
}

.animate[data-animation="fade-in"] {
    transform: scale(1);
    opacity: 1;
}


.footer-image {
    position: fixed; /* Keeps the image fixed in position */
    top: 0;
    left: 0;
    width: 100%; /* Ensures the image spans the full width */
    height: 100vh; /* Ensures it covers the full viewport height */
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hides any excess image overflow */
    z-index: -1; /* Places it behind all other content */
}

/* Image styling */
.footer-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Maintains original proportions */
}