/* =============================================================
   NESTKEEPER – Global CSS
   Color Palette:
     Primary Teal:   #1e9e8a
     Orange:         #f97316 / #ff6b35
     Dark:           #1a2332
     Text Dark:      #1a2332
     Text Light:     #6b7280
     BG Light:       #f0f4f8
     White:          #ffffff
============================================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a2332;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-container {
    width: 100%;
    padding: 0 48px;
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 20px;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f0f4f8;
}

.section-header {
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 600px;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

.scroll-indicator {
    font-size: 1.4rem;
    color: #1e9e8a;
    margin-bottom: 8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary,
.btn-search,
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary,
.btn-search {
    background: #1e9e8a;
    color: #fff;
}

.btn-secondary {
    background: #f97316;
    color: #fff;
}

.btn-primary:hover,
.btn-search:hover {
    background: #178070;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 158, 138, 0.3);
}

.btn-secondary:hover {
    background: #ea6a0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: background 0.3s;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    max-width: 1440px;
    padding: 0 40px;
}

/* Logo */
.navbar-logo {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-n {
    color: #f97316;
}

.logo-icon {
    color: #1e9e8a;
    font-size: 1.25rem;
    margin: 0 1px;
}

.logo-st {
    color: #1e9e8a;
}

.logo-keeper {
    color: #1a2332;
}

/* Nav links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar-links a {
    font-size: 1.05rem;
    font-weight: 500;
    color: #374151;
    position: relative;
    padding-bottom: 2px;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e9e8a;
    transition: width 0.3s;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

.navbar-links a.active {
    color: #1a2332;
}

/* Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e9e8a;
    font-size: 1rem;
    transition: border-color 0.2s, color 0.2s;
}

.btn-wishlist:hover {
    border-color: #1e9e8a;
}

.btn-login {
    background: #1e9e8a;
    color: #fff;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 1rem;
}

.btn-login:hover {
    background: #178070;
}

.btn-register {
    background: transparent;
    color: #1e9e8a;
    border: 1px solid #1e9e8a;
    padding: 11px 25px; /* Adjust padding for border */
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-register:hover {
    background: #1e9e8a;
    color: #fff;
}

.btn-login .btn-arrow {
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

/* Mobile toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a2332;
    border-radius: 2px;
    transition: transform 0.3s;
}

/* Mobile menu */
.navbar-mobile {
    display: none;
    background: #fff;
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e7eb;
}

.navbar-mobile.open {
    display: block;
}

.navbar-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.navbar-mobile a {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

.navbar-mobile .btn-login.mobile {
    display: inline-flex;
    background: #1e9e8a;
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    margin-top: 8px;
}

/* ---------- HERO ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('/images/hero-bg.png') center center / cover no-repeat;
    margin-top: 72px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 40, 0.75) 0%, rgba(10, 20, 40, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 48px;
    padding-bottom: 80px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.text-orange {
    color: #f97316;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* Hero Search Form */
.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 10px 12px;
    gap: 0;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    max-width: 1050px;
    flex-wrap: nowrap;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    position: relative;
    flex: 1;
    min-width: 120px;
}

.search-location {
    flex: 1.8 !important;
    min-width: 300px !important;
}

.search-type, .search-category, .search-purpose {
    padding: 0 !important;
    align-items: stretch !important;
}

.search-field select,
.search-field input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    width: 100%;
    cursor: pointer;
}

.search-type select, .search-category select, .search-purpose select {
    padding: 12px 40px 12px 20px;
}

.search-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-field select option {
    color: #1a2332;
    background: #fff;
}

.search-field select {
    appearance: none;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

.search-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}

.search-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.btn-search {
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Hero CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- CATEGORIES ---------- */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.categories-marquee {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: marquee 30s linear infinite;
}

.categories-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

.category-card {
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 18px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #1e9e8a;
}

.category-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2332;
    display: block;
}

.category-count {
    font-size: 0.82rem;
    color: #6b7280;
}

/* ---------- PROPERTIES GRID ---------- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

.property-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.property-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-img-wrap img,
.property-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.property-card:hover .property-img-wrap img,
.property-card:hover .property-img-placeholder {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

.badge-orange {
    background: #f97316;
}

.badge-teal {
    background: #1e9e8a;
}

.btn-wishlist-card {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, color 0.2s;
}

.btn-wishlist-card:hover {
    background: #f97316;
    color: #fff;
}

.btn-wishlist-card.active {
    background: #f97316;
    color: #fff;
}

.property-category-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #1e9e8a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.property-card-body {
    padding: 18px 18px 20px;
}

.property-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-location i {
    color: #1e9e8a;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: #6b7280;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e5e7eb;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-meta i {
    color: #1e9e8a;
}

.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.property-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e9e8a;
}

.btn-explore {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2332;
    transition: color 0.2s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-explore:hover {
    color: #1e9e8a;
}

/* ---------- DESTINATIONS ---------- */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.destination-card {
    border-radius: 16px;
    overflow: hidden;
    display: block;
    transition: transform 0.25s, box-shadow 0.25s;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.destination-img-wrap {
    height: 200px;
    overflow: hidden;
}

.destination-img-placeholder,
.destination-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.destination-card:hover .destination-img-placeholder {
    transform: scale(1.06);
}

.destination-info {
    padding: 14px 4px 6px;
    text-align: center;
}

.destination-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 4px;
}

.destination-count {
    font-size: 0.82rem;
    color: #6b7280;
}

/* ---------- ABOUT ---------- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text .section-title {
    margin-bottom: 20px;
}

.about-desc {
    font-size: 0.97rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-video-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.about-video-thumb {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-video-img-placeholder {
    width: 100%;
    height: 340px;
    background: linear-gradient(135deg, #1a2332 0%, #2d4a6b 50%, #1e9e8a 100%);
}

.about-video-thumb img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e9e8a;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* ---------- FAQ ---------- */
.faq-container {
    max-width: 760px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item.open {
    border-color: #1e9e8a;
    box-shadow: 0 4px 18px rgba(30, 158, 138, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2332;
    font-family: 'Inter', sans-serif;
    gap: 16px;
}

.faq-icon {
    color: #1e9e8a;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.75;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- FOOTER ---------- */
.footer {
    background: #0f1923;
    color: #cbd5e1;
    padding-top: 64px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer .navbar-logo {
    margin-bottom: 16px;
}

.footer .logo-keeper {
    color: #94a3b8;
}

.footer-tagline {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-links-col h4,
.footer-contact-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-links-col a:hover {
    color: #1e9e8a;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: #94a3b8;
}

.footer-contact-list i {
    color: #1e9e8a;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: #94a3b8;
}

.footer-contact-list a:hover {
    color: #1e9e8a;
}

.footer-bottom {
    border-top: 1px solid #1e2d3d;
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #1e2d3d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-socials a:hover {
    border-color: #1e9e8a;
    color: #1e9e8a;
    background: rgba(30, 158, 138, 0.1);
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1e9e8a;
    color: #1e9e8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top-btn:hover {
    background: #1e9e8a;
    color: #fff;
    transform: translateY(-3px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-video-wrap {
        max-width: 560px;
    }
}

@media (max-width: 768px) {

    .navbar-links,
    .navbar-actions {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-search-form {
        border-radius: 16px;
        padding: 10px 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .search-divider {
        display: none;
    }

    .search-field {
        padding: 8px 4px;
    }

    .btn-search {
        width: 100%;
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 56px 0;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group a {
        justify-content: center;
    }
}
