html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Hero Styles */
.hero-container {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-container:hover .hero-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    display: flex;
    justify-content: center;
    align-items: center;
}

    .hero-overlay h1 {
        color: #fff;
        font-size: 4.5rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 5px;
        text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

/* Custom Layout Utilities */
.border-end-md {
    border-right: 1px solid #dee2e6;
}

@media (max-width: 767px) {
    .border-end-md {
        border-right: none;
    }
}

.lead-text {
    line-height: 1.9;
    color: #444;
    font-size: 1.1rem;
}

.mt-n5 {
    margin-top: -3rem !important;
}

/* 1. Sightseeing Horizontal Scroller */
.modern-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 30px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .modern-scroll-container::-webkit-scrollbar {
        display: none;
    }

.sightseeing-card-item {
    flex: 0 0 280px;
    transition: transform 0.3s ease;
}

    .sightseeing-card-item:hover {
        transform: translateY(-10px);
    }

.card-img-wrapper {
    position: relative;
    height: 180px;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
}

.description-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

/* 2. Nearby Circle Navigation */
.nearby-circle-link {
    text-decoration: none;
    text-align: center;
    flex: 0 0 160px;
    color: inherit;
    transition: 0.3s;
}

.circle-img-box {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
}

    .circle-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.dist-tag {
    position: absolute;
    bottom: 5px;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 0;
}

.nearby-circle-link:hover {
    transform: scale(1.05);
    color: #006ce4;
}

/* 3. Premium Package Cards */
.package-premium-card {
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px !important;
}

    .package-premium-card:hover {
        transform: translateY(-12px);
    }

.price-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #fff;
    padding: 6px 15px;
    border-radius: 10px;
    font-weight: 800;
    color: #000;
    font-size: 1.2rem;
}

.bg-soft-primary {
    background-color: #e7f1ff;
}

.x-small {
    font-size: 0.75rem;
}

/* General */
.btn-primary {
    background-color: #006ce4;
    border: none;
}

    .btn-primary:hover {
        background-color: #0053b3;
    }

/* Nearby Premium Wide Cards */
.nearby-premium-link {
    text-decoration: none;
    color: white;
    flex: 0 0 350px; /* Much wider than the circles */
    display: block;
}

.nearby-wide-card {
    position: relative;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.nearby-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.nearby-card-overlay {
    position: absolute;
    inset: 0;
    /* This creates the dark fade from bottom to top */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.nearby-content {
    width: 100%;
}

.nearby-dist {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.nearby-name {
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nearby-action {
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
    color: #ffc107; /* Gold color for a premium feel */
}

/* Hover Effects */
.nearby-premium-link:hover .nearby-wide-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.nearby-premium-link:hover .nearby-bg-img {
    transform: scale(1.1);
}

.nearby-premium-link:hover .nearby-action {
    opacity: 1;
    transform: translateX(0);
}

/* Container that holds the items */
.modern-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hides scrollbar on Firefox */
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .modern-scroll-container::-webkit-scrollbar {
        display: none;
    }

/* Ensure cards don't shrink and stay at a consistent width */
.sightseeing-card-item {
    flex: 0 0 300px; /* Adjust 300px to your preferred card width */
    max-width: 300px;
}

.nearby-wide-card {
    flex: 0 0 350px; /* Nearby cards are usually wider */
    width: 350px;
}