/* Configuracion Base Unica para Destinos */
:root {
    --d-bg-color: #1a1a1a;
    --d-text-color: #f5f5f5;
    --d-accent-color: #c9a46a;
    /* Gold elegante */
    --d-font-heading: 'Cormorant Garamond', serif;
    --d-font-body: 'Montserrat', sans-serif;
    --d-card-gap: 20px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--d-font-body);
    background-color: var(--d-bg-color);
    color: var(--d-text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navbar Flotante Minimalista */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--d-font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--d-accent-color);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--d-accent-color);
}

/* Header */
.header-destinos {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #2a2a2a 0%, #1a1a1a 100%);
}

.header-title {
    font-family: var(--d-font-heading);
    font-size: 6rem;
    font-weight: 400;
    margin: 0;
    line-height: 1;
    color: var(--d-accent-color);
}

.header-subtitle {
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: 300;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Filtros */
.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--d-text-color);
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--d-font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--d-accent-color);
    border-color: var(--d-accent-color);
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Grid Masonry Moderno */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    gap: var(--d-card-gap);
    margin-bottom: 100px;
    grid-auto-flow: dense;
    /* Crucial para masonry effect */
}

/* Modificadores de tamaño de tarjeta */
.item-wide {
    grid-column: span 2;
}

.item-tall {
    grid-row: span 2;
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {

    .item-wide,
    .item-large {
        grid-column: span 1;
    }

    /* En movil queremos stack vertical mayormente, pero grid-row span 2 está bien */
}

.destination-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.destination-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.5s ease;
}

.destination-item:hover .card-inner {
    transform: scale(1.05);
    /* Zoom sutil de imagen */
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Siempre mostrar un poco de info o solo en hover? El usuario quiere elegante.
   Vamos a mostrar titulo siempre abajo, y más detalles en hover.
   Corrigiendo: vamos a hacer que el overlay aparezca en hover para limpieza total */
.destination-item:hover .card-overlay {
    opacity: 1;
}

.card-text {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.destination-item:hover .card-text {
    transform: translateY(0);
}

.card-category {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--d-accent-color);
    margin-bottom: 10px;
    display: block;
}

.card-text h3 {
    font-family: var(--d-font-heading);
    font-size: 2rem;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.card-text p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
    font-weight: 300;
}

.btn-explore {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--d-text-color);
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-explore:hover {
    background: var(--d-text-color);
    color: var(--d-bg-color);
}


/* Footer */
.footer-d {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

.socials {
    display: flex;
    gap: 20px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 3.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Ocultar nav simple en movil para no complicar, o user burger. Dejaremos simple por ahora */
    .destinations-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 350px;
    }

    .item-wide,
    .item-large,
    .item-tall {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Modal Styles - Unique for Destinos Page */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    opacity: 1;
    display: flex;
}

.modal-content {
    background-color: #222;
    /* Dark card background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 2px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s ease forwards;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #fff;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    z-index: 10;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.close-modal:hover {
    background: var(--d-accent-color);
    color: #000;
}

.modal-img-container {
    height: 300px;
    overflow: hidden;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 40px;
    text-align: center;
    color: var(--d-text-color);
}

.modal-body h3 {
    font-family: var(--d-font-heading);
    font-size: 2.5rem;
    color: var(--d-accent-color);
    margin: 0 0 10px 0;
}

.modal-price {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.btn-reserve {
    background: var(--d-accent-color);
    color: #1a1a1a;
    padding: 15px 40px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--d-font-body);
    display: inline-block;
}

.btn-reserve:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}