/* Dropdown wrapper */
.bespoke-dropdown {
    position: relative;
    display: inline-block;
}

/* Button */
.bespoke-btn {
    background: #294240;
    color: #F8F5EC;
    padding: 10px 30px 10px 22px; /* right padding for icon */
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative; /* for pseudo-element */
    z-index: 1000;      /* ensure above dropdown */
}

/* Hover */
.bespoke-btn:hover,
.bespoke-btn:focus {
    background: #1f3432 !important;
    color: #F8F5EC !important;
}

/* Arrow Icon */
.dropdown-icon::before {
    content: "▼";
    font-size: 11px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Rotate arrow on hover */
.bespoke-dropdown:hover .dropdown-icon::before {
    transform: rotate(180deg);
}

/* Dropdown menu */
.bespoke-dropdown-menu {
    position: absolute;
    top: 100%; /* align directly under button */
    left: 0;
    background: #294240;
    border-radius: 0 0 30px 30px; /* only bottom corners rounded */
    padding: 5px 0;               /* remove gap */
    min-width: 100%;              /* match button width */
    display: none;
    flex-direction: column;
    z-index: 999;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Dropdown items */
.bespoke-dropdown-menu .dropdown-item {
    color: #F8F5EC;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: 0.3s;
    border-radius: 0; /* remove individual rounding */
}

.bespoke-dropdown-menu .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
}

/* Show dropdown on hover */
.bespoke-dropdown:hover .bespoke-dropdown-menu {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .bespoke-dropdown-menu {
        left: 0;
        right: auto;
    }
}
