/* 404 Page Styles */

.not-found-page {
    min-height: 100vh;
    padding-top: 2rem;
}

/* Hero Section */
.not-found-hero {
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, #fff5f6 0%, #ffe8ea 100%);
    border-radius: 0 0 2rem 2rem;
}

.not-found-hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .not-found-hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

.not-found-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 9999px;
    color: var(--first-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.not-found-hero__content {
    position: relative;
    z-index: 2;
}

.not-found-hero__404 {
    display: block;
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
}

.not-found-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .not-found-hero__title {
        font-size: 2.25rem;
    }

    .not-found-hero__404 {
        font-size: 8rem;
    }
}

.not-found-hero__description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.not-found-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.not-found-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

@media (min-width: 768px) {
    .not-found-hero__visual {
        justify-content: flex-end;
        padding-right: 2rem;
    }
}

.not-found-hero__image {
    border-radius: 1.5rem;
    object-fit: contain;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@media (max-width: 767px) {
    .not-found-hero__image {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Mobile: Position image behind/beside 404 with overlap */
@media (max-width: 767px) {
    .not-found-hero .container {
        position: relative;
    }

    .not-found-hero__visual {
        position: absolute;
        top: 0;
        right: -1rem;
        width: 220px;
        height: auto;
        padding: 0;
        z-index: 1;
        opacity: 0.85;
    }

    .not-found-hero__image {
        max-width: 220px;
        border-radius: 1rem;
    }

    .not-found-hero__content {
        padding-right: 80px;
    }
}

/* About Section */
.not-found-about {
    padding: 4rem 0;
}

.not-found-about__header {
    text-align: center;
    margin-bottom: 3rem;
}

.not-found-about__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--title-color);
}

.not-found-about__content {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .not-found-about__content {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
    }
}

.not-found-about__text {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.not-found-about__text p {
    margin-bottom: 1rem;
}

.not-found-about__text strong {
    color: var(--title-color);
}

.not-found-about__cta-card {
    background: linear-gradient(135deg, #fef2f3 0%, #fdd 100%);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.not-found-about__cta-card>i:first-child {
    font-size: 3rem;
    color: var(--first-color);
    margin-bottom: 1rem;
    display: block;
}

.not-found-about__cta-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.75rem;
}

.not-found-about__cta-card>p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.not-found-about__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .not-found-about__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.not-found-about__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--title-color);
}

/* WhatsApp Button Styling */
.not-found-btn-whatsapp {
    background: linear-gradient(180deg, #2dd96e 0%, #25D366 50%, #128C7E 100%) !important;
    box-shadow:
        inset 0px 1px 0px rgba(255, 255, 255, 0.4),
        inset 0px 4px 8px rgba(255, 255, 255, 0.2),
        inset 0px -4px 6px rgba(0, 0, 0, 0.2),
        0px 8px 15px rgba(37, 211, 102, 0.4),
        0px 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.not-found-btn-whatsapp:hover {
    box-shadow:
        inset 0px 2px 0px 0px #ffffff,
        inset 0px 5px 8px rgba(255, 255, 255, 0.8),
        inset 0px 0px 30px rgba(255, 255, 255, 0.4),
        0px 8px 15px rgba(37, 211, 102, 0.5) !important;
}

/* Services Section */
.not-found-services {
    padding: 4rem 0;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.not-found-services__header {
    text-align: center;
    margin-bottom: 3rem;
}

.not-found-services__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.not-found-services__subtitle {
    color: var(--text-color);
    font-size: 1.1rem;
}

.not-found-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .not-found-services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .not-found-services__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.not-found-service-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.not-found-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.not-found-service-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #fff0f1 0%, #fdd 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-found-service-card__icon i {
    font-size: 1.75rem;
    color: var(--first-color);
}

.not-found-service-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.not-found-service-card__description {
    font-size: 0.8rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Stays Section */
.not-found-stays {
    padding: 4rem 0;
}

.not-found-stays__header {
    text-align: center;
    margin-bottom: 3rem;
}

.not-found-stays__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.not-found-stays__subtitle {
    color: var(--text-color);
}

.not-found-stays__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .not-found-stays__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.not-found-stay-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.not-found-stay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.not-found-stay-card__image {
    position: relative;
    height: 200px;
}

.not-found-stay-card__img {
    object-fit: cover;
}

.not-found-stay-card__rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.not-found-stay-card__rating i {
    color: #fbbf24;
}

.not-found-stay-card__content {
    padding: 1.25rem;
}

.not-found-stay-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.not-found-stay-card__description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.not-found-stay-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.not-found-stay-card__link {
    color: var(--first-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.3s;
}

.not-found-stay-card__link:hover {
    gap: 0.6rem;
}

.not-found-stay-card__book {
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, #2dd96e 0%, #25D366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.not-found-stay-card__book:hover {
    transform: scale(1.1);
}

.not-found-stays__cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Blog Section */
.not-found-blog {
    padding: 4rem 0;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.not-found-blog__header {
    text-align: center;
    margin-bottom: 3rem;
}

.not-found-blog__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.not-found-blog__subtitle {
    color: var(--text-color);
}

.not-found-blog__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .not-found-blog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.not-found-blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.not-found-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.not-found-blog-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.not-found-blog-card__image {
    position: relative;
    height: 180px;
}

.not-found-blog-card__img {
    object-fit: cover;
}

.not-found-blog-card__time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.not-found-blog-card__content {
    padding: 1.25rem;
}

.not-found-blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.not-found-blog-card__tag {
    background: rgba(75, 119, 227, 0.1);
    color: var(--first-color);
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: capitalize;
}

.not-found-blog-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.not-found-blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.not-found-blog__cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Quick Links */
.not-found-links {
    padding: 4rem 0;
}

.not-found-links__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--title-color);
    text-align: center;
    margin-bottom: 2rem;
}

.not-found-links__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .not-found-links__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .not-found-links__grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.not-found-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--title-color);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
}

.not-found-quick-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: var(--first-color);
}

.not-found-quick-link i {
    font-size: 1.5rem;
}

.not-found-quick-link span {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

/* Final CTA */
.not-found-cta {
    padding: 3rem 0 4rem;
}

.not-found-cta__card {
    background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.3);
}

@media (min-width: 768px) {
    .not-found-cta__card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 3rem;
    }
}

.not-found-cta__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.not-found-cta__description {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 500px;
}

.not-found-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .not-found-cta__buttons {
        flex-direction: row;
        margin-top: 0;
    }
}

/* ================================
   Mobile Button Fixes
   ================================ */
@media (max-width: 767px) {

    /* Make all buttons smaller on mobile */
    .not-found-page .btn-3d {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .not-found-page .btn-3d--lg {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }

    /* Hero section buttons */
    .not-found-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .not-found-hero__actions .btn-3d {
        width: 100%;
        justify-content: center;
    }

    /* About CTA buttons */
    .not-found-about__buttons {
        flex-direction: column;
        width: 100%;
    }

    .not-found-about__buttons .btn-3d {
        width: 100%;
        justify-content: center;
    }

    /* Final CTA buttons */
    .not-found-cta__buttons .btn-3d {
        width: 100%;
        justify-content: center;
    }

    /* Stays CTA */
    .not-found-stays__cta .btn-3d,
    .not-found-blog__cta .btn-3d {
        width: 100%;
        justify-content: center;
    }
}