/* css/style.css - Стилі для сайту "Бюро театралізованих екскурсій" */

/* Загальні налаштування */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* Хедер */
header {
    background-color: #2ecc71;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h2 {
    margin: 0;
    font-size: 24px;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #1abc9c;
}

/* Секція туру (замість геро-сеції, яка була видалена) */
.tours {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tours h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2ecc71;
}

.tours h3 {
    font-size: 1.8rem;
    margin: 20px 0 10px;
    color: #333;
}

/* Картки екскурсій */
.tour-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
    padding: 15px;
}

.tour-card:hover {
    transform: translateY(-8px);
}

.tour-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.tour-card h4 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #2ecc71;
}

.tour-card p {
    margin: 5px 0;
    color: #555;
}

.tour-card button {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 15px 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
}

.tour-card button:hover {
    background-color: #27ae60;
}

/* Секція фотографій */
.photos {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.photos h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2ecc71;
}

.photos img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* Карусель (Swiper) */
.swiper {
    max-width: 1200px;
    margin: 0 auto;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-button-prev,
.swiper-button-next {
    color: #007bff;
}

.swiper-pagination-bullet-active {
    background: #007bff;
}

/* Футер */
footer {
    background-color: #2ecc71;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: 40px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Форми (логін, реєстрація, тощо) */
.login-main,
.register-main {
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.form-group small {
    font-size: 12px;
    color: #666;
}

button {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

button:hover {
    background-color: #27ae60;
}

.login-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.error-message {
    color: #c0392b;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    background-color: #f7e7e7;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success {
    color: #27ae60;
    text-align: center;
    padding: 10px;
    background-color: #e8f7e8;
    border-radius: 5px;
}

.button {
    display: inline-block;
    background-color: #2ecc71;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 10px;
}

.button:hover {
    background-color: #27ae60;
}

/* Адаптивність */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    header h2 {
        font-size: 20px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    nav a {
        font-size: 14px;
    }

    .tours h2,
    .photos h2 {
        font-size: 2rem;
    }

    .tours h3 {
        font-size: 1.5rem;
    }

    .tour-card img {
        height: 150px;
    }

    .tour-card h4 {
        font-size: 1rem;
    }

    .tour-card p {
        font-size: 13px;
    }

    .photos img {
        height: 300px;
    }

    .register-container {
        margin: 20px;
        padding: 15px;
    }

    .form-group input {
        font-size: 13px;
    }

    button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .tours h2,
    .photos h2 {
        font-size: 1.5rem;
    }

    .tours h3 {
        font-size: 1.2rem;
    }

    .tour-card img {
        height: 120px;
    }

    .tour-card h4 {
        font-size: 0.9rem;
    }

    .tour-card p {
        font-size: 12px;
    }

    .photos img {
        height: 200px;
    }

    .register-container {
        margin: 10px;
        padding: 10px;
    }

    .login-title {
        font-size: 20px;
    }

    button {
        font-size: 12px;
        padding: 8px 15px;
    }
}
.tour-card img,
.photos-carousel img {
    object-fit: contain !important;
    height: auto !important;
    max-width: 300px !important;
    max-height: 180px !important;
}
.photos-carousel img {
    max-height: 400px !important;
}