/* Main stylesheet for Krakow City Travel Guide */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #fff2df 0%, #ffffff 40%, #f2f6f9 100%);
    color: #222;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #7a1f1f, #d95d39, #f2b705);
    color: white;
    text-align: center;
    padding: 28px 20px 0 20px;
}

header h1 {
    margin: 0;
    font-size: 2.35rem;
    letter-spacing: 1px;
}

header p {
    margin: 8px 0 22px 0;
    font-size: 1.05rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0 -20px;
    background-color: rgba(80, 20, 20, 0.45);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 17px;
    font-weight: bold;
}

nav a:hover {
    background-color: #ffffff;
    color: #7a1f1f;
}

main {
    max-width: 1100px;
    margin: 28px auto;
    padding: 24px;
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

h2 {
    color: #7a1f1f;
    border-bottom: 4px solid #f2b705;
    padding-bottom: 8px;
    font-size: 2rem;
}

h3 {
    color: #9d2f2f;
}

.hero {
    display: flex;
    gap: 24px;
    align-items: center;
    background-color: #fff7eb;
    padding: 18px;
    border-radius: 14px;
}

.hero img {
    width: 55%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    border: 5px solid white;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}

.hero-text {
    padding: 10px;
}

.button-link {
    display: inline-block;
    background-color: #7a1f1f;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 8px;
}

.button-link:hover {
    background-color: #d95d39;
}

.highlight-box {
    background: linear-gradient(135deg, #fff0c7, #ffe1bf);
    padding: 20px;
    margin: 24px 0;
    border-radius: 12px;
    border-left: 8px solid #d95d39;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.photo-grid h3 {
    grid-column: 1 / -1;
}

.photo-grid img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
}

.intro-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: center;
    background-color: #fff7eb;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.intro-card h3 {
    grid-column: 1 / -1;
}

.intro-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cards > h3 {
    flex-basis: 100%;
    margin-bottom: 0;
}

.cards article {
    flex: 1 1 230px;
    background: linear-gradient(180deg, #ffffff, #fff7eb);
    padding: 16px;
    border-left: 7px solid #d95d39;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}

.cards article:nth-child(even) {
    border-left-color: #f2b705;
}

.cards article img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.two-column {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: center;
    background-color: #fff7eb;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 22px;
}

.two-column h3 {
    grid-column: 1 / -1;
}

.two-column.reverse {
    grid-template-columns: 1fr 1.15fr;
    background-color: #f7f3ef;
}

.two-column img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 10px;
}

th {
    background-color: #7a1f1f;
    color: white;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

tr:nth-child(even) {
    background-color: #fff7eb;
}

.table-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.tip-list li {
    background-color: #fff7eb;
    margin: 10px 0;
    padding: 12px;
    border-left: 6px solid #d95d39;
    border-radius: 8px;
}

form {
    max-width: 620px;
}

label {
    display: block;
    margin-top: 14px;
    font-weight: bold;
    color: #7a1f1f;
}

input, select, textarea {
    width: 100%;
    padding: 11px;
    margin-top: 5px;
    border: 2px solid #e6c5b7;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: 3px solid #f2b705;
}

button {
    margin-top: 18px;
    background-color: #7a1f1f;
    color: white;
    border: none;
    padding: 13px 20px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #d95d39;
}

footer {
    text-align: center;
    background: linear-gradient(135deg, #7a1f1f, #d95d39);
    color: white;
    padding: 18px;
    margin-top: 30px;
}

/* Responsive layout for smaller screens */
@media screen and (max-width: 760px) {
    .hero,
    .two-column,
    .two-column.reverse,
    .intro-card {
        display: block;
    }

    .hero img,
    .two-column img,
    .intro-card img {
        width: 100%;
        height: auto;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
    }

    main {
        margin: 12px;
        padding: 18px;
    }

    .table-img {
        width: 90px;
        height: 65px;
    }
}