/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lora", serif;
    background: #ba9d80;
    color: #333;
    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Header */


header {
    background-color: #cbb8a6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 60px;
    border-radius: 0 0 12px 12px; 
}


.site-name {
    font-size: 3.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.site-name:hover {
    color: #333;
}

.hamburger {
    display: none;
}

nav {
    margin-left: auto;
    margin-right: 40px;
}

nav a {
    margin-left: 35px;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
}

nav a:hover {
    color: #5f7ea5;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.logo {
    width: 110px;
    height: auto;
    display: block;
}


/* Hover for Destinations in header */
/* Align nav items smoothly */
nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 40px;
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Ensure the top link keeps normal nav spacing */
.dropdown-btn {
    margin-left: 35px;
}

/* Hidden sub-menu box */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 35px; /* Aligns with the parent link's margin-left */
    background-color: #ba9d80;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 8px 0;
    z-index: 100;
}

/* Dropdown links */
.dropdown-content a {
    display: block;
    margin-left: 0; /* Resets default nav link margin */
    padding: 10px 18px;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effects for dropdown items */
.dropdown-content a:hover {
    background-color: #cbb8a6; 
    color: #5f7ea5;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px; 
    padding: 80px 60px;
    flex: 1;
}


/* Set equal sizing for both text columns so the image stays perfectly centered */
.hero-text,
.hero-side-text {
    flex: 1;
}

/* Align left text to the right edge and right text to the left edge */
.hero-text {
    text-align: left; 
}

.hero-side-text {
    text-align: left;
}

/* Keep hero-image centered */
.hero-image {
    flex: 0 0 auto; 
    width: 400px;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    display: block;
} 

#hat-map area {
    cursor: pointer;
}


/* Cursor */
body {
    cursor: url('./assets/cursor.png'), auto;
}



/* Aboout page */

.about-page {
    display: flex;
    flex-direction: column; /* Stacks Row 1 and Row 2 vertically */
    gap: 80px;              /* Adds vertical spacing between the two rows */
    padding: 80px 60px;
    max-width: 1200px;      /* Restricts line length for clean presentation */
    margin: 0 auto;         /* Centers the content container on the screen */
    width: 100%;
}


.about-row {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.about-col {
    flex: 1;
}

/* Image styles */
.about-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Headings */
.about-page h1 {
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 24px;
}

.about-page h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 16px;
}

/* Paragraph styling */
.about-col p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}


/* Decorative Heading: "Work with me" */
.decorative-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.decorative-heading::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: #333;
}

.decorative-heading::after {
    content: "";
    display: inline-block;
    width: 80px;
    height: 1px;
    background-color: #333;
}

/* Work section spacing */
.work-section {
    margin-bottom: 40px;
}

/* Form Styles */
.contact-form-container {
    margin-top: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background-color: #a39585;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 2px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid #333;
}

.contact-form button {
    align-self: flex-start;
    padding: 8px 24px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 2px;
}

/* Footer credit info below the content */
.about-bottom-info {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 10px auto; /* Keeps it aligned with the 1100px max-width container */
    padding: 0 60px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.about-bottom-info a {
    color: #333;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.about-bottom-info a:hover {
    color: #5f7ea5;
}


/* Destinations page*/

.destinations-container{
    width:90%;
    max-width:1200px;
    margin:40px auto 80px;
}

.page-heading{
    margin-bottom:40px;
    font-size:3rem;
    font-weight:700;
    text-align:left;
}

.destinations{
    display:flex;
    justify-content:space-between;
    gap:40px;
}

.destination-card{
    flex:1;
    min-width:0;
}

.destination-card img{
    width:100%;
    aspect-ratio:4 / 3;
    object-fit:cover;
    border-radius:8px;
    display:block;
}

.destination-card h2{
    margin-top:20px;
    margin-bottom:12px;
    font-size:2rem;
}

.link{
    display:block;
    margin-bottom:10px;
    color:#333;
    text-decoration:none;
    font-size:1.1rem;
}

.link:hover{
    color:#5f7ea5;
    text-decoration:underline;
}

/*Each destination*/
.destination-hero{
    display:flex;
    gap:50px;
    align-items:center;
    width:90%;
    margin:30px auto;
}

.destination-hero img{
    width:50%;
    border-radius:10px;
}

.hero-text{
    width:50%;
}

.hero-text h1{
    font-size:3rem;
    margin-bottom:20px;
}

.hero-text p{
    line-height:1.8;
}

.itinerary{
    width:90%;
    margin:70px auto;
}

.itinerary h2{
    text-align:center;
    margin-bottom:40px;
} 

.day-card{
    background:#f7f7f7;
    padding:25px;
    margin-bottom:25px;
    border-radius:10px;
}

.day-card h3{
    margin-bottom:10px;
}

.day-card a {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.day-card a:hover {
    opacity: 0.7;
}

/* Contact page */

.contact-page {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 80px;
}

.contact-page .page-heading {
    margin-bottom: 50px;
    font-size: 3rem;
    font-weight: 700;
    text-align: left;
}

.contact-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-info-col {
    flex: 1;
}

.contact-form-col {
    flex: 1;
}

.contact-info-col h2,
.contact-form-col h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.info-item a {
    color: #333;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.info-item a:hover {
    color: #5f7ea5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #a39585;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 2px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid #333;
}

.contact-form button {
    align-self: flex-start;
    padding: 10px 28px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.contact-form button:hover {
    background-color: #555;
}

/* Gallery Page */

.gallery-page {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 80px;
}

.gallery-page .page-heading {
    margin-bottom: 20px;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 50px;
    color: #333;
}

.gallery-day-section {
    margin-bottom: 60px;
}

.gallery-day-heading {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: left;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
}

.gallery-item img.is-landscape {
    width: 100%;
}

.gallery-item img.is-portrait {
    width: 65%;
}

.gallery-caption {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Footer */

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;

    background-color: #cbb8a6;
    color: #333;

    padding: 25px 40px;
    margin-top: auto;
}

.footer-column {
    text-align: center;
    flex: 1;
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 600;
}


/* ==========================================
   Tablets & Small Laptops (under 1024px)
   ========================================== */
@media screen and (max-width: 1024px) {
    header {
        padding: 20px 30px;
    }

    .site-name {
        font-size: 2.5rem;
    }

    nav a, 
    .dropdown-btn {
        margin-left: 20px;
    }

    .hero {
        gap: 30px;
        padding: 60px 30px;
    }

    .hero-image {
        width: 300px;
    }

    .destinations {
        gap: 20px;
    }
}

/* ==========================================
   Mobile Devices (under 768px)
   ========================================== */
@media screen and (max-width: 768px) {

    /* Header & Hamburger Layout */
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 25px;
        position: relative;
    }

    /* Hamburger Menu Button */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
        z-index: 101;
    }

    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Hamburger animation - open state */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .site-name {
        font-size: 2rem;
        line-height: 1;
        flex: 1;
    }

    /* Hide site name on non-home pages */
    body.not-home .site-name {
        display: none;
    }

    /* Logo sizing */
.logo {
    width: 50px;
    height: auto;
}


    /* Show logo only on non-home pages */
    body.not-home .logo {
        display: inline-block;
    }

    body.home .logo {
        display: none;
    }

    /* Mobile Dropdown Navigation */
    nav {
        display: none; /* Toggled via JavaScript (.active) */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #cbb8a6;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 30px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        margin: 0;
        z-index: 100;
    }

    nav.active {
        display: flex;
    }

    nav a, 
    .dropdown-btn {
        margin: 10px 0;
        margin-left: 0;
        font-size: 1.2rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #ba9d80;
        margin-top: 8px;
        margin-left: 15px;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 25px;
    }

    .hero-text, 
    .hero-side-text {
        text-align: center;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        width: 100%;
        max-width: 320px;
    }

    /* About Page */
    .about-page {
        padding: 40px 20px;
        gap: 40px;
    }

    .about-row {
        flex-direction: column;
        gap: 20px;
    }

    .about-row:nth-child(2) {
        flex-direction: column-reverse; /* Keeps contact info above image */
    }

    .about-col h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .about-page h2 {
        font-size: 1.6rem;
    }

    .about-img {
        margin-bottom: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    /* Destinations Page */
    .destinations-container {
        width: 95%;
        margin: 20px auto 40px;
    }

    .page-heading {
        font-size: 2.2rem;
        text-align: center;
    }

    .destinations {
        flex-direction: column;
        gap: 30px;
    }

    .destination-hero {
        flex-direction: column;
        width: 95%;
        gap: 20px;
    }

    .destination-hero img,
    .hero-text {
        width: 100%;
    }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }

    .about-bottom-info {
        padding: 0 20px;
        text-align: center;
    }

    /* Contact Page Mobile */
    .contact-container {
        width: 95%;
        margin: 20px auto 40px;
    }
    
    .contact-page .page-heading {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info-col,
    .contact-form-col {
        width: 100%;
    }
    
    .contact-form {
        width: 100%;
    }
    
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-info-col h2,
    .contact-form-col h2 {
        font-size: 1.6rem;
    }
    /* Gallery Page Mobile */
    .gallery-container {
        width: 95%;
        margin: 20px auto 40px;
    }

    .gallery-page .page-heading {
        font-size: 2.2rem;
    }

    .gallery-subtitle {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .gallery-item img {
        height: 300px;
        margin-bottom: 15px;
    }
}
}