/* 10 layout stabilisers (one rule per line) */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

figcaption {
    text-align:center;
    margin-top:8px;
    font-style:italic;
    color:#555;
}

figure {
    margin:0;
    width:100%;
}

figure img, .team-member img {
    width:100%;
    border-radius:8px;
    display:block;
    box-shadow: 1px 1px 2px black;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(10px, 12px);
}

.flex-child {
    min-width: 0;
}

.toolbar {
    flex-wrap: wrap;
}

#contact {
    display:none;
}
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

body {
    overflow-x: hidden;
}

/* use as a temporary patch */
.prose {
    overflow-wrap: anywhere;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.widget {
    contain: layout paint;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--background);
}

header {
    position: fixed;
    top: 0; /* Pins the top edge of the div to the top edge of the viewport */
    left: 0; /* Aligns to the left edge */
    width: 100%; /* Makes the div span the full width */

    background: var(--primary);
    color: var(--text-light);
    padding: 1rem 1rem;
    text-align: center;
    z-index: 1000; /* Ensures the header is above other content */
}

.logo-area {
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

.logo-area h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.top_head {
    max-width: 800px;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1px, 1px, 2px);
    padding: clamp(4px, 8px, 12px) 0 0 1rem;
}

h1 {
    text-shadow: 1px 1px 2px black;
}

h2, h3, h4 {
    color: var(--accent);
}

h4 {
    margin: 0;
    padding: 0;
}

a, a:visited, a:hover, a:focus {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.btnPlan a, .btnPlan a:visited, .btnPlan a:hover, .btnPlan a:focus {
    color: var(--primary-text);
    text-decoration: none;
    cursor: pointer;
}

.top_head h3 {
    color: white;
    margin: 0;
    font-weight: normal;
}


.note_style {
    font-style: italic;
}


.nav-burger {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 0.1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: #2c3e50;
    width: 60%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0 2rem 0;
    z-index: 100;
}

.nav-menu.active {
    left: 40%;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #f39c12;
}


.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
    position: absolute;
    right: 20px;
    top: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}


.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('https://via.placeholder.com/1200x600?text=Normandy+Coastline+Sunset');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.container_wide {
    max-width: 1800px;
    margin: 14rem auto 0 auto;
    /*padding: 20px;*/
}

.container {
    max-width: 1000px;
    margin: 14rem auto 0 auto;
    padding: 20px;
    /*border-top: purple 3px solid; good for debugging */
}

.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
    margin-top: 10px;
}

.tour-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    max-width: 20rem;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tour-image {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    max-width: 20rem;
}

.tour-content {
    padding: 20px;
}

.tour-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent);
}
.tour-tab {
    cursor: pointer;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.tour-tab:hover {
    background: #e0e0e0;
}
.tour-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    text-decoration: none;
}
.tour-grid-container {
    display: none;
}
.tour-grid-container.active {
    display: grid; /* Assuming tour-grid has grid styles, this keeps it visible */
}

.badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.cta-box {
    background: var(--light-gray);
    padding: 20px 40px;
    text-align: center;
    margin: 10px 0;
    box-shadow: 1px 1px 2px black;
    border-radius:8px;
    /*border-left: 5px solid var(--primary);*/
}

.all_photos {
    width: 100%;
    text-align: center;
    padding-top:1rem;
    font-style: italic;
}

.btnPlan {
    background: var(--primary);
    color: var(--primary-text);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
}

footer {
    background: var(--primary);
    color: var(--text-footer);
    text-align: center;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .intro-section {
        grid-template-columns: 1fr;
    }

    .logo-area img {
        height: 6rem !important;
    }

    .logo-area h1 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container, .container_wide {
        margin-top: 9rem;
        padding: 0 20px;
    }
}

 /*iPhone 14 Pro-Max is 430 */
 /*iPhone 17 Pro-Max is 440 */
 /*iPhone 17 Pro is 402 */
@media (max-width: 429px) {
    header {
        position: static;
    }

    .logo-area img {
        height: 4rem !important;
    }

    .logo-area h1 {
        font-size: 1rem;
    }

    .logo-area h3 {
        font-size: 1rem;
    }

    .container, .container_wide {
        margin-top: 0;
    }
}
