* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 40px;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #222;
}

.hero {
    min-height: 500px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 40px;
    text-align: center;

    background-color: #f0e7dc;
}

.home-hero {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url("../images/hero-barcelona.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}
/*
.home-hero > *,
.attractions-hero > *,
.food-hero > *,
.accommodation-hero >*,
.transport-hero > * {
    transform: translateY(-100px);
}
*/

.hero h1 {
    font-size: 52px;
    margin-bottom: 15px;
}

.hero p {
    max-width: 600px;
    font-size: 20px;
    line-height: 1.6;
}

.home-hero,
.attractions-hero,
.food-hero,
.accommodation-hero,
.transport-hero {
    justify-content: flex-start;
    padding-top: 60px;
}

.home-hero h1,
.attractions-hero h1,
.food-hero h1,
.accommodation-hero h1,
.transport-hero h1 {
    margin-top: 0;
}

.hero-button {
    margin-top: 20px;
    padding: 12px 24px;

    background-color: #222;
    color: white;

    text-decoration: none;
    border-radius: 5px;
}

.highlights {
    padding: 70px 40px;
    text-align: center;
}

.highlights h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-intro {
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.highlight-grid {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.highlight-card.photo-card {
    padding: 0;
    overflow: hidden;
}

.photo-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.photo-card h3 {
    margin: 20px 24px 10px;
}

.photo-card p {
    margin: 0 24px 24px;
    line-height: 1.6;
}

.highlight-card {
    padding: 30px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    text-align: left;
}

.highlight-card h3 {
    margin-top: 0;
}



/*
.featured {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;

    display: flex;
    gap: 50px;
    align-items: center;

    background-color: #f0e7dc;
    border-radius: 10px;
}

.featured-text,
.featured-info {
    flex: 1;
}

.featured-text h2 {
    font-size: 36px;
    margin-top: 0;
}

.featured-text p {
    line-height: 1.6;
}

.featured-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;

    background-color: #222;
    color: white;

    text-decoration: none;
    border-radius: 5px;
}

.featured-info {
    padding: 30px;
    background-color: white;
    border-radius: 8px;
}

.featured-info li {
    margin-bottom: 12px;
}

*/



.featured-tours {
    padding: 70px;
    text-align:center;
}

.featured-tours h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.tour-slideshow {
    position: relative;

    max-width: 1100px;
    height: 450px;

    margin: 0 auto;

    overflow: hidden;
    border-radius: 10px;
}

.tour-slide {
    position: absolute;

    width: 100%;
    height: 100%;
    top: 0%;
    left: 0%;

    display: flex;
    align-items: center;

    padding: 60px;

    opacity: 0;
    visibility: hidden;

    animation: tourFade 15s infinite;
}

.slide-one {
    background-image: url(../images/tour-sagrada.jpg);
    background-size: cover;
    background-position: center;
    animation-delay: 0s;
}

.slide-two {
    background-image: url(../images/tour-park-guell.jpg);
    background-size: cover;
    background-position: center;
    animation-delay: 5s;
}

.slide-three {
    background-image: url(../images/tour-gothic-quarter.jpg);
    background-size: cover;
    background-position: center;
    animation-delay: 10s;
}

.tour-content {
    max-width: 500px;
    text-align: left;

    padding: 30px;

    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.tour-content h3 {
    margin-top: 0;
    font-size: 32px;
}

.tour-content p {
    line-height: 1.6;
}

.tour-button {
    display: inline-block;

    margin-top: 15px;
    padding: 12px 20px;

    background-color: #222;
    color: white;

    text-decoration: none;
    border-radius: 5px;
}

/*
@keyframes tourFade {

    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    28% {
        opacity: 1;
    }

    33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}
    */

@keyframes tourFade {

    0%, 30% {
        opacity: 1;
        visibility: visible;
    }

    33.33%, 100% {
        opacity: 0;
        visibility: hidden
    }
}

    

.attractions-hero {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url(../images/hero-attractions.jpg);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}

.food-hero {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url(../images/hero-food.jpg);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}

.accommodation-hero {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url(../images/hero-accommodation.jpg);

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

        color: white;
}

.transport-hero {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url(../images/hero-transport.jpg);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}

.contact-hero {
    min-height: 300px;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url(../images/hero-contact.jpg);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}

.contact-hero h1 {
    font-size: 42px;
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 40px;
}


/* CONTACT PAGE - TWO COLUMN LAYOUT */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}


/* LEFT COLUMN */

.contact-info {
    padding-top: 20px;
}

.contact-info h2 {
    font-size: 32px;
    margin-top: 0;
}

.contact-info h3 {
    font-size: 19px;
    margin-top: 30px;
}

.contact-info p {
    color: #555;
    line-height: 1.7;
}


/* RIGHT COLUMN */

.contact-panel {
    background-color: white;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.contact-panel h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 10px;
}

.form-intro {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-form {
    display: block;
}


/* FORM GROUPS */

.contact-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 25px;
    min-width:0;
}

.contact-form legend {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 0;
}


/* FORM ROWS AND FIELDS */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    min-width: 0;
}

.form-field label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 14px;
    font: inherit;
    background-color: white;
    border: 1px solid #bfc8cc;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid #244a57;
    outline-offset: 2px;
    border-color: #244a57;
}

.form-field textarea {
    resize: vertical;
}


/* SUBMIT BUTTON */

.form-buttons {
    margin-top: 10px;
}

.form-buttons button {
    width: 100%;
    padding: 14px 20px;
    background-color: #244a57;
    color: white;
    font: inherit;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-buttons button:hover {
    background-color: #356879;
}

.form-buttons button:focus-visible {
    outline: 3px solid #244a57;
    outline-offset: 3px;
}

.form-note {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 18px;
}


/* CONTACT PAGE - SMALLER SCREENS */

@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-section {
        padding: 40px 20px;
    }

    .contact-panel {
        padding:25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-hero {
        min-height: 250px;
    }

    .contact-hero h1 {
        font-size: 34px;
    }
}

.site-footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.site-footer h2 {
    margin-top: 0;
    font-size: 26px;
}

.site-footer p {
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px 25px;
    margin: 25px 0;
}

.site-footer a {
    color: white;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

.footer-bottom {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 0;
}

/* Tablet layout */
@media (max-width: 900px) {
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile layout */
@media (max-width: 600px) {
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .highlights {
        padding: 50px 20px;
    }
}

/* Resoponsive header */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }
    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
    }
    .logo {
        text-align: center;
    }
}

/* Mobile hero sections */
@media (max-width: 600px) {
    .hero {
        min-height: 350px;
        padding: 40px 20px;
    }
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    .hero p {
        font-size: 16px;
        line-height: 1.5;
    }
    .contact-hero {
        min-height: 280px;
    }
}

.credits-page {
    max-width: 1000px;
    margin:0 auto;
    padding: 50px 24px;
    line-height: 1.6;
}

.map-section {
    padding:40px 20px;
    text-align: center;
}

.transport-map {
    width: 100%;
    max-width:1000;
    height: auto;
    border-radius: 10px;
}

html {
    scroll-behavior: smooth;
}

.transport-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.map-source {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.interactive-map {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    border: none;
    border-radius: 10px;
}