/* Amenities Section Custom Styles */
.amenities-section {
    background-color: #132f57;
    color: #e2e8f0;
    font-family: "Inter", sans-serif;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background glowing circles for premium glassmorphism/gradient effect */
.amenities-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(205, 162, 117, 0.08) 0%, rgba(44, 66, 97, 0) 70%);
    pointer-events: none;
}

.amenities-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(205, 162, 117, 0.06) 0%, rgba(44, 66, 97, 0) 70%);
    pointer-events: none;
}

.amenities-header {
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(205, 162, 117, 0.15);
    padding-bottom: 25px;
}

.amenities-title-box .sub-title {
    color: #c5a254;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

.amenities-title-box h2 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.25;
}

.amenities-title-box h2 span {
    color: #c5a254;
}

/* Category Block Layout (Stacked) */
.amenities-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.amenity-category-block {
    transition: all 0.4s ease;
}

.amenity-category-block.hidden {
    display: none;
}

.category-header-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(205, 162, 117, 0.15);
    padding-bottom: 12px;
}

.category-num {
    font-family: "Satoshi", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #c5a254;
    background: rgba(205, 162, 117, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(205, 162, 117, 0.25);
}

.category-title {
    color: #ffffff;
    font-family: "Satoshi", sans-serif;
    font-size: 26px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0 !important;
}

/* Responsive CSS Grid for Cards */
.amenity-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Item Card Styling: Premium Glass, Diagonal Slash and Edge Highlight */
.amenity-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #c5a254;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.amenity-item:hover {
    background: #faf8f5;
    border-color: #c5a254;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Left edge gold vertical bar highlight */
.amenity-item .card-edge-highlight {
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #c5a254, #d4af37);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(-50%);
}

.amenity-item:hover .card-edge-highlight {
    height: 100%;
}

/* Before pseudo-element: Diagonal golden slash slide-in */
.amenity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(205, 162, 117, 0.12) 0%, rgba(205, 162, 117, 0.01) 100%);
    clip-path: polygon(0 0, 0 100%, 0 100%, 0 0);
    transition: clip-path 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.amenity-item:hover::before {
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

/* Static Corner Shape Decoration */
.amenity-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 35px 35px 0;
    border-color: transparent rgba(208, 174, 106, 0.3) transparent transparent;
    z-index: 1;
    transition: all 0.3s ease;
}

.amenity-item:hover::after {
    border-color: transparent rgba(208, 174, 106, 0.6) transparent transparent;
}

/* Circular icon badge */
.amenity-item .icon-badge {
    width: 65px;
    height: 65px;
    border-radius: 18%;
    border: 1.5px solid #c5a254;
    background: #132f57;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    color: #c5a254;
    font-size: 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    z-index: 2;
}

.amenity-item:hover .icon-badge {
    background: linear-gradient(135deg, #c5a254, #d4af37);
    color: #132f57;
    border-color: #d4af37;
    transform: scale(1) rotate(6deg);
    /* box-shadow: 0 0 12px rgba(205, 162, 117, 0.4); */
}

.amenity-item .amenity-name {
    font-size: 15px;
    color: #132f57;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    z-index: 2;
    line-height: 1.35;
}

.amenity-item:hover .amenity-name {
    color: #c5a254;
    font-weight: 600;
    transform: translateX(4px);
}

/* Interactive Match / Dim State for filters */
.amenity-item.dimmed {
    opacity: 0.12;
    transform: scale(0.95);
    filter: blur(0.6px);
    pointer-events: none;
}

.amenity-item.highlighted {
    opacity: 1;
    transform: scale(1.02);
    border-color: rgba(205, 162, 117, 0.6);
    box-shadow: 0 0 15px rgba(205, 162, 117, 0.15);
}

.amenity-item.highlighted::before {
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.amenity-item.highlighted .icon-badge {
    background: linear-gradient(135deg, #c5a254, #d4af37);
    color: #132f57;
    border-color: #d4af37;
}

.amenity-item.highlighted .amenity-name {
    color: #132f57;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .amenity-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }


}

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

    .amenities-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .amenities-controls {
        width: 100%;
        justify-content: space-between;
    }

    .amenities-search-box {
        flex-grow: 1;
    }

    .creative-nav-tabs .nav-link {
        padding: 10px 22px !important;
    }

    .amenity-item .icon-badge {
        font-size: 20px;
        width: 50px;
        height: 50px;
        border-radius: 14%;
    }

    .view-more-amenities-btn {
        padding: 8px 22px !important;
    }

    .amenity-item {
        padding: 10px 12px;
    }
}

@media (max-width: 767px) {
    .amenity-card-grid {
        grid-template-columns: 1fr;
    }

    .amenities-title-box h2 {
        font-size: 36px;
    }

    .amenities-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .amenities-filter-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
        width: 100%;
    }

    .filter-tab {
        white-space: nowrap;
        flex-grow: 1;
        text-align: center;
        padding: 9px 18px;
    }
}

/* Creative Tabs Styling */
.creative-tabs-wrapper {
    margin-top: 30px;
    border-top: 1px solid #c5a254;
    padding-top: 40px;
}

.creative-nav-tabs {
    border: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.creative-nav-tabs .nav-item {
    position: relative;
}

.creative-nav-tabs .nav-link {
    border: 2px solid #c5a254 !important;
    background: #ffffff !important;
    color: #132f57 !important;
    padding: 12px 38px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.creative-nav-tabs .nav-link i {
    font-size: 22px;
    color: #c5a254;
    transition: all 0.4s ease;
}

.creative-nav-tabs .nav-link svg {
    width: 22px;
    height: 22px;
    stroke: #c5a254;
    transition: all 0.4s ease;
}

.creative-nav-tabs .nav-link:hover {
    background: #faf8f5 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.creative-nav-tabs .nav-link::before {
    display: none;
}

.creative-nav-tabs .nav-link.active {
    background: #c5a254 !important;
    color: #132f57 !important;
    border-color: #c5a254 !important;
    box-shadow: 0 8px 20px rgba(208, 174, 107, 0.25);
}

.creative-nav-tabs .nav-link.active i {
    color: #132f57 !important;
}

.creative-nav-tabs .nav-link.active svg {
    stroke: #132f57 !important;
}

/* Tab Pane Animation */
.tab-pane {
    animation: fade-in-up 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

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

@media (max-width: 767px) {
    .creative-nav-tabs {
        /* flex-direction: column; */
        gap: 15px;
    }

    .creative-nav-tabs .nav-link {
        padding: 10px 14px !important;
    }

    .creative-nav-tabs .nav-link {
        width: 100%;
        /* justify-content: center; */
    }
}

@media (max-width: 767px) {
    .creative-nav-tabs {
        flex-direction: column;
        gap: 15px;
    }
}

/* Card Animation Transition Classes */
.amenity-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 200px;
    /* High enough to fit */
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        padding 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        margin 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        border-width 0.5s ease;
}

.amenity-item.hidden-card {
    opacity: 0 !important;
    transform: translateY(30px) scale(0.92) !important;
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    display: none !important;
}

/* View More Amenities Button - Architectural Bracket Design */
.view-more-amenities-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(208, 174, 107, 0.3);
    color: #cbd5e1;
    padding: 10px 28px;
    /* Tighter padding */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    /* Clean architectural edges */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Thin corner brackets representing blueprint drafting alignment */
.view-more-amenities-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #c5a254;
    border-left: 1.5px solid #c5a254;
    transition: all 0.35s ease-in-out;
}

.view-more-amenities-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-bottom: 1.5px solid #c5a254;
    border-right: 1.5px solid #c5a254;
    transition: all 0.35s ease-in-out;
}

.view-more-amenities-btn:hover {
    color: #ffffff;
    border-color: rgba(208, 174, 107, 0.8);
    background: rgba(208, 174, 107, 0.08);
    box-shadow: 0 0 15px rgba(208, 174, 107, 0.2);
    transform: translateY(-2px);
}

/* Brackets expand to outline the button on hover */
.view-more-amenities-btn:hover::before,
.view-more-amenities-btn:hover::after {
    width: 100%;
    height: 100%;
    border-color: #c5a254;
}

.view-more-amenities-btn i {
    font-size: 11px;
    color: #c5a254;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}

.view-more-amenities-btn:hover i {
    transform: translateY(2px);
}

.view-more-amenities-btn.active:hover i {
    transform: translateY(-2px) rotate(180deg);
}

.view-more-amenities-btn.active i {
    transform: rotate(180deg);
}

/* Limit card grid height for smooth animation transition */
.amenity-card-grid {
    transition: max-height 0.5s ease-in-out;
}

@media (max-width: 1199px) {
    .amenities-section {
        padding: 100px 0;
    }
}

@media (max-width: 991px) {
    .amenities-section {
        padding: 80px 0;
    }
}

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

@media (max-width: 575px) {
    .amenities-section {
        padding: 50px 0;
    }
}