/**
 * Destination Hero Section - Original Working Version with Smaller Font
 */

:root {
  --tertiary-color: #C9A053; /* Gold accent color */
  --gold-accent: #C9A053;
  --gallery-gap: 20px;
}

/* Main hero section container */
.destinations-hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    background-color: #1e252b; /* Dark Blue */
    z-index: 1;
}

/* Background */
.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e252b;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Content wrapper */
.hero-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 5rem;
    flex-direction: row-reverse; /* Swap title and gallery positions */
}

/* Left side (now on right) - Title */
.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title-container {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    margin: 0;
    color: #ffffff;
    text-align: center;
}

/* REDUCED FONT SIZE - was clamp(5rem, 8vw, 9rem) */
.title-destinations {
    display: block;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    padding: 0;
    font-size: clamp(3.5rem, 6vw, 6rem); /* Reduced from original */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Title decoration */
.title-decoration {
    position: relative;
    width: 100px;
    height: 4px;
    background-color: var(--gold-accent);
    margin: 2rem auto;
    border-radius: 2px;
}

.title-decoration::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold-accent);
    border-radius: 50%;
    background-color: transparent;
    transform: translateX(-50%);
}

.title-decoration::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold-accent);
    border-radius: 50%;
    background-color: transparent;
    transform: translateX(50%);
}

/* Right side (now on left) - Destinations Gallery */
.hero-right {
    flex: 2.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.destinations-gallery {
    display: flex;
    gap: var(--gallery-gap);
    width: 100%;
    height: 550px;
}

/* Preview card */
.preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(31, 46, 46, 0.9) 0%, rgba(31, 46, 46, 0.6) 50%, rgba(31, 46, 46, 0.3) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.preview-card:hover,
.preview-card:focus-visible {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    outline: 2px solid var(--gold-accent);
    outline-offset: 2px;
}

.preview-card:hover::before {
    background: linear-gradient(0deg, rgba(31, 46, 46, 0.7) 0%, rgba(31, 46, 46, 0.4) 50%, rgba(31, 46, 46, 0.1) 100%);
}

.preview-card.featured {
    flex: 2;
}

.destinations-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gallery-gap);
}

.destinations-column .preview-card {
    flex: 1;
}

/* Card glow effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(201, 160, 83, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.preview-card:hover .card-glow,
.preview-card:focus-visible .card-glow {
    opacity: 0.6;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.destination-name-container {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.preview-card:hover .destination-name-container,
.preview-card:focus-visible .destination-name-container {
    transform: translateY(-5px);
}

.destination-name-container h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.destination-location {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.preview-card:hover .destination-location,
.preview-card:focus-visible .destination-location {
    opacity: 1;
    transform: translateY(0);
}

/* Facts grid */
.hero-facts {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    z-index: 3;
}

.facts-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.fact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fact-icon {
    font-size: 1.8rem;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.fact-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.fact-number {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #ffffff;
}

/* Scroll Prompt */
.scroll-prompt {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    margin-top: 30px;
}

.scroll-prompt:hover,
.scroll-prompt:focus-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
    outline: 2px solid var(--gold-accent);
    outline-offset: 2px;
}

.scroll-prompt span {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.scroll-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold-accent);
    border-radius: 50%;
}

.scroll-icon {
    color: var(--gold-accent);
    font-size: 1.2rem;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .hero-left, .hero-right {
        width: 100%;
    }
    
    .title-destinations {
        font-size: 4rem; /* Adjusted for smaller screens */
    }
    
    .destinations-gallery {
        height: 450px;
    }
    
    .facts-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .title-destinations {
        font-size: 3rem; /* Further reduced for mobile */
    }
    
    .destinations-gallery {
        height: 400px;
    }
    
    .facts-grid {
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .fact-item {
        width: 40%;
    }
}

@media (max-width: 576px) {
    .title-destinations {
        font-size: 2.5rem; /* Smallest size for very small screens */
    }
    
    .destinations-gallery {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }
    
    .preview-card.featured {
        height: 250px;
    }
    
    .destinations-column {
        display: none;
    }
    
    .facts-grid {
        gap: 1rem;
    }
    
    .fact-item {
        width: 45%;
    }
    
    .fact-icon {
        font-size: 1.6rem;
    }
    
    .fact-label {
        font-size: 0.75rem;
    }
    
    .fact-number {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-icon {
        animation: none;
    }
    
    .preview-card,
    .card-glow,
    .destination-name-container,
    .destination-location,
    .scroll-prompt {
        transition: none;
        transform: none;
    }
    
    .preview-card:hover .destination-name-container,
    .preview-card:focus-visible .destination-name-container,
    .preview-card:hover .destination-location,
    .preview-card:focus-visible .destination-location,
    .scroll-prompt:hover,
    .scroll-prompt:focus-visible {
        transform: none;
    }
}