body {
  background: #fafafa;
  color: #333333;
  margin-top: 5rem;
}

h1, h2, h3, h4, h5, h6 {
  color: #444444;
}

ul {
  margin: 0;
}

.bg-steel {
  background-color: #5f788a;
}

.site-header .navbar-nav .nav-link {
  color: #cbd5db;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
}

/* Horizontal carousel container */
.destination-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;       /* prevent vertical stacking */
    overflow-x: scroll;
    gap: 16px;
    padding: 16px;
    scroll-behavior: smooth;
    max-width: 100%;
    /* CRITICAL */
    min-width: 0;
    width: 100vw;       /* force real width */
    margin-left: calc(-50vw + 50%);
}

/* Hide scrollbar for cleaner look */
.destination-carousel::-webkit-scrollbar {
    display: none;
}
.destination-carousel {
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
    cursor: grab;
}

.destination-carousel.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Carousel cards */
.destination-card {
    flex: 0 0 300px;           /* fixed width, no shrinking */
    /* width: 300px; */
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Images inside cards */
.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.destination-card:hover img {
    transform: scale(1.05);
}

/* Info overlay */
.destination-card .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.destination-card .info h4 {
    color: #ffffff;
    margin: 0;            /* optional: cleaner look */
}

.destination-card:hover .info {
    opacity: 1;
}

.destination-carousel {
    user-select: none;          /* prevent text selection */
    -webkit-user-select: none;
    -ms-user-select: none;

    -webkit-overflow-scrolling: touch;
}

.destination-carousel img {
    pointer-events: none;       /* prevent image dragging */
}

/* Modal Membership overlay and Authentification overlay CSS */

#membership-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#membership-overlay.hidden {
    display: none; 
}

#membership-overlay .membership-modal {
    background-color: #ffffff;
    color: #000000;
    padding: 2rem;
    border-radius: 12px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background: #000;
    color: #fff;
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-radius: 6px;
}

#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#auth-overlay.hidden {
    display: none;
}

#auth-overlay .auth-modal {
    background-color: #ffffff;
    color: #000000;
    padding: 2rem;
    border-radius: 12px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.modal-actions {
    display: flex;  
    gap: 1rem;                /* space between items */
    margin-top: 1.5rem;
}

/* Offer detail CSS */

.offer-detail {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* LEFT COLUMN */
.offer-info {
    flex: 1;
}

.offer-title {
    margin-bottom: 0.5rem;
}

.offer-dates {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.offer-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-meta li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}


/* RIGHT COLUMN */
.offer-media {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-image {
    width: 380px;          /* enlargement of picture from original 300px */
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
}

/* ACTION BUTTONS */

/* Placement */

.offer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.offer-actions a {
    text-align: center;
}

/* Style */

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;

    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;

    background-color: #000;
    color: #fff;

    border: none;
    transition: 
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.btn-action:hover {
    background-color: #222;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-action:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-action:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Optional secondary style */
.btn-secondary {
    background-color: #f4f4f4;
    color: #000;
}

.btn-secondary:hover {
    background-color: #e6e6e6;
    color: #000;
}

/* Search bar CSS */

.search-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex-wrap: wrap; /* responsive */
}

.search-field {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.search-field label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #555;
}

.search-field input,
.search-field select {
    height: 42px;
    border-radius: 8px;
}

.date-field {
    min-width: 220px;
}

.price-field input {
    display: flex;
    flex-direction: column;
    width: 140px;
}

.offer-result-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
}

.search-results {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* One result row */
.search-result-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    cursor: pointer;
}

/* Keep destination-card size EXACTLY like carousel */
.search-result-row .destination-card {
    flex: 0 0 300px;
    height: 200px;
}

.search-result-row:hover {
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
}

/* Text column */
.offer-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.offer-row h4 {
    margin: 0;
}



