@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

:root {
    --bg-page: #f4f6fb;
    --bg-card: #ffffff;
    --text-main: #213143;
    --text-muted: #5f6e7b;
    --primary: #0b74de;
    --primary-hover: #0858aa;
    --success: #1e8b49;
    --warning: #d99100;
    --shadow: 0 8px 24px rgba(24, 39, 75, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    margin: 0;
    background: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

main {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 24px 0;
    flex: 1;
}

section {
    background: var(--bg-card);
    margin-bottom: 24px;
    padding: clamp(20px, 3vw, 40px);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

h2 {
    text-align: center;
    margin: 0 0 32px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #1c2d3f;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 16px clamp(16px, 3vw, 40px);
}

header h1 {
    margin: 0;
}

header h1 a {
    font-size: clamp(1.25rem, 2.8vw, 1.8rem);
    color: #1c2d3f;
    font-weight: 700;
}

nav {
    margin-top: 12px;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

nav ul li {
    margin: 0;
}

nav a {
    color: #495766;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background:
        linear-gradient(120deg, rgba(7, 33, 67, 0.78), rgba(13, 81, 148, 0.55)),
        url('assets/Paris.png') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: clamp(56px, 9vw, 110px) clamp(20px, 4vw, 48px);
    border-radius: 16px;
}

.hero-content h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
}

.hero-content p {
    margin: 0 auto 28px;
    max-width: 680px;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: var(--primary-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Features Section */
.features h2 {
    margin-bottom: 40px;
}

.feature-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature {
    padding: 24px 20px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #e7eef9;
    text-align: center;
}

.feature img {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: #ebf3ff;
    padding: 14px;
    object-fit: contain;
}

.feature h3 {
    font-size: 1.35rem;
    margin: 0 0 10px;
}

.feature p {
    margin: 0;
}

.feature-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 700;
}

/* My Trips Page */
.trip-list {
    display: grid;
    gap: 20px;
}

.trip-list .trip-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 24px;
    align-items: stretch;
    background: #fcfdff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(21, 39, 74, 0.08);
}

.trip-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 260px;
    object-fit: cover;
}

.trip-info h3 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.trip-info p:last-child {
    margin-bottom: 0;
}

.trip-dates {
    font-style: italic;
    color: var(--text-muted);
}

.trip-status {
    font-weight: 700;
}

.trip-status.completed {
    color: var(--success);
}

.trip-status.planned {
    color: var(--warning);
}

/* Places to Visit Page */
.places-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.place-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(22, 35, 64, 0.12);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.place-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(22, 35, 64, 0.16);
}

.place-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.place-info {
    padding: 18px;
}

.place-info h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.place-info p {
    margin: 0 0 12px;
}

.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

.reviews {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.reviews p {
    margin: 0;
    color: #d88900;
}

.read-more {
    font-weight: 700;
    white-space: nowrap;
}

/* Budget Page */
.budget-form {
    max-width: 680px;
    margin: 0 auto;
    background: #fcfdff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(21, 39, 74, 0.08);
}

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

.budget-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.budget-form input,
.budget-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7dfeb;
    border-radius: 8px;
    font: inherit;
}

.budget-form textarea {
    resize: vertical;
    min-height: 110px;
}

.budget-form button {
    width: 100%;
    background: var(--success);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.budget-form button:hover {
    background: #176e3a;
}

.budget-summary {
    margin-top: 24px;
    text-align: center;
}

.budget-summary h3 {
    margin-bottom: 8px;
}

#total-budget {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1c2d3f;
}

.summary-note {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px 16px;
    background: #1c2d3f;
    color: #fff;
    margin-top: 24px;
}

@media (max-width: 960px) {
    .feature-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trip-list .trip-card {
        grid-template-columns: 1fr;
    }

    .trip-card img {
        max-height: 280px;
    }
}

@media (max-width: 640px) {
    main {
        width: min(1200px, calc(100% - 1rem));
    }

    section {
        padding: 18px;
    }

    nav ul {
        gap: 8px 14px;
    }

    .feature-container {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 20px 16px;
    }

    .reviews {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    #total-budget {
        font-size: 1.65rem;
    }
}


