/* Dropdown Menu Button Block Styles */
.dropdown-menu-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-menu-button {
    background-color: #2c474d;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.dropdown-menu-button:hover,
.dropdown-menu-button.active {
    background-color: #5b797c;
}

.dropdown-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.dropdown-menu-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu-content {
    position: fixed;
    top: var(--dropdown-top, 72px);
    left: var(--dropdown-left, 50%);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 52px rgba(0, 0, 0, 0.18);
    padding: 0;
    width: min(980px, calc(100vw - 40px));
    min-width: 760px;
    display: none;
    z-index: 1001;
    opacity: 0;
    transform: translate(-50%, -10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.dropdown-menu-content.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, 0);
}

.dropdown-menu-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: var(--dropdown-arrow-left, 50%);
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Backdrop behind the mega-menu */
.dropdown-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

.dropdown-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Two-panel layout */
.menu-items-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    min-height: 420px;
}

.menu-sidebar {
    background: #eef2f3;
    border-right: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.menu-sidebar-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 22px 20px;
    cursor: pointer;
    color: #1a353b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    flex: 1;
}

.menu-sidebar-item + .menu-sidebar-item {
    border-top: 0;
}

.menu-sidebar-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}

.menu-sidebar-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a353b;
    opacity: 0.9;
}

.menu-sidebar-item:hover,
.menu-sidebar-item.active {
    background: #e8b673;
}

/* Little notch pointing into the right panel */
.menu-sidebar-item:hover::after,
.menu-sidebar-item.active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 16px solid #e8b673;
}

.menu-content {
    background: #eef2f3;
    padding: 22px 22px 18px;
}

.menu-content-main {
    background: transparent;
}

.menu-content-divider {
    border-top: 1px solid #d9dee0;
    margin: 14px 0 12px;
}

@media (max-width: 768px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    
    .dropdown-menu-content {
        min-width: 0;
    }

    .menu-sidebar {
        border-right: 0;
        border-bottom: 1px solid #d9dee0;
    }

    .menu-sidebar-item:hover::after,
    .menu-sidebar-item.active::after {
        display: none;
    }
}

@media (max-width: 960px) {
    .dropdown-menu-content {
        min-width: 0;
        width: calc(100vw - 24px);
    }
}

/* Right panel content styles */
.menu-content-main .menu-item-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a353b;
    margin: 0 0 10px 0;
}

.menu-item-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    margin-top: 0;
}

.menu-item-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.menu-item-tag::before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
}

.menu-item-description {
    font-size: 13px;
    color: #1a353b;
    line-height: 1.6;
    margin: 10px 0;
}

.menu-item-button {
    background-color: #e8b673;
    color: #1a353b;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.menu-item-button:hover {
    background-color: #d9a562;
}

/* Locations Section */
.locations-section {
    margin: 0;
}

.locations-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.location-button {
    background: #ffffff;
    border: 1.5px solid #a7b0b4;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
}

.location-button:hover,
.location-button.active {
    background: #e8b673;
    border-color: #e8b673;
    color: #2c3e50;
}

/* Popular Services Section */
.popular-services-section {
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
}

.popular-services-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.popular-services-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.popular-service-button {
    background: #ffffff;
    border: 1.5px solid #a7b0b4;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popular-service-button:hover {
    border-color: #2c3e50;
    background: #f8f9fa;
}
