/* Tourist Places Page Specific Styles */

.page-hero {
    height: 60vh;
    background: linear-gradient(rgba(13, 44, 79, 0.7), rgba(13, 44, 79, 0.7)), 
                url('https://images.unsplash.com/photo-1541432901042-2d8bd64b4a9b?ixlib=rb-4.0.3') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.page-hero .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero .hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Places Section */
.places-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.places-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.place-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.place-item:nth-child(even) {
    grid-template-columns: 1.5fr 1fr;
}

.place-item:nth-child(even) .place-image {
    order: 2;
}

.place-item:nth-child(even) .place-content {
    order: 1;
}

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

.place-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

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

.place-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.place-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.place-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.place-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.place-location i {
    font-size: 1.2rem;
}

.place-content p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: justify;
}

.place-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.place-highlights span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-gray);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
}

.place-highlights i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.add-to-trip-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    align-self: flex-start;
}

.add-to-trip-btn:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.add-to-trip-btn.added {
    background: #28a745;
    cursor: default;
}

.add-to-trip-btn.added:hover {
    background: #28a745;
    transform: none;
}

/* Trip Planning Section */
.trip-planning {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.trip-planning .section-title {
    color: var(--white);
    margin-bottom: 40px;
}

.planning-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.selected-places h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.places-list-small {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    min-height: 150px;
}

.no-places {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-align: center;
    margin: 40px 0;
}

.selected-place-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.selected-place-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.selected-place-name {
    font-weight: 600;
    color: var(--white);
}

.remove-place-btn {
    background: #dc3545;
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-place-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.planning-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-btn, .clear-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.plan-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.plan-btn:hover {
    background: #e6c547;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.clear-btn {
    background: #dc3545;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.clear-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.plan-btn:disabled, .clear-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .place-item {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .place-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .place-item:nth-child(even) .place-image,
    .place-item:nth-child(even) .place-content {
        order: initial;
    }
    
    .place-image {
        height: 300px;
    }
    
    .planning-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-hero .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .page-hero .hero-content p {
        font-size: 1.1rem;
    }
    
    .places-list {
        gap: 40px;
    }
    
    .place-content {
        padding: 30px 20px;
    }
    
    .place-content h3 {
        font-size: 1.6rem;
    }
    
    .place-content p {
        font-size: 1rem;
    }
    
    .place-highlights {
        justify-content: center;
    }
    
    .add-to-trip-btn {
        align-self: stretch;
    }
    
    .planning-actions {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 50vh;
    }
    
    .page-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero .hero-content p {
        font-size: 1rem;
    }
    
    .place-content {
        padding: 20px 15px;
    }
    
    .place-content h3 {
        font-size: 1.4rem;
    }
    
    .place-highlights span {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .planning-actions {
        flex-direction: column;
    }
}