/*
Theme Name: Núp Gió Homestay
Theme URI: http://www.nupgiohomestay.vn
Author: Hoang Duong
Author URI: https://github.com/google-deepmind
Description: Theme WordPress hiện đại cho Núp Gió Homestay, được chuyển đổi chuyên nghiệp từ bản thiết kế HTML, sử dụng Tailwind CSS, Swiper Slider, và Lucide Icons.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nupgiohomestay
Tags: dynamic-features, responsive-layout, custom-menu, portfolio, travel
*/

/* Core Custom CSS Styles Consolidated from HTML designs */
html {
    scroll-behavior: smooth;
}

.btn-primary {
    background: linear-gradient(135deg, #FE9159, #FF7A2F);
    transition: all 0.24s ease;
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-secondary {
    transition: all 0.24s ease;
}

.btn-secondary:hover {
    background-color: #F6FBFC;
    transform: translateY(-1px);
}

.card-hover {
    transition: all 0.24s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(16, 24, 40, 0.14);
}

.review-bar {
    height: 8px;
    border-radius: 999px;
    background: #EAF3F5;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #007287;
}

/* Swiper pagination overrides */
.swiper-pagination-bullet {
    background: #007287 !important;
    opacity: 0.4 !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    background: #007287 !important;
    opacity: 1 !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* Impressive header & navigation links styling */
.nav-link {
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #007287, #00A59B);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: #007287 !important;
}

/* Mobile menu overlay */
#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.active #mobile-menu-panel {
    transform: translateX(0);
}

/* Lightbox modal zoom modal active status */
#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Success modal active status */
#success-modal.active {
    opacity: 1;
    pointer-events: auto;
}

#success-modal.active #success-modal-card {
    transform: scale(1);
}

/* Hide scrollbar but keep scroll functionality */
.scrollbar-thin::-webkit-scrollbar {
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #F6FBFC;
    border-radius: 999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #E5EAF0;
    border-radius: 999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #00A59B/50;
}

/* Modern CSS Grid-based Auto-Height Accordion */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
}
.accordion-inner {
    overflow: hidden;
}
.accordion-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
}

/* Photo Gallery dynamic filter hiding style */
.hidden-item {
    display: none !important;
}

/* Custom Social SVGs styling */
.w-10 svg, .w-10.h-10 svg {
    width: 1.25rem !important; /* 20px matching w-5 */
    height: 1.25rem !important; /* 20px matching h-5 */
    fill: currentColor;
    display: inline-block;
}

#float-contact-menu svg {
    width: 100% !important;
    height: 100% !important;
    display: inline-block;
}

/* Custom Flatpickr Theme Customizations to match Núp Gió Homestay Branding (#007287) */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08) !important;
    border: 1px solid #E5EAF0 !important;
    font-family: "Be Vietnam Pro", "Inter", sans-serif !important;
    padding: 6px 0 !important;
}
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.prevMonthDay.selected, 
.flatpickr-day.nextMonthDay.selected {
    background: #007287 !important;
    border-color: #007287 !important;
    color: #fff !important;
}
.flatpickr-months .flatpickr-month {
    color: #101828 !important;
    fill: #101828 !important;
    height: 32px !important;
}
.flatpickr-current-month {
    font-weight: 700 !important;
    color: #101828 !important;
}
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #007287 !important;
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #007287 !important;
}
.flatpickr-day.today {
    border-color: #00A59B !important;
}
.flatpickr-day.today:hover {
    background: #EAF3F5 !important;
    color: #007287 !important;
    border-color: #00A59B !important;
}
.flatpickr-day:hover {
    background: #EAF3F5 !important;
    border-color: transparent !important;
    color: #007287 !important;
}
.flatpickr-weekday {
    font-weight: 600 !important;
    color: #667085 !important;
}
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: #E5EAF0 !important;
}
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
    border-top-color: #E5EAF0 !important;
}

/* Fix Tailwind CSS conflict with Flatpickr .hidden class */
.flatpickr-day.hidden {
    display: inline-block !important;
    visibility: hidden !important;
}

/* Make Facebook Page Plugin responsive (matching Elementor Pro) */
.fb_iframe_widget, 
.fb_iframe_widget span {
    width: 100% !important;
}
.fb_iframe_widget iframe {
    position: relative !important;
    width: 100% !important;
}

/* Swiper navigation arrow color and size fix to match parent text color and button dimensions */
.swiper-button-next::after,
.swiper-button-prev::after {
    color: currentColor !important;
    font-size: 14px !important;
}

/* Prevent iOS auto-zoom on form inputs by forcing 16px font-size on mobile/tablet viewports */
@media (max-width: 1023px) {
    input, 
    select, 
    textarea,
    .form-input {
        font-size: 16px !important;
    }
}

/* Premium Typography Formatting for the .prose Container (Posts, Pages, & Index Loop) */
.prose {
    color: #667085; /* text-text-muted */
}
.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #101828; /* text-text */
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.prose h1 { font-size: 2.25rem; font-weight: 800; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.375rem; }
.prose h4 { font-size: 1.125rem; }

.prose strong {
    font-weight: 700;
    color: #101828;
}
.prose em {
    font-style: italic;
}
.prose a {
    color: #007287; /* text-primary */
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}
.prose a:hover {
    color: #00A59B; /* text-secondary */
}

/* Lists styling */
.prose ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.prose ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.prose li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}
.prose li p {
    margin-bottom: 0.5rem;
}

/* Blockquotes styling */
.prose blockquote {
    border-left: 4px solid #007287;
    padding: 1rem 1.25rem;
    font-style: italic;
    color: #667085;
    background-color: #F6FBFC;
    border-radius: 0 12px 12px 0;
    margin: 1.75rem 0;
}
.prose blockquote p {
    margin-bottom: 0;
}

/* Images & Media styling within content */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.75rem auto;
    display: block;
    border: 1px solid #E5EAF0;
}
.prose .wp-block-image {
    margin: 1.75rem 0;
}
.prose .wp-block-image img {
    margin: 0 auto;
}
.prose figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #667085;
    margin-top: 0.625rem;
    font-style: italic;
}

/* Tables styling */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.875rem;
}
.prose th, .prose td {
    border: 1px solid #E5EAF0;
    padding: 0.875rem 1rem;
    text-align: left;
}
.prose th {
    background-color: #F6FBFC;
    font-weight: 600;
    color: #101828;
}
.prose tr:nth-child(even) {
    background-color: #FAFDFD;
}

/* Inline code & code blocks styling */
.prose code {
    background-color: #F6FBFC;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    color: #FE9159; /* text-accent */
    border: 1px solid #E5EAF0;
}
.prose pre {
    background-color: #101828;
    color: #F6FBFC;
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}
.prose pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
}

