html{
    overflow-x: hidden;
    width: 100%;
}

body{
    margin:0;
    padding:0;
    background-color: rgb(255,255,249);
    font-family: Georgia, serif;
    overflow-x: hidden;
    width: 100%;
}

header{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:25px 0;
    position: relative;
}


#logo{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.logo-img{
    width:340px;
    height:auto;
    padding: 0;
    margin: 0;
    max-width: 90vw;
}

#nav-toggle{
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 20;
}

#nav-toggle span{
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-color: rgb(73,56,14);
    transition: all .3s ease;
}

#nav-toggle.open span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
}

#nav-toggle.open span:nth-child(2){
    opacity: 0;
}

#nav-toggle.open span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
}

#navbar ul{
    display:flex;
    gap: 100px;
    list-style:none;
    margin:0;
    padding:0;
}

#navbar a{
    text-decoration:none;
    color:rgb(73,56,14);
    font-size: 1.5rem;
    font-weight:500;
    transition:0.3s ease;
}

#navbar a:hover{
    color:rgb(67,125,67);
    text-decoration: underline;
}

.tourist-img {
    justify-content: flex-start;
    margin: 0;
    padding: 90px 20px;
    max-width: 100%;
}

#home {
    display: flex;
    flex-wrap: wrap;
}

.image1 {
    width: 700px;
    height: auto;
    max-width: 100%;
}

.details {
    padding: 90px 100px;
}

.heading {
    font-size: 2.5rem;
    color: rgb(78, 37, 37);
}

.tagline {
    font-size: 1.05rem;
    color:rgb(119, 59, 59);
}

.line{
    width: 7px;
    height: 120px;
    background-color: rgb(24, 17, 17);
    border-radius: 5px;
    flex-shrink: 0;
}

.home-content{
    display: flex;
    align-items: center;
    gap: 20px;
}

.content {
    display: flex;
    flex-direction: column;
}

.button-container{
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 35px;
    font-size: 1.5rem;
}

.button,
.button1 {
    width: 280px;
    max-width: 100%;
    padding: 18px 25px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.button {
    background: linear-gradient(135deg, #FFD54F, #FBC02D);
    color: #5D4037;
    border: 2px solid #C49000;
}

.button:hover {
    background: linear-gradient(135deg, #FFE082, #FFD54F);
    transform: translateY(-3px);
}

.button1 {
    background: linear-gradient(135deg, #6AA84F, #4E944F);
    color: white;
    border: 2px solid #3A6B35;
}

.button1:hover {
    background: linear-gradient(135deg, #81C784, #66BB6A);
    transform: translateY(-3px);
}

.button.is-pressed,
.button1.is-pressed,
.story-btn.is-pressed,
.contact-btn.is-pressed{
    transform: scale(0.96) !important;
}

.featured{
    background-color: #fcfaf4;
    border: 1px solid rgba(120, 105, 70, 0.15);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    margin: 0 20px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.featured h2{
    color: rgb(73,56,14);
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.destination-list{
    list-style: none;
    padding: 0;
    margin: 0;
}

.destination-list li{
    font-size: 1.1rem;
    margin: 14px 0;
    color: rgb(60,60,60);

    transition: all 0.3s ease;
}

.destination-list li:hover{
    transform: translateX(6px);
    color: rgb(44,85,44);
}

.stories-link{
    display: inline-block;
    margin-top: 20px;

    text-decoration: none;

    color: rgb(44,85,44);

    font-weight: bold;

    transition: all .3s ease;
}

.stories-link:hover{
    letter-spacing: .5px;
    color: rgb(73,56,14);
}

#explore{
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
    max-width: 100%;
}

.explore-controls{
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.search-box{
    padding: 14px 18px;
    border: 2px solid #d6d6d6;
    border-radius: 30px;
    outline: none;
    font-size: 1rem;
    flex: 1 1 260px;
    max-width: 360px;
}

.search-box:focus{
    border-color: #6AA84F;
}

.filter{
    padding: 14px 20px;
    border-radius: 30px;
    border: 2px solid #d6d6d6;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    color: #4d3b1f;
    flex: 0 1 220px;
}

.filter:hover{
    border-color: #6AA84F;
}

.cards-container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 25px;
    padding: 20px clamp(20px, 10vw, 120px);
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
    max-width: 100%;
    box-sizing: border-box;
}

.cards-container.dragging{
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.place{
    flex: 0 0 auto;
    width: clamp(240px, 34vw, 380px);
    height: auto;
    border-radius: 18px;
    scroll-snap-align: center;
    transition: transform .35s ease, box-shadow .35s ease;
    box-sizing: border-box;
}

.place.place-hidden{
    display: none;
}

.place:hover{
    transform: translateY(-10px);
    box-shadow:0 18px 35px rgba(0,0,0,.15);
}

.place-img {
    width:100%;
    height:280px;
    object-fit:cover;
    transition: transform .4s ease;
    border-radius: 10px;
}

.place:hover .place-img{
    transform:scale(1.05);
}

.place-name {
    font-size: 1.5rem;
    color:rgb(24, 17, 17);
}

.place-description {
    color:rgb(78, 37, 37);
}

.place-rating {
    font-size: 2rem;
}

.read-more{
    color: rgb(91, 88, 88);
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more:hover{
    color: #3f704d;
    transform: translateX(8px);
}

.save-story{
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    color:#555;
}

.save-story:hover{
    color:#ff2e63;
    text-shadow:
        0 0 8px rgba(255,46,99,.6),
        0 0 18px rgba(255,46,99,.4);
    transform: scale(1.08);
}

.save-story.saved{
    color:#ff2e63;
}

.cards-dots{
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.cards-dots .dot{
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(73,56,14,.25);
    cursor: pointer;
    transition: all .3s ease;
}

.cards-dots .dot.active{
    background: rgb(73,56,14);
    transform: scale(1.2);
}

#write-story{
    padding: 80px 8%;
    background-color: rgb(255,255,249);
    box-sizing: border-box;
}

.story-header{
    text-align: center;
    margin-bottom: 50px;
    padding: 0 10px;
}

.story-header h2{
    font-size: 2.5rem;
    color: rgb(73,56,14);
    margin-bottom: 10px;
}

.story-header p{
    font-size: 1.1rem;
    color: rgb(90,90,90);
}

.story-container{
    width: 70%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;

    background: white;
    padding: 35px;
    border-radius: 20px;
    box-sizing: border-box;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.story-container label{
    font-weight: 600;
    color: rgb(73,56,14);
}

.story-container input,
.story-container select,
.story-container textarea{

    padding: 14px 16px;
    border: 2px solid rgb(225,225,225);
    border-radius: 12px;

    font-size: 1rem;

    outline: none;

    transition: .3s ease;
    width: 100%;
    box-sizing: border-box;
}

.story-container input:focus,
.story-container select:focus,
.story-container textarea:focus{

    border-color: rgb(84,135,84);
    box-shadow: 0 0 8px rgba(84,135,84,.2);

}

.field-focused{
    transform: translateY(-2px);
}

.field-invalid{
    border-color: #d9534f !important;
    box-shadow: 0 0 8px rgba(217,83,79,.25) !important;
}

.story-container input::placeholder,
.story-container textarea::placeholder{

    color: rgb(145,145,145);
}

.story-container textarea{

    min-height: 220px;
    resize: vertical;
}

.story-container input[type="file"]{

    border: none;
    padding: 8px 0;
}

.story-btn{

    margin-top: 20px;

    padding: 16px;

    border: none;
    border-radius: 14px;

    background: linear-gradient(135deg,#5b8f58,#7bbf72);

    color: white;

    font-size: 1.1rem;
    font-weight: bold;

    cursor: pointer;

    transition: all .3s ease;

}


.story-btn:hover{

    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(91,143,88,.35);

}


.stories-container{

    margin-top: 70px;

    display: grid;

    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));

    gap: 25px;
}

.form-message{
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    text-align: center;
    font-weight: 600;
    border-radius: 12px;
    transition: all .35s ease;
    padding: 0 16px;
}

.form-message.visible{
    max-height: 80px;
    opacity: 1;
    padding: 14px 16px;
    margin-top: 6px;
}

.form-message.success{
    background: rgba(106,168,79,.15);
    color: rgb(58,110,58);
    border: 2px solid rgba(106,168,79,.4);
}

.form-message.error{
    background: rgba(217,83,79,.12);
    color: #a53d3a;
    border: 2px solid rgba(217,83,79,.35);
}

#published-stories{
    padding: 40px 8% 90px;
    background-color: rgb(255,255,249);
    box-sizing: border-box;
}

.stories-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-card{
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,.15);
}

.story-card-img{
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.story-card-img.placeholder{
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#f3efe3,#e7e0cc);
    color: rgb(120,105,70);
    font-size: .95rem;
    text-align: center;
    padding: 0 12px;
}

.story-card-body{
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.story-card-title{
    font-size: 1.3rem;
    color: rgb(24,17,17);
    margin: 0;
}

.story-card-meta{
    font-size: .9rem;
    color: rgb(90,90,90);
    margin: 0;
    text-transform: capitalize;
}

.story-card-preview{
    color: rgb(78,37,37);
    margin: 4px 0;
    line-height: 1.5;
}

.story-card-date{
    font-size: .8rem;
    color: rgb(150,150,150);
    margin-top: auto;
}

.story-card.user-story{
    border: 2px solid rgba(106,168,79,.35);
}

.about-us {
    font-size: 2.5rem;
    color: rgb(58, 125, 58);
    text-decoration: underline;
    padding: 0 30px;
}

.about-card {
    padding: 30px;
    margin: 30px;
    width: auto;
    height: fit-content;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    box-sizing: border-box;
}

.about-heading {
    color:#4d3b1f;
    font-size: 1.5rem;
}

.about-content {
    color: gray;
}

#contact-us{
    padding:100px 10%;
    background:linear-gradient(to bottom,#fffef9,#f7f2e8);
    box-sizing: border-box;
}

.form{
    text-align:center;
    font-size:3rem;
    color:#49380e;
    margin-bottom:15px;
}

.form::after{
    content:"";
    display:block;
    width:80px;
    height:4px;
    margin:15px auto 0;
    background:#6f8d52;
    border-radius:10px;
}

.contact-us{
    max-width:850px;
    margin:60px auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.contact-us label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#49380e;
}

.contact-us textarea,
.contact-btn,
.contact-us .form-message{
    grid-column:1/3;
}

.contact-us input,
.contact-us select,
.contact-us textarea{
    width:100%;
    padding:15px;
    font-size:1rem;
    border:2px solid #ddd;
    border-radius:14px;
    background:#fff;
    transition:.3s;
    box-sizing:border-box;
}

.contact-us textarea{
    min-height:180px;
    resize:vertical;
}

.contact-us input::placeholder,
.contact-us textarea::placeholder{
    color:#aaa;
}

.contact-us input:focus,
.contact-us select:focus,
.contact-us textarea:focus{
    border-color:#6f8d52;
    box-shadow:0 0 12px rgba(111,141,82,.2);
}

.contact-btn{
    width:250px;
    max-width: 100%;
    justify-self:center;
    padding:16px;
    border:none;
    border-radius:40px;
    background:linear-gradient(135deg,#5b8f58,#7abf74);
    color:white;
    font-size:1.05rem;
    font-weight:bold;
    cursor:pointer;
    transition:.35s;
}

.contact-btn:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 25px rgba(0,0,0,.15);
}

#footer{
    background-color: rgb(44, 85, 44);
    color: white;
    text-align: center;
    padding: 50px 20px 25px;
    margin-top: 80px;
    box-sizing: border-box;
}

.footer-text{
    color: rgba(255,255,255,.8);
    margin-bottom: 30px;
    font-style: italic;
}

.footer-links{
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a{
    color: white;
    text-decoration: none;
    transition: .3s;
}

.footer-links a:hover{
    color: #ffd369;
    transform: translateY(-3px);
}

#footer hr{
    width: 70%;
    margin: 25px auto;
    border: none;
    border-top: 1px solid rgba(255,255,255,.3);
}

.copyright{
    font-size: .9rem;
    color: rgba(255,255,255,.7);
}

.footer-logo{
    width: 180px;
    margin-bottom: 10px;
    max-width: 60vw;
}

@media (max-width: 1024px){

    .details{
        padding: 60px 50px;
    }

    .image1{
        width: 100%;
        max-width: 560px;
    }

    .story-container{
        width: 85%;
    }

    .place{
        width: clamp(240px, 42vw, 380px);
    }
}

@media (max-width: 900px){

    #nav-toggle{
        display: flex;
    }

    #navbar{
        width: 100%;
    }

    #navbar ul{
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
        padding: 24px 0;
        background: rgb(255,255,249);
    }

    #navbar ul.nav-open{
        display: flex;
    }

    #navbar a{
        font-size: 1.2rem;
    }

    #home{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tourist-img{
        padding: 50px 20px 0;
        display: flex;
        justify-content: center;
    }

    .details{
        padding: 30px 30px 60px;
    }

    .home-content{
        justify-content: center;
    }

    .button-container{
        align-items: center;
        padding: 20px 0;
    }

    .contact-us{
        grid-template-columns: 1fr;
    }

    .contact-us textarea,
    .contact-btn,
    .contact-us .form-message{
        grid-column: 1;
    }
}

@media (max-width: 700px){

    .logo-img{
        width: 220px;
    }

    .heading{
        font-size: 2rem;
    }

    .place{
        width: 78vw;
    }

    .place-img{
        height: 230px;
    }

    .cards-container{
        padding: 20px;
    }

    .cards-dots{
        display: flex;
    }

    .story-container{
        width: 92%;
        padding: 25px;
    }

    .story-header h2{
        font-size: 1.9rem;
    }

    .about-us{
        font-size: 2rem;
        text-align: center;
    }

    .about-card{
        margin: 20px 15px;
    }

    .form{
        font-size: 2.1rem;
    }

    #contact-us{
        padding: 70px 6%;
    }
}

@media (max-width: 480px){

    .logo-img{
        width: 170px;
    }

    .heading{
        font-size: 1.7rem;
    }

    .tagline{
        font-size: .95rem;
    }

    .button,
    .button1{
        width: 100%;
        max-width: 280px;
        font-size: 1.15rem;
    }

    .featured h2{
        font-size: 1.5rem;
    }

    .destination-list li{
        font-size: 1rem;
    }

    .explore-controls{
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }

    .search-box,
    .filter{
        max-width: 100%;
        flex: 1 1 auto;
    }

    .place{
        width: 84vw;
    }

    .place-img{
        height: 200px;
    }

    .place-name{
        font-size: 1.25rem;
    }

    .story-header h2{
        font-size: 1.6rem;
    }

    .story-container{
        padding: 18px;
    }

    .story-card-img,
    .story-card-img.placeholder{
        height: 180px;
    }

    .about-us{
        font-size: 1.7rem;
    }

    .about-heading{
        font-size: 1.25rem;
    }

    .form{
        font-size: 1.8rem;
    }

    .footer-logo{
        width: 140px;
    }

    .footer-links{
        flex-direction: column;
        gap: 14px;
    }
}