/* Destination Page Specific Styles */

/* Destination Hero */
.destination-hero {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.destination-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.destination-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.destination-hero .hero-content {
    position: relative;
    z-index: 1000;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 0.7rem;
}

.destination-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.destination-hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.info-item i {
    color: var(--primary-color);
}

/* Destination Overview */
.destination-overview {
    background: var(--white);
}

.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.overview-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.overview-highlights {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.overview-highlights h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.overview-highlights ul {
    list-style: none;
    padding: 0;
}

.overview-highlights li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-light);
}

.overview-highlights i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Estilos para la galería adaptativa */
.gallery-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

/* Una sola foto - Centrada y grande */
.gallery-grid[data-total-photos="1"] {
    grid-template-columns: 1fr;
    justify-items: center;
}

.gallery-grid[data-total-photos="1"] .gallery-item {
    max-width: 800px;
    width: 100%;
}

/* Dos fotos - Dos columnas iguales */
.gallery-grid[data-total-photos="2"] {
    grid-template-columns: 1fr 1fr;
}

/* Tres fotos - Primera foto grande, otras dos más delgadas */
.gallery-grid[data-total-photos="3"] {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
}

.gallery-grid[data-total-photos="3"] .gallery-item:first-child {
    grid-row: span 2;
    height: 100%;
}

.gallery-grid[data-total-photos="3"] .gallery-item:nth-child(2),
.gallery-grid[data-total-photos="3"] .gallery-item:nth-child(3) {
    height: 100%;
}

/* Cuatro fotos - Tres columnas, tercera columna con dos filas */
.gallery-grid[data-total-photos="4"] {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
}

.gallery-grid[data-total-photos="4"] .gallery-item:first-child {
    grid-row: span 2;
    height: 100%;
}

.gallery-grid[data-total-photos="4"] .gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: span 2;
    height: 100%;
}

.gallery-grid[data-total-photos="4"] .gallery-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.gallery-grid[data-total-photos="4"] .gallery-item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

/* Cinco fotos - Tres columnas, segunda y tercera columna con dos filas */
.gallery-grid[data-total-photos="5"] {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
}

.gallery-grid[data-total-photos="5"] .gallery-item:first-child {
    grid-row: span 2;
    height: 100%;
}

.gallery-grid[data-total-photos="5"] .gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.gallery-grid[data-total-photos="5"] .gallery-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.gallery-grid[data-total-photos="5"] .gallery-item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

/* seis o más fotos - Layout de cuadrícula estándar */
.gallery-grid[data-total-photos="6"],
.gallery-grid[data-total-photos="7"],
.gallery-grid[data-total-photos="8"] {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Estilos generales para los items de la galería */
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Ajustes para responsive */
@media (max-width: 768px) {
    .gallery-grid[data-total-photos="3"],
    .gallery-grid[data-total-photos="4"] {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-grid[data-total-photos="3"] .gallery-item:first-child,
    .gallery-grid[data-total-photos="4"] .gallery-item:first-child {
        grid-row: 1;
    }
    
    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery-grid[data-total-photos="2"] {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 200px;
    }
}


/* Itinerary */
.itinerary {
    background: var(--white);
}

.itinerary-timeline {
    position: relative;
    margin-top: 3rem;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(253, 58, 119, 0.3);
}

.timeline-content {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.no-itinerary {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    margin-left: 45px;
}

.timeline-details {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.timeline-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pricing */
.pricing {
    background: var(--light-gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 0 20px 0 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: rotate(15deg);
}

.pricing-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--primary-color);
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.period {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pricing-features .fa-check {
    color: var(--primary-color);
}

.pricing-features .fa-times {
    color: var(--text-light);
}

.pricing-btn {
    width: 100%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(253, 58, 119, 0.3);
}

.pricing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(253, 58, 119, 0.4);
}

/* Booking Form */
.booking-form {
    background: var(--white);
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 2rem;
}

.booking-info h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.booking-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.booking-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.highlight-item h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.highlight-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.booking-form-container {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(253, 58, 119, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.booking-submit-btn {
    width: 100%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1.3rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(253, 58, 119, 0.3);
    margin-top: 1rem;
}

.booking-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(253, 58, 119, 0.4);
}

/* Related Destinations */
.related-destinations {
    background: var(--light-gray);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.related-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.related-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.related-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .destination-hero {
        height: 50vh;
        margin-top: 60px;
    }
    
    .destination-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-info {
        gap: 1rem;
    }
    
    .info-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 250px);
    }
    
    .main-image {
        grid-row: span 1;
    }
    
    .timeline-item {
        padding-left: 4rem;
    }
    
    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .itinerary-timeline::before {
        left: 25px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .booking-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .destination-hero .hero-content {
        padding: 0 1rem;
    }
    
    .overview-highlights,
    .booking-form-container,
    .timeline-content {
        padding: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
}