/* ============================================
   DỰ ÁN ĐÀ NẴNG - Custom Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --brand-primary: #0B2545;
    --brand-secondary: #00AEEF;
    --brand-accent: #00C2C7;
    --brand-bg: #F5F7FA;
    --neutral-white: #FFFFFF;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: #1f2937;
    background-color: var(--brand-bg);
}

/* --- Ẩn thanh cuộn mặc định nhưng vẫn giữ chức năng cuộn mượt --- */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Hình nền khu đô thị độ nét cao cho phần Hero --- */
.hero-bg {
    background-image: linear-gradient(rgba(11, 37, 69, 0.75), rgba(11, 37, 69, 0.9)), url('../images/unsplash_1583417319070-4a69db38a482_2.jpg');
    background-size: cover;
    background-position: center;
}

/* --- Họa tiết sóng thương hiệu trừu tượng dạng lưới mờ --- */
.brand-pattern-bg {
    background-color: #F5F7FA;
    background-image:
        radial-gradient(circle at 100% 150%, transparent 24%, rgba(0, 194, 199, 0.05) 24%, rgba(0, 194, 199, 0.05) 26%, transparent 26%),
        radial-gradient(circle at 0% 150%, transparent 24%, rgba(0, 174, 239, 0.05) 24%, rgba(0, 174, 239, 0.05) 26%, transparent 26%),
        linear-gradient(to right, rgba(11, 37, 69, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 37, 69, 0.02) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 40px 40px, 40px 40px;
}

/* --- Điểm ghim định vị phát sáng trên Bản đồ Leaflet --- */
.leaflet-pulsing-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--marker-color, #00AEEF);
    border: 2px solid white;
    box-shadow: 0 0 15px var(--marker-color, #00AEEF);
    position: relative;
}

.leaflet-pulsing-marker::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--marker-color, #00AEEF);
    opacity: 0.45;
    animation: pulse-ring 1.8s infinite;
    left: 0;
    top: 0;
}

/* --- Animations --- */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.45;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pulse-light {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.animate-pulse-light {
    animation: pulse-light 1.5s infinite;
}

/* --- Project Detail Swiper --- */
.utility-gallery-swiper .swiper-slide:not(.swiper-slide-active) .swiper-img-container {
    filter: grayscale(100%);
    opacity: 0.5;
    transform: scale(0.9);
}

.utility-gallery-swiper .swiper-slide-active .swiper-img-container {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1);
}

.fancybox__container {
    z-index: 10000;
}

/* --- Gallery Tabs --- */
.gallery-tab {
    background-color: #ffffff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-tab:hover {
    border-color: #112a46;
    color: #112a46;
}

.gallery-tab.active {
    background-color: #112a46 !important;
    color: #ffffff !important;
    border-color: #112a46 !important;
}

/* --- Pagination Styles --- */
.pagination-wrapper ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper ul.page-numbers li {
    display: inline-flex;
}

.pagination-wrapper ul.page-numbers li .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 8px;
    /* Slightly rounded for modern look */
    background-color: #ffffff;
    color: #4b5563;
    /* text-gray-600 */
    font-weight: 600;
    font-size: 0.875rem;
    /* text-sm */
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    /* border-gray-200 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.pagination-wrapper a.page-numbers:hover {
    background-color: var(--brand-bg);
    color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

.pagination-wrapper ul.page-numbers li span.page-numbers.current {
    background-color: var(--brand-secondary);
    color: #ffffff;
    border-color: var(--brand-secondary);
    box-shadow: 0 4px 6px -1px rgba(0, 174, 239, 0.2);
}

.pagination-wrapper .page-numbers.dots {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #9ca3af;
    /* text-gray-400 */
}

/* --- Navigation Menu --- */
header nav.hidden.lg\:flex ul li a {
    color: var(--brand-primary);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.875rem;
    /* text-sm */
    text-decoration: none;
}

header nav.hidden.lg\:flex ul li a:hover,
header nav.hidden.lg\:flex ul li.current-menu-item>a {
    color: var(--brand-secondary);
}

/* ============================================
   CF7 CUSTOM STYLING (Contact Form)
   ============================================ */
.custom-cf7-form .wpcf7-form-control.wpcf7-text,
.custom-cf7-form .wpcf7-form-control.wpcf7-email,
.custom-cf7-form .wpcf7-form-control.wpcf7-tel,
.custom-cf7-form .wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    /* rounded-xl */
    padding: 0.875rem 1rem 0.875rem 2.75rem !important;
    /* py-3.5 pl-11 pr-4 */
    font-size: 0.875rem !important;
    /* text-sm */
    color: #ffffff !important;
    transition: all 0.3s !important;
    margin: 0 !important;
}

.custom-cf7-form .wpcf7-form-control.wpcf7-text:focus,
.custom-cf7-form .wpcf7-form-control.wpcf7-email:focus,
.custom-cf7-form .wpcf7-form-control.wpcf7-tel:focus,
.custom-cf7-form .wpcf7-form-control.wpcf7-textarea:focus {
    outline: none !important;
    border-color: var(--brand-secondary) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.custom-cf7-form .wpcf7-form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.custom-cf7-form .wpcf7-submit {
    width: 100%;
    background-color: #0096ce !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 1rem !important;
    /* py-4 */
    border-radius: 0.75rem !important;
    /* rounded-xl */
    transition: background-color 0.3s !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 0.5rem !important;
    /* mt-2 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.custom-cf7-form .wpcf7-submit:hover {
    background-color: #d55217 !important;
}

/* Fix spacing for CF7 elements */
.custom-cf7-form p {
    margin: 0 !important;
}

.custom-cf7-form .wpcf7-spinner {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.custom-cf7-form .wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 4px;
}

/* ============================================
   CF7 CUSTOM STYLING (Newsletter Form)
   ============================================ */
.custom-cf7-newsletter form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .custom-cf7-newsletter form {
        flex-direction: row !important;
        width: auto !important;
    }
}

.custom-cf7-newsletter .wpcf7-form-control.wpcf7-text,
.custom-cf7-newsletter .wpcf7-form-control.wpcf7-email,
.custom-cf7-newsletter .wpcf7-form-control.wpcf7-tel {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.75rem !important;
    padding: 0.625rem 1rem !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    width: 100% !important;
    transition: all 0.3s !important;
}

@media (min-width: 640px) {

    .custom-cf7-newsletter .wpcf7-form-control.wpcf7-text,
    .custom-cf7-newsletter .wpcf7-form-control.wpcf7-email {
        width: 9rem !important;
    }

    .custom-cf7-newsletter .wpcf7-form-control.wpcf7-tel {
        width: 11rem !important;
    }
}

.custom-cf7-newsletter .wpcf7-form-control.wpcf7-text:focus,
.custom-cf7-newsletter .wpcf7-form-control.wpcf7-email:focus,
.custom-cf7-newsletter .wpcf7-form-control.wpcf7-tel:focus {
    outline: none !important;
    border-color: #ffffff !important;
}

.custom-cf7-newsletter .wpcf7-form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.custom-cf7-newsletter .wpcf7-submit {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.75rem !important;
    transition: background-color 0.3s !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
}

.custom-cf7-newsletter .wpcf7-submit:hover {
    background-color: #0096ce !important;
}

.custom-cf7-newsletter p {
    margin: 0 !important;
}