/* Add this to your places1.css file to enhance the page styling */
/* Enhanced Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9fafb;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 153, 51, 0.03) 0%, rgba(255, 255, 255, 0.03) 90%), 
                      radial-gradient(circle at 90% 80%, rgba(19, 136, 8, 0.03) 0%, rgba(19, 136, 8, 0.03) 90%);
    background-attachment: fixed;
    background-size: cover;
    color: #434A54;
}

/* Enhanced Page Header */
.container h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FF9933, #138808);
    border-radius: 3px;
}

.container p.text-muted {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Enhanced Search Bar - Fix visibility issues */
.search-bar {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.6);
    gap: 15px; /* Add gap between select and button */
}

/* Improved select styling */
.search-bar select {
    background-color: white;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 1rem;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    min-width: 280px;
    flex-grow: 1;
    max-width: 500px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23434A54' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    color: #434A54;
}

/* Fix for truncated select option text */
.search-bar select {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 30px; /* Increase right padding to prevent text overlap with dropdown arrow */
}

/* Ensure selected option text is fully visible */
.search-bar select option {
    white-space: normal; /* Allow wrapping in dropdown */
    padding: 10px;
}

/* Fix for select box on different screen sizes */
@media (min-width: 768px) {
    .search-bar select {
        min-width: 320px; /* Increase width on larger screens */
    }
}

@media (min-width: 992px) {
    .search-bar select {
        min-width: 400px; /* Further increase width on even larger screens */
    }
}

/* Make dropdown arrow smaller and positioned better */
.search-bar select {
    background-position: right 10px center;
    background-size: 20px;
}

.search-bar select:focus {
    border-color: #FF9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
    outline: none;
}

/* Enhance select options */
.search-bar select option {
    font-size: 1rem;
    padding: 10px;
}

/* Enhanced button styling */
.search-bar .btn-primary {
    background: linear-gradient(135deg, #FF9933 0%, #FF7E33 100%);
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Add highlight effect when scrolling to a section */
.section-highlight {
    animation: pulse-highlight 1.5s ease;
}

@keyframes pulse-highlight {
    0% { transform: scale(1); }
    25% { transform: scale(1.02); }
    50% { transform: scale(1); }
    75% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Responsive adjustments for search bar */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        padding: 20px;
        margin: 25px 0;
    }
    
    .search-bar select {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .search-bar .btn-primary {
        width: 100%;
    }
}

/* Enhanced Section Titles */
.section-title {
    position: relative;
    margin: 60px 0 30px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    padding-bottom: 15px;
    animation: fadeIn 1s ease;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: #FF9933;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FF9933, #138808);
    border-radius: 3px;
}

/* Enhanced Place Cards */
.place-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 15px;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.place-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.place-card:hover img {
    transform: scale(1.08);
}

.place-card h3 {
    margin: 18px 0 12px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #FF9933, #434A54, #138808);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 15px;
    position: relative;
}

.place-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #FF9933, #138808);
}

.place-card p {
    padding: 0 20px 15px;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.place-card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 2px 4px rgba(255, 153, 51, 0.2), 
        0 4px 8px rgba(255, 255, 255, 0.2), 
        0 8px 16px rgba(19, 136, 8, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Add a subtle border to place cards */
.place-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF9933, transparent, #138808);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.place-card:hover::before {
    opacity: 1;
}

/* Enhanced Carousel Container */
#carousel-unesco, #carousel-ancient, #carousel-museums, #carousel-moneuments {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    overflow: visible;
    margin-top: 20px;
    padding: 10px 0 30px;
}

/* Improved Navigation Buttons */
.row.align-items-center {
    position: relative;
    padding: 0 15px;
}

.row.align-items-center .btn-primary {
    background: linear-gradient(135deg, #FF9933 0%, #FF7E33 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.row.align-items-center .btn-primary:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 153, 51, 0.4);
}

#prev-btn-unesco, #prev-btn-ancient, #prev-btn-museums, #prev-btn-monu {
    left: 5px;
}

#next-btn-unesco, #next-btn-ancient, #next-btn-museums, #next-btn-monu {
    right: 5px;
}

/* Add button content */
#prev-btn-unesco::before, #prev-btn-ancient::before, #prev-btn-museums::before, #prev-btn-monu::before {
    content: '←';
    font-size: 20px;
    font-weight: bold;
}

#next-btn-unesco::before, #next-btn-ancient::before, #next-btn-museums::before, #next-btn-monu::before {
    content: '→';
    font-size: 20px;
    font-weight: bold;
}

/* Category sections */
#unesco, #ancient, #museums, #monuments {
    padding: 20px 0;
    position: relative;
}

/* Better animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Enhanced responsiveness */
@media (max-width: 992px) {
    .place-card {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .container h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    #carousel-unesco, #carousel-ancient, #carousel-museums, #carousel-moneuments {
        flex-direction: column;
        gap: 20px;
    }
    
    .place-card {
        height: auto;
        min-height: 320px;
        margin: 15px 10px;
    }
    
    .row.align-items-center .btn-primary {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        padding: 8px 15px;
        border-radius: 6px;
        margin: 15px auto;
        display: block;
    }
    
    #prev-btn-unesco::before, #prev-btn-ancient::before, #prev-btn-museums::before, #prev-btn-monu::before,
    #next-btn-unesco::before, #next-btn-ancient::before, #next-btn-museums::before, #next-btn-monu::before {
        content: '';
    }
    
    #prev-btn-unesco::after, #prev-btn-ancient::after, #prev-btn-museums::after, #prev-btn-monu::after {
        content: 'Previous';
    }
    
    #next-btn-unesco::after, #next-btn-ancient::after, #next-btn-museums::after, #next-btn-monu::after {
        content: 'Next';
    }
}
