@import url(./root.css);

/* =============================================
   PROJECT LIST PAGE
   ============================================= */
.project-page-wrapper {
    background-color: #f6f6f6;
    min-height: 60vh;
    padding-bottom: 48px;
}

/* =============================================
   BANNER & CAROUSEL CUSTOM
   ============================================= */
.project-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--ihd-primary-color);
}

.project-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* Subtle dark gradient so title text is legible */
.project-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(0, 0, 0, 0.10) 60%,
            rgba(0, 0, 0, 0.00) 100%
    );
    display: flex;
    align-items: flex-end;
    padding-bottom: 32px;
    z-index: 10;
    pointer-events: none;
}

.project-banner-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.30);
    margin: 0;
}


.custom-nav-btn {
    width: 45px;
    height: 45px;
    background-color: rgba(25px, 25px, 25px, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.project-banner .carousel-control-prev.custom-nav-btn {
    left: 20px;
    transform: translate(-10px, -50%);
}
.project-banner .carousel-control-next.custom-nav-btn {
    right: 20px;
    transform: translate(10px, -50%);
}

.custom-nav-btn .carousel-control-prev-icon,
.custom-nav-btn .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.project-banner.has-carousel:hover .custom-nav-btn {
    opacity: 1;
    transform: translate(0, -50%);
}


.custom-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-nav-btn:hover .carousel-control-prev-icon,
.custom-nav-btn:hover .carousel-control-next-icon {
    filter: invert(1) grayscale(1) brightness(0);
}

.carousel-indicators{
    align-items: center;
}

.project-banner .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
    margin-right: 6px;
    transition: all 0.3s ease;
}
.project-banner .carousel-indicators .active {
    width: 24px;
    height: 8px;
    border: none;
    border-radius: 10px;
    background-color: #fff;
}

/* =============================================
   BREADCRUMB BAR
   ============================================= */
.project-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #eaecf0;
    padding: 12px 0;
}

.project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.project-breadcrumb a {
    color: var(--ihd-primary-color);
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.2s;
}

.project-breadcrumb a:hover { opacity: 0.75; }

.project-breadcrumb .breadcrumb-sep {
    color: #acb2b9;
    font-weight: 400;
}

.project-breadcrumb .breadcrumb-current {
    color: var(--ihd-primary-color);
    font-weight: 700;
}

/* Banner responsive */
@media (max-width: 991.98px) {
    .project-banner { height: 220px; }
    .project-banner-title { font-size: 28px; }
}

@media (max-width: 575.98px) {
    .project-banner { height: 160px; }
    .project-banner-title { font-size: 22px; }
    .project-banner-overlay { padding-bottom: 20px; }
}

/* =============================================
   SECTION TITLE
   ============================================= */
.project-section-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--ihd-primary-color);
    letter-spacing: 0.5px;
    padding: 28px 0 16px;
    text-transform: uppercase;
}

/* =============================================
   FILTER BAR
   ============================================= */
.project-filter-bar {
    padding: 20px 0 16px;
}

.project-filter-bar .filter-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.project-filter-bar .filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d0d5dd;
    border-radius: 15px;
    padding: 8px 14px;
    background: #fff;
    min-width: 260px;
    max-width: 360px;
    flex: 1 1 260px;
}

.project-filter-bar .filter-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.project-filter-bar .filter-search input::placeholder { color: #acb2b9; }

.project-filter-bar .filter-search i {
    color: #acb2b9;
    font-size: 16px;
    flex-shrink: 0;
}

.project-filter-bar .filter-select {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d0d5dd;
    border-radius: 15px;
    padding: 8px 14px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    min-width: 140px;
    position: relative;
}

.project-filter-bar .filter-select select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--ihd-primary-color);
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 20px;
}

.project-filter-bar .filter-select .select-arrow {
    position: absolute;
    right: 14px;
    pointer-events: none;
    color: #acb2b9;
    font-size: 12px;
}

.project-filter-bar .filter-btn {
    background-color: var(--ihd-primary-color);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 9px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.project-filter-bar .filter-btn:hover {
    background-color: var(--ihd-primary-light-color);
}

#clear-search-btn {
    cursor: pointer;
    color: #999;
    display: none;
    font-size: 16px;
    flex-shrink: 0;
}

#clear-search-btn:hover { color: var(--ihd-primary-color); }

/* =============================================
   TWO-COLUMN TYPE LAYOUT
   ============================================= */
.project-type-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 8px 0 20px;
}

.project-type-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-type-col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    width: fit-content;
    color: #fff;
}

.project-type-col-title.lowrise { background-color: #bf1f43; }
.project-type-col-title.highrise { background-color: var(--ihd-primary-color); }

.project-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* =============================================
   PROJECT CARD
   ============================================= */
.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 349px;
    background-color: #b0b8c1;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}

/* Full-card link */
.project-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ===== ACTION MENU (3-dot button) ===== */
.project-card-top {
    display: flex;
    justify-content: flex-end;
    padding: 12px 12px 0;
    position: relative;
    z-index: 3;
}

/* 3-dot trigger button */
.card-menu-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.10);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 4;
    transition: background 0.2s;
}

.card-menu-trigger:hover { background: rgba(0,0,0,0.22); }

/* Dropdown action menu */
.card-action-menu {
    position: absolute;
    top: 48px;
    right: 12px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 6px 0;
    min-width: 190px;
    z-index: 10;
    display: none;
    flex-direction: column;
}

.card-action-menu.open { display: flex; }

.card-action-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.card-action-menu a:hover { background: #f4f6fa; }

.card-action-menu a i {
    font-size: 15px;
    color: var(--ihd-primary-color);
    flex-shrink: 0;
}

.card-action-menu .menu-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

/* ===== BOTTOM INFO PANEL (frosted glass) ===== */
.project-card-info {
    background: rgba(0,0,0,0.30);
    backdrop-filter: blur(5.5px) saturate(100%);
    -webkit-backdrop-filter: blur(5.5px) saturate(100%);
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.35),
            inset 1px 0 0 rgba(255,255,255,0.28),
            inset 0 -1px 3px rgba(0,0,0,0.12),
            inset -1px 0 3px rgba(0,0,0,0.10);
    border-radius: 15px 15px 0 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    z-index: 2;
}

/* Name + heart row */
.project-card-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.project-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Heart */
.project-card-heart {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 3;
    padding: 2px;
}

.project-card-heart .bi {
    font-size: 22px;
    color: #fff;
    transition: color 0.2s, transform 0.2s;
}

.project-card-heart .bi-heart-fill { color: #e74c3c; }

.project-card-heart:hover .bi { transform: scale(1.15); }

/* Type badge */
.project-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    width: fit-content;
}

.project-type-badge.lowrise  { background-color: #bf1f43; }
.project-type-badge.highrise { background-color: var(--ihd-primary-color); }

/* Location — 1 line, truncated; full on hover */
.project-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    cursor: default;
}

.project-card-location i {
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.project-card-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reveal full text on card hover */
.project-card:hover .project-card-location span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.project-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    grid-column: 1 / -1;
}

.project-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* =============================================
   SKELETON LOADING
   ============================================= */
.project-card-skeleton {
    border-radius: 15px;
    height: 349px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Large tablet: inner col still 2 cards wide */
@media (max-width: 1199.98px) {
    .project-card { height: 300px; }
}

/* Tablet: stack type columns, each full width with 2-col grid inside */
@media (max-width: 991.98px) {
    .project-type-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .project-card { height: 300px; }
}

/* Mobile wide */
@media (max-width: 767.98px) {
    .project-col-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .project-card { height: 260px; }
    .project-card-name { font-size: 13px; }

    .project-type-badge { font-size: 11px; padding: 2px 8px; }
    .project-card-location { font-size: 11px; }

    .project-filter-bar .filter-inner { gap: 10px; }
    .project-filter-bar .filter-search { min-width: 100%; flex: 1 1 100%; }
}

/* Mobile narrow: 1 card per row */
@media (max-width: 479.98px) {
    .project-col-grid { grid-template-columns: 1fr; gap: 12px; }
    .project-card { height: 260px; }
    .project-section-title { font-size: 17px; padding: 20px 0 12px; }
    .project-filter-bar .filter-select { min-width: 0; flex: 1 1 calc(50% - 8px); }
}